MetricsTrackerRollingWindow#

class langchain_experimental.rl_chain.metrics.MetricsTrackerRollingWindow(window_size: int, step: int)[source]#

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)[source]#
Parameters:
  • window_size (int)

  • step (int)

on_decision() β†’ None[source]#
Return type:

None

on_feedback(value: float) β†’ None[source]#
Parameters:

value (float)

Return type:

None

to_pandas() β†’ pd.DataFrame[source]#
Return type:

pd.DataFrame