';
echo $this->Form->input('DecayingModel.parameters.lifetime', array(
'label' => sprintf('
%s [%s]: %s', __('Lifetime'), __('days'), __('Lifetime of the attribute, or time after which the score will be 0')),
'type' => 'number',
'min' => 0,
'title' => __('The end of life of the indicator'),
'class' => 'form-control span6',
'div' => 'clear',
'value' => isset($this->request->data['DecayingModel']['parameters']['lifetime']) ? $this->request->data['DecayingModel']['parameters']['lifetime'] : ''
));
echo $this->Form->input('DecayingModel.parameters.decay_speed', array(
'label' => sprintf('
%s [%s]: %s', __('Decay speed'), __('float'), __('Decay speed at which an indicator will loose score')),
'type' => 'number',
'min' => 0,
'step' => 0.01,
'title' => __('The decay speed of the indicator'),
'class' => 'form-control span6',
'div' => 'clear',
'value' => isset($this->request->data['DecayingModel']['parameters']['decay_speed']) ? $this->request->data['DecayingModel']['parameters']['decay_speed'] : ''
));
echo $this->Form->input('DecayingModel.parameters.threshold', array(
'label' => sprintf('
%s [%s]: %s', __('Cutoff threshold'), __('float'), __('Cutoff value at which an indicator will be marked as decayed instead of 0')),
'type' => 'number',
'min' => 0,
'title' => __('The model threshold of the indicator'),
'class' => 'form-control span6',
'div' => 'clear',
'value' => isset($this->request->data['DecayingModel']['parameters']['threshold']) ? $this->request->data['DecayingModel']['parameters']['threshold'] : ''
));
echo $this->Form->input('DecayingModel.parameters.default_base_score', array(
'label' => sprintf('
%s [%s]: %s', __('Default base_score'), __('float'), __('Default base_score value if no tags are attached to the indicator')),
'type' => 'number',
'min' => 0,
'max' => 100,
'title' => __('The model default base_score of the indicator'),
'class' => 'form-control span6',
'div' => 'clear',
'value' => isset($this->request->data['DecayingModel']['parameters']['default_base_score']) ? $this->request->data['DecayingModel']['parameters']['default_base_score'] : ''
));
echo '
';
echo '
';
echo $this->Form->textarea('DecayingModel.parameters.base_score_config', array(
'class' => 'form-control span6',
'cols' => '10',
'value' => isset($this->request->data['DecayingModel']['parameters']['base_score_config']) ? json_encode($this->request->data['DecayingModel']['parameters']['base_score_config']) : '{}'
));
echo '
';
echo '