-
Notifications
You must be signed in to change notification settings - Fork 68
Vb/model offline eval plt 1107 #1682
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
feb64c7
to
4f90d2a
Compare
4f90d2a
to
115b78d
Compare
libs/labelbox/src/labelbox/client.py
Outdated
return self._create(Entity.Project, params, extra_params) | ||
|
||
|
||
# **** Create Project end **** |
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 line + extra whitespace
libs/labelbox/src/labelbox/client.py
Outdated
return self._create_project(**kwargs) | ||
|
||
def create_offline_model_evaluation_project(self, **kwargs) -> Project: | ||
kwargs["media_type"] = MediaType.Conversational |
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.
We should type these arguments and add a docstring
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.
Re: typed arguments, see my proposal above #1682 (comment)
I will add a docstring (forgot to add it). Since these arguments are not user-facing, I propose to clarify them as code comments
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.
is create_offline_model_evaluation_project
not user facing? it's part of the client 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.
it is user facing, but the user is not expected to pass in / set those args
Docstring updates
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.
LGTM
Description
Story: SDK support for offline model evaluation use cases
This story adds support for creation of offline chat model evaluation projects and verifies the following offline and live chat evalutation properties using sdk integration tests.
For an offline project:
For a live chat model evaluation project we now verify that
I refactored create project calls to make sure users will not, inadvertently, cause an issue by supplying incorrect parameters or missing important parameters.
_create_project()
methodAdditionally I have updated handling of EditorTaskType. In a previous release, a new editor task typed cause client get_project() method to break. Now we will set editor task type to
Missing
=NoneType of change
Please delete options that are not relevant.
All Submissions
New Feature Submissions
Does your submission pass tests?
There failing integration tests not related to my code
Have you added thorough tests for your new feature?
Have you commented your code, particularly in hard-to-understand areas?
Have you added a Docstring?
Changes to Core Features