mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-08-11 11:24:31 +08:00
update init
This commit is contained in:
+26
-1
@@ -8,4 +8,29 @@ from pts.feature.time_feature import (
|
||||
WeekOfYear,
|
||||
)
|
||||
|
||||
from pts.feature.transform import Transformation, Chain
|
||||
from pts.feature.transform import (
|
||||
Transformation,
|
||||
Chain,
|
||||
IdentityTransformation,
|
||||
MapTransformation,
|
||||
SimpleTransformation,
|
||||
AdhocTransform,
|
||||
FlatMapTransformation,
|
||||
FilterTransformation,
|
||||
RemoveFields,
|
||||
SetField,
|
||||
AsNumpyArray,
|
||||
ExpandDimArray,
|
||||
VstackFeatures,
|
||||
ConcatFeatures,
|
||||
SwapAxes,
|
||||
ListFeatures,
|
||||
AddObservedValuesIndicator,
|
||||
RenameFields,
|
||||
AddConstFeature,
|
||||
AddTimeFeatures,
|
||||
AddAgeFeature,
|
||||
InstanceSplitter,
|
||||
CanonicalInstanceSplitter,
|
||||
SelectFields,
|
||||
)
|
||||
|
||||
@@ -64,7 +64,7 @@ class Chain(Transformation):
|
||||
return reduce(lambda x, y: y.estimate(x), self.trans, data_it)
|
||||
|
||||
|
||||
class Identity(Transformation):
|
||||
class IdentityTransformation(Transformation):
|
||||
def __call__(
|
||||
self, data_it: Iterator[DataEntry], is_train: bool
|
||||
) -> Iterator[DataEntry]:
|
||||
|
||||
Reference in New Issue
Block a user