Java implementation of fminunc in octave

此生再无相见时 提交于 2020-01-04 18:32:11

问题


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.


回答1:


Ahh, here are a few things you can check for suitability:

http://dev.davidsoergel.com/trac/jlibsvm/ https://github.com/davejacobs/ml http://commons.apache.org/proper/commons-math/ http://liebke.github.io/incanter/optimize-api.html#incanter.optimize/non-linear-model

Here are a couple of threads on the same subject: https://groups.google.com/forum/#!topic/clojure/c7dxBWJn_X4 http://answers.yahoo.com/question/index?qid=20100227125757AA7faky




回答2:


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




回答3:


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



来源:https://stackoverflow.com/questions/20789776/java-implementation-of-fminunc-in-octave

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!