designfailure commited on
Commit
e4cd9a5
·
verified ·
1 Parent(s): ea4e944

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +562 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Insur Claims Datagen
3
- emoji: 🏢
4
- colorFrom: gray
5
- colorTo: red
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: insur-claims-datagen
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: gray
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,562 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Insurance Claims Data Generator</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
9
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
10
+ <style>
11
+ .sidebar {
12
+ transition: all 0.3s ease;
13
+ }
14
+ .data-card:hover {
15
+ transform: translateY(-5px);
16
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
17
+ }
18
+ .progress-bar {
19
+ animation: progress 1.5s ease-in-out forwards;
20
+ }
21
+ @keyframes progress {
22
+ from { width: 0%; }
23
+ to { width: var(--progress); }
24
+ }
25
+ </style>
26
+ </head>
27
+ <body class="bg-gray-100 font-sans">
28
+ <div class="flex h-screen overflow-hidden">
29
+ <!-- Sidebar -->
30
+ <div class="sidebar bg-blue-800 text-white w-64 flex-shrink-0">
31
+ <div class="p-4 border-b border-blue-700">
32
+ <h1 class="text-2xl font-bold flex items-center">
33
+ <i class="fas fa-database mr-2"></i>
34
+ <span>ClaimsGen</span>
35
+ </h1>
36
+ <p class="text-blue-200 text-sm mt-1">Data Generation Engine v2.4</p>
37
+ </div>
38
+ <nav class="p-4">
39
+ <div class="mb-6">
40
+ <h3 class="text-blue-300 uppercase text-xs font-semibold mb-3">MAIN</h3>
41
+ <a href="#" class="flex items-center py-2 px-3 bg-blue-700 rounded-lg text-white">
42
+ <i class="fas fa-home mr-3"></i>
43
+ Dashboard
44
+ </a>
45
+ <a href="#" class="flex items-center py-2 px-3 text-blue-200 hover:bg-blue-700 rounded-lg mt-1">
46
+ <i class="fas fa-chart-line mr-3"></i>
47
+ Analytics
48
+ </a>
49
+ <a href="#" class="flex items-center py-2 px-3 text-blue-200 hover:bg-blue-700 rounded-lg mt-1">
50
+ <i class="fas fa-cog mr-3"></i>
51
+ Settings
52
+ </a>
53
+ </div>
54
+ <div>
55
+ <h3 class="text-blue-300 uppercase text-xs font-semibold mb-3">DATA GENERATION</h3>
56
+ <a href="#" class="flex items-center py-2 px-3 text-blue-200 hover:bg-blue-700 rounded-lg">
57
+ <i class="fas fa-car-crash mr-3"></i>
58
+ Motor Claims
59
+ </a>
60
+ <a href="#" class="flex items-center py-2 px-3 text-blue-200 hover:bg-blue-700 rounded-lg mt-1">
61
+ <i class="fas fa-house-damage mr-3"></i>
62
+ Home Claims
63
+ </a>
64
+ <a href="#" class="flex items-center py-2 px-3 text-blue-200 hover:bg-blue-700 rounded-lg mt-1">
65
+ <i class="fas fa-paw mr-3"></i>
66
+ Pet Claims
67
+ </a>
68
+ <a href="#" class="flex items-center py-2 px-3 text-blue-200 hover:bg-blue-700 rounded-lg mt-1">
69
+ <i class="fas fa-random mr-3"></i>
70
+ Synthetic Data
71
+ </a>
72
+ </div>
73
+ </nav>
74
+ </div>
75
+
76
+ <!-- Main Content -->
77
+ <div class="flex-1 overflow-auto">
78
+ <!-- Header -->
79
+ <header class="bg-white shadow-sm p-4 flex justify-between items-center">
80
+ <h2 class="text-xl font-semibold text-gray-800">Insurance Claims Data Generator</h2>
81
+ <div class="flex items-center space-x-4">
82
+ <div class="relative">
83
+ <i class="fas fa-search absolute left-3 top-2.5 text-gray-400"></i>
84
+ <input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
85
+ </div>
86
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center">
87
+ <i class="fas fa-plus mr-2"></i>
88
+ New Dataset
89
+ </button>
90
+ </div>
91
+ </header>
92
+
93
+ <!-- Content -->
94
+ <main class="p-6">
95
+ <!-- Stats Cards -->
96
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
97
+ <div class="data-card bg-white p-6 rounded-xl shadow-sm border border-gray-100 transition-all">
98
+ <div class="flex justify-between items-start">
99
+ <div>
100
+ <p class="text-gray-500">Total Claims</p>
101
+ <h3 class="text-2xl font-bold mt-1">25,069</h3>
102
+ </div>
103
+ <div class="bg-blue-100 p-3 rounded-lg">
104
+ <i class="fas fa-file-invoice text-blue-600 text-xl"></i>
105
+ </div>
106
+ </div>
107
+ <div class="mt-4">
108
+ <div class="flex justify-between text-sm text-gray-500 mb-1">
109
+ <span>Q3 2024</span>
110
+ <span>12,534</span>
111
+ </div>
112
+ <div class="w-full bg-gray-200 rounded-full h-2">
113
+ <div class="bg-blue-600 h-2 rounded-full" style="--progress: 50%"></div>
114
+ </div>
115
+ <div class="flex justify-between text-sm text-gray-500 mt-1">
116
+ <span>Q4 2024</span>
117
+ <span>12,535</span>
118
+ </div>
119
+ </div>
120
+ </div>
121
+
122
+ <div class="data-card bg-white p-6 rounded-xl shadow-sm border border-gray-100 transition-all">
123
+ <div class="flex justify-between items-start">
124
+ <div>
125
+ <p class="text-gray-500">Claim Distribution</p>
126
+ <h3 class="text-2xl font-bold mt-1">3 Types</h3>
127
+ </div>
128
+ <div class="bg-green-100 p-3 rounded-lg">
129
+ <i class="fas fa-chart-pie text-green-600 text-xl"></i>
130
+ </div>
131
+ </div>
132
+ <div class="mt-4">
133
+ <div class="flex justify-between text-sm text-gray-500 mb-1">
134
+ <span>Motor (60%)</span>
135
+ <span>15,041</span>
136
+ </div>
137
+ <div class="w-full bg-gray-200 rounded-full h-2">
138
+ <div class="bg-green-500 h-2 rounded-full" style="--progress: 60%"></div>
139
+ </div>
140
+ <div class="flex justify-between text-sm text-gray-500 mt-1">
141
+ <span>Home (35%)</span>
142
+ <span>8,774</span>
143
+ </div>
144
+ <div class="w-full bg-gray-200 rounded-full h-2 mt-1">
145
+ <div class="bg-yellow-500 h-2 rounded-full" style="--progress: 35%"></div>
146
+ </div>
147
+ <div class="flex justify-between text-sm text-gray-500 mt-1">
148
+ <span>Pet (5%)</span>
149
+ <span>1,253</span>
150
+ </div>
151
+ <div class="w-full bg-gray-200 rounded-full h-2 mt-1">
152
+ <div class="bg-red-500 h-2 rounded-full" style="--progress: 5%"></div>
153
+ </div>
154
+ </div>
155
+ </div>
156
+
157
+ <div class="data-card bg-white p-6 rounded-xl shadow-sm border border-gray-100 transition-all">
158
+ <div class="flex justify-between items-start">
159
+ <div>
160
+ <p class="text-gray-500">Average Claim Cost</p>
161
+ <h3 class="text-2xl font-bold mt-1">€1,128</h3>
162
+ </div>
163
+ <div class="bg-purple-100 p-3 rounded-lg">
164
+ <i class="fas fa-euro-sign text-purple-600 text-xl"></i>
165
+ </div>
166
+ </div>
167
+ <div class="mt-4">
168
+ <div class="flex justify-between text-sm text-gray-500 mb-1">
169
+ <span>Motor</span>
170
+ <span>€1,228</span>
171
+ </div>
172
+ <div class="w-full bg-gray-200 rounded-full h-2">
173
+ <div class="bg-blue-500 h-2 rounded-full" style="--progress: 61%"></div>
174
+ </div>
175
+ <div class="flex justify-between text-sm text-gray-500 mt-1">
176
+ <span>Home</span>
177
+ <span>€1,026</span>
178
+ </div>
179
+ <div class="w-full bg-gray-200 rounded-full h-2">
180
+ <div class="bg-green-500 h-2 rounded-full" style="--progress: 51%"></div>
181
+ </div>
182
+ <div class="flex justify-between text-sm text-gray-500 mt-1">
183
+ <span>Pet</span>
184
+ <span>€350</span>
185
+ </div>
186
+ <div class="w-full bg-gray-200 rounded-full h-2">
187
+ <div class="bg-yellow-500 h-2 rounded-full" style="--progress: 18%"></div>
188
+ </div>
189
+ </div>
190
+ </div>
191
+
192
+ <div class="data-card bg-white p-6 rounded-xl shadow-sm border border-gray-100 transition-all">
193
+ <div class="flex justify-between items-start">
194
+ <div>
195
+ <p class="text-gray-500">Special Cases</p>
196
+ <h3 class="text-2xl font-bold mt-1">Anomalies</h3>
197
+ </div>
198
+ <div class="bg-red-100 p-3 rounded-lg">
199
+ <i class="fas fa-exclamation-triangle text-red-600 text-xl"></i>
200
+ </div>
201
+ </div>
202
+ <div class="mt-4 space-y-2">
203
+ <div class="flex items-center text-sm">
204
+ <span class="w-32 text-gray-500">High Cost (3%)</span>
205
+ <span class="font-medium">752 cases</span>
206
+ </div>
207
+ <div class="flex items-center text-sm">
208
+ <span class="w-32 text-gray-500">New Policies (2%)</span>
209
+ <span class="font-medium">501 cases</span>
210
+ </div>
211
+ <div class="flex items-center text-sm">
212
+ <span class="w-32 text-gray-500">Flood Events</span>
213
+ <span class="font-medium">+10% on 6/7/24</span>
214
+ </div>
215
+ <div class="flex items-center text-sm">
216
+ <span class="w-32 text-gray-500">Natural Disasters</span>
217
+ <span class="font-medium">12/8/24 spike</span>
218
+ </div>
219
+ </div>
220
+ </div>
221
+ </div>
222
+
223
+ <!-- Charts Section -->
224
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
225
+ <!-- Claim Type Distribution -->
226
+ <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
227
+ <div class="flex justify-between items-center mb-4">
228
+ <h3 class="font-semibold text-lg">Claim Type Distribution</h3>
229
+ <select class="border rounded-lg px-3 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
230
+ <option>Q3 2024</option>
231
+ <option>Q4 2024</option>
232
+ <option selected>Full Period</option>
233
+ </select>
234
+ </div>
235
+ <canvas id="claimTypeChart" height="250"></canvas>
236
+ </div>
237
+
238
+ <!-- Claim Cost Distribution -->
239
+ <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
240
+ <div class="flex justify-between items-center mb-4">
241
+ <h3 class="font-semibold text-lg">Claim Cost Distribution</h3>
242
+ <div class="flex space-x-2">
243
+ <button class="px-3 py-1 bg-blue-100 text-blue-600 rounded-lg text-sm">Motor</button>
244
+ <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg text-sm">Home</button>
245
+ <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg text-sm">Pet</button>
246
+ </div>
247
+ </div>
248
+ <canvas id="costDistributionChart" height="250"></canvas>
249
+ </div>
250
+ </div>
251
+
252
+ <!-- Data Generation Controls -->
253
+ <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 mb-8">
254
+ <h3 class="font-semibold text-lg mb-4">Data Generation Parameters</h3>
255
+
256
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
257
+ <!-- General Parameters -->
258
+ <div class="space-y-4">
259
+ <h4 class="font-medium text-blue-600 flex items-center">
260
+ <i class="fas fa-sliders-h mr-2"></i>
261
+ General Parameters
262
+ </h4>
263
+ <div>
264
+ <label class="block text-sm font-medium text-gray-700 mb-1">Total Records</label>
265
+ <input type="number" value="25069" class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
266
+ </div>
267
+ <div>
268
+ <label class="block text-sm font-medium text-gray-700 mb-1">Time Period</label>
269
+ <div class="flex space-x-2">
270
+ <select class="flex-1 border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
271
+ <option>Q3 2024</option>
272
+ <option selected>Q3-Q4 2024</option>
273
+ <option>Full Year 2024</option>
274
+ </select>
275
+ </div>
276
+ </div>
277
+ <div>
278
+ <label class="block text-sm font-medium text-gray-700 mb-1">Special Events</label>
279
+ <div class="space-y-2">
280
+ <label class="flex items-center">
281
+ <input type="checkbox" checked class="mr-2">
282
+ <span>Flood on 6/7/2024 (+10%)</span>
283
+ </label>
284
+ <label class="flex items-center">
285
+ <input type="checkbox" checked class="mr-2">
286
+ <span>Natural disaster on 12/8/2024</span>
287
+ </label>
288
+ </div>
289
+ </div>
290
+ </div>
291
+
292
+ <!-- Claim Type Distribution -->
293
+ <div class="space-y-4">
294
+ <h4 class="font-medium text-green-600 flex items-center">
295
+ <i class="fas fa-percentage mr-2"></i>
296
+ Claim Distribution
297
+ </h4>
298
+ <div>
299
+ <label class="block text-sm font-medium text-gray-700 mb-1">Motor Insurance</label>
300
+ <div class="flex items-center">
301
+ <input type="range" min="0" max="100" value="60" class="w-full mr-2">
302
+ <span class="w-12 text-right">60%</span>
303
+ </div>
304
+ </div>
305
+ <div>
306
+ <label class="block text-sm font-medium text-gray-700 mb-1">Home Insurance</label>
307
+ <div class="flex items-center">
308
+ <input type="range" min="0" max="100" value="35" class="w-full mr-2">
309
+ <span class="w-12 text-right">35%</span>
310
+ </div>
311
+ </div>
312
+ <div>
313
+ <label class="block text-sm font-medium text-gray-700 mb-1">Pet Insurance</label>
314
+ <div class="flex items-center">
315
+ <input type="range" min="0" max="100" value="5" class="w-full mr-2">
316
+ <span class="w-12 text-right">5%</span>
317
+ </div>
318
+ </div>
319
+ </div>
320
+
321
+ <!-- Advanced Parameters -->
322
+ <div class="space-y-4">
323
+ <h4 class="font-medium text-purple-600 flex items-center">
324
+ <i class="fas fa-cogs mr-2"></i>
325
+ Advanced Parameters
326
+ </h4>
327
+ <div>
328
+ <label class="block text-sm font-medium text-gray-700 mb-1">High Cost Claims</label>
329
+ <div class="flex items-center">
330
+ <input type="range" min="0" max="10" value="3" class="w-full mr-2">
331
+ <span class="w-12 text-right">3%</span>
332
+ </div>
333
+ </div>
334
+ <div>
335
+ <label class="block text-sm font-medium text-gray-700 mb-1">New Policy Claims</label>
336
+ <div class="flex items-center">
337
+ <input type="range" min="0" max="5" value="2" class="w-full mr-2">
338
+ <span class="w-12 text-right">2%</span>
339
+ </div>
340
+ </div>
341
+ <div>
342
+ <label class="block text-sm font-medium text-gray-700 mb-1">ML Model</label>
343
+ <select class="w-full border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
344
+ <option>GAN (Default)</option>
345
+ <option>VAE</option>
346
+ <option>Autoencoder</option>
347
+ <option>Isolation Forest</option>
348
+ </select>
349
+ </div>
350
+ </div>
351
+ </div>
352
+
353
+ <div class="mt-6 flex justify-end space-x-3">
354
+ <button class="px-4 py-2 border rounded-lg text-gray-700 hover:bg-gray-50">
355
+ Reset Parameters
356
+ </button>
357
+ <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 flex items-center">
358
+ <i class="fas fa-play mr-2"></i>
359
+ Generate Dataset
360
+ </button>
361
+ </div>
362
+ </div>
363
+
364
+ <!-- Sample Data Preview -->
365
+ <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
366
+ <div class="flex justify-between items-center mb-4">
367
+ <h3 class="font-semibold text-lg">Sample Generated Data</h3>
368
+ <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg text-sm flex items-center">
369
+ <i class="fas fa-download mr-2"></i>
370
+ Export CSV
371
+ </button>
372
+ </div>
373
+ <div class="overflow-x-auto">
374
+ <table class="min-w-full divide-y divide-gray-200">
375
+ <thead class="bg-gray-50">
376
+ <tr>
377
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Claim #</th>
378
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
379
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Subtype</th>
380
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
381
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Cost (€)</th>
382
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Policy</th>
383
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Coverage</th>
384
+ </tr>
385
+ </thead>
386
+ <tbody class="bg-white divide-y divide-gray-200">
387
+ <tr>
388
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">CL-2024-015432</td>
389
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Motor</td>
390
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Collision</td>
391
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15/07/2024</td>
392
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1,228</td>
393
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">POL-98765</td>
394
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">All Risk</td>
395
+ </tr>
396
+ <tr>
397
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">CL-2024-015433</td>
398
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Home</td>
399
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Water Leakage</td>
400
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">06/07/2024</td>
401
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1,450</td>
402
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">POL-54321</td>
403
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Natural Disaster</td>
404
+ </tr>
405
+ <tr>
406
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">CL-2024-015434</td>
407
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Pet</td>
408
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Vet Visit</td>
409
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">22/09/2024</td>
410
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">350</td>
411
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">POL-12345</td>
412
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Vet Coverage</td>
413
+ </tr>
414
+ <tr>
415
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">CL-2024-015435</td>
416
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Motor</td>
417
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Theft</td>
418
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12/08/2024</td>
419
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12,500</td>
420
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">POL-45678</td>
421
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">All Risk</td>
422
+ </tr>
423
+ <tr>
424
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">CL-2024-015436</td>
425
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Home</td>
426
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Storm Damage</td>
427
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12/08/2024</td>
428
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2,300</td>
429
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">POL-34567</td>
430
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Natural Disaster</td>
431
+ </tr>
432
+ </tbody>
433
+ </table>
434
+ </div>
435
+ </div>
436
+ </main>
437
+ </div>
438
+ </div>
439
+
440
+ <script>
441
+ // Claim Type Distribution Chart
442
+ const claimTypeCtx = document.getElementById('claimTypeChart').getContext('2d');
443
+ const claimTypeChart = new Chart(claimTypeCtx, {
444
+ type: 'doughnut',
445
+ data: {
446
+ labels: ['Motor Insurance', 'Home Insurance', 'Pet Insurance'],
447
+ datasets: [{
448
+ data: [15041, 8774, 1253],
449
+ backgroundColor: [
450
+ '#3B82F6',
451
+ '#10B981',
452
+ '#EF4444'
453
+ ],
454
+ borderWidth: 0
455
+ }]
456
+ },
457
+ options: {
458
+ responsive: true,
459
+ plugins: {
460
+ legend: {
461
+ position: 'bottom',
462
+ },
463
+ tooltip: {
464
+ callbacks: {
465
+ label: function(context) {
466
+ let label = context.label || '';
467
+ if (label) {
468
+ label += ': ';
469
+ }
470
+ label += context.raw.toLocaleString() + ' (' + Math.round(context.parsed * 100 / context.dataset.data.reduce((a, b) => a + b, 0)) + '%)';
471
+ return label;
472
+ }
473
+ }
474
+ }
475
+ },
476
+ cutout: '70%'
477
+ }
478
+ });
479
+
480
+ // Cost Distribution Chart
481
+ const costDistributionCtx = document.getElementById('costDistributionChart').getContext('2d');
482
+ const costDistributionChart = new Chart(costDistributionCtx, {
483
+ type: 'bar',
484
+ data: {
485
+ labels: ['<500', '500-1000', '1000-5000', '5000-10000', '>10000'],
486
+ datasets: [{
487
+ label: 'Motor Claims',
488
+ data: [3500, 6000, 4500, 800, 241],
489
+ backgroundColor: '#3B82F6',
490
+ borderWidth: 0
491
+ }]
492
+ },
493
+ options: {
494
+ responsive: true,
495
+ scales: {
496
+ y: {
497
+ beginAtZero: true,
498
+ ticks: {
499
+ callback: function(value) {
500
+ return value.toLocaleString();
501
+ }
502
+ }
503
+ }
504
+ },
505
+ plugins: {
506
+ tooltip: {
507
+ callbacks: {
508
+ label: function(context) {
509
+ let label = context.dataset.label || '';
510
+ if (label) {
511
+ label += ': ';
512
+ }
513
+ label += context.raw.toLocaleString() + ' claims';
514
+ return label;
515
+ }
516
+ }
517
+ }
518
+ }
519
+ }
520
+ });
521
+
522
+ // Simulate progress bars animation
523
+ document.addEventListener('DOMContentLoaded', function() {
524
+ const progressBars = document.querySelectorAll('.progress-bar');
525
+ progressBars.forEach(bar => {
526
+ const progress = bar.style.getPropertyValue('--progress');
527
+ bar.style.width = progress;
528
+ });
529
+ });
530
+
531
+ // Toggle between motor/home/pet data in cost distribution chart
532
+ const costChartButtons = document.querySelectorAll('#costDistributionChart + div button');
533
+ costChartButtons.forEach(button => {
534
+ button.addEventListener('click', function() {
535
+ costChartButtons.forEach(btn => {
536
+ btn.classList.remove('bg-blue-100', 'text-blue-600');
537
+ btn.classList.add('bg-gray-100', 'text-gray-600');
538
+ });
539
+ this.classList.remove('bg-gray-100', 'text-gray-600');
540
+ this.classList.add('bg-blue-100', 'text-blue-600');
541
+
542
+ // Update chart data based on selection
543
+ const label = this.textContent.trim();
544
+ if (label === 'Motor') {
545
+ costDistributionChart.data.datasets[0].data = [3500, 6000, 4500, 800, 241];
546
+ costDistributionChart.data.datasets[0].backgroundColor = '#3B82F6';
547
+ costDistributionChart.data.datasets[0].label = 'Motor Claims';
548
+ } else if (label === 'Home') {
549
+ costDistributionChart.data.datasets[0].data = [2000, 4000, 2500, 200, 74];
550
+ costDistributionChart.data.datasets[0].backgroundColor = '#10B981';
551
+ costDistributionChart.data.datasets[0].label = 'Home Claims';
552
+ } else if (label === 'Pet') {
553
+ costDistributionChart.data.datasets[0].data = [800, 300, 150, 3, 0];
554
+ costDistributionChart.data.datasets[0].backgroundColor = '#EF4444';
555
+ costDistributionChart.data.datasets[0].label = 'Pet Claims';
556
+ }
557
+ costDistributionChart.update();
558
+ });
559
+ });
560
+ </script>
561
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=designfailure/insur-claims-datagen" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
562
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ You are a data generation engineer with proven data engineering and analysis skills. You are using LLMs to create an insurance claims data set. You must have all the knowledge of a data generation engineer with proven data analysis skills and Python code script capabilities {Colab notebook environment}. 1.) Create a CSV of 25.069 cases with the following columns: <claim number>, <claim type> , <car type claim> , <home type claim> , <pet type claim> , <damage claim subtype> , <steal claim subtype> , <water leakage claim subtype> , <car assistance claim subtype> , <vet claim subtype> , <coverage type> , <MTPL coverage> , <Liability coverage> , <Natural disaster coverage> , <All risk coverage> , <ID policy> , <policy ID number> , <policy ID date> , <policy ID type> , <policy ID deductible> , <policy ID> , <umbrella limit> , <policy ID price>. ... {distribute the claims over the Q3 and Q4 of the 2024 year} , {during the day of 6.7.2024 increment the natural catastrophe +10% over average random distribution due the flood causes} , {for the day of 12.8.2024 increase natural catastrophe incidence} , ... ... {3% of claims did have higher cost} , {2% of claims are in the range of 30 days after the insurance policy issue} , {10% of motor insurance claims are 569 EUR on average} , {1% of motor insurance claims exceed the 10.000 EUR cost} , { 1% of motor insurance claims exceed the 25.000 EUR cos} , {5% motor insurance claims have also health cost up to 5.000 EUR}, ... {60% of claims are motor insurance claims} , {35% are home insurance claims} , {5% are pet insurance related claims} , ... ... {97% claims have their customers} , {90% of claims are all on the same insurance policy} , ... ... {motor insurance average claim cost is 1.228 EUR} , {home insurance average claim cost is 1.026 EUR} , {186 EUR is the average of assistance claim cost} , {veterinary cost are on average 350 EUR} , ... ... {for motor insurance use car type and car data set like VIN number from common European typology, range, and versality of personal car ownership} , {NO trucks} , {5% might be motor bikes} , {2% are VAN or campers} , ... 2.) Use advanced compile methods and advanced ML Python library for data manipulation and creation like: -NumPy for numerical operations -Faker for generating random synthetic data_frame -Use industry standard reinforcement learning -Advanced AI & ML through deep reinforcement learning using the Generative Adversarial Networks (GANs) and the Variational Autoencoders (VAEs) through the model-compile computation for the creation and data model technics in Python code script syntax, that include the <stochastic dataset> ant the variable classes attribute impact on the <data frame> quality! -Library and dependencies requirement based on tools: # pip install fraud-detection-module # pip install fraud-framework-sdk # pip install fraud-detection-model # pip install fraud # pip install fraud-detection # pip install train_fraud_model Tool AutoML PyOD package PyCM module algorithms like ABOD, CBLOF, Isolation Forest, AutoEncoder oversampling ROSE and SMOTE Techniques like Stochastic Gradient Descent The Very Fast Decision Tree (VFDT) algorithm CNNs, RNNs, MLPs, VAEs, GNNs, DBNs Transformers FinBert 3.) The "Data frame" to compile and create a CSV datasets file contains information about the: [insurance claims]. The table columns must have parameters; <claim number> , <claim type> , <car type claim> , <home type claim> , <pet type claim> , <damage claim subtype> , <steal claim subtype> , <water leakage claim subtype> , <car assistance claim subtype> , <vet claim subtype> , <coverage type> , <MTPL coverage> , <Liability coverage> , <Natural disaster coverage> , <All risk coverage> , <ID policy> , <policy ID number> , <policy ID date> , policy ID type> , <policy ID deductible> , <policy ID umbrella limit> , <policy ID price> and variable classes labels; {ID_customer}, {ID_policy} , {Type} , {Subtype} , {Damage} , {Submitted date of claim} , {police report} , {Damage event soon after taking out the policy - car insurance} , The variable classes indicator labels did have such incidents over the all dataset, as follows: {car_insurance}; < "Owner's liability for road vehicle" , "34.40%" > < "Vehicle collision" , "21.84%" > < "Direct contact with unregistered vehicle" , "11.51%" > < "Breaking or damaging standard safety equipment" , "7.51%" > < "Damage or malfunction of property, machinery, and separate units for cargo ship" , "7.08%" > < "Hail" , "18.63%" > < "Collision with other objects and domestic animals" , "7.49%" > < "Theft and robbery of car parts and accessories" , "7.37%" > < "Fire and explosion of car parts and accessories" , "7.28%" > < "Burglary theft of vehicle" , "7.08%" > < "Storm" , "7.06%" > < "Flood and natural disaster" , "7.05%" > < "Earthquake" , "7.04%" > < "Loss" , "7.03%" > < "Theft or loss of car keys" , "7.03%" > {home_insurance}; < "Water leakage" , "16.42%" > < "Hail" , "11.88%" > < "Storm" , "7.16%" > < "Mechanical hazards" , "4.36%" > < "Machinery insurance" , "4.32%" > < "Deviation from vehicle insurance" , "4.01%" > < "Commercial vehicle failure" , "3.85%" > < "Machinery insurance (other)" , "3.52%" > < "Breakage of windows that are part of buildings" , "3.35%" > < "Vehicle theft (other)" , "2.95%" > < "Engine fire (other)" , "2.24%" > < "Fire (other)" , "2.24%" > < "NIR - cleaning, storm, and removal costs" , "1.31%" > {assitance_insurance}; < "Towing and transport" , "82.95%" > < "Home and roadside assistance" , "8.64%" > < "Replacement vehicle" , "4.55%" > < "Home assistance - Plumber services" , "2.27%" > < "Home assistance - Electrician services" , "2.05%" > < "Home assistance - Carpenter services" , "1.82%" > < ”Dog vet cost” , “67%” > < “Cat vet cost” , 33%”> I want you to respond and answer like data generation engineer with proven data engineering and analysis skills. I want you to use the tone, manner, and vocabulary that data generation engineer would use. You must have all the knowledge of data generation engineer. As data generation engineer with proven data engineering and analysis skills, your responses should always be in line with your personality.