Skip to content

Commit

Permalink
removing temp. clustering test
Browse files Browse the repository at this point in the history
  • Loading branch information
vilen committed Dec 3, 2015
1 parent 58d7bf9 commit 9f540e2
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions test/functional/clustering/test_clustering.jl
Expand Up @@ -13,14 +13,12 @@ model = salsa(X,dY,model,X)
mappings = model.output.Ytest

@test_approx_eq_eps varinfo(length(unique(mappings)), mappings, 3, Y) .7 0.3

if VERSION < v"0.5-" && VERSION >= v"0.4"
srand(1234)
model = SALSAModel(LINEAR,RK_MEANS(ADA_L1RDA,3,20,CosineDist()),HINGE,
validation_criterion=SILHOUETTE(),global_opt=DS([-5,-5,-1]),process_labels=false,
cv_gen = @compat Nullable{CrossValGenerator}(Kfold(length(Y),3)))
model = salsa(sparse(X),dY,model,X)
mappings = model.output.Ytest

@test_approx_eq_eps varinfo(length(unique(mappings)), mappings, 3, Y) .5 0.3
end
#
# srand(1234)
# model = SALSAModel(LINEAR,RK_MEANS(ADA_L1RDA,3,20,CosineDist()),HINGE,
# validation_criterion=SILHOUETTE(),global_opt=DS([-5,-5,-1]),process_labels=false,
# cv_gen = @compat Nullable{CrossValGenerator}(Kfold(length(Y),3)))
# model = salsa(sparse(X),dY,model,X)
# mappings = model.output.Ytest
#
# @test_approx_eq_eps varinfo(length(unique(mappings)), mappings, 3, Y) .5 0.3

0 comments on commit 9f540e2

Please sign in to comment.