-
Notifications
You must be signed in to change notification settings - Fork 10
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
Gb/trh loss #142
Gb/trh loss #142
Conversation
…or surface met variables
…eaned up surface model meta data
…e random error but less systematic error
@@ -1106,7 +1106,7 @@ def preflight(self): | |||
msg = (f'sample_shape[2] ({self.sample_shape[2]}) cannot be larger ' | |||
'than the number of time steps in the raw data ' | |||
f'({len(self.raw_time_index)}).') | |||
if len(self.raw_time_index) >= self.sample_shape[2]: | |||
if len(self.raw_time_index) < self.sample_shape[2]: |
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.
good catch, fixed this in my current dev branch also.
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.
it was driving me insane haha
sup3r/models/surface.py
Outdated
meta = params['meta'] | ||
args = signature(cls.__init__).parameters | ||
kwargs = {k: v for k, v in meta.items() if k in args} | ||
model = cls(**kwargs) |
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.
you use this code block in linear.py also, and it seems useful as a separate function or an inherited method?
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.
Yeah good point i think we can actually inherit the surface model from the linear model. Let me test it.
No description provided.