Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: