Exemplo n.º 1
0
 public function __construct($container)
 {
     parent::__construct($container);
     //All this screens are using this custom filters
     $this->buildFilters(array('bench' => array('default' => array('terasort'), 'type' => 'selectOne', 'label' => 'Benchmark:')));
     $this->whereClause = $this->filters->getWhereClause();
     $this->clusterCosts = Utils::generateCostsFilters($this->container->getDBUtils());
 }
Exemplo n.º 2
0
 public function __construct($container)
 {
     parent::__construct($container);
     $this->addOverrideFilters(array('upred' => array('type' => 'checkbox', 'default' => 0, 'label' => 'Use predictions', 'parseFunction' => function () {
         $choice = !isset($_GET['upred']) ? 0 : 1;
         return array('whereClause' => '', 'currentChoice' => $choice);
     }, 'filterGroup' => 'MLearning'), 'uobsr' => array('type' => 'checkbox', 'default' => 1, 'label' => 'Use observations', 'parseFunction' => function () {
         $choice = !isset($_GET['uobsr']) ? 0 : 1;
         return array('whereClause' => '', 'currentChoice' => $choice);
     }, 'filterGroup' => 'MLearning')));
     $this->filters->overrideFilterGroups(array('MLearning' => array('filters' => array('prediction_model', 'upred', 'uobsr', 'warning', 'outlier'))));
 }
Exemplo n.º 3
0
 public function __construct($container)
 {
     parent::__construct($container);
     //All this screens are using this custom filters
     $this->removeFilters(array('prediction_model', 'upred', 'uobsr', 'warning', 'outlier'));
 }
Exemplo n.º 4
0
 public function __construct($container)
 {
     parent::__construct($container);
     $this->removeFilters(array('upred', 'uobsr'));
 }