|
@@ -20,7 +20,7 @@ type HandwritingService struct {
|
|
|
|
|
|
func NewHandwritingService() (hws *HandwritingService) {
|
|
|
hws = &HandwritingService{}
|
|
|
- hws.nn, _ = neuralnetwork.NewNeuralNetwork([]int{784, 16, 16, 10}, neuralnetwork.NewRPropInitializer(neuralnetwork.RPropConfig{
|
|
|
+ hws.nn, _ = neuralnetwork.NewNeuralNetwork([]int{784, 300, 200, 10}, neuralnetwork.NewRPropInitializer(neuralnetwork.RPropConfig{
|
|
|
NuPlus: 1.2,
|
|
|
NuMinus: 0.5,
|
|
|
DeltaMax: 50.0,
|