Ejemplo n.º 1
0
        protected async Task TearDown(IMLOpsDbContext context)
        {
            var experiments       = context.Experiments;
            var runs              = context.Runs;
            var metrics           = context.Metrics;
            var hyperParameters   = context.HyperParameters;
            var confusionMatrices = context.ConfusionMatrices;
            var data              = context.Data;
            var runArtifacts      = context.RunArtifacts;
            var registeredModels  = context.RegisteredModels;

            context.Experiments.RemoveRange(experiments);
            context.Runs.RemoveRange(runs);
            context.Metrics.RemoveRange(metrics);
            context.HyperParameters.RemoveRange(hyperParameters);
            context.ConfusionMatrices.RemoveRange(confusionMatrices);
            context.Data.RemoveRange(data);
            context.RunArtifacts.RemoveRange(runArtifacts);
            context.RegisteredModels.RemoveRange(registeredModels);

            await context.SaveChangesAsync();
        }
Ejemplo n.º 2
0
 protected async Task TearDown(IMLOpsDbContext context)
 {
     context.Experiments.RemoveRange(context.Experiments);
     await context.SaveChangesAsync();
 }