Record Class CsvDataLoader.RegressionData.Row
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.problems.grammar.CsvDataLoader.RegressionData.Row
- Enclosing class:
CsvDataLoader.RegressionData
public static record CsvDataLoader.RegressionData.Row(Map<String,Double> features, double target)
extends Record
One regression row.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.doubletarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Row
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
features
-
target
public double target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-