log
Arize method to log model data record-by-record.
Paramater | Data Type | Description |
---|---|---|
| str | (Required) A unique name to identify your model in the Arize platform |
| (Required*) Declared what model type this prediction/actual is for *(as of v.5.X.X) | |
| (Required*) The environment that this prediction/actual is for (Production, Training, Validation) *(as of v.5.X.X) | |
| str | (Optional) Used to group together a subset of predictions and actuals for a given model_id. Defaults to |
| str | (Optional) A unique string to identify a prediction event. Important: This value matches a prediction to an actual label or feature importance (SHAP) in the Arize platform. If |
| int | (Optional) If Important: Future and Historical predictions are supported up to 1 year from current wall clock time. |
| One of str, bool, int, float, Tuple[str,float] | (Optional) The predicted value for a given model input. *Ingest ranking predictions as a ranking object |
| One of str, bool, kkint, float, Tuple[str,float] | (Optional) The actual or ground truth value for a given model input. Important: This actual will be matched to the prediction with the same |
| [dict<str, [str, bool, float, int, List[str], TypedValue]>)] | (Optional) Dictionary containing human readable and debuggable model features. Keys must be of type |
| (Optional) Dictionary containing human readable and debuggable model embedding features. Keys must be | |
| [dict<str, float>] | (Optional) Dictionary containing human readable and debuggable model features keys, along with SHAP feature importance values. Keys must be |
| [dict<str, [str, bool, float, int, TypedValue]>] | (Optional) Dictionary containing human readable and debuggable meta data that can be added on a prediction ID. This can be used to filter analysis by non-feature data. Keys must be |
| str | (Optional) Only applicable to Validation datasets. Used to distinguish different batch of data under the same model_id and model_version. |
| (Optional) Embedding object containing the embedding vector (required) and raw text (optional, but recommended) for the input text on which your | |
| (Optional) Embedding object containing the embedding vector (required) and raw text (optional, but recommended) for the text | |
| str | (Optional) Template used to construct the prompt passed to a large language model. It can include variables using the double braces notation. Example: |
| str | (Optional) The version of the template used. |
| str | (Optional) The name of the llm used. Example: |
| str | (Optional) Invocation hyperparameters passed to the large language model. Example:
|
| (Optional) Run metadata for LLM calls. Example:
|
Code Example
Last updated