mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-22 04:55:10 +00:00
Fix documentation links
This commit is contained in:
parent
a78ebc159a
commit
aace5ff022
@ -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);
|
||||||
|
@ -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);
|
||||||
|
@ -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.
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user