Skip to content

Commit

Permalink
fixed issue when computing PCS for SConES
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Grimm committed Feb 16, 2018
1 parent 09ad7fb commit 4fade01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/scones.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ int main(int argc, char* argv[]) {
if (pcs>0) {
begin = clock();
logging(STATUS,"Computing Realized Relationship Kernel and Principle Components...");
data.K = CKernels::realizedRelationshipKernel(data.X);
MatrixXd PCs = CStats::principle_components(data.K);
tmpData.K = CKernels::realizedRelationshipKernel(tmpData.X);
MatrixXd PCs = CStats::principle_components(tmpData.K);
PCs = sliceColsMatrix(PCs,VectorXd::LinSpaced(pcs,0,pcs-1));
logging(WARNING,"Finished in " + StringHelper::to_string<clock_t>((clock()-begin)/CLOCKS_PER_SEC) + " sec\n");

Expand Down

0 comments on commit 4fade01

Please sign in to comment.