@File : transformers.py @Time : 2023/11/15 08:51:42 @Author : Alejandro Marrero @Version : 1.0 @Contact : amarrerd@ull.edu.es @License : (C)Copyright 2023, Alejandro Marrero @Desc : None
SupportsTransform
Bases: Protocol
Protocol to type check all the transformer types in digneapy. A Transformer is any callable type that receives a sequence and transforms it to other sequence.
Source code in digneapy/transformers/_base.py
20 21 22 23 24 25 26 |
|
Transformer
Bases: ABC
, SupportsTransform
Transformer is any callable type that receives a sequence and transforms it to other sequence. Ussually, the transformer is a model that is trained to transform the input data to a new space. The transformer is a subclass of the SupportsTransform protocol.
Source code in digneapy/transformers/_base.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|