Browse Source

feat:修改分数段的左闭

zhaohaipeng 5 tháng trước cách đây
mục cha
commit
6cc53747d5

+ 1 - 1
ad-engine-commons/src/main/java/com/tzld/piaoquan/ad/engine/commons/score/model/XGBCalibrationModel.java

@@ -61,7 +61,7 @@ public class XGBCalibrationModel extends Model {
         for (Table.Cell<Double, Double, Double> cell : table.cellSet()) {
             double rowKey = cell.getRowKey();
             double columnKey = cell.getColumnKey();
-            if (rowKey <= score & score < columnKey) {
+            if (rowKey < score & score <= columnKey) {
                 LOGGER.info("score {} in {} - {} , value is {}", score, rowKey, columnKey, cell.getValue());
                 return cell.getValue();
             }