-
Notifications
You must be signed in to change notification settings - Fork 123
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
getUnmarkedRecords() - updated to the version with correct functionality and fixed its name #372
Conversation
navinrathore
commented
Jun 30, 2022
- Renamed getUnMarkedRecords() to getUnmarkedRecords()
- Real unmarked records returned - updated function from Labeller class
…ity and fixed its name
Few points for attention:
marked and unmarked records are absolute number of records whereas remaining three are pairs (returned by called functions) |
|
@@ -33,6 +33,7 @@ public Labeller() { | |||
public void execute() throws ZinggClientException { | |||
try { | |||
LOG.info("Reading inputs for labelling phase ..."); | |||
initLabellerStat(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this method and simply call getMarkedRecordStat. Move null check into that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
} | ||
} catch (ZinggClientException e) { | ||
LOG.warn("No unmarked record for labelling"); | ||
public void initLabellerStat() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
python/phases/assessModel.py
Outdated
@@ -19,7 +19,7 @@ def main(): | |||
client.initAndExecute() | |||
|
|||
pMarkedDF = client.getPandasDfFromDs(client.getMarkedRecords()) | |||
pUnMarkedDF = client.getPandasDfFromDs(client.getUnMarkedRecords()) | |||
pUnMarkedDF = client.getPandasDfFromDs(client.getUnmarkedRecords()) | |||
|
|||
total_marked = pMarkedDF.shape[0] | |||
total_unmarked = pUnMarkedDF.shape[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed the variable