Fix documentation links

This commit is contained in:
Robert Boloc 2017-01-05 20:06:10 +00:00
parent a78ebc159a
commit aace5ff022
5 changed files with 7 additions and 4 deletions

View File

@ -5,7 +5,7 @@ Classifier implementing the k-nearest neighbors algorithm.
## Constructor Parameters ## Constructor Parameters
* $k - number of nearest neighbors to scan (default: 3) * $k - number of nearest neighbors to scan (default: 3)
* $distanceMetric - Distance object, default Euclidean (see [distance documentation](math/distance/)) * $distanceMetric - Distance object, default Euclidean (see [distance documentation](../../math/distance.md))
``` ```
$classifier = new KNearestNeighbors($k=4); $classifier = new KNearestNeighbors($k=4);

View File

@ -7,7 +7,7 @@ It is a density-based clustering algorithm: given a set of points in some space,
* $epsilon - epsilon, maximum distance between two samples for them to be considered as in the same neighborhood * $epsilon - epsilon, maximum distance between two samples for them to be considered as in the same neighborhood
* $minSamples - number of samples in a neighborhood for a point to be considered as a core point (this includes the point itself) * $minSamples - number of samples in a neighborhood for a point to be considered as a core point (this includes the point itself)
* $distanceMetric - Distance object, default Euclidean (see [distance documentation](math/distance/)) * $distanceMetric - Distance object, default Euclidean (see [distance documentation](../../math/distance.md))
``` ```
$dbscan = new DBSCAN($epsilon = 2, $minSamples = 3); $dbscan = new DBSCAN($epsilon = 2, $minSamples = 3);

View File

@ -12,4 +12,4 @@ Helper class that loads data from CSV file. It extends the `ArrayDataset`.
$dataset = new CsvDataset('dataset.csv', 2, true); $dataset = new CsvDataset('dataset.csv', 2, true);
``` ```
See [ArrayDataset](machine-learning/datasets/array-dataset/) for more information. See [ArrayDataset](array-dataset.md) for more information.

View File

@ -12,7 +12,7 @@ use Phpml\Dataset\FilesDataset;
$dataset = new FilesDataset('path/to/data'); $dataset = new FilesDataset('path/to/data');
``` ```
See [ArrayDataset](machine-learning/datasets/array-dataset/) for more information. See [ArrayDataset](array-dataset.md) for more information.
### Example ### Example

View File

@ -2,6 +2,8 @@ site_name: PHP-ML - Machine Learning library for PHP
pages: pages:
- Home: index.md - Home: index.md
- Machine Learning: - Machine Learning:
- Association rule learning:
- Apriori: machine-learning/association/apriori.md
- Classification: - Classification:
- SVC: machine-learning/classification/svc.md - SVC: machine-learning/classification/svc.md
- KNearestNeighbors: machine-learning/classification/k-nearest-neighbors.md - KNearestNeighbors: machine-learning/classification/k-nearest-neighbors.md
@ -41,5 +43,6 @@ pages:
- Math: - Math:
- Distance: math/distance.md - Distance: math/distance.md
- Matrix: math/matrix.md - Matrix: math/matrix.md
- Set: math/set.md
- Statistic: math/statistic.md - Statistic: math/statistic.md
theme: readthedocs theme: readthedocs