Rapidata flow item
RapidataFlowItem #
Source code in src/rapidata/rapidata_client/flow/rapidata_flow_item.py
get_response_count #
Get the total number of pairwise comparison responses for this flow item.
The count is derived from the win/loss matrix by summing all entries.
If the matrix hasn't been fetched yet, this will trigger a call to
:meth:get_win_loss_matrix, which waits for the flow item to finish.
Returns:
| Type | Description |
|---|---|
float | int
|
float | int: The total number of comparison votes collected. |
Source code in src/rapidata/rapidata_client/flow/rapidata_flow_item.py
get_status #
Get the current state of this flow item.
Returns:
| Name | Type | Description |
|---|---|---|
FlowItemState |
FlowItemState
|
The current state (Pending, Running, Completed, Failed, Stopped, or Incomplete). |
Source code in src/rapidata/rapidata_client/flow/rapidata_flow_item.py
get_results #
get_results() -> FlowItemResult
Get the results of this flow item from the API.
Returns:
| Name | Type | Description |
|---|---|---|
FlowItemResult |
FlowItemResult
|
Contains a mapping of asset identifier to elo score and the total number of votes. |
Source code in src/rapidata/rapidata_client/flow/rapidata_flow_item.py
get_win_loss_matrix #
Get the win/loss matrix of this flow item from the API.
The win/loss matrix shows pairwise comparison counts where data[i][j] is
the number of times row i was preferred over column j.
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: A DataFrame where rows and columns are asset identifiers, and values are win/loss counts. |