__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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:

www-data@216.73.216.10: ~ $
<?php

declare(strict_types=1);

namespace Phpml\Dataset;

use Phpml\Exception\InvalidArgumentException;

class ArrayDataset implements Dataset
{
    /**
     * @var array
     */
    protected $samples = [];

    /**
     * @var array
     */
    protected $targets = [];

    /**
     * @throws InvalidArgumentException
     */
    public function __construct(array $samples, array $targets)
    {
        if (count($samples) !== count($targets)) {
            throw new InvalidArgumentException('Size of given arrays does not match');
        }

        $this->samples = $samples;
        $this->targets = $targets;
    }

    public function getSamples(): array
    {
        return $this->samples;
    }

    public function getTargets(): array
    {
        return $this->targets;
    }

    /**
     * @param int[] $columns
     */
    public function removeColumns(array $columns): void
    {
        foreach ($this->samples as &$sample) {
            $this->removeColumnsFromSample($sample, $columns);
        }
    }

    private function removeColumnsFromSample(array &$sample, array $columns): void
    {
        foreach ($columns as $index) {
            unset($sample[$index]);
        }

        $sample = array_values($sample);
    }
}

Filemanager

Name Type Size Permission Actions
Demo Folder 0777
ArrayDataset.php File 1.22 KB 0777
CsvDataset.php File 1.33 KB 0777
Dataset.php File 164 B 0777
FilesDataset.php File 1.11 KB 0777
MnistDataset.php File 2.84 KB 0777
SvmDataset.php File 3.42 KB 0777
Filemanager