Updated on 2025-05-29 GMT+08:00

Input

Description

  • Parameter Name: If you use argparse in the algorithm code to parse data_url into the data input, set the data input parameter to data_url when creating the algorithm. Set the name based on the data input parameter in your algorithm code. The code path parameter must be the same as the data input parameter parsed in your algorithm code. Otherwise, the algorithm code cannot obtain the input data.

    For example, add the data_url parameter to the code in the following way:

    parser.add_argument('--data_url', type=str, default=None, help='test')
  • Description: customizable description of the input parameter
  • Obtain from: source of the input parameter. You can select Hyperparameters (default) or Environment variables.
  • Constraints: Whether data is obtained from a storage path or ModelArts dataset.

    If you select the ModelArts dataset as the data source, the following constraints are added:

    • Labeling Type: For details, see Creating a Labeling Job.
    • Data Format, which can be Default, CarbonData, or both. Default indicates the manifest format.
    • Data Segmentation: available only for image classification, object detection, text classification, and sound classification datasets.

      Possible values are Segmented dataset, Dataset not segmented, and Unlimited. For details, see Publishing a Data Version.

FAQs