Machine Learning
Machine Learnigng
1. What is Machine Learing
- The computer system use to perform specific task with out sing explicit instructions, relying on pattern and inference instead.
- IRIS classification used by machin learning
- IRIS variety : Setosa VS Versicholor
- The classification by lenght of petal and sepal
- Sort of machine learning
- OpenCV machine learning class
- ANN_MLP : Aritificial neural network and multi-layer perceptron can train serveral hidden layer including neural network, expecting the reult for input data.
- DTrees : Binary decision trees algorithm, DTrees class play a role in parents class of Rtree class and boost class which are realized random tree algorithm and boosting algorithm
- Boost : Boostring algorithm. The method make good classifier that givet to appropriate weight at the number of weak classifier.
- RTrees : Random tree or random forest algorithm. It predict input feature vector using many tree, conducting classification or regression putting togheter the results.
- EM : Clustering algorithm using expectation maximaization and gaussian mixture.
- KNearest : K-Nearest Neighbors algorithm. It could find train data of K, specifing the sample data class has largest number data.
LogisticRegression : binaray classification algorithm
NormalBayesClassifier : Regular bayes classifer. It assume the feature vector follow normal distribution. Therefore, Whole data distribution could express gaussian mixtrue model. Normal bayes classifier calculate convariance matrix and average vector of each class from train data and it use to predict.
SVM : Support vector machine algorithm. It find focal plane separating data of two class. Using kernel method could adapt to non linear data classification.
- Machine learning algorithm train
cv2.ml_StatModel.train(samples, layout, responses) -> retval
- samples : train data matrix
- layout : train data set method
- responses : Response matrix for each train data
- retval : If train is sucess, It will print True
- Machine learning algorithm predect
cv2.ml_StateModel.predict(samples, result=None, flags=None) -> retval, results
- samples : the matrix stored input vector to row unit
- results : the matrix stored predict result such as classification or regression for each sample data
- flags : additional flag. default is 0
- retval : It is different depends on algorithm
Leave a comment