Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/15/16 17:42:35 (9 years ago)
Author:
aballeit
Message:

#2283 UCT parameter c -> refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation/MainWindow.xaml.cs

    r13492 r13518  
    11using System.Collections.ObjectModel;
     2using System.Globalization;
    23using System.Security.AccessControl;
    34using System.Text;
     
    192193            if (policy == typeof(UCTPolicy))
    193194            {
    194                 policyInstance = new UCTPolicy(vm.Epsylon);
     195                policyInstance = new UCTPolicy(vm.PolicyParameter);
    195196            }
    196197            else if (policy == typeof(ThresholdAscentPolicy))
     
    204205            else if (policy == typeof(EpsGreedyPolicy))
    205206            {
    206                 policyInstance = new EpsGreedyPolicy(vm.Epsylon);
     207                policyInstance = new EpsGreedyPolicy(vm.PolicyParameter);
    207208            }
    208209            else
     
    457458            {
    458459                TextBoxEpsylon.Visibility = Visibility.Visible;
    459                 TextBoxEpsylon.Text = Math.Sqrt(1).ToString();
    460                 TextBlockEpsylon.Text = "Epsylon";
     460                vm.PolicyParameter = 0.5;               
     461                TextBlockEpsylon.Text = "Epsilon";
    461462                TextBlockEpsylon.Visibility = Visibility.Visible;
    462463            }
     
    464465            {
    465466                TextBoxEpsylon.Visibility = Visibility.Visible;
    466                 TextBoxEpsylon.Text = Math.Sqrt(2).ToString();
     467                vm.PolicyParameter = Math.Sqrt(2);
    467468                TextBlockEpsylon.Text = "c";
    468469                TextBlockEpsylon.Visibility = Visibility.Visible;
Note: See TracChangeset for help on using the changeset viewer.