Skip to content

Commit

Permalink
Add GlucoseBIT
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengbi-yong committed Nov 21, 2024
1 parent 795f4df commit 44d7c14
Show file tree
Hide file tree
Showing 6 changed files with 967 additions and 477 deletions.
10 changes: 10 additions & 0 deletions doc/prompt/model.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
```csv
date,segment,time_sec,time_min,frequency_hz,amplitude,phase,label
2024-11-17,1,7.0,0.11666666666666667,37993.1,12.93741,-4.32236,0
2024-11-17,1,7.0,0.11666666666666667,41437.9,12.87911,-4.04065,0
2024-11-17,1,8.0,0.13333333333333333,44882.8,12.78722,-3.65708,0
2024-11-17,1,8.0,0.13333333333333333,48327.6,12.73593,-3.31598,0
2024-11-17,1,9.0,0.15,51772.4,12.69731,-2.83716,0
```
我的数据如上,请你基于Pytorch写一个血糖三分类的模型,label 0 代表低,1代表中,2代表高。
请你将数据按照1分钟的长度来进行划分,写出dataset和dataloader,并帮我写出完整的训练验证以及测试流程代码。
Loading

0 comments on commit 44d7c14

Please sign in to comment.