Luiz Felipe
10/21/2021, 3:12 PM@task(checkpoint=True, target="{task_name}.pkl", nout=4)
def split_train_test(dataset):
array = dataset.values
X = array[:,0:4]
y = array[:,4]
X_train, X_validation, Y_train, Y_validation = train_test_split(X, y, test_size=0.20, random_state=1)
return X_train, X_validation, Y_train, Y_validation
Using LocalResult on my flow, I noticed that I've saved an split_train_test.pkl
, which was what I expected, but also 4 files with prefect default names (prefect-result-...
). Is it possible to define a template for these files too? Or just not save them separately?
This is important because, with these names, the cache will never work for them (as it have the current timestamp)Zanie
Luiz Felipe
10/21/2021, 3:31 PMLuiz Felipe
10/21/2021, 3:39 PMLuiz Felipe
10/21/2021, 3:41 PMLuiz Felipe
10/22/2021, 2:15 PMZanie
Zanie
Luiz Felipe
10/22/2021, 4:47 PMZanie
Luiz Felipe
10/22/2021, 6:20 PMZanie
n_out
tasks or avoid duplicating cached results"