Sequentialfs, the squential feature selection function of matlab

What is the machine learning model used in the squentialfs function of matlab, the squentialfs function of matlab?
Is this model restricted to just a template pre-determined by matlab or the machine classification model can vary according to the developer's need?
For example Neural Networks, Naive Bayes, knn.

Answers (1)

You determine which model it uses by how you define the function fun that calculates a criterion based on training and test data. Typically, you train some model of your choice on the training data, and return the accuracy or loss of that model on the test data. See also sequentialfs doc page or this example on stackoverflow.

1 Comment

SVMModel = fitcsvm(X,y,'KernelFunction','gaussian', 'KernelScale','auto');
In this example, the default template is SVM. If you want to define a model based on neural networks how would it be?

Sign in to comment.

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Asked:

on 4 Mar 2019

Commented:

on 6 Mar 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!