public static IServiceCollection AddReporting(this IServiceCollection services, Action <ReportingOptions> configureOptions) { var options = new ReportingOptions(); configureOptions?.Invoke(options); options.Validate(); services.AddSingleton <IReportGenerator, ReportGenerator>(); services.AddSingleton <IRenderService, ReportingService>(_ => new ReportingService(options.JsReportServiceUri.ToString())); return(services); }
private ReportingOptions GetReportingOptions() { ReportingOptions options = new ReportingOptions(); options.ShouldDisplayPlots = ShowPlotsCheckbox.IsChecked.Value; options.ShouldSavePlots = SavePlotsCheckbox.IsChecked.Value; options.ShouldSaveRunInfos = SaveRunInfosCheckbox.IsChecked.Value; options.ShouldSerialize = SerializeCheckbox.IsChecked.Value; return(options); }
public async Task ReportingTmLeverageData() { var groupShareClient = Helper.GsClient; var options = new ReportingOptions { Status = 7 }; var reportingData = await groupShareClient.Project.ReportingTmLeverageData(options); Assert.True(reportingData != null); }
public async Task ReportingTasksReportData() { var groupShareClient = await Helper.GetGroupShareClient(); var options = new ReportingOptions { Status = 7 }; var reportingData = await groupShareClient.Project.ReportingTasksReportData(options); Assert.True(reportingData != null); }
private void StartButtonClick(object sender, RoutedEventArgs e) { ToggleSensitiveGUIParts(false); SetResultsLink(false, null); ToggleAutomationRelatedSettings(true); // user can prepare params for the next run runsPerSettings = int.Parse(RunsTextBox.Text); bool bias = (YesNo)BiasCombobox.SelectedItem == YesNo.Yes; int pcaDimensions = 0; int.TryParse(PCA.Text, out pcaDimensions); // TODO: test float trainSetPercentage = float.Parse(TrainSetPercentage.Text, CultureInfo.InvariantCulture); int outputCount = int.Parse(OutputCount.Text); NetworkType networkType = (NetworkType)NetworkTypeCombobox.SelectedItem; PartIIProblemType problemType = csvLines[0].Count == 1 ? PartIIProblemType.CTS : PartIIProblemType.Stock; ReportingOptions reportingOptions = GetReportingOptions(); if (settingsToRun.Count == 0) { settingsToRun = GetLearningSettingsFromUI(); } SetPlottingMethod(problemType); eid = new EngineInitData(); eid.ErrorScale = ERROR_SCALE; eid.DiscardWorstFactor = DISCARD_FACTOR; eid.TrainSetPercentage = trainSetPercentage; eid.CtsPrevValuesCount = 1; // always 1 eid.OutputCount = outputCount; eid.InputCount = problemType == PartIIProblemType.CTS ? 1 : csvLines[0].Count - outputCount; if (pcaDimensions > 0) { eid.InputCount = Math.Min(pcaDimensions, eid.InputCount); } eid.PcaDimensions = pcaDimensions; eid.RunsPerSettings = runsPerSettings; eid.UseBiases = bias; eid.PlotAgainstInput = plotAgainstInput; eid.NetworkType = networkType; eid.ProblemType = problemType; eid.ReportingOptions = reportingOptions; eid.CsvLines = csvLines; eid.SettingsToRun = settingsToRun; eid.DataSetName = dataSetPath; eid.ParametersFileName = paramsFileName; ConfirmReportingSettings(); CreateResultDirectories(DateTime.Now); worker = new BackgroundWorker(); worker.DoWork += worker_DoWork; worker.RunWorkerCompleted += worker_RunWorkerCompleted; worker.RunWorkerAsync(); }