Classify content into 6 founder games using trained ML models
Project description
Founder Game Classifier
Classify content into 6 founder games using trained ML models.
Installation
pip install founder-game-classifier
Quick Start
from founder_game_classifier import GameClassifier
# Load the model (downloads from Hugging Face Hub on first use)
classifier = GameClassifier.from_pretrained("leoguinan/founder-game-classifier")
# Classify text
result = classifier.predict("Here's a tactic you can steal for your next launch...")
print(result["primary_game"]) # "G2"
print(result["confidence"]) # 0.72
print(result["probabilities"]) # {"G1": 0.05, "G2": 0.72, ...}
The 6 Founder Games
| Game | Name | Description |
|---|---|---|
| G1 | Identity/Canon | Recruiting into identity, lineage, belonging, status |
| G2 | Ideas/Play Mining | Extracting reusable tactics, heuristics; "do this / steal this" |
| G3 | Models/Understanding | Building mental models, frameworks, explanations |
| G4 | Performance/Competition | Winning, execution, metrics, zero-sum edges |
| G5 | Meaning/Therapy | Healing, values, emotional processing, transformation |
| G6 | Network/Coordination | Community building, protocols, collective action |
Usage
Single Text Classification
result = classifier.predict("Here's the mental model I use...")
print(result)
# {
# "primary_game": "G3",
# "secondary_game": "G2",
# "confidence": 0.68,
# "probabilities": {"G1": 0.05, "G2": 0.22, "G3": 0.68, ...},
# "primary_description": "Model/Understanding: building mental models...",
# "secondary_description": "Idea/Play Mining: extracting reusable..."
# }
Batch Classification
texts = [
"Here's the mental model I use for thinking about systems...",
"Join our community of builders who are changing the world...",
"I tried 47 different tactics. Here's what actually worked...",
]
results = classifier.predict_batch(texts)
for text, result in zip(texts, results):
print(f"{result['primary_game']}: {text[:50]}...")
# G3: Here's the mental model I use for thinking about...
# G6: Join our community of builders who are changing...
# G2: I tried 47 different tactics. Here's what actual...
Aggregate Game Signature
Analyze the overall game distribution of a corpus:
# Load your content
texts = [
open(f).read() for f in Path("my_blog_posts/").glob("*.txt")
]
# Get aggregate signature
signature = classifier.get_game_signature(texts)
print(signature)
# {'G1': 0.05, 'G2': 0.42, 'G3': 0.18, 'G4': 0.20, 'G5': 0.08, 'G6': 0.07}
Local Model Loading
If you have the model files locally:
classifier = GameClassifier.from_local(
model_dir="./models/founder_classifier",
manifolds_path="./game_manifolds.json", # Optional
)
Model Details
- Embedding Model:
all-MiniLM-L6-v2(384 dimensions) - Classifier: Logistic Regression
- Training Data: Labeled founder content (podcasts, blogs, tweets)
Requirements
- Python 3.9+
- sentence-transformers
- scikit-learn
- huggingface-hub
License
MIT License
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file founder_game_classifier-0.1.0.tar.gz.
File metadata
- Download URL: founder_game_classifier-0.1.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3820b83eb22611d531f4e0ef9845bfb78e14bf98064e12010fefa10ee60d77ca
|
|
| MD5 |
dfdeee6580aac19079b12c2c4fb44030
|
|
| BLAKE2b-256 |
7e169c65c3490236b6e4df53bf9bcce97eb003b234c80c6adc188422716f99c1
|
File details
Details for the file founder_game_classifier-0.1.0-py3-none-any.whl.
File metadata
- Download URL: founder_game_classifier-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a47a4456ecdc8528bda2d2ca7867ed92fb98e7b0b549333c018ed09392867b7
|
|
| MD5 |
e45c5f72b81b6c6cbd5e3b07b0b97b3c
|
|
| BLAKE2b-256 |
7a54b588619ab29cdc815c2ad51455399bc9eb45063cb947d9341ace37003b84
|