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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot