Skip to content

Commit

Permalink
Remove unused function _get_pseudo_prob (#1201)
Browse files Browse the repository at this point in the history
  • Loading branch information
oryx1729 authored Jun 17, 2021
1 parent f9c4083 commit 0168f04
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions haystack/reader/farm.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from collections import defaultdict
from time import perf_counter

import numpy as np
from farm.data_handler.data_silo import DataSilo
from farm.data_handler.processor import SquadProcessor
from farm.data_handler.dataloader import NamedDataLoader
Expand All @@ -17,7 +16,6 @@
from farm.train import Trainer
from farm.eval import Evaluator
from farm.utils import set_all_seeds, initialize_device_settings
from scipy.special import expit

from haystack import Document
from haystack.document_store.base import BaseDocumentStore
Expand Down Expand Up @@ -624,10 +622,6 @@ def calibrate_confidence_scores(
label_origin=label_origin,
calibrate_conf_scores=True)

@staticmethod
def _get_pseudo_prob(score: float):
return float(expit(np.asarray(score) / 8))

@staticmethod
def _check_no_answer(c: QACandidate):
# check for correct value in "answer"
Expand Down

0 comments on commit 0168f04

Please sign in to comment.