Professional Documents
Culture Documents
Machine Learning
Machine Learning
Types of ML
• Supervised learning
– Classification
– Regression
• Unsupervised learning
– Clustering
– Association
• Reinforcement learning
– Markov Decision Process
– Q learning
• Simi-supervised
– transductive learning
– inductive learning
Traditional ML algorithms
• Supervised
– Logistic Regression (fitglm(), glmfit(),glmval())
– SVM (fitcsvm(),fitcecoc())
– Decision Tree Classifier(binary, fitctree())
– K-Nearest Neighbor Classifier (classificationKNN(), ficknn())
– Random Forest Classifier(regresion, fitrensemble())
• Unsupervised
– K-means clustering (kmeans(x,k))
– Hierarchal clustering (clusterdata(x,cutoff))
– Principle Component Analysis (pca(x))
– Singular value decomposition (svd(x))
Advanced ML algorithms
• Neural Networks
– Feed forward NN: (feedforwardnet(size))
– Pattern recognition: (patternnet(size))
– RNN: layrecnet(layerDelays,Sizes,trainFcn)
– DNN: resnetLayers(), deepNetworkDesigner()
Load IRIS dataset and design Model
• Read csv data from disk
– fishertable = readtable(‘fisheriris.csv’);
• Split your dataset into features/input and
target(output)
– Input = fishertable(:,1:4);
– Target=fishertable(:,5);
View/Modify model arch
• View training functions
– Model.trainFcn
• Change the function
– Model.trainFcn = ‘#name’
View/Modify model arch
• View activation function
– Model.layers{#num}.transferFcn
• Change the function
– Model.layers{#num}.transferFcn = ‘#name’
Name Function output description
tansig corresponding tan value of input
logsig corresponding log value of input
purelin calculates the differential value of input