update docs

This commit is contained in:
张壹 2020-10-21 10:49:26 +08:00
parent 8df8c1c5e2
commit 1f96076123
2 changed files with 3 additions and 7 deletions

View File

@ -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;

View File

@ -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;
} }