Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Phpml\Dataset\ArrayDataset Class Reference
Inheritance diagram for Phpml\Dataset\ArrayDataset:
Phpml\Dataset\Dataset Phpml\Dataset\CsvDataset Phpml\Dataset\FilesDataset Phpml\Dataset\MnistDataset Phpml\Dataset\SvmDataset Phpml\Dataset\Demo\GlassDataset Phpml\Dataset\Demo\IrisDataset Phpml\Dataset\Demo\WineDataset

Public Member Functions

 __construct (array $samples, array $targets)
 
 getSamples ()
 
 getTargets ()
 
 removeColumns (array $columns)
 

Protected Attributes

array $samples = []
 
array $targets = []
 

Constructor & Destructor Documentation

◆ __construct()

Phpml\Dataset\ArrayDataset::__construct ( array $samples,
array $targets )
Exceptions
InvalidArgumentException

Member Function Documentation

◆ getSamples()

Phpml\Dataset\ArrayDataset::getSamples ( )

Implements Phpml\Dataset\Dataset.

◆ getTargets()

Phpml\Dataset\ArrayDataset::getTargets ( )

Implements Phpml\Dataset\Dataset.

◆ removeColumns()

Phpml\Dataset\ArrayDataset::removeColumns ( array $columns)
Parameters
int[]$columns

The documentation for this class was generated from the following file: