X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/mlbackend/php/phpml/src/Phpml/Helper
home
/
cbholdings
/
pasukulu
/
lib
/
mlbackend
/
php
/
phpml
/
src
/
Phpml
/
Helper
/
📁
..
📄
OneVsRest.php
(4.91 KB)
📁
Optimizer
📄
Predictable.php
(550 B)
📄
Trainable.php
(406 B)
Editing: Trainable.php
<?php declare(strict_types=1); namespace Phpml\Helper; trait Trainable { /** * @var array */ private $samples = []; /** * @var array */ private $targets = []; public function train(array $samples, array $targets): void { $this->samples = array_merge($this->samples, $samples); $this->targets = array_merge($this->targets, $targets); } }
Upload File
Create Folder