personalitylinmult.inference.cli

Command-line inference: features in, Big Five scores out.

Example

Predict with the audio-only model from an .npz of features:

uv run python -m personalitylinmult.inference             --checkpoint results/FI/bigfive/checkpoints/best.ckpt             --features clip_features.npz

The .npz holds one (T, F) array per feature the model expects, keyed by feature name (wavlm, emotion2vec, …).

Attributes

logger

Module-level logger.

Functions

load_features(→ dict[str, numpy.ndarray])

Load a {feature_name: (T, F)} mapping from an .npz file.

main(→ None)

CLI entry point.

Module Contents

personalitylinmult.inference.cli.logger

Module-level logger.

personalitylinmult.inference.cli.load_features(path: pathlib.Path) → dict[str, numpy.ndarray][source]

Load a {feature_name: (T, F)} mapping from an .npz file.

Parameters:

path (Path) – Path to a .npz with one array per feature.

Returns:

The feature mapping.

Return type:

dict[str, np.ndarray]

personalitylinmult.inference.cli.main() → None[source]

CLI entry point.