Skip to content

Commit 19afb5e

Browse files
committed
revert polynomial kernel
1 parent 4c88de7 commit 19afb5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SVMClassifier/KernelFunction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static double Polynomial(ManagedArray x1, ManagedArray x2, ManagedArray k
7878
var b = k.Length() > 0 ? k[0] : 0.0;
7979
var a = k.Length() > 1 ? k[1] : 1.0;
8080

81-
return Math.Pow(Multiply(x1, x2), a) + b;
81+
return Math.Pow(Multiply(x1, x2) + b, a);
8282
}
8383

8484
public static double Gaussian(ManagedArray x1, ManagedArray x2, ManagedArray k)

0 commit comments

Comments
 (0)