Java implementation of fminunc in octave

2019-07-21 15:10发布

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.

3条回答
ら.Afraid
2楼-- · 2019-07-21 15:51

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

查看更多
我只想做你的唯一
4楼-- · 2019-07-21 16:13

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

查看更多
登录 后发表回答