Skip to content

Commit

Permalink
Improved java converter examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Oct 28, 2011
1 parent 99adde9 commit 2c3a9a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Expand Up @@ -16,8 +16,8 @@ public static void main(String argv[]) {
isomap.set_target_dim(1);
isomap.set_k(6);
isomap.set_landmark(false);
isomap.apply(features);
RealFeatures embedding = isomap.embed(features);

modshogun.exit_shogun();
}
}
Expand Up @@ -12,9 +12,9 @@
DoubleMatrix data = Load.load_numbers("../data/fm_train_real.dat");

RealFeatures features = new RealFeatures(data);
LocallyLinearEmbedding preprocessor = new LocallyLinearEmbedding();
preprocessor.set_target_dim(1);
preprocessor.apply(features);
LocallyLinearEmbedding lle = new LocallyLinearEmbedding();
lle.set_target_dim(1);
RealFeatures embedding = lle.embed(features);

modshogun.exit_shogun();
}
Expand Down
Expand Up @@ -15,9 +15,8 @@ public static void main(String argv[]) {
MultidimensionalScaling mds = new MultidimensionalScaling();
mds.set_target_dim(1);
mds.set_landmark(false);
mds.embed(features);

mds.apply(features);

modshogun.exit_shogun();
}
}

0 comments on commit 2c3a9a3

Please sign in to comment.