Skip to content

Commit

Permalink
Updated dimension reduction examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Aug 20, 2011
1 parent 37c5df6 commit ba59f81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/undocumented/python_modular/graphical/hemisphere.py
@@ -1,6 +1,6 @@
import numpy
tt = numpy.genfromtxt('../../../../../data/toy/hemisphere_color.dat',unpack=True).T
X = numpy.genfromtxt('../../../../../data/toy/hemisphere.dat',unpack=True).T
tt = numpy.genfromtxt('../../../../data/toy/hemisphere_color.dat',unpack=True).T
X = numpy.genfromtxt('../../../../data/toy/hemisphere.dat',unpack=True).T
N = X.shape[1]
preprocs = []

Expand Down Expand Up @@ -56,7 +56,7 @@
from shogun.Features import RealFeatures

for (i, (preproc, label)) in enumerate(preprocs):
X = numpy.genfromtxt('../../../../../data/toy/hemisphere.dat',unpack=True).T
X = numpy.genfromtxt('../../../../data/toy/hemisphere.dat',unpack=True).T
features = RealFeatures(X)
preproc.set_target_dim(2)
new_feats = preproc.apply_to_feature_matrix(features)
Expand Down
4 changes: 2 additions & 2 deletions examples/undocumented/python_modular/graphical/swissroll.py
@@ -1,6 +1,6 @@
import numpy
tt = numpy.genfromtxt('../../../../../data/toy/swissroll_color.dat',unpack=True).T
X = numpy.genfromtxt('../../../../../data/toy/swissroll.dat',unpack=True).T
tt = numpy.genfromtxt('../../../../data/toy/swissroll_color.dat',unpack=True).T
X = numpy.genfromtxt('../../../../data/toy/swissroll.dat',unpack=True).T
N = X.shape[1]
preprocs = []

Expand Down

0 comments on commit ba59f81

Please sign in to comment.