Skip to content

Commit

Permalink
Fix indent in python examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vinx13 authored and vigsterkr committed Jul 12, 2018
1 parent 359e6f3 commit 0b4419f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions examples/undocumented/python/preprocessor_logplusone.py
Expand Up @@ -18,8 +18,8 @@ def preprocessor_logplusone (fm_train_real=traindat,fm_test_real=testdat,width=1

preproc = LogPlusOne()
preproc.fit(feats_train)
feats_train = preproc.apply(feats_train)
feats_test = preproc.apply(feats_test)
feats_train = preproc.apply(feats_train)
feats_test = preproc.apply(feats_test)

kernel=Chi2Kernel(feats_train, feats_train, width, size_cache)

Expand Down
4 changes: 2 additions & 2 deletions examples/undocumented/python/preprocessor_normone.py
Expand Up @@ -18,8 +18,8 @@ def preprocessor_normone (fm_train_real=traindat,fm_test_real=testdat,width=1.4,

preprocessor=NormOne()
preprocessor.fit(feats_train)
feats_train = preprocessor.apply(feats_train)
feats_test = preprocessor.apply(feats_test)
feats_train = preprocessor.apply(feats_train)
feats_test = preprocessor.apply(feats_test)

kernel=Chi2Kernel(feats_train, feats_train, width, size_cache)

Expand Down
4 changes: 2 additions & 2 deletions examples/undocumented/python/preprocessor_prunevarsubmean.py
Expand Up @@ -17,8 +17,8 @@ def preprocessor_prunevarsubmean (fm_train_real=traindat,fm_test_real=testdat,wi

preproc=PruneVarSubMean()
preproc.fit(feats_train)
feats_train = preproc.apply(feats_train)
feats_test = preproc.apply(feats_test)
feats_train = preproc.apply(feats_train)
feats_test = preproc.apply(feats_test)

kernel=Chi2Kernel(feats_train, feats_train, width, size_cache)

Expand Down
Expand Up @@ -20,8 +20,8 @@ def preprocessor_randomfouriergausspreproc (fm_train_real=traindat,fm_test_real=

preproc=RandomFourierGaussPreproc()
preproc.fit(feats_train)
feats_train = preproc.apply(feats_train)
feats_test = preproc.apply(feats_test)
feats_train = preproc.apply(feats_train)
feats_test = preproc.apply(feats_test)

kernel=Chi2Kernel(feats_train, feats_train, width, size_cache)

Expand Down
4 changes: 2 additions & 2 deletions examples/undocumented/python/preprocessor_sortulongstring.py
Expand Up @@ -26,8 +26,8 @@ def preprocessor_sortulongstring (fm_train_dna=traindna,fm_test_dna=testdna,orde

preproc = SortUlongString()
preproc.fit(feats_train)
feats_train = preproc.apply(feats_train)
feats_test = preproc.apply(feats_test)
feats_train = preproc.apply(feats_train)
feats_test = preproc.apply(feats_test)

kernel=CommUlongStringKernel(feats_train, feats_train, use_sign)

Expand Down
Expand Up @@ -23,7 +23,7 @@ def preprocessor_sortwordstring (fm_train_dna=traindna,fm_test_dna=testdna,order
charfeat=StringCharFeatures(fm_test_dna, DNA)
feats_test=StringWordFeatures(charfeat.get_alphabet())
feats_test.obtain_from_char(charfeat, order-1, order, gap, reverse)
feats_test = preproc.apply(feats_test)
feats_test = preproc.apply(feats_test)

kernel=CommWordStringKernel(feats_train, feats_train, use_sign)

Expand Down

0 comments on commit 0b4419f

Please sign in to comment.