def preprocessor_hessianlocallylinearembedding_modular(data,k): from shogun.Features import RealFeatures from shogun.Preprocessor import HessianLocallyLinearEmbedding features = RealFeatures(data) preprocessor = HessianLocallyLinearEmbedding() preprocessor.set_target_dim(1) preprocessor.set_k(k) preprocessor.apply_to_feature_matrix(features) return features
def preprocessor_hessianlocallylinearembedding_modular(data, k): from shogun.Features import RealFeatures from shogun.Preprocessor import HessianLocallyLinearEmbedding features = RealFeatures(data) preprocessor = HessianLocallyLinearEmbedding() preprocessor.set_target_dim(1) preprocessor.set_k(k) preprocessor.apply_to_feature_matrix(features) return features