Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Nov 2, 2023
1 parent 110ab50 commit 2faa409
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/LibSVM.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,16 @@ SVMKernel LibSVM::getKernel() const
return PolynomialKernel(getDegree(), getGamma(), getPolynomialConstant());
break;
case NormalRbf:
return NormalRBF(1.0 / ( sqrt(2.0 * getGamma())));
return NormalRBF(1.0 / (sqrt(2.0 * getGamma())));
break;
case Sigmoid:
return SigmoidKernel(getGamma(), getConstant() );
return SigmoidKernel(getGamma(), getConstant());
break;
case Linear:
return LinearKernel();
break;
default:
throw InvalidArgumentException(HERE) << "LibSVM: unknown kernel type";
}
}

Expand Down

0 comments on commit 2faa409

Please sign in to comment.