uery_limit]]]]).fillna(&#39;&#39;)
        X= df_test.values.astype(str)

        pred = np.array([funcw(s,
                     self.veritas_model[&#39;model&#39;],
                     self.veritas_model[&#39;model_neg&#39;]) for s in X])

        # Calculating metrics and determining the upper threshold
        fpr, tpr, thresholds = metrics.roc_curve(labels, pred, pos_label=1)
        rf = pd.DataFrame(tpr, fpr, columns=[&#39;tpr&#39;]).assign(threshold=thresholds)
        rf.index.name = &#39;fpr&#39;
