You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function classify in the classifier extension of the SVM model by default always throws an error. This is due to a simple logical error in line 128. For type checking, rather than a logical OR, I believe it should be a logical AND.
The text was updated successfully, but these errors were encountered:
Are you referencing line 127 of SVMExtension.swift? The line that says: if type != .c_SVM_Classification || type != .ν_SVM_Classification { throw SVMError.invalidModelType }
I believe you are correct that it should be an 'and', so that it is checking it is not the first valid type 'and' not the second valid type before throwing the exception.
I must be always using 'classifyOne' in my testing, rather than 'classify'.
Thanks for pointing it out. I will get it changed shortly.
The function classify in the classifier extension of the SVM model by default always throws an error. This is due to a simple logical error in line 128. For type checking, rather than a logical OR, I believe it should be a logical AND.
The text was updated successfully, but these errors were encountered: