If you are getting a "Key Error 7" while assigning variables to a node in a decision tree, it means that there is no node with the key value of 7 in your decision tree.
To solve this issue, you will need to check that the key values in your decision tree are correct and correspond to the correct nodes. Additionally, you may need to adjust your code to ensure that you are accessing the correct node in your decision tree.
If you are still having trouble, it may be helpful to debug your code and print out information about your decision tree at various stages to help identify where the error is occurring.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-09-06 11:00:00 +0000
Seen: 12 times
Last updated: Nov 12 '22