Machine Learning on Docker

Docker is installed
Image Pulled
Installing python
import pandasdset = pandas.read_csv(‘marks.csv’)dset = dset.valuespredictors = dset[:,:-1]targets = dset[:,-1]from sklearn.linear_model import LinearRegressionmodel = LinearRegression()x=model.fit(predictors,targets)y=model.predict([[9,13,7]])print(y)import joblibjoblib.dump(model,’marks_predictor.pk1')
Installing Pandas
Installing Sklearn
Output of above code

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store