Beispiel #1
0
        private void estimateAlgorithmsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                AlgorithmEstimator Estimator = new AlgorithmEstimator(Core, "hash.csv", "scores.csv");

                List <EstimationResult> Results = new List <EstimationResult>();

                Results.Add(Estimator.EstimateAlgorithm <SearchByRandom>());
                Results.Add(Estimator.EstimateAlgorithm <SearchByTempoDistribution>());

                SimilarityOptionsVariator OptionsVariator = new SimilarityOptionsVariator();
                Results.AddRange(OptionsVariator.GetNextOptions().Select(Estimator.EstimateAlgorithm <SearchBySimilarity>));

                EstimationResultsForm ResultsForm = new EstimationResultsForm();
                ResultsForm.SetResults(Results);
                ResultsForm.Show();
            }
            catch (Exception E)
            {
                Logger.InfoException("Estimation failed.", E);

                ShowError(E);
            }
        }
Beispiel #2
0
        private void estimateAlgorithmsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                AlgorithmEstimator Estimator = new AlgorithmEstimator(Core, "hash.csv", "scores.csv");

                List<EstimationResult> Results = new List<EstimationResult>();

                Results.Add(Estimator.EstimateAlgorithm<SearchByRandom>());
                Results.Add(Estimator.EstimateAlgorithm<SearchByTempoDistribution>());

                SimilarityOptionsVariator OptionsVariator = new SimilarityOptionsVariator();
                Results.AddRange(OptionsVariator.GetNextOptions().Select(Estimator.EstimateAlgorithm<SearchBySimilarity>));

                EstimationResultsForm ResultsForm = new EstimationResultsForm();
                ResultsForm.SetResults(Results);
                ResultsForm.Show();
            }
            catch (Exception E)
            {
                Logger.InfoException("Estimation failed.", E);

                ShowError(E);
            }
        }