mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-15 17:57:11 +00:00
typo in variable name
This commit is contained in:
parent
118ee0b5fe
commit
46da769ca6
@ -10,13 +10,13 @@ class GlassTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testLoadingWineDataset()
|
||||
{
|
||||
$iris = new Glass();
|
||||
$glass = new Glass();
|
||||
|
||||
// whole dataset
|
||||
$this->assertEquals(214, count($iris->getSamples()));
|
||||
$this->assertEquals(214, count($iris->getLabels()));
|
||||
$this->assertEquals(214, count($glass->getSamples()));
|
||||
$this->assertEquals(214, count($glass->getLabels()));
|
||||
|
||||
// one sample features count
|
||||
$this->assertEquals(9, count($iris->getSamples()[0]));
|
||||
$this->assertEquals(9, count($glass->getSamples()[0]));
|
||||
}
|
||||
}
|
||||
|
@ -10,13 +10,13 @@ class WineTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testLoadingWineDataset()
|
||||
{
|
||||
$iris = new Wine();
|
||||
$wine = new Wine();
|
||||
|
||||
// whole dataset
|
||||
$this->assertEquals(178, count($iris->getSamples()));
|
||||
$this->assertEquals(178, count($iris->getLabels()));
|
||||
$this->assertEquals(178, count($wine->getSamples()));
|
||||
$this->assertEquals(178, count($wine->getLabels()));
|
||||
|
||||
// one sample features count
|
||||
$this->assertEquals(13, count($iris->getSamples()[0]));
|
||||
$this->assertEquals(13, count($wine->getSamples()[0]));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user