def converter_isomap_modular(data):
	from shogun.Features import RealFeatures
	from shogun.Converter import Isomap
	
	features = RealFeatures(data)
		
	converter = Isomap()
	converter.set_landmark(True)
	converter.set_landmark_number(5)
	converter.set_k(6)
	converter.set_target_dim(1)
	converter.apply(features)

	return features
示例#2
0
def converter_isomap_modular(data):
    from shogun.Features import RealFeatures
    from shogun.Converter import Isomap

    features = RealFeatures(data)

    converter = Isomap()
    converter.set_landmark(True)
    converter.set_landmark_number(5)
    converter.set_k(6)
    converter.set_target_dim(1)
    converter.apply(features)

    return features
def converter_isomap_modular(data):
    try:
        from shogun.Features import RealFeatures
        from shogun.Converter import Isomap

        features = RealFeatures(data)

        converter = Isomap()
        converter.set_k(20)
        converter.set_target_dim(1)
        converter.apply(features)

        return features
    except ImportError:
        print('No Eigen3 available')
def converter_isomap_modular(data):
    try:
        from shogun.Features import RealFeatures
        from shogun.Converter import Isomap

        features = RealFeatures(data)

        converter = Isomap()
        converter.set_k(20)
        converter.set_target_dim(1)
        converter.apply(features)

        return features
    except ImportError:
        print("No Eigen3 available")