PipelineDataset Class
Acts as an adapter for Dataset and Pipeline.
Note
This class is deprecated. Learn how to use dataset with pipeline, see https://aka.ms/pipeline-with-dataset.
This is an internal class. You should not create this class directly but rather call the as_* instance methods on the Dataset or the OutputDatasetConfig classes.
Act as an adapter for Dataset and Pipeline.
This is an internal class. You should not create this class directly but rather call the as_* instance methods on the Dataset or the OutputDatasetConfig classes.
- Inheritance
-
builtins.objectPipelineDataset
Constructor
PipelineDataset(dataset=None, name=None, bind_mode='mount', path_on_compute=None, overwrite=False, parameter_name=None)
Parameters
Name | Description |
---|---|
dataset
|
The dataset that will be used as the input to the step. Default value: None
|
name
|
The name of the input in the pipeline. Default value: None
|
bind_mode
|
How the dataset should be made available, either mount or download. Default value: mount
|
path_on_compute
|
The path on the compute where the data will be made available. Default value: None
|
overwrite
|
Whether to overwrite existing data or not. Default value: False
|
parameter_name
|
The parameter name of the dataset. This is used for published pipeline. Default value: None
|
dataset
Required
|
The dataset that will be used as the input to the step. |
name
Required
|
The name of the input in the pipeline. |
bind_mode
Required
|
How the dataset should be made available, either mount or download. |
path_on_compute
Required
|
The path on the compute where the data will be made available. |
overwrite
Required
|
Whether to overwrite existing data or not. |
Methods
create |
Create a PipelineDataset from an Azure Machine Learning Dataset. Note This method is deprecated. Learn how to use dataset with pipeline, see |
default_name |
Get the default port name of a dataset/dataset definition. Note This method is deprecated. Learn how to use dataset with pipeline, see |
is_dataset |
Determine whether the input is a dataset or a dataset definition. Note This method is deprecated. Learn how to use dataset with pipeline, see |
validate_dataset |
Validate the state of the dataset. Note This method is deprecated. Learn how to use dataset with pipeline, see It will log a warning if the dataset is deprecated and throws an error if the datasaet is archived. |
create
Create a PipelineDataset from an Azure Machine Learning Dataset.
Note
This method is deprecated. Learn how to use dataset with pipeline, see
static create(dataset, name=None, parameter_name=None)
Parameters
Name | Description |
---|---|
dataset
Required
|
The dataset to create the PipelineDataset from. |
name
|
The name of the input dataset. If None, a name will be derived based on the type of the input. Default value: None
|
parameter_name
|
The pipeline parameter name. Default value: None
|
Returns
Type | Description |
---|---|
The created PipelineDataset. |
default_name
Get the default port name of a dataset/dataset definition.
Note
This method is deprecated. Learn how to use dataset with pipeline, see
static default_name(dataset)
Parameters
Name | Description |
---|---|
dataset
Required
|
The dataset to calculate the name from. |
Returns
Type | Description |
---|---|
The name. |
is_dataset
Determine whether the input is a dataset or a dataset definition.
Note
This method is deprecated. Learn how to use dataset with pipeline, see
static is_dataset(dset)
Parameters
Name | Description |
---|---|
dset
Required
|
The input. |
Returns
Type | Description |
---|---|
Whether input is a dataset or a dataset definition. |
validate_dataset
Validate the state of the dataset.
Note
This method is deprecated. Learn how to use dataset with pipeline, see
It will log a warning if the dataset is deprecated and throws an error if the datasaet is archived.
static validate_dataset(dset)
Parameters
Name | Description |
---|---|
dset
Required
|
The dataset to be verified. |
Attributes
bind_mode
dataset
Get the dataset this input is binded to.
Returns
Type | Description |
---|---|
The dataset. |
dataset_id
dataset_version
name
overwrite
Get value indicating whether to overwrite existing data.
Returns
Type | Description |
---|---|
Overwrite or not. |
parameter_name
Get the pipeline parameter name of this pipeline dataset.
Returns
Type | Description |
---|---|
The parameter name. |
path_on_compute
Get the path where the data will be made available on the compute.
Returns
Type | Description |
---|---|
The path on compute. |
saved_dataset_id
Return the saved ID of the dataset in the PipelineDataset.
Returns
Type | Description |
---|---|
The saved ID of the dataset. |