Skip to content

106 check passing initialized modules #109

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

Merged
merged 35 commits into from
Mar 29, 2025

Conversation

kulbachcedric
Copy link
Collaborator

Hi @lucasczz and @hoanganhngo610,

I finally managed to refactor the code base to enable passing initialized PyTorch Modules (and some structural changes). What do you think about the changes, where in the future, we would remove and replace the old classes with the *Initialized classes.

The documentation is still missing in many parts, but I think from the coding side it is a first draft to get feedback :-)

Best
Cedric

Improve code readability with consistent formatting for conditions, argument alignment, and tensor initialization. Add precise type annotations for `_load_instructions` method to enhance type safety and clarity.
Simplified and modernized the codebase by removing hardcoded classifiers and regressors like LogisticRegression, LinearRegression, and MultiLayerPerceptron. Introduced flexible base classes, dynamic module handling, and incremental capabilities for targets, features, and classes in classification and regression tasks. This improves maintainability and extensibility of the code while ensuring support for complex use cases.
This commit improves overall code readability by adjusting spacing, aligning imports, and refining incosistent formatting like inline comments and function definitions. No functional changes were made; these updates enhance maintainability and coding style adherence across multiple modules.
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@kulbachcedric kulbachcedric linked an issue Mar 20, 2025 that may be closed by this pull request
Copy link
Collaborator

@lucasczz lucasczz left a comment

Choose a reason for hiding this comment

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

Hi @kulbachcedric,

Looks great! Thanks for all the work on this!
Passing initialized modules is definitely more convenient.

Cheers
Lucas

@kulbachcedric kulbachcedric marked this pull request as ready for review March 29, 2025 10:09
@kulbachcedric kulbachcedric merged commit b22e7a9 into master Mar 29, 2025
18 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.

Add tests for learn_many
2 participants