Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions LatentFactorModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down
1 change: 1 addition & 0 deletions SparseMatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<pair<int, int>, double>(k, rating));
return (0);

}

Expand Down