-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always the same output data on NeuralNetwork #913
Labels
Comments
I tried to normalize the Input (related to #712) Node Example const brain = require("brain.js");
const net = new brain.NeuralNetwork({});
net.train([
{
input: [ 0.1522017 ],
output: { '8': 1, '14': 1, '16': 1, '21': 1, '24': 1 }
},
{
input: [ 0.1322017 ],
output: { '5': 1, '16': 1, '18': 1, '39': 1, '44': 1 }
},
{
input: [ 0.1122017 ],
output: { '1': 1, '15': 1, '17': 1, '29': 1, '37': 1 }
},
{
input: [ 0.822017 ],
output: { '17': 1, '19': 1, '33': 1, '37': 1, '40': 1 }
},
{
input: [ 0.622017 ],
output: { '19': 1, '30': 1, '31': 1, '33': 1, '40': 1 }
},
{
input: [ 0.422017 ],
output: { '1': 1, '22': 1, '32': 1, '35': 1, '37': 1 }
},
{
input: [ 0.122017 ],
output: { '9': 1, '17': 1, '24': 1, '45': 1, '46': 1 }
},
{
input: [ 0.3012017 ],
output: { '4': 1, '22': 1, '23': 1, '32': 1, '40': 1 }
},
{
input: [ 0.2812017 ],
output: { '2': 1, '5': 1, '6': 1, '10': 1, '26': 1 }
},
{
input: [ 0.2512017 ],
output: { '4': 1, '10': 1, '19': 1, '20': 1, '28': 1 }
},
{
input: [ 0.2312017 ],
output: { '5': 1, '15': 1, '17': 1, '31': 1, '49': 1 }
},
{
input: [ 0.2112017 ],
output: { '8': 1, '31': 1, '32': 1, '36': 1, '40': 1 }
},
{
input: [ 0.1812017 ],
output: { '5': 1, '29': 1, '34': 1, '47': 1, '48': 1 }
},
{
input: [ 0.1612017 ],
output: { '14': 1, '26': 1, '32': 1, '35': 1, '37': 1 }
},
{
input: [ 0.1412017 ],
output: { '16': 1, '18': 1, '19': 1, '37': 1, '44': 1 }
},
{
input: [ 0.1112017 ],
output: { '13': 1, '19': 1, '22': 1, '28': 1, '30': 1 }
},
{
input: [ 0.912017 ],
output: { '2': 1, '6': 1, '16': 1, '21': 1, '42': 1 }
},
{
input: [ 0.712017 ],
output: { '21': 1, '22': 1, '24': 1, '33': 1, '46': 1 }
},
{
input: [ 0.412017 ],
output: { '16': 1, '17': 1, '26': 1, '36': 1, '38': 1 }
},
{
input: [ 0.212017 ],
output: { '11': 1, '19': 1, '31': 1, '38': 1, '40': 1 }
},
{
input: [ 0.31122016 ],
output: { '4': 1, '33': 1, '43': 1, '45': 1, '49': 1 }
},
{
input: [ 0.28122016 ],
output: { '15': 1, '16': 1, '34': 1, '35': 1, '39': 1 }
},
{
input: [ 0.26122016 ],
output: { '3': 1, '16': 1, '27': 1, '29': 1, '37': 1 }
},
{
input: [ 0.24122016 ],
output: { '7': 1, '20': 1, '22': 1, '35': 1, '48': 1 }
},
{
input: [ 0.21122016 ],
output: { '17': 1, '22': 1, '25': 1, '39': 1, '42': 1 }
},
{
input: [ 0.19122016 ],
output: { '3': 1, '17': 1, '26': 1, '40': 1, '41': 1 }
},
{
input: [ 0.17122016 ],
output: { '2': 1, '5': 1, '13': 1, '16': 1, '32': 1 }
},
{
input: [ 0.14122016 ],
output: { '9': 1, '10': 1, '14': 1, '44': 1, '46': 1 }
},
{
input: [ 0.12122016 ],
output: { '6': 1, '11': 1, '12': 1, '14': 1, '36': 1 }
},
{
input: [ 0.10122016 ],
output: { '24': 1, '27': 1, '28': 1, '41': 1, '43': 1 }
},
{
input: [ 0.7122016 ],
output: { '2': 1, '5': 1, '7': 1, '44': 1, '45': 1 }
},
{
input: [ 0.5122016 ],
output: { '6': 1, '23': 1, '26': 1, '29': 1, '30': 1 }
},
{
input: [ 0.3122016 ],
output: { '4': 1, '11': 1, '13': 1, '38': 1, '44': 1 }
}
]);
console.log(net.run([0.23022016]));
console.log(net.run([0.11011995]));
console.log(net.run([0.08122023])); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is wrong?
Hi!
I'm trying to train a pretty simple neural network, but no matter what I do, I always get the same results/prediction.
I don't know what I'm doing wrong, I've tried every configuration possible...
How do we replicate the issue?
I don't know enough jsfiddle to setup one quickly, but here's a simplification of my code.
And as you'll see, the results are always the same, whatever the input.
Node Example
How important is this (1-5)?
I guess 0, it's probably a misuse
Is it a configuration issue? Or rather the format of data?
Thanks for your help!
Version
Node v18.12.1
The text was updated successfully, but these errors were encountered: