How to Save Trained Model using Pickle in Machine Learning
Program 1 Machine Learning Dataset import pandas as pd import numpy as np from sklearn import linear_model import pickle df=pd.read_excel(“D://scikit_data/emp/employee.xlsx”) print(df) model=linear_model.LinearRegression() model.fit(df.drop(‘salary’,axis=’columns’),df.salary) print(model) print(“Predication with Model: “,model.predict([[7]])) print(“Coficient with Model: “,model.coef_) print(“Intercepet with...

