Question

I am trying to find a java version of octave's fminunc (function minimization unconstrained) library in Java. The goal is to use it for logistic regression.

Currently, I am using a home-brewed version of gradiant descent for cost minimization and I would like to be able to use an already existing library to do that (in Java) for me. This is related to my effort of porting octave code that we have from the Coursera Machine Learning course to Java.

OTHER TIPS

Thanks, Brill. I ended up using QNMinimizer from Stanford NLP Library.

If anyone found the previous two answers unsatisfactory, I have ported the Fmincg function to Java. The Fmincg function takes the same inputs as Fminunc, and it is has better performance for large datasets. https://github.com/Dan12/MachineLearning/blob/master/src/main/java/com/mycompany/maventest/Fmincg.java

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top