php-ml/docs/machine-learning/datasets/svm-dataset.md
Yuji Uchiyama 4562f1dfc9 Add a SvmDataset class for SVM-Light (or LibSVM) format files (#237)
* Add data loader for svm format

* Add tests for error cases

* Set proper exception messages

* Add documents

* Add error checking code for invalid column format

* Add missing documents
2018-02-24 11:17:35 +01:00

283 B

SvmDataset

Helper class that loads data from SVM-Light format file. It extends the ArrayDataset.

Constructors Parameters

  • $filepath - (string) path to the file
$dataset = new SvmDataset('dataset.svm');

See ArrayDataset for more information.