Skip to content

Commit 7ad7887

Browse files
authored
fix punctuational mistakes. (#259)
1 parent 99734c6 commit 7ad7887

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

paddlets/datasets/tsdataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def __getattr__(self, name: str) -> Callable:
714714
(Only analysis operators are currently integrated, and other types of operators may be integrated in the future)
715715
716716
Args:
717-
name(str): operator name eg: summary、max、min
717+
name(str): operator name, eg: summary、max、min
718718
719719
Returns:
720720
Callable: operator funtion
@@ -1582,7 +1582,7 @@ def __setitem__(
15821582
15831583
Args:
15841584
column(str|int): column name
1585-
value(pd.Series|str|int): columns objectIts index must be the same as the index of the target property,
1585+
value(pd.Series|str|int): columns object, Its index must be the same as the index of the target property,
15861586
the value can only be int or str when updating a column in static_cov
15871587
15881588
Returns:

paddlets/models/anomaly/dl/adapter/paddle_dataset_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _build_samples(self) -> List[Dict[str, np.ndarray]]:
135135
"target": None,
136136
"known_cov": None,
137137
"observed_cov": [
138-
[0 0.0, 0],
138+
[0, 0.0, 0],
139139
[1, 10.0, 100],
140140
[2, 20.0, 200],
141141
[3, 30.0, 300],

paddlets/models/anomaly/ml/adapter/ml_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def _build_samples(self) -> List[Dict[str, np.ndarray]]:
132132
"target": None,
133133
"known_cov": None,
134134
"observed_cov": [
135-
[0 0.0, 0],
135+
[0, 0.0, 0],
136136
[1, 10.0, 100],
137137
[2, 20.0, 200],
138138
[3, 30.0, 300],

paddlets/models/forecasting/ml/adapter/ml_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def _build_samples(self) -> List[Dict[str, np.ndarray]]:
505505
# Note: np.NaN is float, cannot be converted to np.int64, so if the input tsdataset needs to
506506
# be lag-transformed, in case if the original lagged column.dtype = int, then after lag
507507
# transform, it must be another INT-convertible number rather than a np.NaN.
508-
[0int_convertible_num, NaN],
508+
[0, int_convertible_num, NaN],
509509
[-1, 0, 0.0],
510510
[-2, 1, 10.0],
511511
[-3, 2, 20.0],

0 commit comments

Comments
 (0)