Ejemplo n.º 1
0
def converter_isomap_modular (data_fname):
	from modshogun import RealFeatures, CSVFile
	from modshogun import Isomap
		
	features = RealFeatures(CSVFile(data))

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

	return features
Ejemplo n.º 2
0
def converter_isomap_modular(data_fname):
    from modshogun import RealFeatures, CSVFile
    from modshogun import Isomap

    features = RealFeatures(CSVFile(data))

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

    return features
Ejemplo n.º 3
0
def converter_isomap_modular (data_fname):
	try:
		from modshogun import RealFeatures, Isomap, CSVFile
		
		features = RealFeatures(CSVFile(data))
			
		converter = Isomap()
		converter.set_k(20)
		converter.set_target_dim(1)
		converter.apply(features)

		return features
	except ImportError:
		print('No Eigen3 available')
Ejemplo n.º 4
0
def converter_isomap_modular(data_fname):
    try:
        from modshogun import RealFeatures, Isomap, CSVFile

        features = RealFeatures(CSVFile(data))

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

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