Skip to content
Snippets Groups Projects
Commit 0b98aee2 authored by DesireeWyrzylala's avatar DesireeWyrzylala
Browse files

fix file suffix

parent b9ffdeb7
No related branches found
No related tags found
No related merge requests found
......@@ -538,6 +538,18 @@
+ Daphnet: 0.036445 (MGAB: 0.085299)
+ nach VUS-PR:
+ MGAB: 0.036645 (vgl. MGAB 0.01, + 0.027, $\approx$ 270 %; Daphnet: 0.039747)
**TAO DATENSATZ**
*Optimale Hyperparameter der Autoren:*
+ {'periodicity': 2, 'n_clusters': 10}
*Hyperparameter nach Tuning pro Datensatz:*
+ {'periodicity': 1, 'n_clusters': 30} ,257_TAO_id_1_Environment_tr_500_1st_3.csv
+ {'periodicity': 3, 'n_clusters': 20},258_TAO_id_2_Environment_tr_500_1st_4.csv
+ {'periodicity': 2, 'n_clusters': 40},259_TAO_id_3_Environment_tr_500_1st_7.csv
*Werte mit optimalen Hpyerparametern der Autoren:*
+ 257_TAO_id_1_Environment_tr_500_1st_3.csv:
+ 258_TAO_id_2_Environment_tr_500_1st_4.csv:
+ 259_TAO_id_3_Environment_tr_500_1st_7.csv
# Sub-OCSVM
+ Prozessor: CPU
+ Modell: iCore 5 8th
......
%% Cell type:code id: tags:
``` python
import sys
import pathlib
sys.path.append(str(pathlib.Path.absolute)+ '../../')
from src.utils.slidingWindows import find_length_rank
from src.run_model_wrapper import main
from src.models.ahmad.KMeansAD import KMeansAD
```
%% Cell type:code id: tags:
``` python
#Hyperparamater
params = {'periodicity': 2, 'n_clusters': 10}
```
%% Cell type:code id: tags:
``` python
#Fit Funktion
def run_KMeansAD_U(data, n_clusters=20, periodicity=1,n_jobs=1):
slidingWindow = find_length_rank(data, rank=periodicity)
clf = KMeansAD(k=n_clusters, window_size=slidingWindow, stride=1, n_jobs=n_jobs)
score = clf.fit_predict(data)
return score.ravel()
```
%% Cell type:code id: tags:
``` python
model = 'run_KMeansAD_U'
output_path = '../../../docs/evaluation/'
```
%% Cell type:code id: tags:
``` python
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment