Hello!
Is it possible to set a template name (using target) for a task with multiple return values?
I'm doing something like this:
@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)