This file contains 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 characters
const reportMessage = | |
"Don't use logical && expressions to conditionally render JSX as variables returning as NaN, 0 or an empty string will crash a React Native app." | |
/** | |
* @type {eslint.Rule.RuleModule} | |
*/ | |
module.exports = { | |
meta: { | |
type: 'problem', | |
docs: { |
This file contains 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 characters
let net = new brain.NeuralNetwork(); | |
net.train([{ | |
Input: { r: 0.03, g: 0.7, b: 0.5 }, | |
Output: { black: 1 } | |
},{ | |
Input: { r: 0.16, g: 0.09, b: 0.2 }, | |
Output: { black: 1 } | |
},{ | |
Input: { r: 0.5, b: 0.5 }, |