Class ImmutableRegressionInfo
java.lang.Object
org.tribuo.regression.RegressionInfo
org.tribuo.regression.ImmutableRegressionInfo
- All Implemented Interfaces:
Serializable,Iterable<com.oracle.labs.mlrg.olcut.util.Pair<Integer, Regressor>>,ImmutableOutputInfo<Regressor>,OutputInfo<Regressor>
public class ImmutableRegressionInfo
extends RegressionInfo
implements ImmutableOutputInfo<Regressor>
A
ImmutableOutputInfo for Regressors.- See Also:
-
Field Summary
Fields inherited from class org.tribuo.regression.RegressionInfo
countMap, maxMap, meanMap, minMap, overallCount, sumSquaresMap, unknownCount -
Method Summary
Modifier and TypeMethodDescriptioncopy()Generates a copy of this OutputInfo, including it's mutability.Returns a set containing a Regressor for each dimension with the minimum value observed.intReturn the id number associated with this output, or -1 if the output is unknown.getOutput(int id) Returns the output associated with this id, or null if the id is unknown.longReturns the total number of observed outputs seen by this ImmutableOutputInfo.iterator()Generates a String form of this OutputInfo.toString()Methods inherited from class org.tribuo.regression.RegressionInfo
generateImmutableOutputInfo, generateMutableOutputInfo, getMax, getMean, getMin, getUnknownCount, getVariance, outputCountsIterable, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.tribuo.OutputInfo
generateImmutableOutputInfo, generateMutableOutputInfo, getUnknownCount, outputCountsIterable, size
-
Method Details
-
getDomain
Description copied from class:RegressionInfoReturns a set containing a Regressor for each dimension with the minimum value observed.- Specified by:
getDomainin interfaceOutputInfo<Regressor>- Overrides:
getDomainin classRegressionInfo- Returns:
- A set of Regressors, each with one active dimension.
-
getID
Description copied from interface:ImmutableOutputInfoReturn the id number associated with this output, or -1 if the output is unknown.- Specified by:
getIDin interfaceImmutableOutputInfo<Regressor>- Parameters:
output- An output- Returns:
- A non-negative integer if the output is known, or -1 if the output is unknown.
-
getOutput
Description copied from interface:ImmutableOutputInfoReturns the output associated with this id, or null if the id is unknown.- Specified by:
getOutputin interfaceImmutableOutputInfo<Regressor>- Parameters:
id- A non-negative integer.- Returns:
- An output object or null if it's unknown.
-
getTotalObservations
Description copied from interface:ImmutableOutputInfoReturns the total number of observed outputs seen by this ImmutableOutputInfo.- Specified by:
getTotalObservationsin interfaceImmutableOutputInfo<Regressor>- Returns:
- The number of observed outputs.
-
copy
Description copied from interface:OutputInfoGenerates a copy of this OutputInfo, including it's mutability.- Specified by:
copyin interfaceOutputInfo<Regressor>- Specified by:
copyin classRegressionInfo- Returns:
- A copy of the OutputInfo.
-
toString
-
toReadableString
Description copied from interface:OutputInfoGenerates a String form of this OutputInfo.This String can contain newlines, tabs and other formatting.
- Specified by:
toReadableStringin interfaceOutputInfo<Regressor>- Returns:
- A formatted String representing this OutputInfo.
-
iterator
-