museotoolbox.cross_validation.LeavePSubGroupOut.save_to_vector¶
-
LeavePSubGroupOut.
save_to_vector
(vector, field, group=None, out_vector=None)¶ Save to vector files each fold from the cross-validation.
- Parameters
vector (str.) – Path where the vector is stored.
field (str.) – Name of the field containing the label.
group (str, or None.) – Name of the field containing the group/subgroup (or None
out_vector (str.) – Path and filename to save the different results.
- Returns
list_of_output – List containing the number of folds * 2.
train + validation for each fold.
- Return type
list