Shogun kpca

Issue  #940