Sebastian Vendt 6 роки тому
батько
коміт
58a00b25cc
1 змінених файлів з 6 додано та 6 видалено
  1. 6 6
      julia/net.jl

+ 6 - 6
julia/net.jl

@@ -221,12 +221,12 @@ function random_search()
 	results = []
 	for search in 1:500
 		# create random set
-		momentum = rand(rng, rs_momentum)
-		features = rand(rng, rs_features)
-		dropout_rate = rand(rng, rs_dropout_rate)
-		kernel = rand(rng, rs_kernel)
-		pooldims = rand(rng, rs_pooldims)
-		learning_rate = rand(rng, rs_learning_rate)
+		global momentum = rand(rng, rs_momentum)
+		global features = rand(rng, rs_features)
+		global dropout_rate = rand(rng, rs_dropout_rate)
+		global kernel = rand(rng, rs_kernel)
+		global pooldims = rand(rng, rs_pooldims)
+		global learning_rate = rand(rng, rs_learning_rate)
 		
 		# printf configuration
 		config1 = "momentum$(momentum), features=$(features), dropout_rate=$(dropout_rate)"