mirror of
https://github.com/wassname/moral-maps.git
synced 2026-09-28 14:24:19 +08:00
Replace stacked translucent discs (which darkened at overlaps) with a shapely union per zone -> one merged shape, uniform alpha. Each country's territory is now its REAL spread ellipse from its respondent/haze cloud (natural varying shape), not a fixed disc; sizes are rescaled so the median country ~ a legible radius (raw within-country spread >> between-country, would fill the plot). Every country sits in its zone, 2-country zones have area. MFV/WVS (country means only) fall back to a fixed disc. 16pf turned off (unreadable even at 6 macro zones). Adds shapely to the maps extra. Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
42 lines
1.1 KiB
TOML
42 lines
1.1 KiB
TOML
[project]
|
|
name = "tiny-mfv"
|
|
version = "0.1.0"
|
|
description = "Tiny moral-foundations vignettes eval (Clifford 2015 classic + paraphrase configs) for steering checkpoints."
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"transformers>=5.7",
|
|
"torch",
|
|
"pandas",
|
|
"loguru",
|
|
"tqdm",
|
|
"tabulate",
|
|
"numpy",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
# tinymfv.maps (culture-map + range viz) only; `import tinymfv` and the evals stay headless,
|
|
# numeric-only consumers (steering-lite) skip this. Install with `pip install tiny-mfv[maps]`.
|
|
maps = [
|
|
"matplotlib>=3.8",
|
|
"textalloc>=1.2.3", # non-overlapping label placement on the maps
|
|
"shapely>=2.0", # union of per-country discs into one merged zone region
|
|
]
|
|
# tinymfv.read_api (sampling readout for logprob-less API models) only. Install with
|
|
# `pip install tiny-mfv[api]`. The local logprob reader (read.py) needs none of this.
|
|
api = [
|
|
"openai>=1.0",
|
|
"python-dotenv",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"scipy>=1.17.1",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/tinymfv"]
|