Skip to content

Commit 25cc326

Browse files
committed
ran linter
1 parent 0e2c443 commit 25cc326

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

bayesflow/adapters/transforms/one_hot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@serializable(package="bayesflow.adapters")
1111
class OneHot(ElementwiseTransform):
1212
"""
13-
Changes data to be one-hot encoded.
13+
Changes data to be one-hot encoded.
1414
"""
1515

1616
def __init__(self, num_classes: int):

bayesflow/adapters/transforms/standardize.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
@serializable(package="bayesflow.adapters")
1212
class Standardize(ElementwiseTransform):
1313
"""
14-
Transform that when applied standardizes data using typical z-score standardization i.e. for some unstandardized data
15-
x the standardized version z would be
14+
Transform that when applied standardizes data using typical z-score standardization i.e. for some unstandardized
15+
data x the standardized version z would be
1616
1717
z = (x - mean(x))/std(x)
1818
19-
Parameters:
19+
Parameters:
2020
mean: integer or float used to specify a mean if known but will be estimated from data when not provided
2121
std: integer or float used to specify a standard devation if known but will be estimated from data when not provided
2222
axis: integer representing a specific axis along which standardization should take place. By default

bayesflow/adapters/transforms/transform.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class Transform:
77
"""
88
Base class on which other transforms are based
99
"""
10+
1011
def __call__(self, data: dict[str, np.ndarray], *, inverse: bool = False, **kwargs) -> dict[str, np.ndarray]:
1112
if inverse:
1213
return self.inverse(data, **kwargs)

0 commit comments

Comments
 (0)