https://seanemery1.github.io/ml-naive-bayes-SVM-PDF/
-
open runScripts.m
-
modify line 13 of runScripts.m - change 'directoryPath' to the project folder
-
run runScripts.m
-
imagePreProcessingRandomSampling.m
in: images
out: pixel location-label matrices for both randomly and evenly sampled data from each image -
tableGeneratorRandomSampling.m
in: training images and location-label matrices
out: resultsRandom.mat (training set matrix with pixel rows & feature/label columns) -
tableGeneratorEvenSampling.m
in: training images and location-label matrices
out: resultsRandom.mat (training set matrix with pixel rows & feature/label columns) -
runNaiveBayes.m
in: training set matrix, test images, cross-validation bool
out: prediction images, performance stats (confusion matrices for accuracy/misclassification rates, best performing & worst performing image) -
runSoftSVM.m
in: training set matrix, test images, cross-validation bool, data standardization bool
out: prediction images, performance stats (confusion matrices for accuracy/misclassification rates, best performing & worst performing image)