Help Center>
ModelArts>
FAQs>
Training Jobs>
Compiling the Training Code>
How Do I Obtain Training Job Parameters from the Boot File of the Training Job?
Updated on 2024-06-15 GMT+08:00
How Do I Obtain Training Job Parameters from the Boot File of the Training Job?
Training job parameters can be automatically generated in the background or you can enter them manually. To obtain training job parameters:
- When creating a training job, enter the name of Input (generally set to data_url) and specify a data path to the training input, and enter the name of Output (generally set to train_url) and specify a data path to the training output.
- After the training job is executed, you can click the job name in the training job list to view its details. You can obtain the parameter input mode from logs, as shown in Figure 1.
- To obtain the values of train_url, data_url, and test during training, add the following code to the boot file of the training job:
import argparse parser = argparse.ArgumentParser() parser.add_argument('--data_url', type=str, default=None, help='test') parser.add_argument('--train_url', type=str, default=None, help='test') parser.add_argument('--test', type=str, default=None, help='test')
Parent topic: Compiling the Training Code
Compiling the Training Code FAQs
- How Do I Create a Training Job When a Dependency Package Is Referenced by the Model to Be Trained?
- What Is the Common File Path for Training Jobs?
- How Do I Install a Library That C++ Depends on?
- How Do I Check Whether a Folder Copy Is Complete During Job Training?
- How Do I Load Some Well Trained Parameters During Job Training?
- How Do I Obtain Training Job Parameters from the Boot File of the Training Job?
- Why Can't I Use os.system ('cd xxx') to Access the Corresponding Folder During Job Training?
- How Do I Invoke a Shell Script in a Training Job to Execute the .sh File?
- How Do I Obtain the Dependency File Path to be Used in Training Code?
- What Is the File Path If a File in the model Directory Is Referenced in a Custom Python Package?
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore