Skip to content

Commit 6d45c92

Browse files
committed
Applied review comments
1 parent 5b7ba6d commit 6d45c92

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dpnp/dpnp_utils/dpnp_utils_statistics.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,26 @@
4848
def dpnp_cov(m, y=None, rowvar=True, dtype=None):
4949
"""
5050
Estimate a covariance matrix based on passed data.
51-
No support for given wights is provided now.
51+
No support for given weights is provided now.
5252
53-
The implementation is done though existing dpnp and dpctl methods
53+
The implementation is done through existing dpnp and dpctl methods
5454
instead of separate function call of dnpn backend.
5555
5656
"""
5757

5858
def _get_2dmin_array(x, dtype):
5959
"""
60-
Transfor an input array to a form required for building a covariance matrix.
60+
Transform an input array to a form required for building a covariance matrix.
6161
62-
If applicable, it resahpes the imput array to have 2 dimensions or greater.
63-
If applicable, it transposes the imput array when 'rowvar' is False.
62+
If applicable, it reshapes the input array to have 2 dimensions or greater.
63+
If applicable, it transposes the input array when 'rowvar' is False.
6464
It casts to another dtype, if the input array differs from requested one.
6565
6666
"""
6767

6868
if x.ndim == 0:
6969
x = x.reshape((1, 1))
70-
elif m.ndim == 1:
70+
elif x.ndim == 1:
7171
x = x[dpnp.newaxis, :]
7272

7373
if not rowvar and x.shape[0] != 1:

0 commit comments

Comments
 (0)