Skip to content

Commit

Permalink
Fixed wrong effective target dimensionality threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Oct 1, 2011
1 parent 3d5000c commit 7314daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/preprocessor/DimensionReductionPreprocessor.cpp
Expand Up @@ -62,7 +62,7 @@ int32_t CDimensionReductionPreprocessor::calculate_effective_target_dim(int32_t
{
if (m_target_dim<0)
{
if (dim+m_target_dim>1)
if (dim+m_target_dim>0)
{
return dim+m_target_dim;
}
Expand Down

0 comments on commit 7314daf

Please sign in to comment.