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.

Generate possible results from training

See original GitHub issue

Is there a way to train the brain and generate possible results instead of letting the brain analyse a certain input?

For example: “Give me 4 colors which match ‘orange’ with at least 80% accuracy”.

As pseudo-code:

var net = new NeuralNetwork(); //Create neural network

net.train([{input: {r:1, g:0.65, b:0},  output: {orange: 1}}, //This is orange
           {input: {r:0, g:0.54, b:0},  output: {green: 1}}, //This is green
           {input: {r:0.6, g:1, b:0.5}, output: {green: 1}}, //This is also green
           {input: {r:0.67, g:0, b:1},  output: {purple: 1}}]); //This is purple

var output = net.run({"orange": ">0.8", "results": 4}); //return 4 colors which match 'orange' with at least 80% accuracy

Pseudo-output:

[{r:1,    g:0.65, b:0},
 {r:0.98, g:0.55, b:0},
 {r:1,    g:0.55, b:0.2},
 {r:0.85, g:0.55, b:0}]

A real world example would be: “Tell me the first thing which comes to your mind when I say Internet”. You might say something like Tim Berners-Lee or Wikipedia.

Is something like that possible with BrainJS? Note: I also posted this question on StackOverflow.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:34 (28 by maintainers)

github_iconTop GitHub Comments

1reaction
robertleeplummerjrcommented, Sep 17, 2016

I had a lot of fun on this. Please feel free to keep commenting open, closing to focus on priorities.

0reactions
robertleeplummerjrcommented, Mar 16, 2020

You’ll need either a natural language configuration of brain.js, like https://github.com/axa-group/nlp.js, or a LSTM network.

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Ways to Improve Outcomes from Your Training - Arist
1. Begin with the End in Mind · 2. Track Progress · 3. Strengthen What is Already Known · 4. Skills Should Build...
Read more >
10 Innovative Ways To Measure Training Effectiveness - Whatfix
Know when you want to measure effectiveness and how you will measure it, and build it into your training timeline to stay organized....
Read more >
7 Ways To Ensure Training Results Translate to Business ...
Sustaining behavioral change and driving results can be challenging. Here are sevens ideas that can help make training initiatives more successful.
Read more >
Developing Training That Delivers Results
All training professionals know that professional development can be challenging. It will stretch and create discomfort. Ask yourself whether ...
Read more >
How Long Does It Take to Build Muscle? Results in a ... - Insider
Strength training is the fastest way to build muscle and see results ... That means you'll likely see results with muscle growth faster...
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