Skip to content
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

New m15 Coder, couldn't find answer online, Error "Error in oneHot: depth must be >=2, but it is 1" #1481

Open
TheCocoaGamer opened this issue Apr 2, 2024 · 1 comment

Comments

@TheCocoaGamer
Copy link

TheCocoaGamer commented Apr 2, 2024

Dear ml5 community,

I'm submitting a new issue. Please see the details below, I tried to look online for the issue but no one seems to have the problem I'm having.

β†’ Step 1: Describe the issue πŸ“

Normalizing my data gives out an error - "Error in oneHot: depth must be >=2, but it is 1", which I saw online was because only 1 variable was assigned to the ouput instead of 2+, but I do have 2 output variables.

β†’ Step 2: Screenshots or Relevant Documentation πŸ–Ό

(The code to collect the data works, it uses an online csv file and the code will work without the normalize function in the picture)

image
image

β†’ Step 3: Share an example of the issue πŸ¦„

Heres my p5.js sketch: https://editor.p5js.org/TheCocoaGamer/sketches/lHOj_KW75
And the code will work without the normalize function however since the data is not normalized the predicted data is often unreliable.

β†’ Describe your setup πŸ¦„

Here's some helpful information about my setup...

  • Web browser & version: Opera Browser GX up to date

  • Operating System: Win 10 64x

  • ml5 version you're using: 0.4.2

  • Any additional notes

  • I have decent coding experience so no need to dumb down too much (unless the solution is really obv then feel free to).

@TheCocoaGamer TheCocoaGamer changed the title New Coder, couldnt find answer online New m15 Coder, couldn't find answer online, Error "Error in oneHot: depth must be >=2, but it is 1" Apr 2, 2024
@TheCocoaGamer
Copy link
Author

Still having the problem if anyone knows how to fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant