Method Split
Split(AtomicReader, Directory, Directory, Directory, Analyzer, String[])
Split a given index into 3 indexes for training, test and cross validation tasks respectively
Declaration
public virtual void Split(AtomicReader originalIndex, Directory trainingIndex, Directory testIndex, Directory crossValidationIndex, Analyzer analyzer, params string[] fieldNames)
Parameters
Type | Name | Description |
---|---|---|
AtomicReader | originalIndex | an AtomicReader on the source index |
Directory | trainingIndex | a Directory used to write the training index |
Directory | testIndex | a Directory used to write the test index |
Directory | crossValidationIndex | a Directory used to write the cross validation index |
Analyzer | analyzer | Analyzer used to create the new docs |
System.String[] | fieldNames | names of fields that need to be put in the new indexes or |