machine learning initiation code example

Example 1: Machine Learning

Machine Learning (ML) is The science of automate a task using some 
autonomous bots created by several programming languages
	(python, C++, Java, R,  LISP ... and many others )

types of ML :
-Supervised Learning
-Unsupervised Learning
-Reinforcement Learning

List of Common Machine Learning Algorithms :
1. Linear Regression
2. Logistic Regression
3. Decision Tree
4. SVM
5. Naive Bayes
6. kNN
7. K-Means
8. Random Forest
9. Dimensionality Reduction Algorithms
10. Gradient Boosting algorithms

Example 2: machine learning automation

#              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

Tags:

Misc Example