Changeset 275


Ignore:
Timestamp:
Jun 13, 2012 11:33:35 PM (8 years ago)
Author:
zollarsd
Message:

Fix bug in saving regularization value in GA

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/js/demo_ana_4.js

    r273 r275  
    202202  });
    203203
    204   // RegularizationMontecarlo Slider setup
     204  // Regularization Slider setup ( in % - divide by 100 later )
    205205  $("#regularization-min").attr('value', 0  );
    206206  $("#regularization-max").attr('value', 100);
  • trunk/user/demo_ana_4b.php

    r237 r275  
    247247    $payload->payload_add( 'seed',               $_POST['seed-value'] );
    248248    $payload->payload_add( 'montecarlo',         $_POST['montecarlo_value'] );
    249     $payload->payload_add( 'regularization',     $_POST['regularization-value'] );
     249
     250    // This one is in %; divide by 100
     251    $payload->payload_add( 'regularization',     $_POST['regularization-value'] / 100.0 );
     252
    250253    $payload->payload_add( 'ga_tinoise_option',  $_POST['ga_tinoise_option'] );
    251254    $payload->payload_add( 'ga_rinoise_option',  $_POST['ga_rinoise_option'] );
  • trunk/user/lib/demo_ana.lib.php

    r273 r275  
    418418echo<<<HTML
    419419      <fieldset>
    420         <legend>Regularization</legend>
     420        <legend>Regularization (in %)</legend>
    421421        <div class='newslider' id='regularization-slider'></div>
    422422        <br />
Note: See TracChangeset for help on using the changeset viewer.