-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat: HUMSIG-37: Enhancing ML backend connection experience #5546
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
Conversation
…abel-studio into dev/ml-backend-exp
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for heartex-docs canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5546 +/- ##
===========================================
- Coverage 75.77% 75.37% -0.41%
===========================================
Files 157 157
Lines 13125 13249 +124
===========================================
+ Hits 9946 9986 +40
- Misses 3179 3263 +84 ☔ View full report in Codecov by Sentry. |
300824f to
4bbd435
Compare
12f300c to
9211b86
Compare
web/apps/labelstudio/src/components/Form/Elements/Select/Select.js
Outdated
Show resolved
Hide resolved
web/apps/labelstudio/src/components/Form/Elements/Select/Select.js
Outdated
Show resolved
Hide resolved
web/apps/labelstudio/src/components/Form/Elements/Select/Select.js
Outdated
Show resolved
Hide resolved
| @@ -0,0 +1,56 @@ | |||
| .toggle-right | |||
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.
@nicholasrq You mentioned SCSS is the way forward, how strongly are we taking that at this time with regards to new code? With Stylus having been long deprecated we are going to have to move all existing Stylus over to SCSS, and wanted to know if that is something we are trying to encourage in new PRs?
web/apps/labelstudio/src/pages/Settings/MachineLearningSettings/MachineLearningList.js
Outdated
Show resolved
Hide resolved
web/apps/labelstudio/src/pages/Settings/MachineLearningSettings/MachineLearningSettings.js
Outdated
Show resolved
Hide resolved
web/apps/labelstudio/src/pages/Settings/MachineLearningSettings/MachineLearningSettings.js
Outdated
Show resolved
Hide resolved
web/apps/labelstudio/src/pages/Settings/MachineLearningSettings/MachineLearningSettings.js
Outdated
Show resolved
Hide resolved
web/apps/labelstudio/src/pages/Settings/MachineLearningSettings/StartModelTraining.js
Outdated
Show resolved
Hide resolved
web/apps/labelstudio/src/pages/Settings/PredictionsSettings/PredictionsList.js
Outdated
Show resolved
Hide resolved
bmartel
left a comment
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.
Ran a formatter/linter on the other frontend files, pushed that up as well. Looks good overall now.
| def get_predictions(self, task): | ||
| project = task.project | ||
| if not project.show_collab_predictions: | ||
| return [] | ||
| else: | ||
| for ml_backend in project.ml_backends.all(): | ||
| ml_backend.predict_tasks([task]) | ||
| return super().get_predictions(task) | ||
| """ """ | ||
| predictions = task.get_predictions_for_prelabeling() | ||
| return PredictionSerializer(predictions, many=True, read_only=True, default=[], context=self.context).data | ||
|
|
||
| # def get_predictions(self, task): | ||
| # project = task.project | ||
|
|
||
| # if not project.show_collab_predictions: | ||
| # return [] | ||
| # else: | ||
| # # for ml_backend in project.ml_backends.all(): | ||
| # # ml_backend.predict_tasks([task]) | ||
| # return super().get_predictions(task) |
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.
Need to make sure we didn't break anything with this change, and remove commented out code
| 'title': 'Retrieve Predictions', | ||
| 'order': 90, | ||
| 'dialog': { | ||
| 'modal_title': 'Retrieve Predictions', |
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.
modal_title -> title
| 'dialog': { | ||
| 'text': 'This action will create new annotations from predictions with the selected model version ' | ||
| 'for each selected task.', | ||
| 'modal_title': 'Create Annotations From Predictions', |
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.
modal_title -> title
PR fulfills these requirements
[fix|feat|ci|chore|doc]: TICKET-ID: Short description of change madeex.fix: DEV-XXXX: Removed inconsistent code usage causing intermittent errorsChange has impacts in these area(s)
(check all that apply)
Describe the reason for change
(link to issue, supportive screenshots etc.)
What does this fix?
(if this is a bug fix)
What is the new behavior?
(if this is a breaking or feature change)
What is the current behavior?
(if this is a breaking or feature change)
What libraries were added/updated?
(list all with version changes)
Does this change affect performance?
(if so describe the impacts positive or negative)
Does this change affect security?
(if so describe the impacts positive or negative)
What alternative approaches were there?
(briefly list any if applicable)
What feature flags were used to cover this change?
(briefly list any if applicable)
Does this PR introduce a breaking change?
(check only one)
What level of testing was included in the change?
(check all that apply)
Which logical domain(s) does this change affect?
(for bug fixes/features, be as precise as possible. ex. Authentication, Annotation History, Review Stream etc.)