machine learning modules code example

Example: machine learning library

#              pip install ModelAuto


# 				Sample code 



from ModelAuto.Datapreprocess  import  Preprocessing
from ModelAuto.FeatureSelection  import  backwardElimination
from ModelAuto.ModelSelection  import  Regress_model

DATA = pd.read_csv('Path/to/file.csv')


			''' 1. Data Preprocessing '''

X_train , X_test = Preprocessing( X_train, X_test , Multi =True)

			''' 2. Select best Features '''

Features = backwardElimination( x_train , y_train )

			''' 3.  Select best Model    '''

x_train, x_test, y_train, y_test = train_test_split( Features , y_train, test_size=0.2, random_state=1 )

Model = Regress_model( x_train,x_test,y_train,y_test )

			''' 4. Make Predicatoins '''

Predictions = Model.predict('Test Data')


# 	https://github.com/Sudhanshu1304/ModelAuto