Regression doesn't work in case of one run and one tile
When working on adding regression to the pretrained model builder, I noticed a special case where iota2 won't finish a run: a regression run, with only one tile and one run. This is due to the fact that, in the regression step, this case isn't taken into account and no task is generated. This case isn't tested either. In this case, iota2 starts and stops after generating the mask region file.
Configuration file example
chain:
{
output_path: "xxx"
s2_path: "xxx"
ground_truth: "xxx"
remove_output_path: True
list_tile: "T31TCJ"
data_field: "ndvi"
spatial_resolution: 10
proj: "EPSG:2154"
first_step: "init"
last_step: "validation"
}
arg_train:
{
runs: 1
sample_selection:
{
"sampler": "periodic"
"strategy": "all"
}
}
scikit_models_parameters:
{
model_type: "HuberRegressor"
standardization: True
keyword_arguments:
{
epsilon: 1.35
}
}
python_data_managing:
{
number_of_chunks: 10
}
builders:
{
builders_class_name: ["i2_regression"]
}
multi_run_fusion:
{
merge_run: False
merge_run_method: 'mean'
}