Skip to content

Commit

Permalink
Fixes for LogPlusOne preprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Aug 31, 2011
1 parent 99966f1 commit 3d25031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/preprocessor/LogPlusOne.cpp
Expand Up @@ -68,7 +68,7 @@ SGMatrix<float64_t> CLogPlusOne::apply_to_feature_matrix(CFeatures* features)
{
for (int32_t j=0; j<feature_matrix.num_rows; j++)
feature_matrix.matrix[i*feature_matrix.num_rows+j] =
CMath::log(feature_matrix.matrix[i*feature_matrix.num_rows+j]);
CMath::log(feature_matrix.matrix[i*feature_matrix.num_rows+j]+1.0);
}
return feature_matrix;
}
Expand Down

0 comments on commit 3d25031

Please sign in to comment.