mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-15 09:54:08 +00:00
16 lines
475 B
Markdown
16 lines
475 B
Markdown
|
# CsvDataset
|
||
|
|
||
|
Helper class that loads data from CSV file. It extends the `ArrayDataset`.
|
||
|
|
||
|
### Constructors Parameters
|
||
|
|
||
|
* $filepath - (string) path to `.csv` file
|
||
|
* $features - (int) number of columns that are features (starts from first column), last column must be a label
|
||
|
* $headingRow - (bool) define is file have a heading row (if `true` then first row will be ignored)
|
||
|
|
||
|
```
|
||
|
$dataset = new CsvDataset('dataset.csv', 2, true);
|
||
|
```
|
||
|
|
||
|
See Array Dataset for more information.
|