-
Notifications
You must be signed in to change notification settings - Fork 7
/
experiments.py
75 lines (56 loc) · 6.44 KB
/
experiments.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# -*- coding: utf-8 -*-
"""
Created on Sun Jun 5 22:19:39 2016
@author: tabacof
"""
import uncertainty
import pandas as pd
df = pd.DataFrame()
df = df.append(uncertainty.anomaly("test_mnist_2labels_1", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,1], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_2labels_2", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[2,7], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_2labels_3", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[8,9], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_5labels_1", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,2,4,6,8], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_5labels_2", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[1,3,5,7,9], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_5labels_3", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,1,2,3,4], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_8labels_1", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[2,3,4,5,6,7,8,9], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_8labels_2", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,1,3,4,5,6,8,9], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_8labels_3", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,1,2,3,4,5,6,7], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_2labels_1", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,1], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_2labels_2", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[2,7], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_2labels_3", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[8,9], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_5labels_1", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,2,4,6,8], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_5labels_2", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[1,3,5,7,9], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_5labels_3", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,1,2,3,4], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_8labels_1", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[2,3,4,5,6,7,8,9], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_8labels_2", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,1,3,4,5,6,8,9], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_8labels_3", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,1,2,3,4,5,6,7], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_2labels_1", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,1], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_2labels_2", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[2,7], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_2labels_3", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[8,9], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_5labels_1", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,2,4,6,8], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_5labels_2", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[1,3,5,7,9], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_5labels_3", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,1,2,3,4], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_8labels_1", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[2,3,4,5,6,7,8,9], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_8labels_2", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,1,3,4,5,6,8,9], plot = False))
df = df.append(uncertainty.anomaly("test_mnist_8labels_3", "mnist", acc_threshold = 0.985, num_epochs = 100, inside_labels=[0,1,2,3,4,5,6,7], plot = False))
"""
df = df.append(uncertainty.anomaly("test_cifar_2labels_1", "cifar", num_epochs = 100, inside_labels=[0,1], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_2labels_2", "cifar", num_epochs = 100, inside_labels=[2,7], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_2labels_3", "cifar", num_epochs = 100, inside_labels=[8,9], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_5labels_1", "cifar", num_epochs = 100, inside_labels=[0,2,4,6,8], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_5labels_2", "cifar", num_epochs = 100, inside_labels=[1,3,5,7,9], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_5labels_3", "cifar", num_epochs = 100, inside_labels=[0,1,2,3,4], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_8labels_1", "cifar", num_epochs = 100, inside_labels=[2,3,4,5,6,7,8,9], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_8labels_2", "cifar", num_epochs = 100, inside_labels=[0,1,3,4,5,6,8,9], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_8labels_3", "cifar", num_epochs = 100, inside_labels=[0,1,2,3,4,5,6,7], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_2labels_1", "cifar", num_epochs = 100, inside_labels=[0,1], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_2labels_2", "cifar", num_epochs = 100, inside_labels=[2,7], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_2labels_3", "cifar", num_epochs = 100, inside_labels=[8,9], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_5labels_1", "cifar", num_epochs = 100, inside_labels=[0,2,4,6,8], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_5labels_2", "cifar", num_epochs = 100, inside_labels=[1,3,5,7,9], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_5labels_3", "cifar", num_epochs = 100, inside_labels=[0,1,2,3,4], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_8labels_1", "cifar", num_epochs = 100, inside_labels=[2,3,4,5,6,7,8,9], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_8labels_2", "cifar", num_epochs = 100, inside_labels=[0,1,3,4,5,6,8,9], plot = False))
df = df.append(uncertainty.anomaly("test_cifar_8labels_3", "cifar", num_epochs = 100, inside_labels=[0,1,2,3,4,5,6,7], plot = False))
"""
df.to_csv("uncertainty_experiments.csv")