lib/brainz/brainz.rb in brainz-0.1.1 vs lib/brainz/brainz.rb in brainz-0.1.2
- old
+ new
@@ -20,10 +20,10 @@
def learning_options(options)
options.each { |option, value| send("#{option}=", value) if respond_to? ("#{option}=")}
end
def num_hidden
- @num_hidden || (num_input + num_output) * 2 / 3
+ @num_hidden || [(num_input + num_output) * 2 / 3]
end
def learning_cycle
old_error = 100.0
@last_iterations = 0
\ No newline at end of file