openml.OpenMLClusteringTask¶
-
class
openml.OpenMLClusteringTask(task_type_id: int, task_type: str, data_set_id: int, estimation_procedure_id: int = 17, task_id: Optional[int] = None, estimation_procedure_type: Optional[str] = None, estimation_parameters: Optional[Dict[str, str]] = None, data_splits_url: Optional[str] = None, evaluation_measure: Optional[str] = None, target_name: Optional[str] = None)¶ OpenML Clustering object.
Inherited from
openml.OpenMLTask- Parameters
- target_namestr (optional)
Name of the target feature (class) that is not part of the feature set for the clustering task.
-
download_split(self) → openml.tasks.split.OpenMLSplit¶ Download the OpenML split for a given task.
-
get_X(self, dataset_format: str = 'array') → Union[numpy.ndarray, pandas.core.frame.DataFrame, scipy.sparse.base.spmatrix]¶ Get data associated with the current task.
- Parameters
- dataset_formatstr
Data structure of the returned data. See
openml.datasets.OpenMLDataset.get_data()for possible options.
- Returns
- tuple - X and y
-
get_dataset(self) → openml.datasets.dataset.OpenMLDataset¶ Download dataset associated with task
-
publish(self) → int¶ Publish task to OpenML server.
- Returns
- task_id: int
Returns the id of the uploaded task if successful.
-
push_tag(self, tag: str)¶ Annotates this task with a tag on the server.
- Parameters
- tagstr
Tag to attach to the task.
-
remove_tag(self, tag: str)¶ Removes a tag from this task on the server.
- Parameters
- tagstr
Tag to attach to the task.