machine learning automation

Solutions on MaxInterview for machine learning automation by the best coders in the world

showing results for - "machine learning automation"
Ricardo
21 Jul 2016
1#              pip install ModelAuto
2
3
4# 				Sample code 
5
6
7
8from ModelAuto.Datapreprocess  import  Preprocessing
9from ModelAuto.FeatureSelection  import  backwardElimination
10from ModelAuto.ModelSelection  import  Regress_model
11
12DATA = pd.read_csv('Path/to/file.csv')
13
14
15			''' 1. Data Preprocessing '''
16
17X_train , X_test = Preprocessing( X_train, X_test , Multi =True)
18
19			''' 2. Select best Features '''
20
21Features = backwardElimination( x_train , y_train )
22
23			''' 3.  Select best Model    '''
24
25x_train, x_test, y_train, y_test = train_test_split( Features , y_train, test_size=0.2, random_state=1 )
26
27Model = Regress_model( x_train,x_test,y_train,y_test )
28
29			''' 4. Make Predicatoins '''
30
31Predictions = Model.predict('Test Data')
32
33
34# 	https://github.com/Sudhanshu1304/ModelAuto
35