Views
No views yet

| Metric | Value |
|---|---|
| Test Accuracy | 49.80% |
| vs Random Baseline (6.25%) | 8.0x better |
| vs TF-IDF Baseline (21.73%) | +129.2% improvement |
| Training Time | ~50 seconds (GPU) |
| Dimension | Accuracy | Samples |
|---|---|---|
| E/I | 80.58% | 1398/1735 |
| S/N | 87.15% | 1512/1735 |
| T/F | 81.90% | 1421/1735 |
| J/P | 75.33% | 1307/1735 |
transformers model.1git clone https://github.com/RyanKung/psycial
2cd psycial
3
4# Set up environment
5conda create -n psycial python=3.10
6conda activate psycial
7conda install pytorch
8
9# Build
10export LIBTORCH_USE_PYTORCH=1
11export LIBTORCH_BYPASS_VERSION_CHECK=1
12cargo build --release1from huggingface_hub import hf_hub_download
2
3# Download model files
4mlp_weights = hf_hub_download(
5 repo_id="ElderRyan/psycial",
6 filename="mlp_weights_multitask.pt"
7)
8
9vectorizer = hf_hub_download(
10 repo_id="ElderRyan/psycial",
11 filename="tfidf_vectorizer_multitask.json"
12)
13
14# Copy to models directory
15import shutil
16shutil.copy(mlp_weights, "models/mlp_weights_multitask.pt")
17shutil.copy(vectorizer, "models/tfidf_vectorizer_multitask.json")1# Download model files first (see above)
2
3# Predict single text
4./target/release/psycial hybrid predict "I love solving complex problems and thinking deeply about abstract concepts."1use psycial::hybrid::predict::predict_single;
2
3// Load model and predict
4predict_single("Your text here")?;1# Download inference example
2wget https://huggingface.co/ElderRyan/polyjuice/raw/main/inference_example.py
3
4# Run it
5python inference_example.py1@software{psycial_mbti_2025,
2 title = {Psycial: Multi-Task MBTI Personality Classifier},
3 author = {ElderRyan},
4 year = {2025},
5 url = {https://huggingface.co/ElderRyan/psycial},
6 github = {https://github.com/RyanKung/psycial}
7}