Skip to content

Commit 2750b48

Browse files
committed
Fix typos & asv & numexpr
1 parent 576923b commit 2750b48

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

.github/workflows/benchmark-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
git fetch upstream
5858
git merge upstream/master
5959
asv machine --yes
60-
asv continuous -e -f 1.1 --strict upstream/master HEAD
60+
asv continuous -e -f 1.1 upstream/master HEAD
6161
if: ${{ steps.build.outcome == 'success' }}
6262

6363
- name: Publish benchmarks artifact

mars/learn/linear_model/_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def fit(self, X, y, sample_weight=None):
301301
self.coef_.execute()
302302
except LinAlgError:
303303
# TODO: implement linalg.lstsq first
304-
raise NotImplementedError("Does not support sigular matrix!")
304+
raise NotImplementedError("Does not support singular matrix!")
305305

306306
if y.ndim == 1:
307307
self.coef_ = mt.ravel(self.coef_)

mars/learn/linear_model/tests/test_base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_linear_regression(setup):
5353
assert_array_almost_equal(reg.predict(X), model.predict(X))
5454

5555
# Regular model fitting, #samples <= 2, # features < 2
56-
error_msg = re.escape("Does not support sigular matrix!")
56+
error_msg = re.escape("Does not support singular matrix!")
5757

5858
X = [[1], [2]]
5959
Y = [1, 2]
@@ -69,7 +69,7 @@ def test_linear_regression(setup):
6969
assert_array_almost_equal(reg.predict(X), model.predict(X))
7070

7171
# Extra case #1: singular matrix, degenerate input
72-
error_msg = re.escape("Does not support sigular matrix!")
72+
error_msg = re.escape("Does not support singular matrix!")
7373

7474
X = [[1]]
7575
Y = [0]

mars/learn/metrics/pairwise/pairwise.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"precomputed": None, # HACK: precomputed is always allowed, never called
7373
}
7474

75-
# These distances recquire boolean tensors, when using mars.tensor.spatial.distance
75+
# These distances require boolean tensors, when using mars.tensor.spatial.distance
7676
PAIRWISE_BOOLEAN_FUNCTIONS = [
7777
"dice",
7878
"jaccard",

mars/tensor/base/tile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def tile(A, reps):
3030
behavior, promote `A` to d-dimensions manually before calling this
3131
function.
3232
33-
If ``A.ndim > d``, `reps` is promoted to `A`.ndim by pre-pending 1's to it.
33+
If ``A.ndim > d``, `reps` is promoted to `A`.ndim by prepending 1's to it.
3434
Thus for an `A` of shape (2, 3, 4, 5), a `reps` of (2, 2) is treated as
3535
(1, 1, 2, 2).
3636

mars/tensor/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ def fetch_corner_data(tensor, session=None):
774774
# the tensor must have been executed,
775775
# thus the size could not be NaN
776776
if tensor.size > threshold:
777-
# two edges for each exis
777+
# two edges for each axis
778778
indices_iter = list(itertools.product(*(range(2) for _ in range(tensor.ndim))))
779779
corners = np.empty(shape=(2,) * tensor.ndim, dtype=object)
780780
shape = [0 for _ in range(tensor.ndim)]

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ install_requires =
3030
pandas>=1.0.0,<2.0.0
3131
scipy>=1.0.0
3232
scikit-learn>=0.20
33-
numexpr>=2.6.4,!=2.8.5
33+
numexpr>=2.6.4,!=2.8.5,!=2.8.6
3434
cloudpickle>=1.5.0
3535
pyyaml>=5.1
3636
psutil>=5.9.0

0 commit comments

Comments
 (0)