Skip to main content

PsiZ logo

PyPI version Python Documentation Status codecov Code style: black


WARNING: This package is pre-release and the API is not stable. All APIs are subject to change and all releases are alpha.


Purpose

PsiZ provides computational tools for modeling how people perceive the world. The primary use case of PsiZ is to infer psychological representations from human behavior (e.g., similarity judgments). The package integrates cognitive theory with modern computational methods.

Resources

What's in a name?

The name PsiZ (pronounced like the word size, /sʌɪz/) is meant to serve as shorthand for the term psychological embedding. The greek letter Psi is often used to denote the field of psychology and the matrix variable Z is often used in machine learning to denote a latent feature space.

Installation

There are two different ways to install: PyPI or git. Installing via git has the advantage of including examples and tests in the cloned repository.

At the moment, PsiZ installs both TensorFlow and Pytorch as dependencies. A majority of Psiz will work with both backend frameworks, but not all features (such as stochastic layers) are supported for pytorch.

Using PyPI

pip install psiz

You can optionally install the Python packages necessary for running package tests (e.g., pytest):

pip install "psiz[test]"

Using uv

uv sync

Install with test dependencies:

uv sync --extra test

Using git

# Clone the PsiZ repository from GitHub to your local machine.
git clone https://github.com/psiz-org/psiz.git
# Use pip to install the cloned repository.
pip install /local/path/to/psiz

Notes:

  • PsiZ originally required TensorFlow. By default, PsiZ installs the CPU version of TensorFlow. If you want GPU acceleration, you must manually install a CUDA-enabled TensorFlow build that matches your Python/CUDA environment. Please see the TF compatibility matrix for supported Python and CUDA versions for each version of TensorFlow. As of PsiZ v0.12, Keras 3 is used for the majority of layers, which allows users to use either TensorFlow or Pytorch. Your preferred backend can be set by modifying the configuration file automatically created by Keras: ~/.keras/keras.json. Pytorch support is still experimental.
  • PsiZ versions <=0.5.0 must be installed using git clone and editable mode (e.g., pip install -e /local/path/to/psiz).
  • You can install specific releases:
    • using PyPI: pip install 'psiz==0.5.1'
    • using git: git clone https://github.com/psiz-org/psiz.git --branch v0.5.1

Attribution

If you use PsiZ in your work please cite at least one of the following:

@InProceedings{Roads_Love_2021:CVPR,
    title     = {Enriching ImageNet with Human Similarity Judgments and Psychological Embeddings},
    author    = {Brett D. Roads and Bradley C. Love},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    year      = {2021},
    month     = {6},
    pages     = {3547--3557}
    doi       = {10.1109/CVPR46437.2021.00355},
}
@Article{Roads_Mozer_2019:BRM,
    title   = {Obtaining psychological embeddings through joint kernel and metric learning},
    author  = {Brett D. Roads and Michael C. Mozer},
    journal = {Behavior Research Methods},
    year    = {2019},
    volume  = {51},
    pages   = {2180–-2193},
    doi     = {10.3758/s13428-019-01285-3}
}

Contribution Guidelines

If you would like to contribute please see the contributing guidelines.

This project uses a Code of Conduct adapted from the Contributor Covenant version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Licence

This project is licensed under the Apache Licence 2.0 - see LICENSE file for details.

Metadata

Release files for psiz 0.13.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for psiz 0.13.1
File Size Uploaded
psiz-0.13.1.tar.gz 37.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for psiz 0.13.1
File Interpreter ABI Platform
psiz-0.13.1-py3-none-any.whl Python 3 none any Details

Total release size: 37.4 MB

Release files / psiz-0.13.1.tar.gz

Download URL psiz-0.13.1.tar.gz
Size 37.2 MB
Tags Source
SHA-256 checksum
How to use checksums
b7fe8cf9562cc920a62a9be4488b349e22604ea4f1d9aded87d486c367e00dda
BLAKE2b-256 checksum
How to use checksums
01b5b10be29b9860aa4ce6092b749885bcd6dfdb4a3fd9cc15435edb1e5df92f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Release files / psiz-0.13.1-py3-none-any.whl

Download URL psiz-0.13.1-py3-none-any.whl
Size 162.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d61f9ab4d52002ac0e42c8d1fe765cf12b4a7a89696c4ee91096ab12b40da6d3
BLAKE2b-256 checksum
How to use checksums
5c117d43ed8d169e46772cbb5153dc2b8aa97e35ea166c177cb1a341c6210e52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.13.1 This release

2 release files

0.12.4

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page