Class MutableRegressionInfo
java.lang.Object
org.tribuo.regression.RegressionInfo
org.tribuo.regression.MutableRegressionInfo
- All Implemented Interfaces:
Serializable,MutableOutputInfo<Regressor>,OutputInfo<Regressor>,ProtoSerializable<org.tribuo.protos.core.OutputDomainProto>
A
MutableOutputInfo for Regressors. 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, unknownCountFields inherited from interface org.tribuo.protos.ProtoSerializable
DESERIALIZATION_METHOD_NAME, PROVENANCE_SERIALIZER -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a mutable copy of the supplied regression info. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the OutputInfo, removing all things it's observed.copy()Generates a copy of this OutputInfo, including it's mutability.static MutableRegressionInfodeserializeFromProto(int version, String className, com.google.protobuf.Any message) Deserialization factory.booleaninthashCode()voidRecords an output value or statistics thereof.org.tribuo.protos.core.OutputDomainProtoSerializes this object to a protobuf.Generates a String form of this OutputInfo.toString()Methods inherited from class org.tribuo.regression.RegressionInfo
generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getMax, getMean, getMin, getUnknownCount, getVariance, outputCountsIterable, sizeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-
deserializeFromProto
public static MutableRegressionInfo deserializeFromProto(int version, String className, com.google.protobuf.Any message) throws com.google.protobuf.InvalidProtocolBufferException Deserialization factory.- Parameters:
version- The serialized object version.className- The class name.message- The serialized data.- Returns:
- The deserialized object.
- Throws:
com.google.protobuf.InvalidProtocolBufferException- If the protobuf could not be parsed from themessage.
-
serialize
public org.tribuo.protos.core.OutputDomainProto serialize()Description copied from interface:ProtoSerializableSerializes this object to a protobuf.- Specified by:
serializein interfaceProtoSerializable<org.tribuo.protos.core.OutputDomainProto>- Returns:
- The protobuf.
-
observe
Description copied from interface:MutableOutputInfoRecords an output value or statistics thereof.- Specified by:
observein interfaceMutableOutputInfo<Regressor>- Parameters:
output- The observed output.
-
clear
public void clear()Description copied from interface:MutableOutputInfoClears the OutputInfo, removing all things it's observed.- Specified by:
clearin interfaceMutableOutputInfo<Regressor>
-
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.
-
equals
-
hashCode
-