Very slow training (100h)
See original GitHub issueWhat is wrong?
Training takes super long - roughly 100h
Where does it happen?
In the a NeuralNetwork when trying to run a net in node.js on my mac
How do we replicate the issue?
await getDataSet(type);
const listings = await getFilteredListings(type);
const normalizer = new Normalizer(listings);
normalizer.setOutputProperties(['runningTime']);
normalizer.normalize();
const inputs = normalizer.getBinaryInputDataset();
const outputs = normalizer.getBinaryOutputDataset();
const metadata = normalizer.getDatasetMetaData();
fs.writeFileSync(METADATA_FILE[type],JSON.stringify(metadata));
const trainingData=[];
for(let i=0;i<inputs.length;i++){
trainingData.push({input:inputs[i],output:outputs[i]});
}
const options={
hiddenLayers:[180,60],
};
const net = new NeuralNetworkGPU(
options
);
net.train(trainingData,{
iterations: 60000, // the maximum times to iterate the training data --> number greater than 0
errorThresh: 0.001, // the acceptable error percentage from training data --> number between 0 and 1
log:true,
});
Data has 13 Features and roughly 100MB data (60k items)
How important is this (1-5)?
4
Expected behavior (i.e. solution)
I would expect that this runs faster - even with CPU on Mac. Tried an amazon GPU instance - same. It is very very slow. Am I expecting too much of brain.js? What can this library handle?
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
GPU showing 100% capacity but model training is very slow
I have been training an image classification model, the GPU usage stats show it working at 100% capacity and occupying 15.1 GB out...
Read more >[Reboot] I've always found <lv 100 training to be really slow ...
I'm on Reboot right now which is maybe slower than usual, but as a level 60 hero (crusader) it's taking me like 15-20...
Read more >Extremely slow training speed with Keras when using ...
Extremely slow training speed with Keras when using steps_per_epoch argument · It's going to be slow, but 5 hours for 5 images in...
Read more >9 Reasons You're Running Slow
Let's take a look at the big picture and identify the most common reasons that runners aren't getting faster in their training. Common...
Read more >deep learning - Why does my LSTM take so much time to train?
The main problem is that training is awfully slow : each iteration of training takes about half a day. Since training usually takes...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yea, that seems ok. Would there be a way to possibly get more detail about the background of the system? I’d really like to see the implementation and even run a profiler on it to get more insight as to why it is so slow. If you are interested, you can reach out to me via gmail of the same handle. We’ll make sure to post findings here as well.
Closing until more information is provided.