mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-26 23:06:31 +00:00
23 lines
501 B
PHP
23 lines
501 B
PHP
<?php
|
|
|
|
declare (strict_types = 1);
|
|
|
|
namespace tests\Phpml\Dataset\Demo;
|
|
|
|
use Phpml\Dataset\Demo\Glass;
|
|
|
|
class GlassTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
public function testLoadingWineDataset()
|
|
{
|
|
$glass = new Glass();
|
|
|
|
// whole dataset
|
|
$this->assertEquals(214, count($glass->getSamples()));
|
|
$this->assertEquals(214, count($glass->getTargets()));
|
|
|
|
// one sample features count
|
|
$this->assertEquals(9, count($glass->getSamples()[0]));
|
|
}
|
|
}
|