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
Modifier and TypeClassDescriptionstatic final class
A single result corresponding to a single feature. -
Constructor Summary
ConstructorDescriptionTabularResults
(List<TabularResults.TabularResult> results) Constructs aTabularResults
with 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.int
size()
Returns the number of results.
-
Constructor Details
-
TabularResults
Constructs aTabularResults
with 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
-