Update: fix username links to PremC1F and premxai/emotion_engine
Browse files- README.md +5 -5
- emotion_engine.py +3 -3
README.md
CHANGED
|
@@ -26,7 +26,7 @@ emotional appraisal in generative agents.
|
|
| 26 |
|
| 27 |
> Paper: *Emergent Emotional Appraisal in Generative Agents via Predictive World Modeling*
|
| 28 |
> Author: Prem Babu Kanaparthi
|
| 29 |
-
> Code: [github.com/
|
| 30 |
|
| 31 |
---
|
| 32 |
|
|
@@ -160,10 +160,10 @@ Each record contains the following fields:
|
|
| 160 |
from datasets import load_dataset
|
| 161 |
|
| 162 |
# Load a specific condition
|
| 163 |
-
ds = load_dataset("
|
| 164 |
|
| 165 |
# Load all conditions
|
| 166 |
-
ds = load_dataset("
|
| 167 |
|
| 168 |
# Filter to a specific scenario
|
| 169 |
night_only = ds["train"].filter(lambda x: x["scenario"] == "standard_night")
|
|
@@ -179,7 +179,7 @@ from datasets import load_dataset
|
|
| 179 |
import numpy as np
|
| 180 |
from scipy.stats import fisher_exact
|
| 181 |
|
| 182 |
-
ds = load_dataset("
|
| 183 |
df = ds.to_pandas()
|
| 184 |
|
| 185 |
ghost_present = df[df["obs_visible_ghosts"] > 0]
|
|
@@ -206,7 +206,7 @@ print(f"Fisher p = {p:.2e}")
|
|
| 206 |
```python
|
| 207 |
from datasets import load_dataset
|
| 208 |
|
| 209 |
-
ds = load_dataset("
|
| 210 |
df = ds.to_pandas()
|
| 211 |
|
| 212 |
refusals = df[df["action"] == "refuse_help"].copy()
|
|
|
|
| 26 |
|
| 27 |
> Paper: *Emergent Emotional Appraisal in Generative Agents via Predictive World Modeling*
|
| 28 |
> Author: Prem Babu Kanaparthi
|
| 29 |
+
> Code: [github.com/premxai/emotion_engine](https://github.com/premxai/emotion_engine)
|
| 30 |
|
| 31 |
---
|
| 32 |
|
|
|
|
| 160 |
from datasets import load_dataset
|
| 161 |
|
| 162 |
# Load a specific condition
|
| 163 |
+
ds = load_dataset("PremC1F/emotion-engine", "condition_d")
|
| 164 |
|
| 165 |
# Load all conditions
|
| 166 |
+
ds = load_dataset("PremC1F/emotion-engine", "all")
|
| 167 |
|
| 168 |
# Filter to a specific scenario
|
| 169 |
night_only = ds["train"].filter(lambda x: x["scenario"] == "standard_night")
|
|
|
|
| 179 |
import numpy as np
|
| 180 |
from scipy.stats import fisher_exact
|
| 181 |
|
| 182 |
+
ds = load_dataset("PremC1F/emotion-engine", "condition_d", split="train")
|
| 183 |
df = ds.to_pandas()
|
| 184 |
|
| 185 |
ghost_present = df[df["obs_visible_ghosts"] > 0]
|
|
|
|
| 206 |
```python
|
| 207 |
from datasets import load_dataset
|
| 208 |
|
| 209 |
+
ds = load_dataset("PremC1F/emotion-engine", "condition_d", split="train")
|
| 210 |
df = ds.to_pandas()
|
| 211 |
|
| 212 |
refusals = df[df["action"] == "refuse_help"].copy()
|
emotion_engine.py
CHANGED
|
@@ -8,10 +8,10 @@ Usage:
|
|
| 8 |
from datasets import load_dataset
|
| 9 |
|
| 10 |
# Single condition
|
| 11 |
-
ds = load_dataset("
|
| 12 |
|
| 13 |
# All conditions concatenated
|
| 14 |
-
ds = load_dataset("
|
| 15 |
"""
|
| 16 |
|
| 17 |
import datasets
|
|
@@ -47,7 +47,7 @@ Each record contains: full 14-dim observation, 6-dim emotion vector,
|
|
| 47 |
action taken, and outcome metadata.
|
| 48 |
"""
|
| 49 |
|
| 50 |
-
_HOMEPAGE = "https://github.com/
|
| 51 |
_LICENSE = "MIT"
|
| 52 |
|
| 53 |
_CONDITIONS = [
|
|
|
|
| 8 |
from datasets import load_dataset
|
| 9 |
|
| 10 |
# Single condition
|
| 11 |
+
ds = load_dataset("PremC1F/emotion-engine", "condition_d")
|
| 12 |
|
| 13 |
# All conditions concatenated
|
| 14 |
+
ds = load_dataset("PremC1F/emotion-engine", "all")
|
| 15 |
"""
|
| 16 |
|
| 17 |
import datasets
|
|
|
|
| 47 |
action taken, and outcome metadata.
|
| 48 |
"""
|
| 49 |
|
| 50 |
+
_HOMEPAGE = "https://github.com/PremC1F/emotion-engine"
|
| 51 |
_LICENSE = "MIT"
|
| 52 |
|
| 53 |
_CONDITIONS = [
|