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.

Missing Usage examples in documentation for visualizations

See original GitHub issue

It 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:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
modernlearnercommented, Dec 24, 2020

@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!

0reactions
jimthompson5802commented, Dec 24, 2020

@modernlearner In writing about the different content between training_statistics and evaluation_statistics and showing the content of the difference, I forgot to point out Ludwig’s compare_performance visualization that works with evaluation_statistics. Here is an example of its use. image

Read more comments on GitHub >

github_iconTop 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 >

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