Skip to content

Commit

Permalink
Refactored converter_tdistributedstochasticneighborembedding_modular.…
Browse files Browse the repository at this point in the history
…py test and un-blacklisted it; re-generated data for this test.
  • Loading branch information
vladislav-horbatiuk committed May 23, 2013
1 parent b1f383c commit ff1c597
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 ff1c597

Please sign in to comment.