Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public ItemRatingDataset(Data.Dataset dataset)
 {
 }
Esempio n. 3
0
 public RatingDataset(Data.Dataset dataset)
 {
     _allSamples   = dataset.Ratings.AsQueryable();
     _trainSamples = _testSamples = _evalSamples = Enumerable.Empty <Rating>().AsQueryable();
 }
Esempio n. 4
0
 private void RemoveDatasetRecord(Dataset dataset)
 {
     RecSysContext.Datasets.Remove(dataset);
     RecSysContext.SaveChanges();
 }