Skip to content

Commit

Permalink
Merge pull request #72 from predict-idlab/make_robust_docs
Browse files Browse the repository at this point in the history
🖍️ improve the `make_robust docs`
  • Loading branch information
jvdd authored Jun 24, 2022
2 parents 468f2b3 + b0d2f20 commit 767878a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tsflex/features/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def make_robust(
) -> Union[FuncWrapper, List[FuncWrapper]]:
"""Decorate `funcs` into one or multiple robust FuncWrappers.
More specifically this method does:\n
More specifically this method does (in the following order):\n
* `np.NaN` data input propagation / filtering
* `min_nb_samples` checking before feeding to `func`
(if not met, returns `error_val`)\n
Expand All @@ -179,9 +179,12 @@ def make_robust(
funcs: Union[Callable, FuncWrapper, List[Union[Callable, FuncWrapper]]]
The function which will be made robust.
min_nb_samples: int, optional
The minimum number of samples that are needed for `func` to be applied, by
default 1.
successfully.
The minimum number of samples that are needed for `func` to be applied
successfully, by default 1.
.. Note::
The number of samples are determined after the `passthrough_nans` filter
took place.
error_val: Any, optional
The error *return* value if the `min_nb_samples` requirement is not met, by
default `np.NaN`.
Expand Down

0 comments on commit 767878a

Please sign in to comment.