(bernoulli p)
Take a single Bernoulli sample, given a probability
Take a single Bernoulli sample, given a probability
(gen-softmax x num-classes)
Generate a softmax output. x is the class represented by the output, with 0 represented by the first element in the vector.
Generate a softmax output. x is the class represented by the output, with 0 represented by the first element in the vector.
(get-min-position x)
Get the position of the minimum element of a collection.
Get the position of the minimum element of a collection.
(query-hidden rbm x mean-field?)
Given an RBM and an input vector, query the RBM for the state of the hidden nodes.
Given an RBM and an input vector, query the RBM for the state of the hidden nodes.
(random-subset n dataset)
Return a matrix of a n rows randomly selected from a dataset.
Return a matrix of a n rows randomly selected from a dataset.
(sigmoid x)
Sigmoid function, used as an activation function for nodes in a network.
Sigmoid function, used as an activation function for nodes in a network.
(softmax-from-obv x num-classes)
Given an observation with label attached, replace the label value with an appropriate softmax unit. This assumes that the label is the last element in an observation.
Given an observation with label attached, replace the label value with an appropriate softmax unit. This assumes that the label is the last element in an observation.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close