Comments (5)
Hi @ColdFrenzy - thanks for reaching out!
Are you trying to plot something like this:
![Screenshot 2024-01-31 at 18 05 08](https://private-user-images.githubusercontent.com/152398141/301262186-d98fae0a-33d1-42a3-bc76-dd7b1aec04f8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDk2NDcwMjEsIm5iZiI6MTcwOTY0NjcyMSwicGF0aCI6Ii8xNTIzOTgxNDEvMzAxMjYyMTg2LWQ5OGZhZTBhLTMzZDEtNDJhMy1iYzc2LWRkN2IxYWVjMDRmOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMzA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDMwNVQxMzUyMDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMWIzZjMzYzNkMjQ2NTllNjEzYWYyM2UwMzM2OTRiZWY1N2VjZDg0ZDY2ZGI4YzhhN2MyZTE2Y2FhYjQ1MWYzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.p_7zSFL8lzJjlYa0iM-UEBbv2OxwI2BOdtWZ4DmjZqQ)
If that is the case, you can pass a list containing the distribution over time to wandb.Histogram()
:
# Generating random data
steps = np.arange(0, 10, 1)
distribution_samples = [np.random.normal(loc=i, scale=1, size=100) for i in steps]
# Log the distribution samples over time using wandb.Histogram
for t, samples in zip(steps, distribution_samples):
wandb.log({"step": t, "distribution_samples": wandb.Histogram(samples)})
Let me know if you have any questions about this.
from wandb.
Hi @fmamberti-wandb thank you for your answer. Actually, if I try to use this method, it actually logs nothing, I'm not sure why.
train_metrics["train_metrics/strategy_duration"] = wandb.Histogram(np.array([value/sum(strategy_duration.values()) for _, value in strategy_duration.items()]))
That's part of the metric that I log, but doing so, there is no chart called "strategy_duration" on wandb
from wandb.
Hi @ColdFrenzy, how are you logging train_metrics["train_metrics/strategy_duration"]
?
for the Histogram to be plotted as shown above, every time a step is logged (so every time you run wandb.log()
) you should pass the array with the distribution for one step to wandb.Histogram()
, rather than a list of arrays with all the distributions.
from wandb.
Hi @ColdFrenzy , I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.
from wandb.
Hi @ColdFrenzy, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!
from wandb.
Related Issues (20)
- [Q] Can I change my Team Type from Work to Academic? HOT 3
- [App]: Can delete runs but not projects via the API HOT 4
- [Feature]: Option to delete an organization HOT 3
- [CLI]: Gymnasium v1.0.0 incompatible with `monitor_gym` HOT 4
- [Feature]: Add Direct Command Agent For Launch Just like the agent in sweeps doing. HOT 1
- [CLI]: When resuming run with high-precision hyperparam `wandb.config.update()` throws an Exception HOT 3
- [CLI]: How to log automatically without interactive shitty prompt ?
- [CLI]: Too many files created in ~./local/share/wandb/artifacts/staging, causes DiskQuotaError HOT 3
- [Feature]: Random Color Generation HOT 2
- [App]: Images metadata are visualized instead of the image itself HOT 5
- [Q] Wandb API endpoint URL/IP address and port? HOT 5
- [Q] Getting launch agent error while deploying experiment to kubernetes . Previously it was running fine . Noticed that the helm chart image got changed HOT 8
- [Q] Delete existing academic account and change team type from Work to Academic
- [Q] Is changing curve display sampling rate possible? HOT 3
- [App]: Charting is showing values across experiments & random seeds are the exact same HOT 3
- [CLI]: Wandb logging does not work in Pytorch Lightning DDP HOT 8
- [Q] wandb: Network error (TransientError), entering retry loop. HOT 8
- [Q]Network error (ReadTimeout), entering retry loop HOT 6
- [Q] Stuck Iteration and Sync Issue with wandb sweeps for YOLOv7 Hyperparameter Tuning HOT 7
- Could not set up the required agent[Q] HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wandb.