因此,基本上我正在关注this guide,以了解如何在python中设置Clipper。
我当前的代码如下:
from clipper_admin import ClipperConnection, DockerContainerManager
from clipper_admin.deployers import python as python_deployer
def feature_sum(xs):
return [str(sum(x)) for x in xs]
clipper_conn = ClipperConnection(DockerContainerManager())
clipper_conn.start_clipper()
clipper_conn.register_application(name="hello-world", input_type="doubles",
default_output="-1.0", slo_micros=100000)
python_deployer.deploy_python_closure(clipper_conn, name="sum-model",
version=1, input_type="doubles", func=feature_sum)
当它尝试注册应用程序时,我得到以下消息:
有什么建议吗?