EClassificationDataset::SplitDatasetForSegmentation

Splits the dataset in two parts for a supervised segmenter. The two parts are to be used for training and validation respectively.

Namespace: Euresys::Open_eVision::EasyDeepLearning

[C++]

void SplitDatasetForSegmentation(
   EClassificationDataset& d1,
   EClassificationDataset& d2,
   float proportion,
   bool random
)

Parameters

d1

First part of the dataset

d2

Second part of the dataset

proportion

Proportion of image of each class to put into the first part. The remaining images are put in d2

random

Randomly sample the images.

Remarks

The method ensures that all the segmentation labels are represented in d1. Thus, even when the parameter random is set to false, the images in d1 and d2 can be ordered differently than they were in the original dataset.

EClassificationDataset.SplitDatasetForSegmentation

Splits the dataset in two parts for a supervised segmenter. The two parts are to be used for training and validation respectively.

Namespace: Euresys.Open_eVision.EasyDeepLearning

[C#]

void SplitDatasetForSegmentation(
   Euresys.Open_eVision.EasyDeepLearning.EClassificationDataset d1,
   Euresys.Open_eVision.EasyDeepLearning.EClassificationDataset d2,
   float proportion,
   bool random
)

Parameters

d1

First part of the dataset

d2

Second part of the dataset

proportion

Proportion of image of each class to put into the first part. The remaining images are put in d2

random

Randomly sample the images.

Remarks

The method ensures that all the segmentation labels are represented in d1. Thus, even when the parameter random is set to false, the images in d1 and d2 can be ordered differently than they were in the original dataset.