Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
table: 'wandb.Table', x: 'str', y: 'str', stroke: 'str | None' = None, title: 'str' = '', split_table: 'bool' = False
True
False
CustomChart
wandb.log()
import math import random import wandb # 異なるパターンのデータを持つ複数の時系列を作成します data = [] for i in range(100): # 時系列 1: ランダムノイズを含む正弦波パターン data.append([i, math.sin(i / 10) + random.uniform(-0.1, 0.1), "series_1"]) # 時系列 2: ランダムノイズを含む余弦波パターン data.append([i, math.cos(i / 10) + random.uniform(-0.1, 0.1), "series_2"]) # 時系列 3: ランダムノイズを含む線形増加 data.append([i, i / 10 + random.uniform(-0.5, 0.5), "series_3"]) # 表の列を定義します table = wandb.Table(data=data, columns=["step", "value", "series"]) # wandb の run を初期化し、折れ線グラフをログします with wandb.init(project="line_chart_example") as run: line_chart = wandb.plot.line( table=table, x="step", y="value", stroke="series", # "series" 列でグループ化します title="Multi-Series Line Plot", ) run.log({"line-chart": line_chart})
このページは役に立ちましたか?