question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change the TrainableModel::summary API to return `ModelSummary`

See original GitHub issue

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 of toString() method that could be easily printed. It would allow for creating custom printing methods for ModelSummary as well as good keeping of model summary data as a single object instead of List<String>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zaleslawcommented, Aug 31, 2021

Hi, @knok16. Give me a few days to think about it; I’ll return to you in a couple of days.

0reactions
zaleslawcommented, Sep 22, 2021

I’ve checked the 0.3.0-alpha-4 artifact, print summary works as expected and this issue has been fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

modelsummary: regression tables with side-by-side models
The output argument determines the type of object returned by modelsummary and/or the file ... You can customize this by changing the estimate...
Read more >
modelsummary.pdf
Returns a named list of models, where the names are the models' respective dependent variables. Pass your list of models to dvnames before ......
Read more >
vincentarelbundock/modelsummary - GitHub
modelsummary creates tables and plots to summarize statistical models and data in R . ... All you need is one word to change...
Read more >
tf.keras VGG16 - Kaggle
Copy & Edit ... optimizer=optimizer, metrics=["accuracy"]) return model ... layer.trainable) model.summary() train_generator, validation_generator ...
Read more >
Getting weird output when using the modelsummary package ...
I would like to know if there is any way to get rid of that warning message, and also how to ommit/edit the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found