
Summarizes the course contents from Python setup and data preprocessing to supervised and unsupervised learning, model evaluation, and hyperparameter tuning with hands-on Python examples.
Explore popular integrated development environments for data science and machine learning, including Jupyter notebook, PyCharm, and Spyder, bundled by the Anaconda distribution. Learn simple installation and how to use Spyder.
Hi,
In this session, we are going to install the required libraries that we need during the course.
We are going to use pip installation. You can find the related codes for this installation below:
pip install numpy
pip install pandas
pip install -U scikit_learn
pip install scipy
Note1! If you receive an error with the above commands, just google the pip install (name of the package) and you should see the last updated pip installation commands. IT'S VERY EASY :)
Note2! If you are using anaconda distribution, please use the below commands
conda install numpy
conda install pandas
conda install -c conda-forge scikit-learn
conda install -c anaconda scipy
Hi,
In case you do not have Python on your computer as we discussed, please go to the below link and download any version of the Python that you prefer and then select it as an interpreter as we discussed in the video:
https://www.python.org/downloads/
Thanks
Hi and Congrats on Finishing First Chapter!
As we promised, you can download all the source codes from the below link!
https://www.dropbox.com/sh/034svu06emp71r4/AAANXcqD-eUjjFI8YVzuwZyVa?dl=0
I strongly suggest to code with me during the course and this is just for your archive!
Enjoy the course!
Build two 2x2 arrays and compare matrix multiplication with element-wise multiplication, using the dot-style matrix multiply and the star operator to show different results.
Learn to divide arrays with numpy, convert results to integers using floor, and apply numpy’s math functions; finish with random numbers and normal and uniform distributions.
Explore generating normal and uniform distributions with NumPy, create random arrays of specified size, and filter data with logical conditions to select values in a range.
Learn to visualize two customers’ monthly electricity consumption with Matplotlib by creating lists, plotting with colors and markers, labeling axes and legends, and arranging two subplots side by side.
Learn how to create and compare bar charts in Matplotlib, adjust bar width, place bars side by side, and customize x-axis labels for monthly data.
Compute the mean, variance, and standard deviation from data with simple formulas. Explore how these statistics relate to normal and uniform distributions through practical examples and Python analysis.
Explore covariance to understand how variables relate, compute the covariance matrix and correlation, and visualize these relationships with seaborn heatmaps.
Identify missing values by distinguishing null and NaN, use info to spot gaps, replace entries that are not numbers with NaN, and apply numeric conversion for preprocessing.
Identify and locate missing values during preprocessing using is not and NaN detection. Drop or fill these values using forward or backward fill, or mean imputation with a simple imputer.
Define outliers as data points far from the main range, and introduce quartiles (Q1, Q3), the IQR, and box plots, plus mild and extreme outlier calculations.
Learn to concatenate data with pandas by attaching a new column or rows, using axis=1 for column-side joins and axis=0 for row-side joins, including read_csv usage.
Develop a k-nearest neighbors classifier by setting six neighbors and using Minkowski distance with p=1. Train on iris data with X and Y, then predict new samples.
Learn to create training and test sets for k-NN by using sklearn train_test_split with test_size, random_state, shuffle, and stratify, then train, predict, and evaluate accuracy.
Learn decision tree concepts as a classifier with root nodes, branch nodes, and leaves guiding end decisions. See a house-purchase scenario and iris data sets to illustrate how decisions unfold.
Develop a decision tree classifier on the iris dataset using a sklearn-like library, training with a train/test split, fitting the model, predicting, and achieving about 97 percent accuracy; next, cross-validation.
This session demonstrates developing a naive bayes classifier using scikit-learn's gaussian nb on the iris dataset, achieving about 97% accuracy and applying ten-fold cross-validation to report scores.
Develop a logistic regression model for breast cancer classification by loading the dataset, preparing X and y, and performing a train-test split.
Explore evaluating a logistic regression classifier using confusion matrices, classification reports, and ROC curves to assess precision, recall, and AUC on breast cancer data.
Explore polynomial regression concepts, showing how one feature with powers creates a curve that fits data better than simple linear or multiple regression.
Understand SVR using an epsilon tube to ignore inside errors, minimize outside errors via slack variable C, and apply kernels: polynomial, Gaussian (RBF), sigmoid, and hyperbolic tangent in Python.
Build a first k-means clustering model on the iris dataset without labels, using sepal length, sepal width, petal length, and petal width to group 150 samples into three species.
Explore hyperparameters and model tuning to boost performance across classification, regression, and clustering. Use for loops and grid search to optimize kernel choices and the number of clusters.
Learn how to tune a support vector regression model with grid search, testing kernels like rbf and linear, gamma values, and mean squared error scoring, after normalizing the data.
Explore overfitting and underfeeding, with examples of a model that trains perfectly but fails on the test set, and a simpler model that generalizes better and yields higher test accuracy.
Bonus Lecture (link to discounted coupons)
Are you interested in data science and machine learning, but you don't have any background, and you find the concepts confusing?
Are you interested in programming in Python, but you always afraid of coding?
I think this course is for you!
Even if you are familiar with machine learning, this course can help you to review all the techniques and understand the concept behind each term.
This course is completely categorized, and we don't start from the middle! We actually start from the concept of every term, and then we try to implement it in Python step by step. The structure of the course is as follows:
Chapter1: Introduction and all required installations
Chapter2: Useful Machine Learning libraries (NumPy, Pandas & Matplotlib)
Chapter3: Preprocessing
Chapter4: Machine Learning Types
Chapter5: Supervised Learning: Classification
Chapter6: Supervised Learning: Regression
Chapter7: Unsupervised Learning: Clustering
Chapter8: Model Tuning
Furthermore, you learn how to work with different real datasets and use them for developing your models. All the Python code templates that we write during the course together are available, and you can download them with the resource button of each section.
Remember! That this course is created for you with any background as all the concepts will be explained from the basics! Also, the programming in Python will be explained from the basic coding, and you just need to know the syntax of Python.