2026-03-29 23:47:20 +08:00

201 lines
4.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 因果分析日志
## 日志说明
本文档记录 LLM 进行因果分析时的所有输入参数和输出结果。
## 分析记录
---
### 分析 #001
**时间**: 2026-03-26T23:19:00.211723
#### 系统提示词
```
你是一位专业的因果推断分析师。你的任务是分析给定的数据,识别因果变量并评估因果关系。
请以 JSON 格式输出分析结果,不要包含任何额外的解释或思考过程。
JSON 输出规范:
{
"treatment": "处理变量名称",
"outcome": "结果变量名称"
}
注意:
- 只输出上述 JSON 格式,不要包含其他字段
- 处理变量和结果变量名称必须与数据表格的列名完全一致
- 不要使用 markdown 代码块标记(如 ```json
- 直接输出纯 JSON 字符串
```
#### 用户提示词
```
请分析以下医疗数据,并严格按照 JSON 格式输出分析结果:
**数据概览:**
- 样本数量500
- 变量id, treatment, health
**统计摘要:**
id treatment health
count 500.000000 500.000000 500.000000
mean 250.500000 0.414000 0.586082
std 144.481833 0.493042 0.236948
min 1.000000 0.000000 0.000000
25% 125.750000 0.000000 0.421975
50% 250.500000 0.000000 0.583000
75% 375.250000 1.000000 0.769625
max 500.000000 1.000000 1.000000
**处理变量分布:**
treatment
0 293
1 207
JSON 输出格式要求:
{
"treatment": "处理变量名称",
"outcome": "结果变量名称"
}
要求:
1. 处理变量和结果变量名称必须与表格列名完全一致
2. 只输出 JSON不要包含其他任何内容
3. 不要使用 markdown 代码块标记
```
#### LLM 输出
```
{
"treatment": "treatment",
"outcome": "health"
}
```
#### 调用参数
```json
{
"data_path": "examples/medical/data.xlsx",
"sample_size": 500,
"variables": [
"id",
"treatment",
"health"
],
"treatment_variable": "treatment",
"outcome_variable": "health",
"llm_params": {
"base_url": "http://10.106.123.247:8000/v1",
"model": "qwen3.5-35b",
"temperature": 0.3,
"max_tokens": 2048
},
"log_path": "examples/medical/log.md"
}
```
---
---
### 分析 #002
**时间**: 2026-03-26T23:19:53.065927
#### 系统提示词
```
你是一位专业的因果推断分析师。你的任务是分析给定的数据,识别因果变量并评估因果关系。
请以 JSON 格式输出分析结果,不要包含任何额外的解释或思考过程。
JSON 输出规范:
{
"treatment": "处理变量名称",
"outcome": "结果变量名称"
}
注意:
- 只输出上述 JSON 格式,不要包含其他字段
- 处理变量和结果变量名称必须与数据表格的列名完全一致
- 不要使用 markdown 代码块标记(如 ```json
- 直接输出纯 JSON 字符串
```
#### 用户提示词
```
请分析以下医疗数据,并严格按照 JSON 格式输出分析结果:
**数据概览:**
- 样本数量500
- 变量id, treatment, health
**统计摘要:**
id treatment health
count 500.000000 500.000000 500.000000
mean 250.500000 0.414000 0.586082
std 144.481833 0.493042 0.236948
min 1.000000 0.000000 0.000000
25% 125.750000 0.000000 0.421975
50% 250.500000 0.000000 0.583000
75% 375.250000 1.000000 0.769625
max 500.000000 1.000000 1.000000
**处理变量分布:**
treatment
0 293
1 207
JSON 输出格式要求:
{
"treatment": "处理变量名称",
"outcome": "结果变量名称"
}
要求:
1. 处理变量和结果变量名称必须与表格列名完全一致
2. 只输出 JSON不要包含其他任何内容
3. 不要使用 markdown 代码块标记
```
#### LLM 输出
```
{
"treatment": "treatment",
"outcome": "health"
}
```
#### 调用参数
```json
{
"data_path": "examples/medical/data.xlsx",
"sample_size": 500,
"variables": [
"id",
"treatment",
"health"
],
"treatment_variable": "treatment",
"outcome_variable": "health",
"llm_params": {
"base_url": "http://10.106.123.247:8000/v1",
"model": "qwen3.5-35b",
"temperature": 0.3,
"max_tokens": 2048
},
"log_path": "examples/medical/log.md"
}
```
---