... | @@ -4,23 +4,32 @@ An implementation of DBSCAN clustering. Given a dataset, this can compute and re |
... | @@ -4,23 +4,32 @@ An implementation of DBSCAN clustering. Given a dataset, this can compute and re |
|
|
|
|
|
# Available Predicates
|
|
# Available Predicates
|
|
|
|
|
|
* [dbscan/13](https://gitlab.cs.uni-duesseldorf.de/stups/abschlussarbeiten/prolog-mlpack-libary/-/wikis/PrologMethods/Clustering/dbscan#dbscan13)
|
|
* [dbscan/10](https://gitlab.cs.uni-duesseldorf.de/stups/abschlussarbeiten/prolog-mlpack-libary/-/wikis/PrologMethods/Clustering/dbscan#dbscan10)
|
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
[links/resources](https://gitlab.cs.uni-duesseldorf.de/stups/abschlussarbeiten/prolog-mlpack-libary/-/wikis/PrologMethods/Clustering/dbscan#connected-linksresources)
|
|
[links/resources](https://gitlab.cs.uni-duesseldorf.de/stups/abschlussarbeiten/prolog-mlpack-libary/-/wikis/PrologMethods/Clustering/dbscan#connected-linksresources)
|
|
|
|
|
|
## **_dbscan/13_**
|
|
## **_dbscan/10_**
|
|
|
|
|
|
This is a one predicate model where you configure the model with the input parameters and get returned the results in the same predicate.
|
|
This is a one predicate model where you configure the model with the input parameters and get returned the results in the same predicate.
|
|
|
|
|
|
```prolog
|
|
```prolog
|
|
%% part of the predicate definition
|
|
%% predicate definition
|
|
dbscan( +float32, +integer, +integer,
|
|
dbscan(Epsilon, MinPoints, BatchMode, SelectionType, TreeType, DataList, DataRows, AssignList, CentroidsList, ZCols) :-
|
|
|
|
Epsilon > 0,
|
|
|
|
MinPoints > 0,
|
|
|
|
convert_list_to_float_array(DataList, DataRows, array(Xsize, Xrownum, X)),
|
|
|
|
dbscanI(Epsilon, MinPoints, BatchMode, SelectionType, TreeType, X, Xsize, Xrownum, Y, Ysize, Z, ZCols, ZRows),
|
|
|
|
convert_float_array_to_list(Y, Ysize, AssignList),
|
|
|
|
convert_float_array_to_2d_list(Z, ZCols, ZRows, CentroidsList).
|
|
|
|
|
|
|
|
%% foreign c++ predicate definition
|
|
|
|
foreign(dbscan, c, dbscanI( +float32, +integer, +integer,
|
|
+string, +string,
|
|
+string, +string,
|
|
+pointer(float_array), +integer, +integer,
|
|
+pointer(float_array), +integer, +integer,
|
|
-pointer(float_array), -integer,
|
|
-pointer(float_array), -integer,
|
|
-pointer(float_array), -integer, -integer)
|
|
-pointer(float_array), -integer, -integer)).
|
|
```
|
|
```
|
|
|
|
|
|
### Parameters
|
|
### Parameters
|
... | @@ -41,8 +50,8 @@ dbscan( +float32, +integer, +integer, |
... | @@ -41,8 +50,8 @@ dbscan( +float32, +integer, +integer, |
|
|
|
|
|
If you want a more detailed explanation, then go to the python documentation. There is most of the time a good explanation on how the methods work and what the parameters do.
|
|
If you want a more detailed explanation, then go to the python documentation. There is most of the time a good explanation on how the methods work and what the parameters do.
|
|
|
|
|
|
* [**MLpack::dbscan_C++\_documentation**](https://www.mlpack.org/doc/stable/doxygen/classmlpack_1_1dbscan_1_1DBSCAN.html)
|
|
* [**MLpack::dbscan_C++\_documentation**](https://www.mlpack.org/doc/mlpack-3.4.2/doxygen/classmlpack_1_1dbscan_1_1DBSCAN.html)
|
|
* [**MLpack::dbscan_Python_documentation**](https://www.mlpack.org/doc/stable/python_documentation.html#dbscan)
|
|
* [**MLpack::dbscan_Python_documentation**](https://www.mlpack.org/doc/mlpack-3.4.2/python_documentation.html#dbscan)
|
|
|
|
|
|
added some of the links from the python documentation
|
|
added some of the links from the python documentation
|
|
|
|
|
... | | ... | |