Skip to main content

A Python toolbox for multivariate analysis using PCA and PLS methods

Project description

Modules

pyphi Release 6.0

Phi toolbox for multivariate analysis by Sal Garcia (salvadorgarciamunoz@gmail.com, sgarciam@ic.ac.uk)

Documentation: https://salvadorgarciamunoz.github.io/pyphi/index.html

pyphi_plots

A variety of plotting tools for models created with pyphi.

pyphi_batch

Batch analysis toolbox to perform batch alightment and Multi-way models for batch data

Getting Started

Pyphi requires the python packages listed in the requirements.txt file.

Installation

  1. Ensure you have Python 3 installed and accessible via your terminal ("python" command).
  2. Download this repository via git clone or manually using the download zip button at the top of the page.
  3. Install the pyphi, pyphi_plots and pyphi_batch modules by opening a terminal window, navigating to the root of this repository, and typing pip install -r requirements.txt.

To confirm you have a working installation, navigate to the Examples folder and copy the Example_Script.py to the directory of your choice. Run python Example_Script.py, verifying there are no errors logged to the console.

Optional External Dependencies

  • IPOPT as an executable in your system path or GAMS python module or GAMS executable in yoru system path.

    • Windows: conda install -c conda-forge IPOPT=3.11.1 or download from IPOPT releases page, extract and add the IPOPT\bin folder to your system path or add all files to your working directory.

    • Mac/Linux: conda install -c conda-forge IPOPT, download from IPOPT releases page, or Compile using coinbrew.

    • if GAMS is installed, pyphi will run ipopt via GAMS, make sure the GAMS executables are reachable through the system PATH

  • If IPOPT is not detected, pyphi will submit the pyomo models to the NEOS server to solve them remotely.

    • To use the NEOS server, the environment variable "NEOS_EMAIL" must be assigned a valid email. This can be done outside of python using set/set/export or use import os os.environ["NEOS_EMAIL"] = youremail@domain.com in your code.

Run the script '''Example_Script_testing_MD_by_NLP.py''' to verify that pyphi can execute IPOPT

Adding a folder to your system path:

  • Windows: temporary set PATH=C:\Path\To\ipopt\bin;%PATH% or persistent setx PATH=C:\Path\To\ipopt\bin;%PATH%.
  • Mac/Linux: export PATH=/path/to/ipopt:$PATH, add to .profile/.*rc file to make persistent.
  • Both via Conda: after activating your environment, use conda env config vars set and your OS-specific set or export command.

This is Release 4.0 the lastest added in terms of computation is the calculation of the Covariant scores and loadings (equivalent to what you get with OPLS) with the '''cca''' flag in the PLS routing

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

pyphi_mvda-6.0.tar.gz (7.4 MB view details)

Uploaded Source

Built Distribution

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

pyphi_mvda-6.0-py3-none-any.whl (85.2 kB view details)

Uploaded Python 3

File details

Details for the file pyphi_mvda-6.0.tar.gz.

File metadata

  • Download URL: pyphi_mvda-6.0.tar.gz
  • Upload date:
  • Size: 7.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pyphi_mvda-6.0.tar.gz
Algorithm Hash digest
SHA256 afed2eae130029bd8c1427bb9256b96861da7cbada23714be0ca4f5165af7087
MD5 8062333b5e4100def465bfc8fd5b170f
BLAKE2b-256 530d9a6528cb7c89b777e43709ee878e6e558c46f1866e33ef7034b2979cd608

See more details on using hashes here.

File details

Details for the file pyphi_mvda-6.0-py3-none-any.whl.

File metadata

  • Download URL: pyphi_mvda-6.0-py3-none-any.whl
  • Upload date:
  • Size: 85.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pyphi_mvda-6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f754a30ad60d1aadfb15e174aff309c1a313d2e1b63c415360e92109ec36974c
MD5 fa98991ac6b097d030383d5b0a976469
BLAKE2b-256 2d31ed15b8593a5e4e0be4f91fb4209aa2f833fbb2ac04c9a219cedef0f1f96d

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