mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-04 20:47:53 +00:00
change Classifier namespace to Classification
This commit is contained in:
parent
ee9bb7b252
commit
f7b91bea72
@ -2,7 +2,7 @@
|
||||
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace Phpml\Classifier;
|
||||
namespace Phpml\Classification;
|
||||
|
||||
interface Classifier
|
||||
{
|
@ -2,10 +2,10 @@
|
||||
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace Phpml\Classifier;
|
||||
namespace Phpml\Classification;
|
||||
|
||||
use Phpml\Classifier\Traits\Predictable;
|
||||
use Phpml\Classifier\Traits\Trainable;
|
||||
use Phpml\Classification\Traits\Predictable;
|
||||
use Phpml\Classification\Traits\Trainable;
|
||||
use Phpml\Math\Distance;
|
||||
use Phpml\Math\Distance\Euclidean;
|
||||
|
@ -2,10 +2,10 @@
|
||||
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace Phpml\Classifier;
|
||||
namespace Phpml\Classification;
|
||||
|
||||
use Phpml\Classifier\Traits\Predictable;
|
||||
use Phpml\Classifier\Traits\Trainable;
|
||||
use Phpml\Classification\Traits\Predictable;
|
||||
use Phpml\Classification\Traits\Trainable;
|
||||
|
||||
class NaiveBayes implements Classifier
|
||||
{
|
@ -2,10 +2,10 @@
|
||||
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace Phpml\Classifier;
|
||||
namespace Phpml\Classification;
|
||||
|
||||
use Phpml\Classifier\Traits\Predictable;
|
||||
use Phpml\Classifier\Traits\Trainable;
|
||||
use Phpml\Classification\Traits\Predictable;
|
||||
use Phpml\Classification\Traits\Trainable;
|
||||
use Phpml\Math\Kernel;
|
||||
|
||||
class SupportVectorMachine implements Classifier
|
@ -2,7 +2,7 @@
|
||||
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace Phpml\Classifier\Traits;
|
||||
namespace Phpml\Classification\Traits;
|
||||
|
||||
trait Predictable
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace Phpml\Classifier\Traits;
|
||||
namespace Phpml\Classification\Traits;
|
||||
|
||||
trait Trainable
|
||||
{
|
@ -2,9 +2,9 @@
|
||||
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace tests\Classifier;
|
||||
namespace tests\Classification;
|
||||
|
||||
use Phpml\Classifier\KNearestNeighbors;
|
||||
use Phpml\Classification\KNearestNeighbors;
|
||||
use Phpml\Math\Distance\Chebyshev;
|
||||
|
||||
class KNearestNeighborsTest extends \PHPUnit_Framework_TestCase
|
@ -2,9 +2,9 @@
|
||||
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace tests\Classifier;
|
||||
namespace tests\Classification;
|
||||
|
||||
use Phpml\Classifier\NaiveBayes;
|
||||
use Phpml\Classification\NaiveBayes;
|
||||
|
||||
class NaiveBayesTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
Loading…
Reference in New Issue
Block a user