-
Notifications
You must be signed in to change notification settings - Fork 2
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
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.
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
.
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.
I am not sure I understand the purpose of the model. Should a user generate the state_dict
by hand?
nada_ai/utils/__init__.py
Outdated
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.
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
.
nada_ai/utils/typing.py
Outdated
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.
Also, thinking out loud. Would it make sense to group the typing between nada-algebra
and nada-ai
?
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.
Sure - I could see the value in having a nada_typing
or nada_common
at some point
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.
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.
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)