-
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
Vectorizer and Label Encoder Changes #22
Conversation
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.
Looks good to me, just one comment
:return nn.Module: Loaded Neural Network Model. | ||
:return object: The scikit learn vectorizer for bag of words encoding. | ||
:return object: Label encoder object for the labels (y). |
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.
Update docstring
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.
Just need to get rid of those merge conflicts...
bedms/attr_standardizer.py
Outdated
) | ||
|
||
def _load_model(self) -> nn.Module: | ||
def _load_model(self) -> tuple[nn.Module, object, object]: |
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.
Is this syntax (tuple[...]
) supported? Do we not need typing.Tuple
?
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, we need
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.
correct me if I am wrong here... in my mind tuple
is ok for python >= 3.10
typing.Tuple
is needed for anything less?
Updated the
attr_standardizer.AttrStandardizer._load_model
with the loading of label encoder and vectorizer.