bararchy on v1.2.0
bararchy on master
sync version (compare)
bararchy on master
Fix for Crystal 1.2.2 fix format (compare)
bararchy on v1.1.1
I'm having an issue with crystal-fann, can you help me with that?
I'm trying to train a Network::Standard on iris dataset, but my model always evaluate to the same class, it's not learning the patterns
am I doing something wrong?
https://gist.github.com/anonymous/6acbb9787167f72fb2ea2b5ff17a30a9
ann.train_batch(data, {:max_runs => 500000, :desired_mse => 0.01_f64, :log_each => 1000})
@[Link("doublefann")]
with @[Link("fann")]
to experiment
Max epochs 8000. Desired error: 0.0010000000.
Epochs 1. Current error: 0.5189931989. Bit fail 2.
Epochs 1000. Current error: 0.2500000000. Bit fail 4.
Epochs 2000. Current error: 0.2500000000. Bit fail 4.
Epochs 3000. Current error: 0.2500000596. Bit fail 4.
Epochs 4000. Current error: 0.2500000000. Bit fail 4.
Epochs 5000. Current error: 0.2500000000. Bit fail 4.
Epochs 6000. Current error: 0.2500000596. Bit fail 4.
Epochs 7000. Current error: 0.2500000000. Bit fail 4.
Epochs 8000. Current error: 0.2500000596. Bit fail 4.
[0.5000107397550064]
false
crystal spec
works for you?
hm... running specs on master shows
Fann::Network
initializes
works
Fann::Network
initializes standard network
initializes cascade network
free memory
trains on single data
Shows MSE
trains and evaluate single data
train on batchMax epochs 8000. Desired error: 0.0010000000.
Epochs 1. Current error: 0.2745950818. Bit fail 2.
Epochs 91. Current error: 0.0009867755. Bit fail 0.
train on batch
train on cascadeMax neurons 500. Desired error: 0.001000
Neurons 0. Current error: 0.250000. Total error: 1.0000. Epochs 51. Bit fail 4
Neurons 1. Current error: 0.000746. Total error: 0.0030. Epochs 117. Bit fail 0. candidate steepness 1.00. function FANN_GAUSSIAN_SYMMETRIC
Train outputs Current error: 0.000000. Epochs 123
train on cascade
Finished in 3.2 milliseconds
10 examples, 0 failures, 0 errors, 0 pending
So only 10 examples
I get this
.......Max epochs 8000. Desired error: 0.0010000000.
Epochs 1. Current error: 0.3286948800. Bit fail 2.
Epochs 63. Current error: 0.0009598084. Bit fail 0.
.Max neurons 500. Desired error: 0.001000
Neurons 0. Current error: 0.250000. Total error: 1.0000. Epochs 51. Bit fail 4
Neurons 1. Current error: 0.000618. Total error: 0.0025. Epochs 116. Bit fail 0. candidate steepness 0.25. function FANN_GAUSSIAN_SYMMETRIC
Train outputs Current error: 0.000000. Epochs 120
......
Finished in 79.43 milliseconds
14 examples, 0 failures, 0 errors, 0 pending
Sun Dec 17: crystal-fann/ >
```