php-ml/src/Phpml/Helper/Trainable.php

29 lines
404 B
PHP
Raw Normal View History

2016-04-16 19:24:40 +00:00
<?php
2016-04-16 19:41:37 +00:00
declare (strict_types = 1);
2016-04-16 19:24:40 +00:00
2016-05-07 21:04:58 +00:00
namespace Phpml\Helper;
2016-04-16 19:24:40 +00:00
trait Trainable
{
/**
* @var array
*/
private $samples;
/**
* @var array
*/
private $labels;
/**
* @param array $samples
* @param array $labels
*/
public function train(array $samples, array $labels)
{
$this->samples = $samples;
$this->labels = $labels;
}
}