DAGWorks-Inc / tuning-playground

Playground for trying out optimization with Hamilton
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

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

Open gilad-rubin opened 5 months ago

gilad-rubin commented 5 months ago

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 commented 5 months ago

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

skrawcz commented 5 months ago

Also to rule out the sklearn function somehow interfering:

from sklearn import model_selection

then in your function do

model_selection.train_test_split(...)