machine learning library python code example

Example 1: the python libraries to master for machine learning

1- Pandas
2 - Numpy
3 - Scikit Learn
4 - Matpolib
5 - Seaborn
6 -Statsmodels
7 - Keras
8 - NetworkX
9 - BeautifulSoup
10 - NLTK (Text_mining)

Example 2: 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