Package io.trino.plugin.ml
Class EvaluateClassifierPredictionsStateFactory.GroupedEvaluateClassifierPredictionsState
java.lang.Object
io.trino.plugin.ml.EvaluateClassifierPredictionsStateFactory.GroupedEvaluateClassifierPredictionsState
- All Implemented Interfaces:
EvaluateClassifierPredictionsState,AccumulatorState,GroupedAccumulatorState
- Enclosing class:
- EvaluateClassifierPredictionsStateFactory
public static class EvaluateClassifierPredictionsStateFactory.GroupedEvaluateClassifierPredictionsState
extends Object
implements GroupedAccumulatorState, EvaluateClassifierPredictionsState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMemoryUsage(int memory) voidensureCapacity(long size) longvoidsetGroupId(long groupId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.spi.function.AccumulatorState
copy
-
Constructor Details
-
GroupedEvaluateClassifierPredictionsState
public GroupedEvaluateClassifierPredictionsState()
-
-
Method Details
-
setGroupId
public void setGroupId(long groupId) - Specified by:
setGroupIdin interfaceGroupedAccumulatorState
-
addMemoryUsage
public void addMemoryUsage(int memory) - Specified by:
addMemoryUsagein interfaceEvaluateClassifierPredictionsState
-
getTruePositives
- Specified by:
getTruePositivesin interfaceEvaluateClassifierPredictionsState
-
getFalsePositives
- Specified by:
getFalsePositivesin interfaceEvaluateClassifierPredictionsState
-
getFalseNegatives
- Specified by:
getFalseNegativesin interfaceEvaluateClassifierPredictionsState
-
ensureCapacity
public void ensureCapacity(long size) - Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
getEstimatedSize
public long getEstimatedSize()- Specified by:
getEstimatedSizein interfaceAccumulatorState
-