Home | Trees | Indices | Help |
|
---|
|
Split a dataset using an arbitrary custom rule.
The splitter is configured by passing a custom spitting rule (splitrule
)
to its constructor. Such a rule is basically a sequence of split
definitions. Every single element in this sequence results in excatly one
split generated by the Splitter. Each element is another sequence for
sequences of sample ids for each dataset that shall be generated in the
split.
Example:
Generate two splits. In the first split the second dataset contains all samples with sample attributes corresponding to either 0, 1 or 2. The first dataset of the first split contains all samples which are not split into the second dataset.
The second split yields three datasets. The first with all samples corresponding to sample attributes 1 and 2, the second dataset contains only samples with attrbiute 3 and the last dataset contains the samples with attribute 5 and 6.
CustomSplitter([(None, [0, 1, 2]), ([1,2], [3], [5, 6])])
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Jun 1 19:01:51 2008 | http://epydoc.sourceforge.net |