php-ml机器学习库.zip

时间:2022-07-31 04:28:35
【文件属性】:
文件名称:php-ml机器学习库.zip
文件大小:659KB
文件格式:ZIP
更新时间:2022-07-31 04:28:35
类库下载-php-ml机器学习库 <?php declare(strict_types=1); namespace tests; use Phpml\Classification\SVC; use Phpml\FeatureExtraction\TfIdfTransformer; use Phpml\FeatureExtraction\TokenCountVectorizer; use Phpml\Pipeline; use Phpml\Preprocessing\Imputer; use Phpml\Preprocessing\Imputer\Strategy\MostFrequentStrategy; use Phpml\Preprocessing\Normalizer; use Phpml\Regression\SVR; use Phpml\Tokenization\WordTokenizer; use PHPUnit\Framework\TestCase; class PipelineTest extends TestCase {     public function testPipelineConstruction(): void     {         $transformers = [             new TfIdfTransformer(),         ];         $estimator = new SVC();         $pipeline = new Pipeline($transformers, $estimator);         $this->assertEquals($transformers, $pipeline->getTransformers());         $this->assertEquals($estimator, $pipeline->getEstimator());     }机器是由各种金属和非金属部件组装成的装置,消耗能源,可以运转、做功。它是用来代替人的劳动、进行能量变换、信息处理、以及产生有用功。机器贯穿在人类历史的全过程中。但是近代真正意义上的“机器”,却是在西方工业革命后才逐步被发明出来。

网友评论