Skip to content
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

Merged
merged 6 commits into from
Sep 16, 2024
Merged

Vectorizer and Label Encoder Changes #22

merged 6 commits into from
Sep 16, 2024

Conversation

saanikat
Copy link
Member

@saanikat saanikat commented Sep 16, 2024

Updated the attr_standardizer.AttrStandardizer._load_model with the loading of label encoder and vectorizer.

Copy link
Member

@khoroshevskyi khoroshevskyi left a 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

bedms/attr_standardizer.py Outdated Show resolved Hide resolved
: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).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update docstring

Copy link
Member

@nleroy917 nleroy917 left a 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 Show resolved Hide resolved
bedms/attr_standardizer.py Outdated Show resolved Hide resolved
)

def _load_model(self) -> nn.Module:
def _load_model(self) -> tuple[nn.Module, object, object]:
Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, we need

Copy link
Member

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?

@khoroshevskyi khoroshevskyi merged commit dd483ae into dev Sep 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants