Package org.tribuo.regression
Class MutableRegressionInfo
java.lang.Object
org.tribuo.regression.RegressionInfo
org.tribuo.regression.MutableRegressionInfo
- All Implemented Interfaces:
Serializable
,MutableOutputInfo<Regressor>
,OutputInfo<Regressor>
A
MutableOutputInfo
for Regressor
s. All observed Regressors must
contain the same named dimensions.- See Also:
-
Field Summary
Fields inherited from class org.tribuo.regression.RegressionInfo
countMap, maxMap, meanMap, minMap, overallCount, sumSquaresMap, unknownCount
-
Constructor Summary
ConstructorDescriptionConstructs a mutable copy of the supplied regression info. -
Method Summary
Methods inherited from class org.tribuo.regression.RegressionInfo
generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getMax, getMean, getMin, getUnknownCount, getVariance, outputCountsIterable, size
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.tribuo.OutputInfo
generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getUnknownCount, outputCountsIterable, size
-
Constructor Details
-
MutableRegressionInfo
Constructs a mutable copy of the supplied regression info.- Parameters:
info
- The info to copy.
-
-
Method Details
-
observe
Description copied from interface:MutableOutputInfo
Records an output value or statistics thereof.- Specified by:
observe
in interfaceMutableOutputInfo<Regressor>
- Parameters:
output
- The observed output.
-
clear
public void clear()Description copied from interface:MutableOutputInfo
Clears the OutputInfo, removing all things it's observed.- Specified by:
clear
in interfaceMutableOutputInfo<Regressor>
-
copy
Description copied from interface:OutputInfo
Generates a copy of this OutputInfo, including it's mutability.- Specified by:
copy
in interfaceOutputInfo<Regressor>
- Specified by:
copy
in classRegressionInfo
- Returns:
- A copy of the OutputInfo.
-
toString
-
toReadableString
Description copied from interface:OutputInfo
Generates a String form of this OutputInfo.This String can contain newlines, tabs and other formatting.
- Specified by:
toReadableString
in interfaceOutputInfo<Regressor>
- Returns:
- A formatted String representing this OutputInfo.
-