Skip to content
Discussion options

You must be logged in to vote

You need to convert the observations (which are y = dataset in your example) to the one-hot encoding for the Categorical node. So, for example, 5 becomes [ 0.0, 0.0, 0.0, 0.0, 1.0, 0.0 ] since the die has 6 categories in total, the one hot-encoding also should be of length 6.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bsyiem
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants