コード例 #1
0
 public FeatureCorrelationView()
     : base()
 {
     InitializeComponent();
     CorrelationCalculator = new FeatureCorrelationCalculator();
     correlationCache      = new FeatureCorrelationCache();
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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;
 }
コード例 #4
0
        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;
        }
コード例 #5
0
 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);
   }
 }
コード例 #6
0
 protected abstract void Content_CorrelationCalculationFinished(object sender, FeatureCorrelationCalculator.CorrelationCalculationFinishedArgs e);
コード例 #7
0
 public FeatureCorrelationView()
   : base() {
   InitializeComponent();
   CorrelationCalculator = new FeatureCorrelationCalculator();
   correlationCache = new FeatureCorrelationCache();
 }