shane-kercheval / oo-learning

Python machine learning library based on Object Oriented design principles; the goal is to allow users to quickly explore data and search for top machine learning algorithm candidates for a given dataset
MIT License
1 stars 0 forks source link

LocalCacheManager does not use consistent naming when hashing between sessions #41

Closed shane-kercheval closed 6 years ago

shane-kercheval commented 6 years ago

When I run the ModelSearcher in different sessions, I noticed, for the models that have long names corresponding to the cached file (and therefore need to be hashed), the models will rerun despite having cached files.

I found out that the built in hash function returns different values across sessions. https://stackoverflow.com/questions/27522626/hash-function-in-python-3-3-returns-different-results-between-sessions

shane-kercheval commented 6 years ago

will use:

import hashlib
hashlib.sha224('example_file_name'.encode('utf-8')).hexdigest()