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.

The plot methods in Datasets should be flexible

See original GitHub issue

As a user I will frequently want to plot images, predictions, masks, etc. The current definition of plot in RasterDataset is limited.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
calebrob6commented, Nov 11, 2021

Yep makes sense! I just see that as part of the normal work (and not like an extra burden).

I think we roughly agree (that plotting should happen in the dataset, that it should assume the values it gets are the same values that are returned by a call to getitem, and that we should return a figure).

The only tricky part I see is “denormalizing” samples in val_step(...) (or anywhere in a LightningModule). If a LightningModule knows about its DataModule then this should be fixed!

1reaction
calebrob6commented, Nov 11, 2021

(I’m not understanding you) So you think title and suptitle should be non optional?

For kwargs, I can see where your coming from – but now, how do they get routed to the correct imshow(...). E.g. for a plot(...) for a land cover dataset you will have an imshow(imagery) and also an imshow(mask, cmap=default_cmap, vmin=0, vmax=7, interpolation="none"). You would need to have separate kwargs routed to both of them. Then, for other datasets maybe you only have a single imshow(...).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plotting - GitHub Pages
The beauty of plotting in R is the flexibility of the graphing system. This flexibility, however, can also make it challenging to develop...
Read more >
Create a "flexible plot" or flexplot - Rdrr.io
Create a flexible plot. Flexplot will allow users to create histograms, barcharts, jittered density plots, paneled plots, scatterplots, etc.
Read more >
Homework 1 for STATS216 by Bruno Pen Wu - Amazon AWS
e) An inflexible method is better in this case. Although a more flexible model would (all else being equal) capture the highly non-linear...
Read more >
A Generic Graph-Based Method for Flexible Aspect-Opinion ...
Applying the generic model to a real-world dataset demonstrates superior functionality and flexibility compared to related works.
Read more >
Introduction to Statistical Learning - Chap2 Solutions - RPubs
Better. A flexible method will fit the data closer and with the large sample size, would perform better than an inflexible approach. 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