Repository navigation
Expand file tree
/
Copy pathMLproject
More file actions
135 lines (131 loc) · 3.09 KB
/
Copy pathMLproject
File metadata and controls
135 lines (131 loc) · 3.09 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: torch-deep
meta_data:
author: Knut Rand
author_note: >
This model might need configuration of hyperparameters in order to work properly.
When the model shows signs of overfitting, reduce 'state_dim' and/or increase 'dropout' and 'weight_decay'.
author_assessed_status: red
contact_email: knutdrand@gmail.com
description: >
This is a deep learning model template for CHAP. It is based on pytorch and can be used to train and predict using deep learning models.
This typically need some configuration to fit the specifics of a dataset.
display_name: Torch Deep Learning Model
organization: HISP Centre, University of Oslo
organization_logo_url: https://landportal.org/sites/default/files/2024-03/university_of_oslo_logo.png
citation_info: >
Climate Health Analytics Platform. 2025. "Torch Deep Learning Model".
HISP Centre, University of Oslo.
https://dhis2-chap.github.io/chap-core/external_models/overview_of_supported_models.html
allow_free_additional_continuous_covariates: true
required_covariates:
- population
supported_period_type: any
target: disease_cases
user_options:
additional_covariates:
default:
- rainfall
- mean_temperature
items:
type: string
title: Additional Covariates
type: array
augmentations:
default: []
items:
type: string
title: Augmentations
type: array
batch_size:
default: 64
title: Batch Size
type: integer
context_length:
default: 12
title: Context Length
type: integer
direct_ar:
default: false
title: Direct Ar
type: boolean
dropout:
default: 0.0
title: Dropout
type: number
embed_dim:
default: 4
title: Embed Dim
type: integer
embedding_type:
default: concat
enum:
- sum
- concat
title: Embedding Type
type: string
learning_rate:
default: 0.001
title: Learning Rate
type: number
max_dim:
default: 32
title: Max Dim
type: integer
max_epochs:
anyOf:
- type: integer
- type: 'null'
default: null
title: Max Epochs
n_hidden:
default: 4
title: N Hidden
type: integer
n_layers:
default: 1
title: N Layers
type: integer
num_rnn_layers:
default: 1
title: Num Rnn Layers
type: integer
output_embedding_dim:
default: 0
title: Output Embedding Dim
type: integer
rnn_type:
default: GRU
enum:
- GRU
- LSTM
title: Rnn Type
type: string
state_dim:
default: 4
title: State Dim
type: integer
use_population:
default: true
title: Use Population
type: boolean
weight_decay:
default: 1.0e-06
title: Weight Decay
type: number
entry_points:
train:
command: python main.py train {train_data} {model} {model_config}
parameters:
train_data: str
model: str
model_config: str
predict:
command: python main.py predict {model} {historic_data} {future_data} {out_file}
{model_config}
parameters:
model: str
historic_data: str
future_data: str
out_file: str
model_config: str
uv_env: pyproject.toml