Replies: 4 comments 8 replies
-
The input data isn't shaped correctly. The output should be an object or array: {input: {}, output: [0]}. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Your input from that link is as well incorrectly shaped: let data = [
{
input: {
BlueTeam: {
Aatrox: 0,
},
RedTeam: {
Aatrox: 1, Input needs to be either an array or flat object who's properties are decimals or integers. It should be something more like: let data = [
{
input: {
BlueTeam_Aatrox: 0,
RedTeam_Aatrox: 1,
}, |
Beta Was this translation helpful? Give feedback.
1 reply
-
That is as well an alternate that will work. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys.
When I call net.run(data)[0] i'm getting undefined as a result. I'm not sure if it is because my training data is in the wrong format. The format is {input: {} {}, output: 0}.
Here is the training data I am trying to test with: https://pastebin.com/qYsuBqG0 .
Any help would be greatly appreciated!
Thank you1
Beta Was this translation helpful? Give feedback.
All reactions