update docs
This commit is contained in:
parent
8df8c1c5e2
commit
1f96076123
@ -103,8 +103,8 @@ typedef struct
|
|||||||
sgd_float epsilon;
|
sgd_float epsilon;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Damping rate of the classic momentum method, which is typically given
|
* Damping rate of the classic momentum method and the NAG method, which
|
||||||
* between 0 and 1. The default is 0.01.
|
* is typically given between 0 and 1. The default is 0.01.
|
||||||
*/
|
*/
|
||||||
sgd_float mu;
|
sgd_float mu;
|
||||||
|
|
||||||
|
@ -78,11 +78,7 @@ int progress(void *instance, sgd_float fx, const sgd_float *x, const sgd_float *
|
|||||||
const sgd_para *param, const int n_size, const int k)
|
const sgd_para *param, const int n_size, const int k)
|
||||||
{
|
{
|
||||||
std::clog << "iteration time: " << k << ", fx: " << fx << "\r";
|
std::clog << "iteration time: " << k << ", fx: " << fx << "\r";
|
||||||
if (fx < param->epsilon)
|
if (fx < param->epsilon) {std::clog << std::endl;}
|
||||||
{
|
|
||||||
std::clog << std::endl;
|
|
||||||
std::cout << ">" << std::endl;
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user