weka-kt

wekakt / com.github.stevenlang.wekakt.extensions / weka.core.Instances / removeAttribute

removeAttribute

fun Instances.removeAttribute(attIndex: Int): Instances

Remove a given attribute by index.

val iris: Instances = getIris()

// Remove the third attribute
val irisReduced: Instances = iris.removeAttribute(3)

Parameters

attIndex - Attribute index

Return This data without the specified attribute