Missing Usage examples in documentation for visualizations
See original GitHub issueIt looks like the documentation is still missing code examples of how to use the visualizations: https://ludwig-ai.github.io/ludwig-docs/api/visualization/#compare_performance
It would be nice to see an example of the test_stats_per_model
parameter:
test_stats_per_model (List[dict]): dictionary containing evaluation performance statistics.
My code looks like this:
training_stats, preprocessed_data, output_directory = base_model.train(
training_set='./datasets/spam_train.csv',
test_set='./datasets/spam_test.csv'
)
And this is what I’ve tried:
visualize.learning_curves(training_stats, ...)
visualize.learning_curves([training_stats], ...)
visualize.learning_curves((training_stats['model'], ...)
All of them raised errors. I’ve seen a blog where the code example supplied a filename string instead of a List[dict]
, so what’s the correct way to call train or evaluate and pass the training statistics to the visualize methods?
Thanks for any help on this!
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
An Overview of Common Data Visualization Mistakes - Toptal
10 Data Visualization Mistakes to Avoid · 1. Misleading Color Contrast · 2. Improper Use of 3D Graphics · 3. Too Much Data...
Read more >A Guide To Bad & Misleading Data Visualization Examples
Bad data is everywhere! Check these misleading data visualization examples and learn how to spot the common tricks used to manipulate data!
Read more >20 Missing data | The Epidemiologist R Handbook
20 Missing data. This page will cover how to: Assess missingness; Filter out rows by missingness; Plot missingness over time
Read more >How to visualize and aggregate missing time-series data in ...
In this tutorial, you'll see how to use Grafana (an open-source visualization tool) and TimescaleDB for handling missing time-series data (using the ...
Read more >Visualize Missing Data with VIM Package - DataCamp
Learn to use data visualization tools provided by the VIM package to gain quick insights into the missing data patterns.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jimthompson5802 I thought
.evaluate
would be the simplest way to get the stats after loading the model from a file instead of re-training (or trying to load the training stats from a JSON file). I did notice that the evaluate stats were missing the epoch data it wasn’t clear which other visualizations would work with both training and evaluate stats.Thanks again for the thorough examples! I created a draft PR to document the use of training and evaluate with compare_performance: https://github.com/ludwig-ai/ludwig/pull/1068
Going to close this issue as my questions have been answered. Thanks again!
@modernlearner In writing about the different content between
training_statistics
andevaluation_statistics
and showing the content of the difference, I forgot to point out Ludwig’scompare_performance
visualization that works withevaluation_statistics
. Here is an example of its use.