hiroyuki-kasai / SGDLibrary

MATLAB/Octave library for stochastic optimization algorithms: Version 1.0.20
MIT License
213 stars 86 forks source link

demo.m code problem #2

Open guoyuanxiong opened 6 years ago

guoyuanxiong commented 6 years ago

Thanks for developing such a library. When trying to use it, I found that when I change the values of "d" and "n" in the file "demo.m", there will be some errors in the convergence results. For instance, if I choose "d = 105", "n = 30000", the returned results are very strange as shown before:

SVRG: Epoch = 000, cost = Inf, optgap = Inf SVRG: Epoch = 001, cost = NaN, optgap = NaN

Is there any problem with the code for the reusability?

hiroyuki-kasai commented 6 years ago

Thanks!

I have checked the code and found that some values indicated "-Inf" or "NaN" in logistic_regression.m in some cases.

I fixed temporally the codes, and uploaded it to the system. Please make them checked.

If you have further problems, please let me known.

Regards,

Hiro

guoyuanxiong commented 6 years ago

Seems to work correctly now at my side. Thanks.