MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / get_js_recommend_params

Function get_js_recommend_params

python/seldon/cli/cmd_api.py:82–92  ·  view source on GitHub ↗
(opts,params)

Source from the content-addressed store, hash-verified

80 return params
81
82def get_js_recommend_params(opts,params):
83 params["user"] = opts.user
84 if not opts.item is None:
85 params["item"] = opts.item
86 if not opts.dimensions is None:
87 params["dimensions"] = opts.dimensions
88 params["type"] = opts.type
89 params["limit"] = opts.limit
90 if not opts.attributes is None:
91 params["attributes"] = opts.attributes
92 return params
93
94def get_oauth_recommend_params(opts,params):
95 if not opts.item is None:

Callers 1

call_jsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected