Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing bugs in catlearn/optimize/mlmin.py in line 300 or the failed mlmin will repeat infinety
  • Loading branch information
vieri2006 committed Jul 4, 2020
2 parents b863439 + 9cb2712 commit 5c39705
Show file tree
Hide file tree
Showing 18 changed files with 1,219 additions and 104 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.ipynb linguist-vendored
5 changes: 3 additions & 2 deletions .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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# dev

# Version 0.6.2 (March 2020)

- Added module for site featurization and GA feature selection.
- Fixed ML-NEB compatibility issue with FHI-AIMS ase calculator.
- Compatibility updated for ASE 3.19.0
- Compatibility updated for Pandas 0.24.0
- Compatibility updated for Scikit-learn 0.22.0
- Dropped support for python 2.
- Dropped support for python 3.5
- Added testing for python 3.7 and 3.8

# Version 0.6.1 (April 2019)

- Fixed compatibility issue with MLNEB and [GPAW](https://wiki.fysik.dtu.dk/gpaw/index.html)
Expand Down
2 changes: 1 addition & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion catlearn/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.6.1"
__version__ = "0.6.2"
8 changes: 4 additions & 4 deletions catlearn/featurize/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def featurize_atomic_pairs(self, candidates):
for atoms in tqdm(candidates):
# One hot encode elements.
dummies = pd.get_dummies(atoms.numbers)
d = dummies.T.reindex(self.atom_types).fillna(0).T.as_matrix()
d = dummies.T.reindex(self.atom_types).fillna(0).T.to_numpy()

# Number of pairs by 1 + number of element types data matrix.
n_pairs = len(atoms) ** 2
Expand Down Expand Up @@ -272,9 +272,9 @@ def _concatenate_vec(self, atoms, vec_names):
fingerprint_vector.dtype.type is not np.str_) or
(arr.dtype.type is not np.str_ and
fingerprint_vector.dtype.type is np.str_)):
raise AssertionError("Fingerprints should be float" +
" type, and returned separately" +
" from str types.")
raise AssertionError("Fingerprints should be float" +
" type, and returned separately" +
" from str types.")
fingerprint_vector = np.concatenate((fingerprint_vector,
arr))

Expand Down
Loading

0 comments on commit 5c39705

Please sign in to comment.