mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-22 21:15:10 +00:00
7d5c6b15a4
* Fix typo in Features list * Update distance.md documentation * Fix grammatical mistakes in documentation * Fix grammatical mistakes in documentation * Fix grammatical mistakes in documentation * Fix grammatical mistakes in documentation * Fix grammatical mistakes in documentation * Fix grammatical mistakes in documentation * Fix grammatical mistakes in documentation * Fix grammatical mistakes in documentation * Fix grammatical mistakes in documentation
16 lines
496 B
Markdown
16 lines
496 B
Markdown
# CsvDataset
|
|
|
|
Helper class that loads data from CSV file. It extends the `ArrayDataset`.
|
|
|
|
### Constructor 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 if the file has a heading row (if `true` then first row will be ignored)
|
|
|
|
```
|
|
$dataset = new CsvDataset('dataset.csv', 2, true);
|
|
```
|
|
|
|
See [ArrayDataset](array-dataset.md) for more information.
|