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
InvalidAttributeError: If the Project type does not contain
742
745
any of the attribute names given in kwargs.
743
746
"""
747
+
kwargs.pop("ontology_kind", None)
748
+
kwargs.pop("dataset_name_or_id", None)
749
+
kwargs.pop("append_to_existing_dataset", None)
750
+
kwargs.pop("data_row_count", None)
751
+
kwargs.pop("editor_task_type", None)
752
+
returnself._create_project(**kwargs)
753
+
754
+
@overload
755
+
defcreate_model_evaluation_project(self,
756
+
dataset_name: str,
757
+
dataset_id: str=None,
758
+
data_row_count: int=100,
759
+
**kwargs) ->Project:
760
+
pass
761
+
762
+
@overload
763
+
defcreate_model_evaluation_project(self,
764
+
dataset_id: str,
765
+
dataset_name: str=None,
766
+
data_row_count: int=100,
767
+
**kwargs) ->Project:
768
+
pass
769
+
770
+
defcreate_model_evaluation_project(self,
771
+
dataset_id: Optional[str] =None,
772
+
dataset_name: Optional[str] =None,
773
+
data_row_count: int=100,
774
+
**kwargs) ->Project:
775
+
"""
776
+
Use this method exclusively to create a chat model evaluation project.
777
+
Args:
778
+
dataset_name: When creating a new dataset, pass the name
779
+
dataset_id: When using an existing dataset, pass the id
780
+
data_row_count: The number of data row assets to use for the project
781
+
**kwargs: Additional parameters to pass to the the create_project method
782
+
Returns:
783
+
Project: The created project
784
+
785
+
Examples:
786
+
>>> client.create_model_evaluation_project(name=project_name, dataset_name="new data set")
787
+
>>> 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.
788
+
789
+
>>> client.create_model_evaluation_project(name=project_name, dataset_name="new data set", data_row_count=10)
790
+
>>> 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.
797
+
798
+
799
+
"""
800
+
ifnotdataset_idandnotdataset_name:
801
+
raiseValueError(
802
+
"dataset_name or data_set_id must be present and not be an empty string."
803
+
)
804
+
ifdata_row_count<=0:
805
+
raiseValueError("data_row_count must be a positive integer.")
Use this method exclusively to create a chat model evaluation project.
846
-
Args:
847
-
dataset_name: When creating a new dataset, pass the name
848
-
dataset_id: When using an existing dataset, pass the id
849
-
data_row_count: The number of data row assets to use for the project
850
-
**kwargs: Additional parameters to pass to the the create_project method
851
-
Returns:
852
-
Project: The created project
853
-
854
-
Examples:
855
-
>>> client.create_model_evaluation_project(name=project_name, dataset_name="new data set")
856
-
>>> 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.
857
-
858
-
>>> client.create_model_evaluation_project(name=project_name, dataset_name="new data set", data_row_count=10)
859
-
>>> 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.
866
-
867
910
868
-
"""
869
-
ifnotdataset_idandnotdataset_name:
870
-
raiseValueError(
871
-
"dataset_name or data_set_id must be present and not be an empty string."
872
-
)
873
-
ifdata_row_count<=0:
874
-
raiseValueError("data_row_count must be a positive integer.")
0 commit comments