Skip to content

follower met some questions #1

Description

@Cra2yDave

I am very grateful for you sharing your codes.
When I rerun the codes(binary Salp Swarm Algorithm) in Matlab 2018a,I met some questions

The command window show :
error using knnclassify (line 79)
'knnclassify' has been removed. Use 'fitcknn' to fit a KNN classification model and classify data using 'ClassificationKNN.predict'.
error AccTest (line 12)
c = knnclassify(validation(:,x),training(:,x),trn(:,end),5);
error main (line 18)
[acc,cmtest] = AccTest(TargetPosition,trn,vald); % testing phase

I don’t know what’s wrong and how should I remedy the codes.
Could you give me some suggestions?
I will appreciate it if you are willing to help me!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions