Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
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: