seldonian.parse_tree.zhat_funcs¶
Module containing the measure functions (zhats) for computing unbiased estimates of base variables
- measure_function_vector_mapper: dict¶
Maps the measure function name that appears in behavioral constraint strings to the zhat function for that measure function.
Functions
|
Calls func num_batches times, batching up the inputs. |
|
Evaluate the mean of a statistical function over the whole sample provided. |
|
Calculate a statistical function for each observation in the sample. |
|
Calculate probabilistic accuracy for each observation. |
|
Calculate error (Y_hat - Y) for each observation in the dataset |
|
Calculate error rate for each observation. |
|
Calculate false negative rate for each observation. |
|
Calculate false positive rate for each observation. |
|
Calculate the unweighted importance sampling estimate on each episodes in the dataframe |
|
Calculate negative rate for each observation. |
|
Calculate per decision importance sampling estimate on each episodes in the dataframe |
|
Calculate positive rate for each observation. |
|
Calculate squared error for each observation in the dataset |
|
Calculate true negative rate for each observation. |
|
Calculate true positive rate for each observation. |
|
Calculate weighted importance sampling estimate on each episodes in the dataframe |
|
Get the auxiliary reward returns for episodes whose actions fall within the theta bounding box. |
|
Get the probability of predicting class label l_k if the true class label was l_i. This is the C[l_i,l_k] element of the confusion matrix, C. Let: i = number of datapoints j = number of features (including bias term, if provied) k = number of classes. |