-
Notifications
You must be signed in to change notification settings - Fork 105
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
Change the TrainableModel::summary API to return ModelSummary
#135
Comments
What do you think about the next changes?
|
Hi, @knok16. Give me a few days to think about it; I'll return to you in a couple of days. |
Thanks for lighting the problem @avan1235. I totally agree about that the existing solution is not good for notebooks. I suppose the proposed solution should contain the following things:
|
Can I take it? |
@knok16 Sure, it's yours |
changes for pp 1-3 #216 |
Mostly closed in the #216 |
I've checked the 0.3.0-alpha-4 artifact, print summary works as expected and this issue has been fixed. |
In current implementation the TrainableModel::summary return the list with the descriptions for the following layers.
This information is readable but doesn't allow for easy transformation of model summary gathered data as it is give as raw String. Additionally, the implementation classes log the provided layers description in more readable way, but it is only printed on stdio and not available at least as pretty formatted string that could bu printed later. The problem is more annoying in jupyter notebooks where we don't have an access to stdio and so the logged pretty summary is not visible.
I would propose creating some simple
ModelSummary
data class that would be responsible for holding the model summary data and would have some good implementation oftoString()
method that could be easily printed. It would allow for creating custom printing methods forModelSummary
as well as good keeping of model summary data as a single object instead ofList<String>
The text was updated successfully, but these errors were encountered: