Skip to content

Commit 16cd1bc

Browse files
committed
restructuring folders
1 parent c968c8f commit 16cd1bc

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

ollama_belief_bias_single_model.py renamed to belief bias/scripts/ollama_belief_bias_single_model.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22
import re
33
import json
44
import csv
5+
import os
56
import matplotlib.pyplot as plt
67
from collections import defaultdict
78

8-
# Config
9+
# Configuration
910
OLLAMA_URL = "http://localhost:11434/api/generate"
1011
MODEL_NAME = "llama3.2:1b"
11-
QUESTIONS_FILE = "belief_bias_questions.json"
12-
CSV_OUTPUT = f"model_belief_bias_results.csv"
13-
PNG_OUTPUT = f"model_belief_bias_chart.png"
12+
13+
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
14+
QUESTIONS_FILE = os.path.join(BASE_DIR, "test", "belief_bias_questions.json")
15+
CSV_OUTPUT = os.path.join(BASE_DIR, "output", "model_belief_bias_results.csv")
16+
PNG_OUTPUT = os.path.join(BASE_DIR, "output", "model_belief_bias_chart.png")
1417

1518
# Load questions
1619
with open(QUESTIONS_FILE, "r", encoding="utf-8") as f:
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22
import re
33
import json
44
import csv
5+
import os
56
import matplotlib.pyplot as plt
67
from collections import defaultdict
78

8-
# Config
9+
# Configuration
910
OLLAMA_URL = "http://localhost:11434/api/generate"
1011
MODEL_NAME = "qwen3:8b"
11-
QUESTIONS_FILE = "belief_bias_questions.json"
12-
CSV_OUTPUT = f"model_belief_bias_results.csv"
13-
PNG_OUTPUT = f"model_belief_bias_chart.png"
12+
13+
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
14+
QUESTIONS_FILE = os.path.join(BASE_DIR, "test", "belief_bias_questions.json")
15+
CSV_OUTPUT = os.path.join(BASE_DIR, "output", "model_belief_bias_results.csv")
16+
PNG_OUTPUT = os.path.join(BASE_DIR, "output", "model_belief_bias_chart.png")
1417

1518
# Load questions
1619
with open(QUESTIONS_FILE, "r", encoding="utf-8") as f:
File renamed without changes.

0 commit comments

Comments
 (0)