Skip to content

Commit

Permalink
Fixed crasher in KernelPCA
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed May 12, 2012
1 parent 8325d1e commit ce010a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shogun/preprocessor/KernelPCA.cpp
Expand Up @@ -98,6 +98,7 @@ bool CKernelPCA::init(CFeatures* features)
SG_FREE(eigenvalues);

m_transformation_matrix = SGMatrix<float64_t>(kernel_matrix.matrix,n,n);
kernel_matrix.matrix = NULL;
m_bias_vector = SGVector<float64_t>(n);
CMath::fill_vector(m_bias_vector.vector, m_bias_vector.vlen, 0.0);

Expand Down

0 comments on commit ce010a1

Please sign in to comment.