|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfunction.BasicScalarFunction
function.VariableDomainScalarFunction
model.BasicApproxModel
model.GPRegression
public class GPRegression
Creation process: Set tau (compulsory), set prior mean and covariance, set bounds, init().
| Nested Class Summary | |
|---|---|
static class |
GPRegression.STATE
Encodes the state of the GP. |
| Field Summary | |
|---|---|
static double |
STD_DEVS_OUT
|
| Fields inherited from class function.BasicScalarFunction |
|---|
DEFAULT_BOUNDS, DEFAULT_DIM, VALUE_OUTSIDE_BOUNDS |
| Constructor Summary | |
|---|---|
GPRegression()
|
|
| Method Summary | |
|---|---|
void |
calibrate()
Maximizes log marginal likelihood of the data. |
void |
calibrateOptional()
Optional calibration, based on some measure of calibration being required. |
void |
clear()
Notification that all data has been removed. |
double |
computeLOOError()
Computes the RMS Leave-One-Out error. |
int |
dataAdded(DataBlock block)
Notification that a DataBlock has been added. |
boolean |
dataAdded(DataPoint dataPoint)
Notification that a single DataPoint has been added. |
int |
dataRemoved(DataBlock dataBlock)
Notification that a DataBlock has been removed. |
boolean |
dataRemoved(DataPoint dataPoint)
Notification that a single DataPoint has been removed. |
double |
getCalibrationThreshold()
Returns the calibrationThreshold. |
double |
getConsistencyThreshold()
Returns the threshold at which points are considered inconsistent. |
DifferentiableCorrelationFunction |
getCorrelationFunction()
Returns the correlation function. |
BasicCorrelationFunction.TYPE |
getCorrelationFunctionType()
Returns the correlation function type. |
java.util.HashSet<DataPoint> |
getInconsistentData()
Returns the set of inconsistent data. |
CholeskyFactor |
getL()
Returns the l. |
double |
getMaxUncertainty()
|
double |
getPriorMean()
Returns the prior mean. |
double |
getPriorVariance()
Returns the prior variance. |
java.util.HashSet<DataPoint> |
getRedundantData()
Returns the set of redundant data. |
GPRegression.STATE |
getState()
Returns the state. |
double[] |
getTau()
Returns the length-scale parameters, tau. |
double[] |
getTauMax()
Returns the upper bound on length-scale parameters. |
double[] |
getTauMin()
Returns the lower bound on length-scale parameters. |
cern.colt.matrix.DoubleMatrix2D |
getX()
Returns the x. |
void |
init()
Initialization method. |
boolean |
isCalibrated()
Returns true if calibrated. |
boolean |
isInitialized()
Returns true if init() routine has been invoked. |
static void |
main(java.lang.String[] args)
|
protected ScalarFunction |
makeUncertaintyEstimator()
|
double |
quickCompute(double[] x)
Compute method without dimension checking. |
void |
quickCompute(cern.colt.matrix.DoubleMatrix2D mat,
cern.colt.matrix.DoubleMatrix1D outputs)
Compute method without dimension checking, operating on DoubleMatrix2D and exploiting optimized operations therein. |
void |
setBounds(Hypercube bounds)
Sets the bounds for this ScalarFunction. |
void |
setCalibrationThreshold(double calibrationThreshold)
Sets the calibrationThreshold. |
void |
setConsistencyThreshold(double consistencyThreshold)
Sets the consistency threshold. |
void |
setCorrelationFunctionType(BasicCorrelationFunction.TYPE correlationFunctionType)
Sets the correlation function type. |
void |
setPriorMean(double priorMean)
Sets the prior mean. |
void |
setPriorVariance(double priorVariance)
Sets the prior variance. |
void |
setTau(double[] tau)
Sets the length-scale parameters. |
void |
setTauMax(double[] tauMax)
Sets the upper bound on length-scale parameters.. |
void |
setTauMin(double[] tauMin)
Sets the lower bound on length-scale parameters. |
| Methods inherited from class model.BasicApproxModel |
|---|
getOutputNumber, getUncertaintyEstimator, setOutputNumber, setUncertaintyEstimator |
| Methods inherited from class function.VariableDomainScalarFunction |
|---|
getBounds, getInputDimension, setInputDimension |
| Methods inherited from class function.BasicScalarFunction |
|---|
checkDimensions, compute, compute, compute, compute, compute, compute, getOutputDimension, isWithinBounds, makeBounds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface function.ScalarFunction |
|---|
compute, compute, compute, compute |
| Methods inherited from interface function.Computable |
|---|
compute, compute, getBounds, getInputDimension, getOutputDimension, isWithinBounds |
| Methods inherited from interface function.VariableInputDimension |
|---|
setInputDimension |
| Field Detail |
|---|
public static final double STD_DEVS_OUT
| Constructor Detail |
|---|
public GPRegression()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public void calibrate()
public void calibrateOptional()
DataFit
public void clear()
DataListener
public double computeLOOError()
public int dataAdded(DataBlock block)
DataListenerDataBlock has been added.
block - the DataBlock added.
public boolean dataAdded(DataPoint dataPoint)
DataListenerDataPoint has been added.
dataPoint - the DataPoint added.
true if the DataPoint was successfully added.public int dataRemoved(DataBlock dataBlock)
DataListenerDataBlock has been removed.
dataBlock - the DataBlock removed.
DataPoints successfully removed.public boolean dataRemoved(DataPoint dataPoint)
DataListenerDataPoint has been removed.
dataPoint - the DataPointremoved.
true if the DataPoint was successfully
removed.public double getCalibrationThreshold()
public double getConsistencyThreshold()
public DifferentiableCorrelationFunction getCorrelationFunction()
public BasicCorrelationFunction.TYPE getCorrelationFunctionType()
public java.util.HashSet<DataPoint> getInconsistentData()
public CholeskyFactor getL()
public double getMaxUncertainty()
public double getPriorMean()
public double getPriorVariance()
public java.util.HashSet<DataPoint> getRedundantData()
public GPRegression.STATE getState()
public double[] getTau()
public double[] getTauMax()
public double[] getTauMin()
public cern.colt.matrix.DoubleMatrix2D getX()
public void init()
BasicScalarFunction
init in interface ScalarFunctioninit in interface DataFitinit in class BasicApproxModelpublic boolean isCalibrated()
true if calibrated.
true if calibrated.public boolean isInitialized()
true if init() routine has been invoked.
true if initialized.public double quickCompute(double[] x)
BasicScalarFunction
quickCompute in interface ScalarFunctionquickCompute in class BasicScalarFunctionx - the given input.
public void quickCompute(cern.colt.matrix.DoubleMatrix2D mat,
cern.colt.matrix.DoubleMatrix1D outputs)
BasicScalarFunctionDoubleMatrix2D and exploiting optimized operations therein.
quickCompute in interface ScalarFunctionquickCompute in class BasicScalarFunctionmat - given matrix of inputs.outputs - vector to store the result.public void setBounds(Hypercube bounds)
VariableBoundsScalarFunction.
setBounds in interface VariableBoundssetBounds in class VariableDomainScalarFunctionbounds - the given bounds.public void setCalibrationThreshold(double calibrationThreshold)
calibrationThreshold - the given calibrationThreshold.public void setConsistencyThreshold(double consistencyThreshold)
consistencyThreshold - the given consistency threshold.public void setCorrelationFunctionType(BasicCorrelationFunction.TYPE correlationFunctionType)
correlationFunctionType - the given correlation function type.public void setPriorMean(double priorMean)
priorMean - the given prior mean.public void setPriorVariance(double priorVariance)
priorVariance - the given prior variance.public void setTau(double[] tau)
tau - the given length-scale parameters.public void setTauMax(double[] tauMax)
tauMax - the given upper bound on length-scale parameters.public void setTauMin(double[] tauMin)
tauMin - the given lower bound on length-scale parameters.protected ScalarFunction makeUncertaintyEstimator()
makeUncertaintyEstimator in class BasicApproxModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||