Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from prefect.engine.results import LocalResult
@task(target="{date:%a %b %d %H:%M:%S %Y}/{task_name}_output",
result = LocalResult(dir='data/processed'))
def split_data(data: pd.DataFrame, test_data_ratio: float, classes: list) -> Dict[str, Any]:
"""Task for splitting the classical Iris data set into training and test
sets, each split into features and labels.
"""
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment