Package ai.djl.basicdataset.tabular
Class TabularResults
- java.lang.Object
-
- ai.djl.basicdataset.tabular.TabularResults
-
public class TabularResults extends java.lang.ObjectA list of results from running a tabular model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTabularResults.TabularResultA single result corresponding to a single feature.
-
Constructor Summary
Constructors Constructor Description TabularResults(java.util.List<TabularResults.TabularResult> results)Constructs aTabularResultswith the given results.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TabularResults.TabularResult>getAll()Returns all of theTabularResults.TabularResult.TabularResults.TabularResultgetFeature(int index)Returns the result for the given feature index.TabularResults.TabularResultgetFeature(java.lang.String name)Returns the result for the given feature name.intsize()Returns the number of results.
-
-
-
Constructor Detail
-
TabularResults
public TabularResults(java.util.List<TabularResults.TabularResult> results)
Constructs aTabularResultswith the given results.- Parameters:
results- the results
-
-
Method Detail
-
getFeature
public TabularResults.TabularResult getFeature(int index)
Returns the result for the given feature index.- Parameters:
index- the feature/label index- Returns:
- the result
-
getFeature
public TabularResults.TabularResult getFeature(java.lang.String name)
Returns the result for the given feature name.- Parameters:
name- the feature/label name- Returns:
- the result
-
getAll
public java.util.List<TabularResults.TabularResult> 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
-
-