Skip to content

Commit

Permalink
constant INCREMENT = 1 defined
Browse files Browse the repository at this point in the history
  • Loading branch information
vikasgupta78 committed May 30, 2023
1 parent 552d091 commit ea7e8f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public ZFrame<D,R,C> processRecordsCli(ZFrame<D,R,C> lines) throws ZinggClientEx
String matchType = LabelMatchType.get(matchFlag).msg;
postMsg = String.format("\tThe above pair is labeled as %s\n", matchType);
selectedOption = displayRecordsAndGetUserInput(getDSUtil().select(currentPair, displayCols), preMsg, postMsg);
getTrainingDataModel().updateLabellerStat(selectedOption, +1);
getTrainingDataModel().updateLabellerStat(matchFlag, -1);
getTrainingDataModel().updateLabellerStat(selectedOption, INCREMENT);
getTrainingDataModel().updateLabellerStat(matchFlag, -1*INCREMENT);
getLabelDataViewHelper().printMarkedRecordsStat(
getTrainingDataModel().getPositivePairsCount(),
getTrainingDataModel().getNegativePairsCount(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
public abstract class Labeller<S,D,R,C,T> extends ZinggBase<S,D,R,C,T> {

public static final Integer QUIT_LABELING = 9;
public static final Integer INCREMENT = 1;
private static final long serialVersionUID = 1L;
protected static String name = "zingg.common.core.executor.Labeller";
public static final Log LOG = LogFactory.getLog(Labeller.class);
Expand Down Expand Up @@ -106,7 +107,7 @@ public ZFrame<D,R,C> processRecordsCli(ZFrame<D,R,C> lines) throws ZinggClientE
//String msgHeader = msg1 + msg2;

selectedOption = displayRecordsAndGetUserInput(getDSUtil().select(currentPair, displayCols), msg1, msg2);
getTrainingDataModel().updateLabellerStat(selectedOption, 1);
getTrainingDataModel().updateLabellerStat(selectedOption, INCREMENT);
getLabelDataViewHelper().printMarkedRecordsStat(
getTrainingDataModel().getPositivePairsCount(),
getTrainingDataModel().getNegativePairsCount(),
Expand Down

0 comments on commit ea7e8f4

Please sign in to comment.