Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Segmented options #14

Open
christopherdebeer opened this issue May 30, 2012 · 3 comments
Open

Segmented options #14

christopherdebeer opened this issue May 30, 2012 · 3 comments

Comments

@christopherdebeer
Copy link

Hi, this post is more discussion than issue. It's related to what was said before on issue #13.

Currently brains, when created take options hiddenLayers & learningRate :

var net = new NeuralNetwork({
   hiddenLayers: [4],
   learningRate: 0.6
});

And when trained, take data and options errorThresh, iterations, log & logPeriod :

net.train(data, {
   errorThresh: 0.004,  
   iterations: 20000,
   log: true,
   logPeriod: 10
});

What I'm asking is this, given that one cannot iteratively train a these neural networks, why are there 2 points at which different options are provided to the neural network?

Does it not make sense to declare all options/setting in one place, ie on creation of the neural network?

Perhaps something like:

var net = new NeuralNetwork({
   hiddenLayers: [4],
   learningRate: 0.6,
   errorThresh: 0.004,  
   iterations: 20000,
   log: true,
   logPeriod: 10
});

net.train(data);

Chris

@tlhunter
Copy link

tlhunter commented Jun 5, 2012

I would like to see brain one day be able to train multiple times instead of just once. If that were to happen, it would make sense to keep the settings as they currently are.

@harthur
Copy link
Owner

harthur commented Jun 6, 2012

@christopherdebeer good point. I think more of them should actually move to the train() call, with maybe the hiddenLayers option sticking with the network initialization.

@robertleeplummerjr
Copy link

@tlhunter see: #63

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants