Skip to content

Commit

Permalink
MTN adapt code to refactored benchopt 1.1 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomMoral committed Dec 15, 2020
1 parent af83140 commit 4fc90c2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ jobs:
python-version: 3.8

- name: Install dependencies
env:
BENCH_BRANCH: master
run: |
eval "$(conda shell.bash hook)"
conda activate base
# make sure we have the latest version of pip to correctly install benchopt in sub conda env
pip install --upgrade pip
pip install -U https://api.github.com/repos/benchopt/benchOpt/zipball/master
pip install -U git+https://github.com/benchopt/benchopt@$BENCH_BRANCH
- name: Test
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Cache directories
joblib
__cache__
.pytest_cache
__pycache__
*.egg-info
Expand Down
2 changes: 1 addition & 1 deletion datasets/simulated.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np

from benchopt.base import BaseDataset
from benchopt import BaseDataset


class Dataset(BaseDataset):
Expand Down
2 changes: 1 addition & 1 deletion objective.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np


from benchopt.base import BaseObjective
from benchopt import BaseObjective


class Objective(BaseObjective):
Expand Down
4 changes: 2 additions & 2 deletions solvers/lightning.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from benchopt.base import BaseSolver
from benchopt.util import safe_import_context
from benchopt import BaseSolver
from benchopt import safe_import_context


with safe_import_context() as import_ctx:
Expand Down
4 changes: 2 additions & 2 deletions solvers/sklearn.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import warnings


from benchopt.base import BaseSolver
from benchopt.util import safe_import_context
from benchopt import BaseSolver
from benchopt import safe_import_context


with safe_import_context() as import_ctx:
Expand Down

0 comments on commit 4fc90c2

Please sign in to comment.