-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove keras_templates imports from models __init__ #82
base: main
Are you sure you want to change the base?
Conversation
@@ -94,7 +94,7 @@ def _index_has_constant_increase(df: pd.DataFrame): | |||
else: | |||
return False | |||
|
|||
if type(df.index) == pd.core.indexes.datetimes.DatetimeIndex and ( | |||
if type(df.index) is pd.core.indexes.datetimes.DatetimeIndex and ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isinstance(df.index, pd.core.indexes.datetimes.DatetimeIndex)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ruben preferred the type() is syntax. I don't mind either way. I think the situations in which they differ almost never occur, and should not in this case, right?
#83
in
models
andmetrics
we imported keras functions fromkeras_templates
in the__init__.py
, so even if users ofSAM
want to not use keras they need to have this rather big dependency installed if they want to use, say, a Lasso model.This PR needs some more work and most of all testing so that the parts of SAM that should not depend on KERAS or TENSORFLOW have all tests passing without it being installed.