Apr 16, 2020Machine Learning (Part 2)Linear Regression Predicting the outputs using a single feature A method to predict dependent variable (Y) based on values of independent variables (X) in which they are linearly related. Goal: find a linear function that predicts the dependent variable (Y) as a function of the feature or independent variable (X). Linear function…Machine Learning2 min readMachine Learning2 min read
Apr 16, 2020Machine Learning (Part 1)Data Preprocessing Step 1: Importing data set data sets are generally available in .csv format import pandas as pd pd.DataFrame(filename) X = dataset.iloc[ : , : -1].values Y = dataset.iloc[ :, 4].values dataset.iloc[ : , :-1].values …Machine Learning2 min readMachine Learning2 min read