wekakt / com.github.stevenlang.wekakt.extensions / weka.core.Instances
| Name | Summary |
|---|---|
| attributes | val Instances.attributes: List<Attribute>List of attributes. |
| classIndex | var Instances.classIndex: IntClass index. |
| filter | fun <T : Filter> Instances.filter(filter: T, body: T.() -> Unit = {}): InstancesApply a given filter to this set of instances. |
| get | operator fun Instances.get(rowIndex: Int): InstanceGet the instance at index rowIndex. operator fun Instances.get(rowIndex: Int, attributeIndex: Int): DoubleGet the value at position (rowIndex,attributeIndex). operator fun Instances.get(rowIndex: Int, attribute: Attribute): DoubleGet the value at position (rowIndex,attribute). operator fun Instances.get(rangeRows: IntRange, rangeAttributes: IntRange): InstancesSlice the given range of attributes out of the dataset. |
| isEqualTo | fun Instances.isEqualTo(other: Any?): BooleanCheck if this instances is equal to another instances object. |
| numAttributes | val Instances.numAttributes: IntNumber of attributes. |
| removeAttribute | fun Instances.removeAttribute(attIndex: Int): InstancesRemove a given attribute by index. |
| removeClassAttribute | fun Instances.removeClassAttribute(): InstancesRemove the class attribute of this dataset. |
| set | operator fun Instances.set(rowIndex: Int, instance: Instance): InstanceSet the instance at position rowIndex. operator fun Instances.set(rowIndex: Int, attributeIndex: Int, value: Number): UnitSet the value at position (rowIndex,attributeIndex). operator fun Instances.set(rowIndex: Int, attribute: Attribute, value: Number): UnitSet the value at position (rowIndex,attribute). operator fun Instances.set(rowIndex: Int, attributeIndex: Int, value: String): UnitSet string value at position (rowIndex,attributeIndex). operator fun Instances.set(rowIndex: Int, attribute: Attribute, value: String): UnitSet string value at position (rowIndex,attribute). |
| slice | fun Instances.slice(rangeRows: IntRange, rangeAttributes: IntRange): InstancesSlice the given range of attributes out of the dataset. |
| sliceAttributes | fun Instances.sliceAttributes(range: IntRange): InstancesSlice the given range of attributes out of the dataset. fun Instances.sliceAttributes(vararg indices: Int): InstancesGet the subset of attributes with the given indices. |
| sliceRows | fun Instances.sliceRows(range: IntRange): InstancesSlice the given range of rows out of the dataset. fun Instances.sliceRows(vararg indices: Int): InstancesGet the subset of rows with the given indices. |
| split | fun Instances.split(testPercentage: Double): Pair<Instances, Instances>Split this dataset into two separate sets with a given testPercentage. |