Class IrisFlower
- java.lang.Object
-
- ai.djl.onnxruntime.zoo.tabular.softmax_regression.IrisFlower
-
public class IrisFlower extends java.lang.Object
A class holds the iris flower features.
-
-
Constructor Summary
Constructors Constructor Description IrisFlower(float sepalLength, float sepalWidth, float petalLength, float petalWidth)
Constructs a newIrisFlower
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getPetalLength()
Returns the petal length.float
getPetalWidth()
Returns the petal width.float
getSepalLength()
Returns the sepal length.float
getSepalWidth()
Returns the sepal width.
-
-
-
Method Detail
-
getSepalLength
public float getSepalLength()
Returns the sepal length.- Returns:
- the sepal length
-
getSepalWidth
public float getSepalWidth()
Returns the sepal width.- Returns:
- the sepal width
-
getPetalLength
public float getPetalLength()
Returns the petal length.- Returns:
- the petal length
-
getPetalWidth
public float getPetalWidth()
Returns the petal width.- Returns:
- the petal width
-
-