Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

some cleanup of the codes.

  • Loading branch information...
commit 540a6122df714a3cffe3f8abf5ca3ff08abad326 1 parent eef2bd5
@lindahua lindahua authored
View
2  src/affprop.jl
@@ -90,7 +90,7 @@ function affprop_update_message!{T<:FloatingPoint}(psi::Matrix{T}, phi::Matrix{T
I = indmax(SM)
Y = SM[I]
SM[I] = -Inf
- Y2 = max(SM)
+ Y2 = maximum(SM)
val = S[i,:] - Y;
val[I] = S[i,I] - Y2;
phi[i,:] = opts.damp*phi[i,:] + (1-opts.damp)*val
View
0  test/affprop_test.jl → test/affprop.jl
File renamed without changes
View
18 test/bench_kmeans.jl
@@ -1,18 +0,0 @@
-# a simple benchmark
-
-using Clustering
-
-m = 100
-n = 10000
-k = 50
-
-x = rand(m, n)
-
-# warming
-kmeans(x[:,1:1000], 2; display=:none, max_iter=200)
-
-println("kmeans on $n samples (of dimension $m) with K = $k ...")
-t_new = @elapsed r_new = kmeans(x, k; display=:none, max_iter=200)
-println("\telapsed = $t_new, per_iteration = $(t_new / r_new.iterations)")
-println()
-
View
0  test/kmeans_t1.jl → test/kmeans.jl
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.