Lazy Neural Network
Instructions
This project uses brain.js
Only works with Chrome and Opera.
- Open the js console in the developer tools menu.
- An AI has already been instantiated:
var ai = new Classifier(0.70); // 70% threshold
-
You may change the threshold with
ai.threshold = (float not exceeding 1)
- Add Classifier data to the ai with:
ai.addTrainingData("data", "Item");
- You may also add an array trainging data as objects instead of adding them line by line.
{
input: "Trainging data",
output: { [Item]: 1 }
}
- Once you have added a suficient amount of data to the AI you now must train it. To do so, you must run the command:
ai.learn();
- Now all you need to do is
ai.ask("data");
, and the AI you created will classify the data, and match it to one of the items that you have given it!