-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Image Classification Evaluation #1335
Image Classification Evaluation #1335
Conversation
abhishekpratapa
commented
Jan 18, 2019
- added support for image classification evaluation in TuriCreate
…Set up scaffolding to load evaluation_spec and data
…_evaluation/backend
…tionTopBar\n\t- TODO: need to plumb through and data for top bar rendering
src/unity/python/turicreate/toolkits/image_classifier/_evaluation.py
Outdated
Show resolved
Hide resolved
src/visualization/Turi Create Visualization/src/user_interface/package.json
Show resolved
Hide resolved
...aluationConfusionTable/TCEvaluationConfusionHeader/TCEvaluationConfusionHeaderCells/index.js
Outdated
Show resolved
Hide resolved
src/unity/python/turicreate/toolkits/image_classifier/image_classifier.py
Outdated
Show resolved
Hide resolved
src/unity/python/turicreate/toolkits/image_classifier/image_classifier.py
Outdated
Show resolved
Hide resolved
src/unity/python/turicreate/toolkits/image_classifier/image_classifier.py
Outdated
Show resolved
Hide resolved
}else if(this.props.type == "percent"){ | ||
return ( | ||
<div className="TCEvaluationConfusionCell"> | ||
|
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.
Why is the content in the percent empty?
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.
So we don't actually have a percent requirement yet in the Confusions Evaluation Table, so I left it unimplemented.
} | ||
|
||
sortData = (a, b) => { | ||
if(this.props.sort_by_confusions == "actual" && !this.props.sort_direction_confusions){ |
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.
It looks like this function can be simplified into:
const {sort_by_confusions, sort_direction_confusions} = this.props;
if (sort_by_confusions) {
if (sort_direction_confusions) {
return a[sort_by_confusions] < b[sort_by_confusions] ? -1 : 1;
} else {
return a[sort_by_confusions] > b[sort_by_confusions] ? -1 : 1;
}
}
I also wonder if the currently code handles ties consistently. Shouldn't equal return zero?
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.
Yaaa, it should prob return zero, however, I'm not sure if it changes the sort that much. Maybe it does?
@abhishekpratapa It looks like you're getting a test failure:
However, I think the test should simply be updated to accommodate the new field. Seems that training_predictions is added intentionally in this PR, and shouldn't break existing code. What we should consider is:
|
0006af6
to
1a1dc6e
Compare