public RatingDataset(Data.Dataset dataset, RecSysContext context, ISplitter splitter) { _allSamples = context.Ratings.Where(r => r.DatasetId == dataset.Id); splitter.Split(dataset, context, ref _trainSamples, ref _testSamples, ref _evalSamples); }
public ItemRatingDataset(Data.Dataset dataset) { }
public RatingDataset(Data.Dataset dataset) { _allSamples = dataset.Ratings.AsQueryable(); _trainSamples = _testSamples = _evalSamples = Enumerable.Empty <Rating>().AsQueryable(); }
private void RemoveDatasetRecord(Dataset dataset) { RecSysContext.Datasets.Remove(dataset); RecSysContext.SaveChanges(); }