Skip to content

Commit

Permalink
Updated lua isomap example
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Oct 13, 2011
1 parent 573e955 commit 5cec685
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -5,18 +5,18 @@ data = load_numbers('../data/fm_train_real.dat')

parameter_list = {{data}}

function preprocessor_isomap_modular(data)
function converter_isomap_modular(data)
features = modshogun.RealFeatures(data)

preprocessor = modshogun.Isomap()
preprocessor:set_target_dim(1)
preprocessor:apply_to_feature_matrix(features)
converter = modshogun.Isomap()
converter:set_target_dim(1)
converter:apply(features)

return features
end

if debug.getinfo(3) == nill then
print 'Isomap'
preprocessor_isomap_modular(unpack(parameter_list[1]))
converter_isomap_modular(unpack(parameter_list[1]))
end

0 comments on commit 5cec685

Please sign in to comment.