Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ColumnwiseTransformer (multivariate compositor for series-to-seri…
…es transformer) (#1044) * first draft of multivariate compositor * change syntax * added transformer to test_config; introduced multivariate-only-tag; adjusted tests_all_transformers.py to handle multivariate-only data; minor improvements to multivariate_compositor.py * remove apply function for now; next step: add functionality for transformer.update() * Update sktime/transformations/series/multivariate_compositor.py Co-authored-by: Martin Walter <mf-walter@web.de> * Update sktime/transformations/series/multivariate_compositor.py Co-authored-by: Martin Walter <mf-walter@web.de> * Update sktime/transformations/series/multivariate_compositor.py Co-authored-by: Martin Walter <mf-walter@web.de> * revert tests, as we also accept univariate series * make transformer accept pd.Series; implement suggestions from aiwalter, add myself to list of contributors * reformat test_config.py * Update sktime/transformations/series/compose.py Co-authored-by: Martin Walter <mf-walter@web.de> * improve docstrings * Update compose.py * add example and decorator * reformat config.py * Update sktime/transformations/series/compose.py Co-authored-by: Markus Löning <markus.loning@gmail.com> * Update sktime/transformations/series/compose.py Co-authored-by: Markus Löning <markus.loning@gmail.com> * make additional _check_columns and _revert_to_series function; get rid of if/else for mulivariate/univariate; add check for whether list is passed; rename to ColumnwiseTransformer * add transformer to api_reference * remove space Co-authored-by: Martin Walter <mf-walter@web.de> * directly import load_longley Co-authored-by: Martin Walter <mf-walter@web.de> * remove empty line Co-authored-by: Martin Walter <mf-walter@web.de> * minor change to OptionalPassthrough Co-authored-by: Martin Walter <mf-walter@web.de> * directly import load_longley Co-authored-by: Martin Walter <mf-walter@web.de> * make docstrings pydocstyle compliant, move _attributes to fit * z_name cannot be an attribute of the transformer as it changes in transform * make functions standalone, change z[0] to z.squeeze(columns), add helper function to test whether it's a univariate series Co-authored-by: Martin Walter <mf-walter@web.de> Co-authored-by: Markus Löning <markus.loning@gmail.com>
- Loading branch information
1 parent
582cc66
commit 53a3a62
Showing
4 changed files
with
267 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -281,6 +281,7 @@ Composition | |
:template: class.rst | ||
|
||
OptionalPassthrough | ||
ColumnwiseTransformer | ||
|
||
Theta | ||
~~~~~ | ||
|
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