-
Notifications
You must be signed in to change notification settings - Fork 0
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
Added class AttrStandardizer #15
Conversation
#8: Created a class
|
I have changed the |
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.
This seems great. I had some small comments, but overall definitely an improvement over before. I think the class-based approach is not only more ergonomic, but also enables only loading the model once.
( | ||
input_size_values, | ||
input_size_values_embeddings, | ||
input_size_headers, | ||
hidden_size, | ||
output_size, | ||
dropout_prob, | ||
) = self._get_parameters() |
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.
Not a huge deal... but this feels like it should be a dictionary, not a tuple
returning a ton of params like this.
import warnings | ||
|
||
|
||
# TODO : convert to single np array before converting to tensor |
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.
👍🏼
Should this be a parameter in the |
Added Changed the calculations used for generating the |
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.
Everything looks good, just small things to be changed
except Exception as e: | ||
logger.error(f"Error loading the model: {str(e)}") | ||
raise |
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's a little bit incorrect. First you are catching exception, and then raising exception without providing actual error.
Solution for that is:
- Do not use try except
- Do not raise exception
- Raise custom error (bedmess exception)
|
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.
LGTM
No description provided.