(build-solr-ltr-nn-model store-name model-name built-features layers mins maxs)
Builds ready-to-json structure for solr NeuralNetworkModel. Returns map.
Builds ready-to-json structure for solr NeuralNetworkModel. Returns map.
(delete-feature-store! client-config & [store-name])
Deletes all features in store 'store-name' (or DEFAULT) executing HTTP DELETE request to feature-store-url built from client-config Returns json-decoded body of response.
Deletes all features in store 'store-name' (or _DEFAULT_) executing HTTP DELETE request to feature-store-url built from client-config Returns json-decoded body of response.
(delete-model! client-config model-name)
Deletes EXISTING ltr model with name 'model-name' from solr executing HTTP DELETE request to 'sorl-core-url' or http://localhost:8983/solr/tmdb WARN: solr can hang on attempt on deleting nonexistent model. Returns json-decoded body of response.
Deletes EXISTING ltr model with name 'model-name' from solr executing HTTP DELETE request to 'sorl-core-url' or http://localhost:8983/solr/tmdb WARN: solr can hang on attempt on deleting nonexistent model. Returns json-decoded body of response.
(do-to-last-n entries n f)
Maps 'entries' with identity while index < 'n' and starting from n maps with 'f', which takes following args: index - index of entry assuming 0 is n at original 'entries' collection entry - entry to map. Returns mapped collection.
Maps 'entries' with identity while index < 'n' and starting from n maps with 'f', which takes following args: index - index of entry assuming 0 is n at original 'entries' collection entry - entry to map. Returns mapped collection.
(extract-features client-config {:keys [q rows sort fl store]})
Extracts features from feature store and returns vector of maps with keys: :<document index key> (e.g. :id) :features - vector of features values for given document
Extracts features from feature store and returns vector of maps with keys: :<document index key> (e.g. :id) :features - vector of features values for given document
(gen-coll-features records field store-name & [params])
Builds multivalued field features, one per distinct field value across all records eg. for field 'genres': 'hasGenresAction', 'hasGenresDrama', etc.
Builds multivalued field features, one per distinct field value across all records eg. for field 'genres': 'hasGenresAction', 'hasGenresDrama', etc.
(gen-external-value-feature value-k required? store-name & [params])
Builds feature description for simple externally supplied value with key 'value-k'. 'required?' - (true/false) if value will'be required with ltr query; 'store-name' - string name of store to specify for features.
Builds feature description for simple externally supplied value with key 'value-k'. 'required?' - (true/false) if value will'be required with ltr query; 'store-name' - string name of store to specify for features.
(gen-field-feature field store-name & [params])
Builds feature description for simple records 'field' 'store-name' - string name of store to specify for features.
Builds feature description for simple records 'field' 'store-name' - string name of store to specify for features.
(make-feature-store-url client-config & [uri])
(make-model-store-base-url client-config & [model-name])
(prepare-features-for-nn store-name built-features mins maxs)
(read-distinct-coll records field)
Returns all distinct values across records under a given multiValued field.
Returns all distinct values across records under a given multiValued field.
(upload-features! client-config features)
Uploads vector of feature descriptions 'features' to solr. executing HTTP PUT request to feature-store-url built from client-config WARN: clears store before uploading. Returns json-decoded body of response.
Uploads vector of feature descriptions 'features' to solr. executing HTTP PUT request to feature-store-url built from client-config WARN: clears store before uploading. Returns json-decoded body of response.
(upload-model! client-config model)
Uploads 'model' as ltr model to solr, json-encoding it previously, executing HTTP PUT request to 'sorl-core-url' Returns json-decoded body of response. NOTE: only supported with :http config type.
Uploads 'model' as ltr model to solr, json-encoding it previously, executing HTTP PUT request to 'sorl-core-url' Returns json-decoded body of response. NOTE: only supported with :http config type.
(url-encode string-to-encode)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close