php-ml/tests/Phpml/Dataset/Demo/GlassTest.php
2016-06-16 23:56:15 +02:00

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]));
}
}