Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Got HKM to work
- fixed wrong vector length in Homogeneous Kernel Map
  preprocessor
  • Loading branch information
lisitsyn committed May 9, 2012
1 parent a0c2a2c commit 469d3b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/preprocessor/HomogeneousKernelMap.cpp
Expand Up @@ -170,7 +170,7 @@ SGMatrix<float64_t> CHomogeneousKernelMap::apply_to_feature_matrix (CFeatures* f
for (int i = 0; i < num_vectors; ++i)
{
SGVector<float64_t> transformed = apply_to_vector(simple_features->get_feature_vector(i));
for (int j=0; j< num_features; j++)
for (int j=0; j<transformed.vlen; j++)
feature_matrix(j,i) = transformed[j];
}

Expand Down

0 comments on commit 469d3b4

Please sign in to comment.