question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Very slow training (100h)

See original GitHub issue

What 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:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
robertleeplummerjrcommented, Dec 17, 2019

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.

0reactions
mubaidrcommented, Feb 16, 2020

Closing until more information is provided.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found