All Projects → microsoft → hi-ml

microsoft / hi-ml

Licence: MIT license
HI-ML toolbox for deep learning for medical imaging and Azure integration

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to hi-ml

azureml-cheatsheets
Azure Machine Learning Cheat Sheets
Stars: ✭ 23 (-84.67%)
Mutual labels:  ml, azureml
COVID-Net
Launched in March 2020 in response to the coronavirus disease 2019 (COVID-19) pandemic, COVID-Net is a global open source, open access initiative dedicated to accelerating advancement in machine learning to aid front-line healthcare workers and clinical institutions around the world fighting the continuing pandemic. Towards this goal, our global…
Stars: ✭ 41 (-72.67%)
Mutual labels:  ml, healthcare
oomstore
Lightweight and Fast Feature Store Powered by Go (and Rust).
Stars: ✭ 76 (-49.33%)
Mutual labels:  ml, mlops
VickyBytes
Subscribe to this GitHub repo to access the latest tech talks, tech demos, learning materials & modules, and developer community updates!
Stars: ✭ 48 (-68%)
Mutual labels:  ml, mlops
Awesome Mlops
A curated list of references for MLOps
Stars: ✭ 7,119 (+4646%)
Mutual labels:  ml, mlops
cli
Polyaxon Core Client & CLI to streamline MLOps
Stars: ✭ 18 (-88%)
Mutual labels:  ml, mlops
vertex-ai-samples
Sample code and notebooks for Vertex AI, the end-to-end machine learning platform on Google Cloud
Stars: ✭ 270 (+80%)
Mutual labels:  ml, mlops
All In One
👔 Health care application for reminding health-todo lists and making healthy habits every day.
Stars: ✭ 109 (-27.33%)
Mutual labels:  health, healthcare
Metaflow
🚀 Build and manage real-life data science projects with ease!
Stars: ✭ 5,108 (+3305.33%)
Mutual labels:  ml, mlops
Hub
Dataset format for AI. Build, manage, & visualize datasets for deep learning. Stream data real-time to PyTorch/TensorFlow & version-control it. https://activeloop.ai
Stars: ✭ 4,003 (+2568.67%)
Mutual labels:  ml, mlops
metaflowbot
Slack bot for monitoring your Metaflow flows!
Stars: ✭ 22 (-85.33%)
Mutual labels:  ml, mlops
Bentoml
Model Serving Made Easy
Stars: ✭ 3,064 (+1942.67%)
Mutual labels:  ml, mlops
Opal
A web framework for building highly usable healthcare applications.
Stars: ✭ 227 (+51.33%)
Mutual labels:  health, healthcare
neptune-client
📒 Experiment tracking tool and model registry
Stars: ✭ 348 (+132%)
Mutual labels:  ml, mlops
Openemr
The most popular open source electronic health records and medical practice management solution.
Stars: ✭ 1,762 (+1074.67%)
Mutual labels:  health, healthcare
deepchecks
Test Suites for Validating ML Models & Data. Deepchecks is a Python package for comprehensively validating your machine learning models and data with minimal effort.
Stars: ✭ 1,595 (+963.33%)
Mutual labels:  ml, mlops
Keera Posture
Alleviate your back pain using Haskell and a webcam
Stars: ✭ 48 (-68%)
Mutual labels:  health, healthcare
Mri Analysis Pytorch
MRI analysis using PyTorch and MedicalTorch
Stars: ✭ 55 (-63.33%)
Mutual labels:  health, healthcare
Polyaxon
Machine Learning Platform for Kubernetes (MLOps tools for experimentation and automation)
Stars: ✭ 2,966 (+1877.33%)
Mutual labels:  ml, mlops
Feast
Feature Store for Machine Learning
Stars: ✭ 2,576 (+1617.33%)
Mutual labels:  ml, mlops

Microsoft Health Intelligence Machine Learning Toolbox

Codecov coverage Code style: black

Overview

