Skip to main content

Toolbox for inferring psychological embeddings.

Project description

PsiZ logo

PyPI version Python Documentation Status codecov


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.

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 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 depends on TensorFlow. Please see the TF compatibility matrix for supported Python and CUDA versions for each version of TensorFlow.
  • 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psiz-0.8.0rc1.tar.gz (34.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

psiz-0.8.0rc1-py3-none-any.whl (226.9 kB view details)

Uploaded Python 3

File details

Details for the file psiz-0.8.0rc1.tar.gz.

File metadata

  • Download URL: psiz-0.8.0rc1.tar.gz
  • Upload date:
  • Size: 34.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for psiz-0.8.0rc1.tar.gz
Algorithm Hash digest
SHA256 ca8232323e80107fe13b675be7ff2a383807424188904c62eb3e0ca20510f852
MD5 5645d5200fa3580253fb175c6ec79cb7
BLAKE2b-256 284e264f2ec536e1a4a882837ffafa1c7b8aeb8aa7db24ef862ed82ab36b6eb3

See more details on using hashes here.

File details

Details for the file psiz-0.8.0rc1-py3-none-any.whl.

File metadata

  • Download URL: psiz-0.8.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 226.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for psiz-0.8.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 536ecaf8780598f737eb80348a79ea67a0bc8b4752cbda29fc0dd256b5f1a0ec
MD5 9e0fbec2c1b2e6e6dfd38542659667a5
BLAKE2b-256 79e4a93ed2e98618cf9a510a3b3a39a50a2077cc683bb5a7ef028ae36310780d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page