Ab 01.06.2025 wird in der Informatik 2FA/MFA erzwungen. Die Einrichtung wird vorher empfohlen, optimalerweise direkt mit Fallback (Hardwaretoken UND TOTP-/Authenticator App).
To use the main file with the connected BayesianLinearRegression functions in sicstus use:
The Library contains 30 of the Machine Learning Methods from MLpack.
```
For example **Linear_SVM**, **KMeans**, **Perceptron**, **Random_Forest**, **Kernel_PCA** ... and more
compile(main).
```
while running sicstus in the repository or:
```
You can find a full list of the Methods [here](https://gitlab.cs.uni-duesseldorf.de/stups/abschlussarbeiten/prolog-mlpack-libary/-/wikis/Home#prolog-methods).
['/full_path_to_main/main'].
```
when running sicstus in a different directory.
## Compile the main files with Makefile
To compile the main files just use __make__
### Useful Links
if your full path to splfr is not __/usr/local/sicstus4.7.1/bin/splfr__
*[mlpack c++ documentation](https://www.mlpack.org/doc/mlpack-3.4.2/doxygen/)
For Arrays i have added predicates for converting Prolog lists [] to the needed float_array type and when receiving an array also Predicates for converting it to a normal list.
Just make sure the SICStus Toplevel is the prolog-mlpack-libary root directory. (If not it will cause the predicate open/3, for opening files, to not find the iris2.csv)
A Matrix is just a long list with the added information how many row it has.
### Status
In both cases when using the array in a function the size must also be send, since after sending or receiving it you cant get the length of the array from itself.
The Projekt was developt and tested on Ubuntu 22.04 LTS, with mlpack Version 3.4.2 and SICStus 4.7.1
for example:
older Ubuntu Version could run into the Problem, that their mlpack system version is missing a few of the methods