I was looking thorugh the forum and i found it http://genie.sis.pitt.edu/forum/viewtop ... ight=cross
I assume any changes since that post so I started to create my own crossvalidation function. The problem is that I was thinking to do something like the following:
Code: Select all
DSL_dataset m_dataset;
m_dataset.ReadFile(filename);
DSL_dataset learnDataset=m_dataset;
DSL_dataset trainDataset=m_dataset;
for indices in train
learnDataset->RemoveRecord(indice)
for indices not in train
trainDataset->RemoveRecord(indice)
And secondly as I'm removing records while indexing next ones, those indices are not valid anymore.
The only solution I can imagine is to export both data to text files, and then read each one on each dataset but it's sound not very nice
Any help?