weka-kt

wekakt / com.github.stevenlang.wekakt.extensions / Instances

Instances

fun Instances(filePath: String, classIndex: Int = -1): Instances

Create a new Instances object based on a given filepath. Imitates constructor extension via function.

val iris = Instances("src/test/resources/datasets/iris.arff", classIndex = 4)

Parameters

filePath - Path to the dataset file

classIndex - The class index of the dataset

Return A new Instances object, loaded from the given file path