CTBench

CTBench是用于评估语言模型在临床试验设计中能力的基准数据集,包含1690个临床试验基线特征,模态为文本。

伦斯勒理工学院计算机科学系伦斯勒理工学院计算机科学系
arXiv
2024-06-26 更新
浏览 13
文本临床试验设计文本
CTBench

基本信息

模态
文本
大小
0.008426 GB
许可
CC0-1.0
创建/更新时间
2024-06-26
版本
main

资源简介

CTBench

【数据集背景】

本数据集源站标题为《nafis-neehal/CTBench_LLM》。源站首次发布:2024-05-26。

【数据内容】

源站原始描述:This repository contains the CT-Repo and CT-Pub datasets and demo codes to run the benchmark. # CTBench_LLM This repository contains the CT-Repo and CT-Pub datasets and demo codes to run the benchmark. # Steps to run 1. Create a separate virtual environment in Python3. Let''s name it ''my_venv''. Then activate the virtual environment - 2. Install the requirements from requirements.txt 3. Running the Scripts 1. Run the Demo Scripts Single and Demo Scripts Batch notebook to explore example Generation…

【适用方向】

文本类数据可用于医学自然语言处理,如命名实体识别、信息抽取与文本分类。

【获取与许可】

源站页面:https://github.com/nafis-neehal/CTBench_LLM

使用许可:CC0-1.0。

【使用注意】

· 源站最后修改于 2024-10-23,引用时请注意版本时效。

官方服务

专家保障全链路合规授权与标注交付

陕川双基地 × 超十家三甲医院直连

从合规授权、采集治理、专业标注到数据集交付,我们提供全链路闭环服务,让高质量临床数据即拿即用。

⚡️ 需要原始数据或标注支持?联系我们获取定制方案。

帮我联系

下载信息

注册下载

需要注册 Kaggle 账号并登录后下载,适合需要跟踪下载记录和使用 API 的用户。

暂未开放

公开下载

无需注册即可直接获取公开样本或文档,适合快速预览和评估数据集质量。

免登录

有偿下载

公开数据集受托下载与技术交付服务。

提供高速下载与技术交付服务(收技术服务费,非数据销售)

暂未开放

当前数据集主要来源为 Kaggle 公开托管,完整影像包建议通过原始链接或 Kaggle API 获取。

使用方式

数据集获取

git clone https://github.com/nafis-neehal/CTBench_LLM.git

curl -L -o repo.zip https://github.com/nafis-neehal/CTBench_LLM/archive/refs/heads/main.zip
unzip repo.zip

源站 README 摘录(使用方式)

CTBench_LLM

This repository contains the CT-Repo and CT-Pub datasets and demo codes to run the benchmark.

Steps to run

  1. Create a separate virtual environment in Python3. Let’'s name it ‘‘my_venv’’.
python3 -m venv my_venv

Then activate the virtual environment -

source my_venv/bin/activate
  1. Install the requirements from requirements.txt
pip3 install -r requirements.txt 
  1. Running the Scripts
    1. Run the Demo Scripts Single and Demo Scripts Batch notebook to explore example Generation (zero/three shot) and Evaluation with GPT-4o codes for a single example and for the whole batch of the data respectively. The batch script will generate two files (CT-Pub-With-Examples-Corrected-allgen.csv, CT-Pub-With-Examples-Corrected-allgpteval.csv). The first one contains generation responses from our models (GPT4o and Llama3.1) in both 0/3 shot setting. The second one contains matched responses for all 4 model/ICL settings evaluated by GPT4o.
    2. For getting scores (precision, recall, f1) based on GPT4o evaluation, explore the GPT 4 Scoring notebook. Use the CT-Pub-With-Examples-Corrected-allgpteval.csv file as input which was generated after 3.1.
    3. Also run the BERT Score Calculate notebook to explore the BERT Score evaluations at 0.7 threshold for CT_PUB data (use CT-Pub-With-Examples-Corrected-allgen.csv generated in step 3.1).
  2. This can be modified for CT_REPO data as well in same process. Use the same notebooks, just alter the datafile (Use CT-Repo Dataset), and use ‘‘API_BaselineMeasures_Corrected’’ column instead of ‘‘Paper_BaselineMeasures_Corrected’’ column as reference list.

Data (Version 1.0)

  1. CT-Pub Dataset (including 3 examples for three-shot setting) - 103 Trials
  2. CT-Repo Dataset (including 3 examples for three-shot setting) after pre-processing - 1693 Trials

Metadata (Croissant Format) of CT-Pub Dataset

{
  "@type": "sc:Dataset",
  "name": "CT-Pub Dataset",
  "description": "This dataset includes clinical trial metadata with additional manually annotated baseline features from related p


## 数据加载示例(图像类)

```python
from PIL import Image
import glob, os

files = (glob.glob(os.path.join(path, "**", "*.png"), recursive=True)
       + glob.glob(os.path.join(path, "**", "*.jpg"), recursive=True)
       + glob.glob(os.path.join(path, "**", "*.tif"), recursive=True))
print("图像文件数:", len(files))
img = Image.open(files[0]); print("尺寸/模式:", img.size, img.mode)

# torchvision Dataset 方式:
# from torchvision import datasets
# ds = datasets.ImageFolder(path)  # 要求 子目录=类别

目录组织与标注格式以源站说明和下载后实际文件为准。

完整仓库:github.com/nafis-neehal/CTBench_LLM

数据缺失?

依托陕西、四川两大基地,我们与超过十家三甲医院建立直接合作关系,覆盖合规授权、采集治理、专业标注、数据交付的全流程,为AI医疗团队提供即拿即用的高质量临床数据。

⚡️ 需要数据支持或标注服务?立即联系我们获取专业方案。

获取专属数据定制方案