Class IrisFlower
- java.lang.Object
-
- ai.djl.onnxruntime.zoo.tabular.softmax_regression.IrisFlower
-
public class IrisFlower extends java.lang.ObjectA class holds the iris flower features.
-
-
Constructor Summary
Constructors Constructor Description IrisFlower(float sepalLength, float sepalWidth, float petalLength, float petalWidth)Constructs a newIrisFlowerinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetPetalLength()Returns the petal length.floatgetPetalWidth()Returns the petal width.floatgetSepalLength()Returns the sepal length.floatgetSepalWidth()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
-
-