Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

185
Visualizações
Why doesn't my neural network want to learn?

Recently I've started playing with neural networks (I use brain.js library) and I have a problem with training my network. I want to create a neural network which would give a certain number (in this situation probability) as an output. The input data comes from sensor which detects a certain event. I provide data in the following format:

{ input: "1 4 0",
  output: "0.003"}

The numbers in input corrensponds to: index of time range when the sensor made a measurement, day of week when the measurement was done and the last one is measurement itsefl (number 0 or 1). They are in text, because when I tried to learn neural network with numbers, the output were even worse. I train network with around 3300 sensor's measurements. I tried to learn the network with much smaller amount of data (~30) and it took around 20-30min to train and give output which was a good output.

I tried to use LSTM neural network with following configuration:

 const config = {
   binaryThresh: 0.5,
   hiddenLayers: [3], 
   activation: 'relu', 
 };

and training:

const trainConfig = {
  iterations: 20000, 
  errorThresh: 0.01, 
  log: true, 
  logPeriod: 1000, 
  learningRate: 0.5, 
  momentum: 0.1, 
  callback: null, 
  callbackPeriod: 10, 
  timeout: 600000, 
}

No matter how much I change this configuration the training starts with enormous training Error which ends up on 'Infinity' but despite that training is still running.

Could someone help me and tell me what I'm doing wrong? I tried to change even format of data :(

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda