Record Class Hyphen
java.lang.Object
java.lang.Record
smile.datasets.Hyphen
- Record Components:
train- training data.test- testing data.
public record Hyphen(BinarySparseSequenceDataset train, BinarySparseSequenceDataset test)
extends Record
Hyphen sequence dataset.
-
Constructor Summary
ConstructorsConstructorDescriptionHyphen()Constructor.Constructor.Hyphen(BinarySparseSequenceDataset train, BinarySparseSequenceDataset test) Creates an instance of aHyphenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.test()Returns the value of thetestrecord component.final StringtoString()Returns a string representation of this record class.train()Returns the value of thetrainrecord component.
-
Constructor Details
-
Hyphen
-
Hyphen
Constructor.- Parameters:
trainDataPath- the path to training data file.testDataPath- the path to testing data file.- Throws:
IOException- when fails to read the file.
-
Hyphen
Creates an instance of aHyphenrecord class.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
train
-
test
-