Posts

Showing posts from June, 2017

Evaluating the Regression Models

As we have seen in the Multiple Linear Regression we chose the statistically important regressors by Backward Elimination method on the basis of Significance Level and eliminating the highest P value regressor. We at times have to face the dilemma of removing the regressor having P value just a little over the Significance Level. Here comes into play the Evaluation Parameters R Squared & Adjusted R Squared . R Squared The Ordinary Least Squares is also known as the Squared Sum of Residues which can be denoted mathematically as SS res = ∑ ( Y actual – Y predicted ) . The ordinary Least Squares formula is calculated by using the best fitting line in the dataset and predicted values of actual datapoints. Now if the best fiting line is replaced by the average line then the Squared Sum of Residues is converted into Squared Total Sum and denoted by SS total = ∑ ( Y actual – Y average ). Now the value of R squared can be calculated as      ...

The Prediction Power of Machine Learning

The first subcategory of supervised machine learning is regression. This model only uses a simple best fit line for the dataset so that the ordinary least squares value is minimum. Ordinary Least Square value indicate the sum of squared value of difference between actual and the predicted value.                                                        OLS = ∑ ( Y actual – Y predicted ) 2 Each regression line has a unique slope and intercept and one and only one line can fit a dataset. These type of models are used to predict the future outcomes on the basis of unique correlation between independent variables also called as regressors and dependent variable. The major categories of Regression are as follows...

Machine Learning Treasure

Finally I am disclosing my Machine Learning Treasure which is none other than curated list of Books and Articles which will not only help you to have deeper insights into Machine Learning but will enable us to embark on our journey to be successful future Data Scientists. List of Books : 1. Introduction to Machine Learning with Python 2. Learning Scikit Learn : Machine Learning in Python 3. Machine Learning in Action 4. Machine Learning : An Algorithmic Perspective 5. Machine Learning for Dummies 6. Natural Language Processing with Python 7. Programming Collective Intelligence ( Recommended) 8. Python Machine Learning 9. Real World Machine Learning 10. TensorFlow Machine Learning Cookbook 11. Hands on Machine Learning with Scikit Learn & TensorFlow 12. Python Deep Learning 13. Deep Learning with Keras 14. Deep Learning with TensorFlow 15. Natural Language Processing : Python and NLTK 16. Python Real World Machine Learning Path 17. Building Machine Learning Proje...

Preparing for the Long Journey

As we know it is very important to prepare before we embark on a journey. The preprocessing phase is the similar one in case of machine learning. To make raw data valuable and to refrain from facing the hurdles in deployment of machine learning models, the data is preprocessed through several steps listed below :   Steps to Preprocess the Data before Machine Learning Model : Importing the Libraries Importing the Dataset Taking Care of Missing Data Encoding the Categorical Data Splitting Data into Testing and Training Set Feature Scaling of the Data The first and the foremost step is to import the libraries essential to handle the mathematical computations and dataframes to handle huge data. The two most popular libraries in python are Numpy and Pandas. Pandas is used to create dataframes, Series and other such data handling units while on the other hand Numpy handles the complex computational processes. For plotting the graphs we need to import the matplotlib...