Package ai.djl.basicdataset.tabular
Class TabularResults
java.lang.Object
ai.djl.basicdataset.tabular.TabularResults
A list of results from running a tabular model.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA single result corresponding to a single feature. -
Constructor Summary
ConstructorsConstructorDescriptionTabularResults(List<TabularResults.TabularResult> results) Constructs aTabularResultswith the given results. -
Method Summary
Modifier and TypeMethodDescriptiongetAll()Returns all of theTabularResults.TabularResult.getFeature(int index) Returns the result for the given feature index.getFeature(String name) Returns the result for the given feature name.intsize()Returns the number of results.
-
Constructor Details
-
TabularResults
Constructs aTabularResultswith the given results.- Parameters:
results- the results
-
-
Method Details
-
getFeature
Returns the result for the given feature index.- Parameters:
index- the feature/label index- Returns:
- the result
-
getFeature
Returns the result for the given feature name.- Parameters:
name- the feature/label name- Returns:
- the result
-
getAll
Returns all of theTabularResults.TabularResult.- Returns:
- all of the
TabularResults.TabularResult
-
size
public int size()Returns the number of results.- Returns:
- the number of results
-