php-ml/tests/Phpml/Dataset/Demo/GlassTest.php
2016-04-25 20:16:53 +02:00

23 lines
500 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->getLabels()));
// one sample features count
$this->assertEquals(9, count($glass->getSamples()[0]));
}
}