Skip to content

Commit

Permalink
Update installation instructions and remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieHakim committed Mar 10, 2024
1 parent 82735d8 commit f98e26a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ Install stable version:
pip install bnpm[core]
```

If installing on a server or any computer without graphics/display, after installing `bnpm`, please uninstall `opencv-contrib-python` and install `opencv-contrib-python-headless` instead.
```
pip uninstall opencv-contrib-python
pip install opencv-contrib-python-headless
```
If installing on a server or any computer without graphics/display, install using `core_cv2Headless`. If you accidentally installed the normal version, simply please uninstall `pip uninstall opencv-contrib-python` and install `pip install opencv-contrib-python-headless` instead.


Install development version:
```
Expand Down
1 change: 0 additions & 1 deletion bnpm/automatic_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ def _objective(self, trial: optuna.trial.Trial) -> float:
self.params_best = kwargs_model

return loss
# return np.nan

def fit(self) -> Union[sklearn.base.BaseEstimator, Optional[Dict[str, Any]]]:
"""
Expand Down

0 comments on commit f98e26a

Please sign in to comment.