Skip to content

Commit

Permalink
Update requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-calzolari committed Dec 27, 2021
1 parent be46b8a commit 323acdf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ conda install -c conda-forge sklearn-genetic

## Requirements

* Python >= 2.7
* scikit-learn >= 0.20.3
* DEAP >= 1.0.2
* Python (>= 3.6)
* scikit-learn (>= 0.23)
* DEAP (>= 1.0.2)

## Example

```python
from __future__ import print_function
import numpy as np
from sklearn import datasets, linear_model

Expand Down
8 changes: 1 addition & 7 deletions genetic_selection/gscv.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@
from sklearn.base import is_classifier
from sklearn.model_selection import check_cv, cross_val_score
from sklearn.metrics import check_scoring
try:
from sklearn.feature_selection import SelectorMixin # scikit-learn>=0.23.0
except ImportError:
try:
from sklearn.feature_selection._base import SelectorMixin # scikit-learn==0.22.*
except ImportError:
from sklearn.feature_selection.base import SelectorMixin # scikit-learn<0.22.0
from sklearn.feature_selection import SelectorMixin
from sklearn.utils._joblib import cpu_count
from deap import algorithms
from deap import base
Expand Down
8 changes: 2 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,12 @@
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
packages=find_packages(),
python_requires='>=2.7',
install_requires=['scikit-learn>=0.20.3', 'deap>=1.0.2'],
python_requires='>=3.6',
install_requires=['scikit-learn>=0.23', 'deap>=1.0.2'],
)

0 comments on commit 323acdf

Please sign in to comment.