Skip to content

Commit 3d06241

Browse files
update
1 parent 1d56c7f commit 3d06241

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

examples/low_order_moms_dense_batch.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ def main():
4242
# result provides minimum, maximum, sum, sum of squares,
4343
# sum of squared difference from the means, mean,
4444
# second order raw moment, variance, standard deviation, variation
45-
assert res.minimum.shape == (1, 10) \
46-
and res.maximum.shape == (1, 10) \
47-
and res.sum.shape == (1, 10) \
48-
and res.sumSquares.shape == (1, 10) \
49-
and res.sumSquaresCentered.shape == (1, 10) \
50-
and res.mean.shape == (1, 10) \
51-
and res.secondOrderRawMoment.shape == (1, 10) \
52-
and res.variance.shape == (1, 10) \
53-
and res.standardDeviation.shape == (1, 10) \
54-
and res.variation.shape == (1, 10)
45+
assert res.minimum.shape == (1, data.shape[1])
46+
assert res.maximum.shape == (1, data.shape[1])
47+
assert res.sum.shape == (1, data.shape[1])
48+
assert res.sumSquares.shape == (1, data.shape[1])
49+
assert res.sumSquaresCentered.shape == (1, data.shape[1])
50+
assert res.mean.shape == (1, data.shape[1])
51+
assert res.secondOrderRawMoment.shape == (1, data.shape[1])
52+
assert res.variance.shape == (1, data.shape[1])
53+
assert res.standardDeviation.shape == (1, data.shape[1])
54+
assert res.variation.shape == (1, data.shape[1])
5555

5656

5757
if __name__ == "__main__":

0 commit comments

Comments
 (0)