ResourceError Traceback (most recent call last)
<ipython-input-71-bd023aae1a85> in <module>()
11 "algorithm": "bbdt",
12 "functionName":"factor_regressor",
---> 13 "modelFileUrl": "file:///mldb_data/factor_regressor.cls"
14 }
15 })
/usr/local/lib/python2.7/dist-packages/pymldb/init.pyc in inner(args, **kwargs)
16 result = add_repr_html_to_response(fn(args, **kwargs))
17 if result.status_code < 200 or result.status_code >= 400:
---> 18 raise ResourceError(result)
19 return result
20 return inner
ResourceError: '502 Bad Gateway' response to 'PUT http://localhost/v1/procedures/factor_regressor_model'
{
"error": "MLDB Unavailable",
"details": {
"message": "MLDB is unable to respond either because it has not finished booting or because it has crashed and has not finished rebooting. Recent log messages are available via HTTP at /logs/mldb"
},
"httpCode": 502
}
nearestneighbors
function to a call to the /v1/query and put the complete sql call with your SELECT * FROM tranapose()
and adding a LIMIT 1
to get essentially the same output as you would with sql.query