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

Feature/major refactor #12

Merged
merged 5 commits into from
Jun 12, 2024
Merged

Feature/major refactor #12

merged 5 commits into from
Jun 12, 2024

Conversation

mathias-nillion
Copy link
Contributor

No new/different functionality. Also no changes to the user-facing interface.
Just a major refactor of the repo structure - this should avoid massive files & circular import issues in the future (e.g. layers.py could have easily grown to several thousand lines)

Copy link
Member

Choose a reason for hiding this comment

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

nit: I feel like naming the files _client is redundant given they are in the clients folder and these would be imported as client[s].sklearn.

Copy link
Member

Choose a reason for hiding this comment

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

I am not sure I understand the purpose of the model. Should a user generate the state_dict by hand?

Copy link
Member

Choose a reason for hiding this comment

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

nit: I don't feel like neither the types nor the exceptions belong to "utils". I would rather include them as separate files or submodules. I think it makes more sense to import something like from nada_ai.typing import NillionType or from nada_ai.exceptions import MismatchedShapeException.

Copy link
Member

Choose a reason for hiding this comment

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

Also, thinking out loud. Would it make sense to group the typing between nada-algebra and nada-ai?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure - I could see the value in having a nada_typing or nada_common at some point

Copy link
Member

@jcabrero jcabrero left a comment

Choose a reason for hiding this comment

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

No major issues found. For the most part, what you propose are very logical changes to the project structure and improvements to code organization. I included a few "nits" but feel free to consider those if you feel they are reasonable. Some of them are probably not.

@mathias-nillion mathias-nillion merged commit a6191e5 into main Jun 12, 2024
4 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.

2 participants