private Dataset LoadTrainingData(DataDense trainData) { if (trainData == null) { throw new ArgumentNullException(nameof(trainData)); } trainData.Validate(); // TODO: not parallelised, better off to concat data and pass in as a single matrix? Dataset dtrain = CreateDatasetFromSamplingData(trainData, Common, Dataset); return(dtrain); }
private Dataset LoadValidationData(Dataset dtrain, DataDense validData) { if (validData == null) { throw new ArgumentNullException(nameof(validData)); } validData.Validate(); var dvalid = new Dataset(validData.Features , validData.NumColumns , Common , Dataset , validData.Labels , validData.Weights , validData.Groups , dtrain ); return(dvalid); }