Class IrisFlower
java.lang.Object
ai.djl.onnxruntime.zoo.tabular.softmax_regression.IrisFlower
A class holds the iris flower features.
-
Constructor Summary
ConstructorsConstructorDescriptionIrisFlower(float sepalLength, float sepalWidth, float petalLength, float petalWidth) Constructs a newIrisFlowerinstance. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the petal length.floatReturns the petal width.floatReturns the sepal length.floatReturns the sepal width.
-
Constructor Details
-
IrisFlower
public IrisFlower(float sepalLength, float sepalWidth, float petalLength, float petalWidth) Constructs a newIrisFlowerinstance.- Parameters:
sepalLength- the sepal lengthsepalWidth- the sepal widthpetalLength- the petal lengthpetalWidth- the petal width
-
-
Method Details
-
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
-