Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
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: