In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you how to use Experiments in CDSW1.4. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
1. Log in to the CDSW platform to create a Python template project
The project was created successfully
two。 Open WorkBench and create an add.py file in the project as follows:
Import sys
Import cdsw
Args = len (sys.argv)-1
Sum = 0
X = 1
While (args > = x):
Print ("Argument% I:% s"% (x, sys.argv [x]))
Sum = sum + int (sys.argv [x])
X = x + 1
Print ("Sum of the numbers is:% I."% sum)
(can slide left and right)
3. Click "Run Experiments" and enter the created add.py,Arguments in the script column: 1 2 3 4
4. Click the "Start Run" button to run, go back to the Project interface, and click the "Experiments" menu to view
You can see the Experiment we are running. Click the number in the Run column to view the details.
Click "Build" to display the build process of the experimental environment
After Build succeeds, the Docker image is ready and running
Click "Session" at this time to see the running result.
5. Going back to the "Experiments" page, you can see that the running status is marked as "Success"
6. The CDSW library includes some built-in functions that can be used to compare test run results and save any files in the test
You can record the results of the test run by adding the following to the default of the add.py script
Cdsw.track_metric ("Sum", sum)
(can slide left and right)
Submit a "Run Experiment" again
Check the run result and add the "Sum" column to the run list.
The above is how to use Experiments in CDSW1.4. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.