Package pulse.search.statistics
Class RegularisedLeastSquares
-
- All Implemented Interfaces:
Serializable,Descriptive,Reflexive
public class RegularisedLeastSquares extends SumOfSquares
This is an experimental feature. The objective function here is equal to the ordinary least-square (OLS) plus a penalising term proportional to the squared length of a search vector. This way, search vectors of lower dimensionality are favoured.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RegularisedLeastSquares()RegularisedLeastSquares(RegularisedLeastSquares rls)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OptimiserStatisticcopy()voidevaluate(GeneralTask t)Calculates the sum of squared deviations usingcurveas reference.StringgetDescriptor()If not null, will return the prefix, otherwise calls the superclass method.doublegetLambda()The lambda is the regularisation strength.voidsetLambda(double lambda)-
Methods inherited from class pulse.search.statistics.SumOfSquares
variance
-
Methods inherited from class pulse.search.statistics.OptimiserStatistic
getSelectedOptimiserDescriptor, setSelectedOptimiserDescriptor
-
Methods inherited from class pulse.search.statistics.ResidualStatistic
calculateResiduals, calculateResiduals, calculateResiduals, equals, getResiduals, getStatistic, getTimeSequence, hashCode, residualsArray, set, setStatistic
-
Methods inherited from class pulse.util.PropertyHolder
addListener, areDetailsHidden, data, describe, firePropertyChanged, getListeners, getPrefix, ignoreSiblings, initListeners, isListedNumericType, isListedParameter, listedKeywords, listedTypes, numericData, parameterListChanged, removeListeners, setPrefix, updateProperties, updateProperty
-
Methods inherited from class pulse.util.Accessible
accessibleChildren, genericProperties, genericProperty, numericProperties, numericProperty, property, update, update
-
Methods inherited from class pulse.util.UpwardsNavigable
addHierarchyListener, getHierarchyListeners, getParent, identify, removeHierarchyListener, removeHierarchyListeners, setParent, specificAncestor, tellParent
-
-
-
-
Constructor Detail
-
RegularisedLeastSquares
public RegularisedLeastSquares()
-
RegularisedLeastSquares
public RegularisedLeastSquares(RegularisedLeastSquares rls)
-
-
Method Detail
-
getLambda
public double getLambda()
The lambda is the regularisation strength.- Returns:
- the lambda factor.
-
setLambda
public void setLambda(double lambda)
-
evaluate
public void evaluate(GeneralTask t)
Description copied from class:SumOfSquaresCalculates the sum of squared deviations usingcurveas reference.This calculates , where is the temperature value corresponding to the
timeat indexifor the referencecurve. Note that the time corresponds to the reference's time list, which generally does not match to that of this heating curve. The is the interpolated value.- Overrides:
evaluatein classSumOfSquares- Parameters:
t- The task containing the reference and calculated curves- See Also:
calculateResiduals()
-
getDescriptor
public String getDescriptor()
Description copied from class:PropertyHolderIf not null, will return the prefix, otherwise calls the superclass method.- Overrides:
getDescriptorin classSumOfSquares- Returns:
- the descriptor
- See Also:
Group.getSimpleName()
-
copy
public OptimiserStatistic copy()
- Overrides:
copyin classSumOfSquares
-
-