ResultSeriesDelta
2 つの系列の差(series_a - series_b)で得られます。使い方は 評価結果の時系列・version 比較 を参照してください。
ml_debugger.result.series.comparison.ResultSeriesDelta
Aligned per-epoch metric differences of two :class:ResultSeries.
属性:
| 名前 | タイプ | デスクリプション |
|---|---|---|
a_label |
str
|
Legend label of the left ( |
b_label |
str
|
Legend label of the right ( |
model_name |
str
|
Shared model name of both series. |
metrics(metric=None, dataset_type=None)
Return the aligned delta rows in long form.
引数:
| 名前 | タイプ | デスクリプション | デフォルト |
|---|---|---|---|
|
Optional[str]
|
Keep only this metric when given. |
None
|
|
Optional[str]
|
Keep only this dataset_type when given. |
None
|
戻り値:
| タイプ | デスクリプション |
|---|---|
DataFrame
|
pd.DataFrame: Columns ``[n_epoch, metric, dataset_type, delta, a_value, |
DataFrame
|
b_value]``. |
issues(by='category', metric='counts_ratio', dataset_type=None, epochs=None)
Return per-group issue-metric differences (a - b) per epoch.
Mirrors :meth:metrics, but for issues. Both series are aligned on the
intersection of their epochs (a's epoch order preserved); groups
(category or error_code) are outer-joined (sorted union of both
sides' groups). For each (group, epoch):
- For count-like metrics (
counts/counts_ratio) a group absent at an epoch (orNaNfrom the groupby sum) is treated as0occurrences, so a group present only on sideareads as a positive delta (newly appearing) and one present only on sidebas a negative delta (disappeared). For other (quality) metrics a missing group is left asNoneand its delta isNone(zero-filling would be wrong). delta = a_value - b_valuewhen both are notNone;Noneotherwise.statusis"both"when both sides have the group at that epoch, else"a_only"/"b_only".
Rows where both sides are missing the group at an epoch are dropped.
Each call fetches issues from the server (one call per epoch per side, no
caching) — consistent with :meth:ResultSeries.issues.
引数:
| 名前 | タイプ | デスクリプション | デフォルト |
|---|---|---|---|
|
str
|
Group column — |
'category'
|
|
str
|
Issue column to difference (e.g. |
'counts_ratio'
|
|
Optional[str]
|
Issue dataset_type filter passed to the server. |
None
|
|
Optional[List[Optional[int]]]
|
Restrict to these epochs ( |
None
|
戻り値:
| タイプ | デスクリプション |
|---|---|
DataFrame
|
pd.DataFrame: Columns ``[n_epoch, |
DataFrame
|
status] |
DataFrame
|
|
DataFrame
|
aligned data. |
plot(metric=None, dataset_type=None, figsize=(8, 5), show=True)
Plot the delta over epochs with a horizontal 0 reference line.
One line per (metric, dataset_type) group; None deltas render as
gaps (NaN).
引数:
| 名前 | タイプ | デスクリプション | デフォルト |
|---|---|---|---|
|
Optional[str]
|
Restrict to this metric ( |
None
|
|
Optional[str]
|
Restrict to this dataset_type ( |
None
|
|
Tuple[float, float]
|
|
(8, 5)
|
|
bool
|
Call |
True
|
戻り値:
| タイプ | デスクリプション |
|---|---|
Figure
|
matplotlib.figure.Figure: The created figure. |
plot_issues(by='category', metric='counts_ratio', dataset_type=None, figsize=(8, 5), show=True)
Plot per-group issue deltas over epochs with a horizontal 0 reference.
One line per group (category or error_code); None deltas render
as gaps (NaN). The frame comes from :meth:issues, so each call fetches
issues from the server.
引数:
| 名前 | タイプ | デスクリプション | デフォルト |
|---|---|---|---|
|
str
|
Group column — |
'category'
|
|
str
|
Issue column to difference (e.g. |
'counts_ratio'
|
|
Optional[str]
|
Issue dataset_type filter passed to the server. |
None
|
|
Tuple[float, float]
|
|
(8, 5)
|
|
bool
|
Call |
True
|
戻り値:
| タイプ | デスクリプション |
|---|---|
Figure
|
matplotlib.figure.Figure: The created figure. |