Add tsne function
Change-Id: Ibb4833680de51d1933b2832cad09a14ca61443fa
diff --git a/test/runtests.jl b/test/runtests.jl
index 66e3609..9f1536b 100644
--- a/test/runtests.jl
+++ b/test/runtests.jl
@@ -48,10 +48,15 @@
df = get_collocates(wpd19, "werden")
@test df.collocate[1] == "kann"
@test df.ldaf[1] > 10
- @test df.ldaf[1] > df.ldaf[3]
+ @test df.ldaf[1] > df.ldaf[2]
@test nrow(get_collocates(wpd19, 3, 1)) == 1
@test nrow(get_collocates(wpd19, 3, 2)) == 2
end
end
+ @testset "DerekoVecs.jl: TSne plot" begin
+ df = DerekoVecs.tsne([wpd19], ["werden", "kann"], 5)
+ @test nrow(df) == 10
+ plotTsne([wpd19], ["werden", "kann"], 5)
+ end
end