Skip to main content

Knowledge-aware machine learning from multiple sources in Python

Project description

project-monai PyKale


build Unit Tests Documentation Status Conda license

Getting Started | Documentation | Contributing | Discussions

PyKale is a machine learning library that leverages knowledge from multiple sources for accurate and interpretable prediction. It supports graphs, images, and videos now. It is based on PyTorch and several other libraries but differs from existing ones by adopting a unified pipeline-based APIs design and incorporating key recent developments. See the Trello board for an overview.

Machine learning pipeline

PyKale also aims to facilitate interdisciplinary research on knowledge-aware machine learning for graphs, images, and videos in computer vision, graph analysis, and medical imaging applications. Key machine learning areas of interests include dimensionality reduction, deep learning, multimodal learning, and transfer learning.

Pipeline-based modules (core, generic, and reusable)

  • loaddata load data from disk or online resources as in input
  • prepdata preprocess data to fit machine learning modules below (transforms)
  • embed embed data in a new space to learn a new representation (feature extraction/selection)
  • predict predict a desired output
  • evaluate evaluate the performance using some metrics
  • interpret interpret the features and outputs via post-prediction analysis mainly via visualisation
  • pipeline specify a machine learning workflow by combining several other modules

Dataset-specific modules

  • examples: Real-application on particular datasets.

Installation

Requirements:

  • Python >= 3.6
  • PyTorch >= 1.7

Install PyKale using pip or conda:

pip install pykale
conda install -c pykale pykale

You need to first install PyTorch Lightning for kale.embed.pipeline and PyTorch Geometric to work on graphs.

To upgrade to the latest (unstable) version, run

pip install --upgrade git+https://github.com/pykale/pykale.git

To run the unit tests:

python -m unittest

Examples, Tutorials, and Discussions

See our numerous examples (and tutorials) on how to perform prediction tasks in PyKale.

Ask and answer questions over on PyKale's GitHub Discussions tab.

Contributing

PyKale is under active development. Please star and fork PyKale to follow the latest update. Welcome to contribute and join / contact us via email. The participation in this open source project is subject to Code of Conduct.

The Team

PyKale is primarily maintained by a group of researchers at the University of Sheffield: Haiping Lu, Raivo Koot, Xianyuan Liu, Shuo Zhou, and Peizhen Bai.

We would like to thank our other contributors including (but not limited to) David Jones, and Will Furnass.

Citation

@Misc{pykale2021,
  author =   {Haiping Lu and Raivo Koot and Xianyuan Liu and Shuo Zhou and Peizhen Bai},
  title =    {{PyKale}: Knowledge-aware machine learning from multiple sources in Python},
  howpublished = {\url{https://github.com/pykale/pykale}},
  year = {2021}
}

Acknowledgements

The development of PyKale is partially supported by the following project(s).

  • Wellcome Trust Innovator Awards: Digital Technologies Ref 215799/Z/19/Z "Developing a Machine Learning Tool to Improve Prognostic and Treatment Response Assessment on Cardiac MRI Data".

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

pykale-0.1.0a1.tar.gz (86.4 kB view hashes)

Uploaded Source

Built Distribution

pykale-0.1.0a1-py2.py3-none-any.whl (106.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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