Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused method _get_pseudo_prob() #1201

Merged
merged 1 commit into from
Jun 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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