File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -680,11 +680,14 @@ def predict_patchwise(
680
680
progress_bar : int = 0 ,
681
681
verbose : bool = False ,
682
682
) -> Prediction :
683
- """Predict on a regular grid or at off-grid locations.
683
+ """Predict using a tasks loaded using a sliding window patching strategy. Uses the `predict` method.
684
+
685
+ .. versionadded:: 0.4.3
686
+ :py:func:`predict_patchwise()` method.
684
687
685
688
Args:
686
689
tasks (List[Task] | Task):
687
- List of tasks containing context data.
690
+ List of tasks containing context data. Tasks for patchwise prediction must be generated by a task loader using the "sliding" patching strategy.
688
691
data_processor (:class:`~.data.processor.DataProcessor`):
689
692
Used for unnormalising the coordinates of the bounding boxes of patches.
690
693
X_t (:class:`xarray.Dataset` | :class:`xarray.DataArray` | :class:`pandas.DataFrame` | :class:`pandas.Series` | :class:`pandas.Index` | :class:`numpy:numpy.ndarray`):
@@ -742,6 +745,9 @@ def predict_patchwise(
742
745
predictions.
743
746
744
747
Raises:
748
+ AttributeError
749
+ If ``tasks`` are not generated using the "sliding" patching strategy of TaskLoader,
750
+ i.e. if they do not have a ``bbox`` attribute.
745
751
ValueError
746
752
If ``X_t`` is not an xarray object and
747
753
``resolution_factor`` is not 1 or ``ar_subsample_factor`` is
You can’t perform that action at this time.
0 commit comments