Skip to content

Commit

Permalink
Add conda env config; fix a failing Pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
knakamura13 committed Oct 13, 2024
1 parent e5bde0e commit aa4482f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: mlrose-ky
channels:
- anaconda
- defaults
dependencies:
- python>=3.10, <3.13
- pip
- pip:
- matplotlib~=3.8.4
- networkx~=3.3
- numpy~=1.26.4
- pandas~=2.2.1
- pytest~=8.3.2
- scikit-learn~=1.5.0
- scipy~=1.13.1
- setuptools~=69.5.1
3 changes: 2 additions & 1 deletion tests/test_neural/test_nn_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class TestNNBase:

def test_nn_base_instantiation_raises(self):
"""Test that instantiating _NNBase raises TypeError due to abstract methods."""
with pytest.raises(TypeError, match="Can't instantiate abstract class _NNBase with abstract methods fit, predict"):
with pytest.raises(TypeError, match="Can't instantiate abstract class _NNBase without an implementation for abstract methods "
"'fit', 'predict'"):
_NNBase()

def test_nn_base_abstract_methods(self):
Expand Down

0 comments on commit aa4482f

Please sign in to comment.