-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Summary of Changes * Move the abstract base class `ImputerStrategy` to `safeds.data.tabular.typing` since it is only needed for type annotations * Improve documentation --------- Co-authored-by: megalinter-bot <[email protected]>
- Loading branch information
1 parent
526b96e
commit 205c8e2
Showing
5 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from abc import ABC, abstractmethod | ||
|
||
from sklearn.impute import SimpleImputer as sk_SimpleImputer | ||
|
||
|
||
class ImputerStrategy(ABC): | ||
""" | ||
The abstract base class of the different imputation strategies supported by the `Imputer`. | ||
This class is only needed for type annotations. Use the subclasses nested inside `Imputer.Strategy` instead. | ||
""" | ||
|
||
@abstractmethod | ||
def _augment_imputer(self, imputer: sk_SimpleImputer) -> None: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters