Browse Source

Change magic number for deal breakers to 0.5

pull/220/head
Diana Shkolnikov 9 years ago
parent
commit
66710f0c88
  1. 4
      middleware/confidenceScore.js

4
middleware/confidenceScore.js

@ -52,7 +52,7 @@ function computeScores(req, res, next) {
function computeConfidenceScore(req, mean, stdev, hit) {
var dealBreakers = checkForDealBreakers(req, hit);
if (dealBreakers) {
hit.confidence = 0;
hit.confidence = 0.5;
return hit;
}
@ -252,4 +252,4 @@ function computeStandardDeviation(scores) {
}
module.exports = setup;
module.exports = setup;

Loading…
Cancel
Save