mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Fix scikit-learn module detection
This commit is contained in:
parent
13ce783fa3
commit
7e4fba9d10
@ -60,6 +60,13 @@ class ScriptRequirements(object):
|
||||
modules.add('azure_storage_blob', 'trains.storage', 0)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# bugfix, replace sklearn with scikit-learn name
|
||||
if 'sklearn' in modules:
|
||||
sklearn = modules.pop('sklearn', {})
|
||||
for fname, lines in sklearn.items():
|
||||
modules.add('scikit_learn', fname, lines)
|
||||
|
||||
# if we have torch and it supports tensorboard, we should add that as well
|
||||
# (because it will not be detected automatically)
|
||||
if 'torch' in modules and 'tensorboard' not in modules:
|
||||
|
Loading…
Reference in New Issue
Block a user