Offers generally useful functions for BigML resources.
Offers generally useful functions for BigML resources.
(create & {:keys [target origin params inputs]})
Creates a resource from another.
The target
parameter identifies the type of resource to create,
origin
is either a tuple containing the type of the resource used
to create target
and its id string, or a map containing the resource
as returned by get
or list
. E.g.:
(create :target :model :origin [:dataset '123123'] (create :target :prediction :origin [:model '123123'] :inputs {...}
Creates a resource from another. The `target` parameter identifies the type of resource to create, `origin` is either a tuple containing the type of the resource used to create `target` and its id string, or a map containing the resource as returned by `get` or `list`. E.g.: (create :target :model :origin [:dataset '123123'] (create :target :prediction :origin [:model '123123'] :inputs {...}
(get-form-params-in params)
Filters parameters that are meant to be sent as HTTP form fields.
Filters parameters that are meant to be sent as HTTP form fields.
(normalized-inputs resource inputs by-name)
Converts inputs to their map normal form if provided as list, in which case they are associated to input fields in the order the latter appeared during training.
Converts inputs to their map normal form if provided as list, in which case they are associated to input fields in the order the latter appeared during training.
(normalized-resource resource by-name)
Makes sure the passed resource contains enough information for input normalization (i.e., :input_fields and additionally :restype/field when by-name is true. If it does not, then the resoure is fetched.
Makes sure the passed resource contains enough information for input normalization (i.e., :input_fields and additionally :restype/field when by-name is true. If it does not, then the resoure is fetched.
(resource-type resource)
Returns the resource type of the specified resource. The resource can be specified through:
Returns the resource type of the specified resource. The resource can be specified through: - its full UUID, e.g., 'model/12234567890'; - a minimal map-representation, e.g., { :resource '...' }; - a full JSON representation.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close