getPart {FKBL} | R Documentation |
It creates automatically a set of partitions for the given train data. Detects the maximum and minimum value of a given variable across all the cases of the problem, and sets them as the limits of the partition (the minimum as the lowest limit, the maximum as the highest limit. Then it divides the partition in the given numPart.
getPart(train,numPart)
Takes the train data and the number of partitions.
train |
The train data. |
numPart |
The number of divisions. |
Returns the set of partitions created.
The fourth partition created at the example is:
begin{ExampleCode}
[[4]]
[[4]]$numMin
[1] 0.0591831
[[4]]$numMax
[1] 0.893645
[[4]]$part
[1] 0.0591831 0.2677986 0.4764140 0.6850295 0.8936450
end{ExampleCode}
The minimum, 0.0591831, is the minimum value of the 4th variable. And the maximum, 0.8936450, is the maximum value of the 4th variable. The values among them are uniformly distributed between them.
data(trainM) out<-getPart(trainM,5) print(out)