Web服务在浮点值上返回错误 [英] Web Service return error on floating point values

查看:105
本文介绍了Web服务在浮点值上返回错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure Machine Learning Studio中进行了实验,并创建了一个Web服务.在我的数据中,我使用具有浮点值的列,并且当我尝试从代码中发送数据时,我得到验证输入向量具有正确的列数" 和数据类型",我尝试将所有数字更改为整数(不包含分数部分),并正确通过.

 我狂使用Excel相同woorkbook例子,得到了相同的结果,具有浮点数字我得到一个错误和与整数i得到答案.我可以强制"使用吗?

解决方案

您是否检查了问题是否为小数点分隔符?我的意思是,可能是您使用点而不是逗号(或反之亦然)来分隔整数和小数部分,并且数字被解释为文本.我会先检查一下.


Hi,

i made an experiment in Azure Machine Learning Studio and created a Web Service. in my data i am using columns with floating point values and when i am trying to send data from my code i get "Verify the input vector has the correct number of columns and data types", i tried to change all number to whole number (without the fruction part) and its pass correctly.

 i mad the same with the excel woorkbook example and got same result , with float point numbers i get an error and with whole number i get an answer. can i "force" the experiment to get floating point values?

解决方案

Hi,

did you check if the problem is the decimal separator? I mean, it could be that you are using point instead of comma, or viceversa, to separate integer and fractional parts, and the numbers are being interpreted as text. I would check this firstly.


这篇关于Web服务在浮点值上返回错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