You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use this method exclusively to create a chat model evaluation project.
822
839
Args:
823
-
dataset_name_or_id: The name or id of the dataset to use for the project
824
-
append_to_existing_dataset: If True, the project will append assets (data rows) to the existing dataset
840
+
dataset_name: When creating a new dataset, pass the name
841
+
dataset_id: When using an existing dataset, pass the id
825
842
data_row_count: The number of data row assets to use for the project
826
843
**kwargs: Additional parameters to pass to the the create_project method
827
844
Returns:
828
845
Project: The created project
846
+
847
+
Examples:
848
+
>>> client.create_model_evaluation_project(name=project_name, dataset_name="new data set")
849
+
>>> This creates a new dataset with a default number of rows (100), creates new project and assigns a batch of the newly created datarows to the project.
850
+
851
+
>>> client.create_model_evaluation_project(name=project_name, dataset_name="new data set", data_row_count=10)
852
+
>>> This creates a new dataset with 10 data rows, creates new project and assigns a batch of the newly created datarows to the project.
>>> This creates a new project, and adds 100 datarows to the dataset with id "clr00u8j0j0j0" and assigns a batch of the newly created data rows to the project.
>>> This creates a new project, and adds 100 datarows to the dataset with id "clr00u8j0j0j0" and assigns a batch of the newly created 10 data rows to the project.
859
+
860
+
829
861
"""
862
+
ifnotdataset_idandnotdataset_name:
863
+
raiseValueError(
864
+
"dataset_name or data_set_id must be present and not be an empty string."
865
+
)
866
+
ifdata_row_count<=0:
867
+
raiseValueError("data_row_count must be a positive integer.")
0 commit comments