Support Questions
Find answers, ask questions, and share your expertise

Arguments in CDSW Experiments not passed properly

New Contributor

I am trying to run sklearn models via CDSW Experiments. My python code should be accepting arguments using sys.argv[1] snippet. However, when I run the script via CDSW Experiments and put arguments in the UI, it seems like there are no arguments being read by the script.


This is what's in sys.argv 




inParam = sys.argv[1]
IndexError: list index out of range

Rising Star

Are you putting arguments in the arguments field of the UI or after your script name?  I don't see an immediate issue with what you're trying to do.

New Contributor

I am putting the arguments in the "Arguments" field in the "Run Experiment" UI

; ;