We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2c87a5 commit 078efffCopy full SHA for 078efff
src/LibSvmDotNet/Model.cs
@@ -40,7 +40,8 @@ internal unsafe Model(IntPtr ptr)
40
this.SupportVectorCoefficients[index] = Copy(model->sv_coef[index], this.L);
41
}
42
43
- this.SupportVectorIndices = Copy(model->sv_indices, this.L);
+ if (model->sv_indices != null)
44
+ this.SupportVectorIndices = Copy(model->sv_indices, this.L);
45
46
var length = (this.Classes - 1) * this.Classes / 2;
47
this.Rho = Copy(model->rho, length);
0 commit comments