ddbourgin / numpy-ml

Machine learning, in numpy
https://numpy-ml.readthedocs.io/
GNU General Public License v3.0
15.26k stars 3.7k forks source link

Update collections import in data_structures.py #85

Open msf235 opened 1 year ago

msf235 commented 1 year ago

Updated Hashable import from collections to support most recent python versions.

Most recent versions of python no longer allow "from collections import Hashable" but rather require "from collections.abc import Hashable". I've included a try-except block to take this into account.

All Submissions

New Model Submissions

Changes to Existing Models