Skip to content

Commit

Permalink
compatibility updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mhangaard committed Mar 2, 2020
1 parent ae0a1f9 commit 35ad57d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
sudo: required
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"

notifications:
email:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# dev

- Dropped support for python 2.
- Added testing for python 3.7 and 3.8
- Updated compatibility for ASE 3.19.0
- Updated compatibility for Pandas 0.24.0
- Updated compatibility for Scikit-learn 0.22.0

# Version 0.6.1 (April 2019)

- Fixed compatibility issue with MLNEB and [GPAW](https://wiki.fysik.dtu.dk/gpaw/index.html)
Expand Down
4 changes: 2 additions & 2 deletions catlearn/learning_curve/feature_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def feature_inspection(self, lower=0, upper=1, interval=10**2,
if alpha_list is None:
alpha_list = np.linspace(float(upper), float(lower), int(interval))
for alpha in alpha_list:
model = LassoCV(alphas=[alpha]).fit(X=self.train_features,
y=self.train_targets)
model = LassoCV(alphas=[alpha], cv=3).fit(X=self.train_features,
y=self.train_targets)
feat_vec.append(np.shape(np.nonzero(model.coef_))[1])
alpha_vec.append(alpha)
return feat_vec, alpha_vec, np.nonzero(model.coef_)
Expand Down

0 comments on commit 35ad57d

Please sign in to comment.