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

Update 7.md #655

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update 7.md #655

wants to merge 1 commit into from

Conversation

learning1112
Copy link

如果不限制dataset_copy的中元素数量的话,会报错
Traceback (most recent call last):
File "F:\桌面\machine_learning\Random_Forest\random_forest.py", line 70, in
dataset_split = cross_validation_split(dataset, 5)
File "F:\桌面\machine_learning\Random_Forest\random_forest.py", line 59, in cross_validation_split
index = random.randrange(len(dataset_copy))
File "E:\anaconda\envs\AI\lib\random.py", line 306, in randrange
raise ValueError("empty range for randrange()")
ValueError: empty range for randrange()

如果不限制dataset_copy的中元素数量的话,会报错
Copy link

vercel bot commented Sep 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ailearning ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 8:09am

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

Successfully merging this pull request may close these issues.

1 participant