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

ValueError: Missing type hint for return value in function train_test_split #2

Open
gilad-rubin opened this issue Jun 12, 2024 · 2 comments

Comments

@gilad-rubin
Copy link
Collaborator

For an unknown reason - I'm getting this error even though I've defined a return values in the file
https://github.com/DAGWorks-Inc/tuning-playground/blob/main/ml_project/phase4/split.py

@skrawcz
Copy link
Contributor

skrawcz commented Jun 13, 2024

That's odd -- otherwise you don't need the typing import. You can just do dict as the type annotation.

@skrawcz
Copy link
Contributor

skrawcz commented Jun 13, 2024

Also to rule out the sklearn function somehow interfering:

from sklearn import model_selection

then in your function do

model_selection.train_test_split(...)

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

2 participants