Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVM Training for one-class-svm doesn't work #20

Open
borozanov opened this issue Jun 15, 2018 · 2 comments
Open

SVM Training for one-class-svm doesn't work #20

borozanov opened this issue Jun 15, 2018 · 2 comments

Comments

@borozanov
Copy link

When creating a One-Class SVM classifier (e.g. for the following data)
do {
try trainData.addDataPoint(input: [0.2, 0.9], dataClass:1)
try trainData.addDataPoint(input: [0.8, 0.3], dataClass:1)
try trainData.addDataPoint(input: [0.5, 0.6], dataClass:1)
} //catch etc.
let svm = SVMModel(problemType: .oneClassSVM, kernelSettings:
KernelParameters(type: .radialBasisFunction, degree: 0, gamma: 0.5, coef0: 0.0))
svm.train(trainData)

Throws Index out of range error in SVM.swift in two places:
Line 1531 and Line 1197

@ksmsoftware
Copy link

Have you figured out a solution and if you have would you mind sharing it?

@borozanov
Copy link
Author

Unfortunately, no solution 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants