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