Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/336.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure ML Studio:如何在Python完成数据处理之前更改输入值_Python_Web Services_Input_Azure Machine Learning Studio - Fatal编程技术网

Azure ML Studio:如何在Python完成数据处理之前更改输入值

Azure ML Studio:如何在Python完成数据处理之前更改输入值,python,web-services,input,azure-machine-learning-studio,Python,Web Services,Input,Azure Machine Learning Studio,我目前正在尝试更改输入的值,因为它在Azure ML中经过数据处理。但是,我找不到有关如何使用python访问输入数据的线索 例如,如果要使用python,可以使用 print(dataframe1["Hello World"]) 我尝试更改Web服务输入的名称,并尝试像对其他dataframe(例如示例)所做的那样进行更改 但是它返回了一个没有运气的错误,根据我从错误中读取的信息,它与dataframe不兼容: object of type 'NoneType' has no len()

我目前正在尝试更改输入的值,因为它在Azure ML中经过数据处理。但是,我找不到有关如何使用python访问输入数据的线索

例如,如果要使用python,可以使用

print(dataframe1["Hello World"])
我尝试更改Web服务输入的名称,并尝试像对其他dataframe(例如示例)所做的那样进行更改

但是它返回了一个没有运气的错误,根据我从错误中读取的信息,它与dataframe不兼容:

object of type 'NoneType' has no len()
我试图查找一个非类型错误的解决方案,但没有好的解决方案。 整个错误消息:

requestId = 1f0f621f1d8841baa7862d5c05154942 errorComponent=Module. taskStatusCode=400. {"Exception":{"ErrorId":"FailedToEvaluateScript","ErrorCode":"0085","ExceptionType":"ModuleException","Message":"Error 0085: The following error occurred during script evaluation, please view the output log for more information:\r\n---------- Start of error message from Python interpreter ----------\r\nCaught exception while executing function: Traceback (most recent call last):\r\n File \"C:\\server\\invokepy.py\", line 211, in batch\r\n xdrutils.XDRUtils.DataFrameToRFile(outlist[i], outfiles[i], True)\r\n File \"C:\\server\\XDRReader\\xdrutils.py\", line 51, in DataFrameToRFile\r\n attributes = XDRBridge.DataFrameToRObject(dataframe)\r\n File \"C:\\server\\XDRReader\\xdrbridge.py\", line 40, in DataFrameToRObject\r\n if (len(dataframe) == 1 and type(dataframe[0]) is pd.DataFrame):\r\nTypeError: object of type 'NoneType' has no len()\r\nProcess returned with non-zero exit code 1\r\n\r\n---------- End of error message from Python interpreter ----------"}}Error: Error 0085: The following error occurred during script evaluation, please view the output log for more information:---------- Start of error message from Python interpreter ----------Caught exception while executing function: Traceback (most recent call last): File "C:\server\invokepy.py", line 211, in batch xdrutils.XDRUtils.DataFrameToRFile(outlist[i], outfiles[i], True) File "C:\server\XDRReader\xdrutils.py", line 51, in DataFrameToRFile attributes = XDRBridge.DataFrameToRObject(dataframe) File "C:\server\XDRReader\xdrbridge.py", line 40, in DataFrameToRObject if (len(dataframe) == 1 and type(dataframe[0]) is pd.DataFrame):TypeError: object of type 'NoneType' has no len()Process returned with non-zero exit code 1---------- End of error message from Python interpreter ---------- Process exited with error code -2
我也尝试过这样做,但它不能像我希望的那样对Web服务输入值进行任何更改


我试着在msdn之类的论坛上查找,但很难找到任何关于它的信息。如果需要更多信息,请告诉我。我将非常感谢你的帮助

tl;博士您还需要将用于培训的数据集链接到您链接Web服务输入的同一端口,这样执行Python脚本就可以工作了——请参见下图了解它的外观。

你需要记住,预测性实验有一些需要遵循的惯例(或者通过艰苦的学习:)。其中之一是,为了使用Web服务输入,您需要将其与实际数据集配对,Azure ML Studio随后可以使用该数据集推断结构,并在测试预测性实验时为您提供一些数据。您可以将其视为某种“幽灵”模块,它本身不做任何事情

希望这有帮助

requestId = 1f0f621f1d8841baa7862d5c05154942 errorComponent=Module. taskStatusCode=400. {"Exception":{"ErrorId":"FailedToEvaluateScript","ErrorCode":"0085","ExceptionType":"ModuleException","Message":"Error 0085: The following error occurred during script evaluation, please view the output log for more information:\r\n---------- Start of error message from Python interpreter ----------\r\nCaught exception while executing function: Traceback (most recent call last):\r\n File \"C:\\server\\invokepy.py\", line 211, in batch\r\n xdrutils.XDRUtils.DataFrameToRFile(outlist[i], outfiles[i], True)\r\n File \"C:\\server\\XDRReader\\xdrutils.py\", line 51, in DataFrameToRFile\r\n attributes = XDRBridge.DataFrameToRObject(dataframe)\r\n File \"C:\\server\\XDRReader\\xdrbridge.py\", line 40, in DataFrameToRObject\r\n if (len(dataframe) == 1 and type(dataframe[0]) is pd.DataFrame):\r\nTypeError: object of type 'NoneType' has no len()\r\nProcess returned with non-zero exit code 1\r\n\r\n---------- End of error message from Python interpreter ----------"}}Error: Error 0085: The following error occurred during script evaluation, please view the output log for more information:---------- Start of error message from Python interpreter ----------Caught exception while executing function: Traceback (most recent call last): File "C:\server\invokepy.py", line 211, in batch xdrutils.XDRUtils.DataFrameToRFile(outlist[i], outfiles[i], True) File "C:\server\XDRReader\xdrutils.py", line 51, in DataFrameToRFile attributes = XDRBridge.DataFrameToRObject(dataframe) File "C:\server\XDRReader\xdrbridge.py", line 40, in DataFrameToRObject if (len(dataframe) == 1 and type(dataframe[0]) is pd.DataFrame):TypeError: object of type 'NoneType' has no len()Process returned with non-zero exit code 1---------- End of error message from Python interpreter ---------- Process exited with error code -2