def get_fnr_curve(model=None, data=None, curve=None, thread_count=(- 1)):
    '\n    Build points of FNR curve.\n\n    Parameters\n    ----------\n    model : catboost.CatBoost\n        The trained model.\n\n    data : catboost.Pool or list of catboost.Pool\n        A set of samples to build ROC curve with.\n\n    curve : tuple of three arrays (fpr, tpr, thresholds)\n        ROC curve points in format of get_roc_curve returned value.\n        If set, data parameter must not be set.\n\n    thread_count : int (default=-1)\n        Number of threads to work with.\n        If -1, then the number of threads is set to the number of cores.\n\n    Returns\n    -------\n    curve points : tuple of two arrays (thresholds, fnr)\n    '
    if (curve is not None):
        if (data is not None):
            raise CatboostError('Only one of the parameters data and curve should be set.')
        if ((not (isinstance(curve, list) or isinstance(curve, tuple))) or (len(curve) != 3)):
            raise CatboostError('curve must be list or tuple of three arrays (fpr, tpr, thresholds).')
        (tpr, thresholds) = (curve[1], curve[2][:])
    else:
        if ((model is None) or (data is None)):
            raise CatboostError('model and data parameters should be set when curve parameter is None.')
        (_, tpr, thresholds) = get_roc_curve(model, data, thread_count)
    fnr = np.array([(1 - x) for x in tpr])
    return (thresholds, fnr)
Build points of FNR curve.

Parameters
----------
model : catboost.CatBoost
    The trained model.

data : catboost.Pool or list of catboost.Pool
    A set of samples to build ROC curve with.

curve : tuple of three arrays (fpr, tpr, thresholds)
    ROC curve points in format of get_roc_curve returned value.
    If set, data parameter must not be set.

thread_count : int (default=-1)
    Number of threads to work with.
    If -1, then the number of threads is set to the number of cores.

Returns
-------
curve points : tuple of two arrays (thresholds, fnr)
def get_fnr_curve(model=None, data=None, curve=None, thread_count=(- 1)):
    '\n    Build points of FNR curve.\n\n    Parameters\n    ----------\n    model : catboost.CatBoost\n        The trained model.\n\n    data : catboost.Pool or list of catboost.Pool\n        A set of samples to build ROC curve with.\n\n    curve : tuple of three arrays (fpr, tpr, thresholds)\n        ROC curve points in format of get_roc_curve returned value.\n        If set, data parameter must not be set.\n\n    thread_count : int (default=-1)\n        Number of threads to work with.\n        If -1, then the number of threads is set to the number of cores.\n\n    Returns\n    -------\n    curve points : tuple of two arrays (thresholds, fnr)\n    '
    if (curve is not None):
        if (data is not None):
            raise CatboostError('Only one of the parameters data and curve should be set.')
        if ((not (isinstance(curve, list) or isinstance(curve, tuple))) or (len(curve) != 3)):
            raise CatboostError('curve must be list or tuple of three arrays (fpr, tpr, thresholds).')
        (tpr, thresholds) = (curve[1], curve[2][:])
    else:
        if ((model is None) or (data is None)):
            raise CatboostError('model and data parameters should be set when curve parameter is None.')
        (_, tpr, thresholds) = get_roc_curve(model, data, thread_count)
    fnr = np.array([(1 - x) for x in tpr])
    return (thresholds, fnr)