mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-05 04:57:52 +00:00
23 lines
488 B
PHP
23 lines
488 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace tests\Phpml\Dataset\Demo;
|
|
|
|
use Phpml\Dataset\Demo\IrisDataset;
|
|
|
|
class IrisDatasetTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
public function testLoadingIrisDataset()
|
|
{
|
|
$iris = new IrisDataset();
|
|
|
|
// whole dataset
|
|
$this->assertCount(150, $iris->getSamples());
|
|
$this->assertCount(150, $iris->getTargets());
|
|
|
|
// one sample features count
|
|
$this->assertCount(4, $iris->getSamples()[0]);
|
|
}
|
|
}
|