com.cra.figaro.algorithm.decision
Returns the number of nearest neighbors to use.
Returns the number of nearest neighbors to use. If kNN is greater than 1, then return kNN. If kNN is less than 1, then return kNN* Number of Samples.
Set the number of nearest neighbor samples to use in policies based on nearest neighbor.
The function that returns a decision (Element[U]) given the value of the parent T.
The function that returns a decision (Element[U]) given the value of the parent T.
The function that returns the expected utility (Element[Double]) given the value of the parent T.
The function that returns the expected utility (Element[Double]) given the value of the parent T.
A nearest neighbor decision policy. This policy computes an approximate decision from a sampling algorithm. The input to the class is an index (which holds (parent, decision) samples) a function that will combine a set of (decision, utility) samples into a single decision, and numNNSamples, the number of samples to use in a nearest neighbor algorithm. By default, this uses a VP-tree to store the samples.