Giter Site home page Giter Site logo

Comments (4)

robertleeplummerjr avatar robertleeplummerjr commented on April 28, 2024

I suspect that the training data is different in each file, ultimately that means that the network needs to change size.

from brain.js.

Dok11 avatar Dok11 commented on April 28, 2024

Differed only output. For example

  • for file data1.json output for all inputs is {"id123": 1}
  • for file data2.json output for all inputs is {"id124": 1}
    etc.

So I need set size at initialization of nn?

from brain.js.

robertleeplummerjr avatar robertleeplummerjr commented on April 28, 2024

If you were to use brain.NeuralNetwork which is the feed forward neural net, iterate through your training data, and find all the different input and output keys. When you input or output of your sample data has a property, give the training data that value. When it does not, give it a zero for the missing data.

net.train([{
  input: {
    value1: 1,
    value2: 0
  },
  output: {
    id123: 1,
    id124: 0
  },
  input: {
    value1: 0,
    value2: 1
  },
  output: {
    id123: 0,
    id124: 1
  }
]);

Ultimately, I think you found something we can try and improve though. Very cool, and very common looking, use case.

from brain.js.

robertleeplummerjr avatar robertleeplummerjr commented on April 28, 2024

I think the current answer to this, in the way that you are defining networks, it is like asking how to restructure a neural network, after it has already been structured to train it further. Currently this isn't implemented.

from brain.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.