File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ require './ml_delta'
1111
1212#### Normal Case
1313``` ruby
14- # Normal Case
1514delta = MLDelta .new
1615delta.activeMethod = MLActiveMethod ::TANH
1716delta.learningRate = 0.8
@@ -40,10 +39,10 @@ delta.trainingWithIteration(iterationBlock, completionBlock)
4039#### Lazy Case
4140``` ruby
4241# 1. If you wish automatic setups all weights of pattern that you could use delta.randomWeights() to instead of delta.setupWeights().
43- # 2. If you just wanna see the result without iteration running that you could just use the method as below :
42+ # 2. If you just wanna see the result without iteration running that you could directly use the method as below :
4443 delta.trainingWithCompletion {
4544 | success, weights, totalIteration|
46- puts " hello #{ success } #{ weights } #{ totalIteration } "
45+ puts " success : #{ success } , weights : #{ weights } , totalIteration : #{ totalIteration } "
4746 }
4847```
4948
You can’t perform that action at this time.
0 commit comments