Open borozanov opened 6 years ago
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
Have you figured out a solution and if you have would you mind sharing it?
Unfortunately, no solution 👎
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