This toolbox aims at providing low-level and high-level building blocks for Machine Learning / AI researchers and practitioners. It helps to simplify and streamline work on deep learning models for healthcare and life sciences, by providing tested components (data loaders, pre-processing), deep learning models, and cloud integration tools.

This repository consists of two Python packages, as well as project-specific codebases:

  • PyPi package hi-ml-azure - providing helper functions for running in AzureML.
  • PyPi package hi-ml - providing ML components.
  • hi-ml-cpath: Models and workflows for working with histopathology images

Getting started

For the full toolbox (this will also install hi-ml-azure):

  • Install from pypi via pip, by running pip install hi-ml

For just the AzureML helper functions:

  • Install from pypi via pip, by running pip install hi-ml-azure

For the histopathology workflows, please follow the instructions here.

If you would like to contribute to the code, please check the developer guide.

Documentation

The detailed package documentation, with examples and API reference, is on readthedocs.

Quick start: Using the Azure layer

Use case: you have a Python script that does something - that could be training a model, or pre-processing some data. The hi-ml-azure package can help easily run that on Azure Machine Learning (AML) services.

Here is an example script that reads images from a folder, resizes and saves them to an output folder:

from pathlib import Path
if __name__ == '__main__':
    input_folder = Path("/tmp/my_dataset")
    output_folder = Path("/tmp/my_output")
    for file in input_folder.glob("*.jpg"):
        contents = read_image(file)
        resized = contents.resize(0.5)
        write_image(output_folder / file.name)

Doing that at scale can take a long time. We'd like to run that script in AzureML, consume the data from a folder in blob storage, and write the results back to blob storage.

With the hi-ml-azure package, you can turn that script into one that runs on the cloud by adding one function call:

from pathlib import Path
from health_azure import submit_to_azure_if_needed
if __name__ == '__main__':
    current_file = Path(__file__)
    run_info = submit_to_azure_if_needed(compute_cluster_name="preprocess-ds12",
                                         input_datasets=["images123"],
                                         # Omit this line if you don't create an output dataset (for example, in
                                         # model training scripts)
                                         output_datasets=["images123_resized"],
                                         default_datastore="my_datastore")
    # When running in AzureML, run_info.input_datasets and run_info.output_datasets will be populated,
    # and point to the data coming from blob storage. For runs outside AML, the paths will be None.
    # Replace the None with a meaningful path, so that we can still run the script easily outside AML.
    input_dataset = run_info.input_datasets[0] or Path("/tmp/my_dataset")
    output_dataset = run_info.output_datasets[0] or Path("/tmp/my_output")
    files_processed = []
    for file in input_dataset.glob("*.jpg"):
        contents = read_image(file)
        resized = contents.resize(0.5)
        write_image(output_dataset / file.name)
        files_processed.append(file.name)
    # Any other files that you would not consider an "output dataset", like metrics, etc, should be written to
    # a folder "./outputs". Any files written into that folder will later be visible in the AzureML UI.
    # run_info.output_folder already points to the correct folder.
    stats_file = run_info.output_folder / "processed_files.txt"
    stats_file.write_text("\n".join(files_processed))

Once these changes are in place, you can submit the script to AzureML by supplying an additional --azureml flag on the commandline, like python myscript.py --azureml.

That's it!

For details, please refer to the onboarding page.

For more examples, please see examples.md.

Issues

If you've found a bug in the code, please check the issues page. If no existing issue exists, please open a new one. Be sure to include

  • A descriptive title
  • Expected behaviour (including a code sample if possible)
  • Actual behavior

Contributing

We welcome all contributions that help us achieve our aim of speeding up ML/AI research in health and life sciences. Examples of contributions are

  • Data loaders for specific health & life sciences data
  • Network architectures and components for deep learning models
  • Tools to analyze and/or visualize data
  • ...

Please check the detailed page about contributions.

Licensing

MIT License

You are responsible for the performance, the necessary testing, and if needed any regulatory clearance for any of the models produced by this toolbox.

Contact

If you have any feature requests, or find issues in the code, please create an issue on GitHub.

Contribution Licensing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].