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

Function recommendationsUrl

client/js-client/src/rlClient.js:176–187  ·  view source on GitHub ↗
(user_id, item_id, rlabs, rectag, options)

Source from the content-addressed store, hash-verified

174 }
175
176 function recommendationsUrl(user_id, item_id, rlabs, rectag, options) {
177 return fullEndpoint("/js/recommendations") +
178 "&user=" + user_id +
179 "&item=" + item_id +
180 "&dimensions=" + ((options.dimensions) || (options.dimension || 0)) +
181 "&limit=" + (options.limit || 10) +
182 (options.attributes ? ("&attributes=" + attributeString(options.attributes)) : "") +
183 (options.algorithms ? "&algorithms=" + options.algorithms : "") +
184 (rectag ? ("&rectag=" + rectag) : "") +
185 (rlabs ? ("&" + params.track_par + "=" + rlabs) : "") +
186 (options.cohort ? ("&cohort=" + options.cohort) : "");
187 }
188
189 function jsonpCall(url, callback) {
190 var stamp = new Date().getTime(),

Callers 1

recommendationsForFunction · 0.85

Calls 2

fullEndpointFunction · 0.85
attributeStringFunction · 0.85

Tested by

no test coverage detected