/** * Compute the raw specificity score for a patient. * * @param patient the patient to score * @return a score between {@code 0} and {@code 1}, or {@code -1} if the score cannot be computed by this scorer */ public double getScore(Patient patient) { return this.service.getScore(patient); }
/** * Compute the raw specificity score for a patient. * * @param patient the patient to score * @return a score between {@code 0} and {@code 1}, or {@code -1} if the score cannot be computed by this scorer */ public double getScore(Patient patient) { return this.service.getScore(patient); }
/** * Compute the raw specificity score for a patient snapshot, literally a collection of positive and negative * features. * * @param features the relevant features observed in the patient * @param negativeFeatures the relevant features that were NOT observed in the patient * @return a score between {@code 0} and {@code 1}, or {@code -1} if the score cannot be computed by this scorer */ public double getScore(String[] features, String[] negativeFeatures) { Patient patient = new FakePatient(features, negativeFeatures); return this.service.getScore(patient); }
/** * Compute the raw specificity score for a patient snapshot, literally a collection of positive and negative * features. * * @param features the relevant features observed in the patient * @param negativeFeatures the relevant features that were NOT observed in the patient * @return a score between {@code 0} and {@code 1}, or {@code -1} if the score cannot be computed by this scorer */ public double getScore(String[] features, String[] negativeFeatures) { Patient patient = new FakePatient(features, negativeFeatures); return this.service.getScore(patient); }