Toggle Menu
Prev Up Next

# `langchain_experimental.rl_chain.metrics`.MetricsTrackerRollingWindow

class langchain_experimental.rl_chain.metrics.MetricsTrackerRollingWindow(window_size: int, step: int)

  Metrics Tracker Rolling Window.

  Attributes

  `score` |

  Methods

  `__init__`(window_size, step) |
  `on_decision`() |
  `on_feedback`(value) |
  `to_pandas`() |

  Parameters

    - window_size (int) –

    - step (int) –

  __init__(window_size: int, step: int)
    Parameters

      - window_size (int) –

      - step (int) –

  on_decision() → None
    Return type

      None

  on_feedback(value: float) → None
    Parameters

      value (float) –

    Return type

      None

  to_pandas() → pd.DataFrame
    Return type

      pd.DataFrame