diff --git a/LatentFactorModel.cpp b/LatentFactorModel.cpp index a2d6d3f..205f991 100755 --- a/LatentFactorModel.cpp +++ b/LatentFactorModel.cpp @@ -83,6 +83,7 @@ bool LatentFactorModel::init_params(double* v, int size){ n = sqrt(-2.0 * log(1.0 * rand() / RAND_MAX)) * sin(2.0 * PI * (1.0 * rand() / RAND_MAX)); v[k] = sigma * n; } + return (0); } bool LatentFactorModel::dump(string path){ diff --git a/SparseMatrix.cpp b/SparseMatrix.cpp index f7823e5..5a7bd21 100755 --- a/SparseMatrix.cpp +++ b/SparseMatrix.cpp @@ -70,6 +70,7 @@ bool SparseMatrix::set_rating(const string& row, const string& col, double ratin rating_list->push_back(rating); // _kv_dict->insert(pair, double>(k, rating)); + return (0); }