lib/brainz/brainz.rb in brainz-0.1.3 vs lib/brainz/brainz.rb in brainz-0.2.0
- old
+ new
@@ -108,10 +108,10 @@
update(input)
end
def explain(*args)
evaluate(*args)
- output_order ? output_act.to_hash(output_order) : output_act
+ output_order ? Hash[output_order.zip(output_act)] : output_act
end
def output_act
@network.output.neurons.collect(&:activation)
end