Skip to content

Commit

Permalink
Merge pull request #1127 from vladislav-horbatiuk/vgorbati-develop
Browse files Browse the repository at this point in the history
Un-blacklisted and refactored converter_tdistributedstochasticneighborembedding_modular.py test.
  • Loading branch information
lisitsyn committed May 23, 2013
2 parents b1f383c + 6bb51d7 commit bda8369
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data
@@ -1,16 +1,22 @@
#!/usr/bin/env python
from tools.load import LoadMatrix
from numpy import random

lm=LoadMatrix()
data = lm.load_numbers('../data/fm_train_real.dat')

parameter_list = [[data]]

def converter_tdistributedstochasticneighborembedding_modular(data):
def converter_tdistributedstochasticneighborembedding_modular(data, seed=1):
try:
from shogun.Features import RealFeatures
from shogun.Converter import TDistributedStochasticNeighborEmbedding
from shogun.Mathematics import Math_init_random

# reproducible results
Math_init_random(seed)
random.seed(seed)

features = RealFeatures(data)

converter = TDistributedStochasticNeighborEmbedding()
Expand Down
1 change: 0 additions & 1 deletion tests/integration/python_modular/generator.py
Expand Up @@ -9,7 +9,6 @@
blacklist = ("__init__.py",
"classifier_libsvm_minimal_modular.py",
"classifier_multiclassocas_modular.py",
"converter_tdistributedstochasticneighborembedding_modular.py",
"modelselection_grid_search_kernel.py",
"serialization_string_kernels_modular.py",
"kernel_fisher_modular.py",
Expand Down

0 comments on commit bda8369

Please sign in to comment.