File size: 1,252 Bytes
6e07618
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
    "model_type": "CNN",
    "input_shape": [150, 150, 3],
    "num_classes": 4,
    "layers": [
        {
            "type": "Conv2D",
            "filters": 32,
            "kernel_size": [3, 3],
            "activation": "relu"
        },
        {
            "type": "Conv2D",
            "filters": 64,
            "kernel_size": [3, 3],
            "activation": "relu"
        },
        {
            "type": "MaxPooling2D",
            "pool_size": [2, 2]
        },
        {
            "type": "Dropout",
            "rate": 0.25
        },
        {
            "type": "Flatten"
        },
        {
            "type": "Dense",
            "units": 128,
            "activation": "relu"
        },
        {
            "type": "Dropout",
            "rate": 0.5
        },
        {
            "type": "Dense",
            "units": 4,
            "activation": "softmax"
        }
    ],
    "compile": {
        "loss": "categorical_crossentropy",
        "optimizer": "adam",
        "metrics": ["accuracy"]
    },
    "training": {
        "batch_size": 64,
        "epochs": 10,
        "early_stopping": {
            "monitor": "val_loss",
            "patience": 5,
            "restore_best_weights": true
        }
    }
}