Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Phpml\Dataset\CsvDataset Class Reference
Inheritance diagram for Phpml\Dataset\CsvDataset:
Phpml\Dataset\ArrayDataset Phpml\Dataset\Dataset Phpml\Dataset\Demo\GlassDataset Phpml\Dataset\Demo\IrisDataset Phpml\Dataset\Demo\WineDataset

Public Member Functions

 __construct (string $filepath, int $features, bool $headingRow=true, string $delimiter=',', int $maxLineLength=0)
 
 getColumnNames ()
 
 getSamples ()
 
 getTargets ()
 
 removeColumns (array $columns)
 

Protected Attributes

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

Constructor & Destructor Documentation

◆ __construct()

Phpml\Dataset\CsvDataset::__construct ( string $filepath,
int $features,
bool $headingRow = true,
string $delimiter = ',',
int $maxLineLength = 0 )
Exceptions
FileException

Member Function Documentation

◆ getSamples()

Phpml\Dataset\ArrayDataset::getSamples ( )
inherited

Implements Phpml\Dataset\Dataset.

◆ getTargets()

Phpml\Dataset\ArrayDataset::getTargets ( )
inherited

Implements Phpml\Dataset\Dataset.

◆ removeColumns()

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

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