public FeatureCorrelationView() : base() { InitializeComponent(); CorrelationCalculator = new FeatureCorrelationCalculator(); correlationCache = new FeatureCorrelationCache(); }
protected override void Content_CorrelationCalculationFinished(object sender, FeatureCorrelationCalculator.CorrelationCalculationFinishedArgs e) { if (InvokeRequired) { Invoke(new FeatureCorrelationCalculator.CorrelationCalculationFinishedHandler(Content_CorrelationCalculationFinished), sender, e); return; } correlationCache.SetCorrelation(e.Calculcator, e.Partition, e.Correlation); var correlation = new DoubleMatrix(e.Correlation, Content.Dataset.DoubleVariables, Content.Dataset.DoubleVariables); UpdateDataView(correlation); }
protected AbstractFeatureCorrelationView() { InitializeComponent(); dataView.FormatPattern = "0.000"; fcc = new FeatureCorrelationCalculator(); var calculators = ApplicationManager.Manager.GetInstances<IDependencyCalculator>(); var calcList = calculators.OrderBy(c => c.Name).Select(c => new { Name = c.Name, Calculator = c }).ToList(); correlationCalcComboBox.ValueMember = "Calculator"; correlationCalcComboBox.DisplayMember = "Name"; correlationCalcComboBox.DataSource = calcList; correlationCalcComboBox.SelectedItem = calcList.First(c => c.Calculator.GetType().Equals(typeof(PearsonsRDependenceCalculator))); partitionComboBox.DataSource = Partitions; partitionComboBox.SelectedItem = TRAININGSAMPLES; progressPanel.Visible = false; }
protected AbstractFeatureCorrelationView() { InitializeComponent(); dataView.FormatPattern = "0.000"; fcc = new FeatureCorrelationCalculator(); var calculators = ApplicationManager.Manager.GetInstances <IDependencyCalculator>(); var calcList = calculators.OrderBy(c => c.Name).Select(c => new { Name = c.Name, Calculator = c }).ToList(); correlationCalcComboBox.ValueMember = "Calculator"; correlationCalcComboBox.DisplayMember = "Name"; correlationCalcComboBox.DataSource = calcList; correlationCalcComboBox.SelectedItem = calcList.First(c => c.Calculator.GetType().Equals(typeof(PearsonsRDependenceCalculator))); partitionComboBox.DataSource = Partitions; partitionComboBox.SelectedItem = TRAININGSAMPLES; progressPanel.Visible = false; }
protected override void Content_CorrelationCalculationFinished(object sender, FeatureCorrelationCalculator.CorrelationCalculationFinishedArgs e) { if (InvokeRequired) { Invoke(new FeatureCorrelationCalculator.CorrelationCalculationFinishedHandler(Content_CorrelationCalculationFinished), sender, e); } else { correlationTimeframCache.SetTimeframeCorrelation(e.Calculcator, e.Partition, e.Variable, e.Correlation); var columnNames = Enumerable.Range(0, e.Correlation.GetLength(1)).Select(x => x.ToString()); var correlation = new DoubleMatrix(e.Correlation, columnNames, Content.Dataset.DoubleVariables); UpdateDataView(correlation); } }
protected abstract void Content_CorrelationCalculationFinished(object sender, FeatureCorrelationCalculator.CorrelationCalculationFinishedArgs e);