How to plot multiline in one plot with smoothing features?

I’m trying to plot the figure as in [W&B Smoothing Features], but it didn’t provide any code:

Tutorials I could find by searching wandb multiline in one plot is [Custom Multi-Line Plots] which introduces wandb.plot.line_series(). So I tried the code following

import wandb
import numpy as np

wandb.init(project="test", entity="xxxx")

               ys=[range(100), np.random.randint(100, size=100)],
               keys=["y1", "y2"],

It gives me the following pic after choosing Edit panel

Unlike the first picture:

  1. It doesn’t have Data, Group etc tabs.
  2. There are two types of legend name and lineKey rather than one type.

My question is how to plot exactly the same as the first picture with same function supported in wandb web?

@hoo-leo could you link me to your chart so I can take a look for you?

The link is Example, the corresponding code is in my question.

First I need to log the data I want

import random
import wandb

wandb.init(project="test", entity="xxxx")
for i in range(100):
    wandb.log({"y1": random.random(), "y2": random.random(), "x": i})

Then, I need to mannually choosing y1 and y2 on Y Axis.

Hi @hoo-leo glad you figured this out!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.