Created
September 4, 2018 18:42
-
-
Save KaiWedekind/389bc7e9e62e643a377dfa530791b62f to your computer and use it in GitHub Desktop.
Revisions
-
Kai Wedekind created this gist
Sep 4, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ 'use strict' const brain = require('brain.js'); const data = require('./training-data.json'); const network = new brain.NeuralNetwork(); network.train(data, { log: true }); const result = network.run({ r: 0, g: 1, b: 0.65 }); console.log('result', result);