账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    google prediction api示例“hello world”中结果不一样?
    58
    0

    实例中输入法语 Muy Bueno ,就会显示French,Spanish,English猜中的几率。
    {
    "kind": "prediction#output",
    "id": "languageidentifier",
    "selfLink": "https://www.googleapis.com/prediction/v1.6/projects/12345678910/trainedmodels/languageidentifier/predict",
    "outputLabel": "Spanish",
    "outputMulti": [
    {
    "label": "French",
    "score": "0.334130"
    },
    {
    "label": "Spanish",
    "score": "0.418339"
    },
    {
    "label": "English",
    "score": "0.247531"
    }
    ]
    }

    但是我的结果却是:
        {
     "kind": "prediction#output",
     "id": "languageidentifier",
     "selfLink": "https://www.googleapis.com/prediction/v1.6/projects/891700192979/trainedmodels/languageidentifier/predict",
     "outputLabel": "English",
     "outputMulti": [
      {
       "label": "English",
       "score": "1.000000"
      },
      {
       "label": "French",
       "score": "0.000000"
      },
      {
       "label": "Spanish",
       "score": "0.000000"
      }
     ]
    }
    
    根本没有几率。是输入长一点的语句,就能判断正确,但是也是一锤子买卖,不是1.0000,就是0.00000。
    我的训练集都是按照helloworld例子去做的,有什么问题吗?
    
    1
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部