thresh.npy为正样例与反样例分别算出来的值,删去错误的预测样本,通过画roc曲线来计算阈值
# -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import numpy as np
from sklearn.metrics import roc_curve, auc
import utils.config as config
thresh_cos = np.load('thresh.npy')
thresh_cos = np.delete(thresh_cos, [42,51,69,111,112,177,187,205