Skip to content

linear regression model training for economic income and consumption using sklearn and data visualization with matplotlib

License

Notifications You must be signed in to change notification settings

aipracticer/LinearRegression01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinearRegression01

The repository contains linear regression model training for economic income and consumption using sklearn and data visualization with matplotlib.

lr_ml.py

Functions in the code are:

def evaluateModel(self, model, test_data, features, labels) # evaluate model

def visualizeModel(self, model, data, feature_names, label_names, error, score) # visualize model

def trainModel(self, train_data, feature_names, label_names) # train model

def linearModel(self, data, feature_names, label_names, split_ratio) # entry

def readData(self, path) # read data from csv file

About

linear regression model training for economic income and consumption using sklearn and data visualization with matplotlib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages