Skip to content

test env command #314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ matrix:
script:
- pytest test --cov;
after_success:
- env
- bash <(curl -s https://codecov.io/bash)
- name: "Pytest python 3.6 with skggm"
python: "3.6"
Expand All @@ -27,6 +28,7 @@ matrix:
script:
- pytest test --cov;
after_success:
- env
- bash <(curl -s https://codecov.io/bash)
- name: "Pytest python 3.7 with skggm"
python: "3.7"
Expand All @@ -38,6 +40,7 @@ matrix:
script:
- pytest test --cov;
after_success:
- env
- bash <(curl -s https://codecov.io/bash)
- name: "Pytest python 3.6 with skggm + scikit-learn 0.20.3"
# checks that tests work for the oldest supported scikit-learn version
Expand All @@ -51,6 +54,7 @@ matrix:
script:
- pytest test --cov;
after_success:
- env
- bash <(curl -s https://codecov.io/bash)
- name: "Syntax checking with flake8"
python: "3.7"
Expand Down
4 changes: 4 additions & 0 deletions metric_learn/covariance.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def fit(self, X, y=None):
"""
X = self._prepare_inputs(X, ensure_min_samples=2)
M = np.atleast_2d(np.cov(X, rowvar=False))
tt = 1+1
tt_bis = tt + 2
tt = tt_bis - 1
del(tt)
if M.size == 1:
M = 1. / M
else:
Expand Down