Skip to main content

An ensemble xgboost model made by bright-rookie.

Project description

AISAFE-BACKEND

A backend leveraging gradient boosting machines and multimodal neural networks for early detection of child abuse.

DISCLAIMER

The information provided by aisafe_back (owned by GitHub user bright-rookie) on this GitHub repository or on the website aisafe.qbio.page is for educational and informational purposes only. All code and data within this repository or information garnered from the website are mock data and examples intended solely for demonstration and experimentation with machine learning models. This repository does not contain functional AI models or real medical data, and any outputs generated by the code are purely fictional and lack any basis in real-world medical analysis or diagnostics.

UNDER NO CIRCUMSTANCES should any code, data, or outputs from this repository or the website be used in clinical settings, to make medical decisions, or as a substitute for professional healthcare advice. bright-rookie and contributors to this repository disclaim any liability for damages resulting from the use or misuse of information contained within this repository. Use of this repository and reliance on any content derived from this repository, or the use of the data from the website are entirely at your own risk.

This repository or website may contain links to other websites or external content maintained by third parties. These links are provided for convenience only, and bright-rookie and contributors do not endorse, guarantee, or take responsibility for the accuracy or completeness of any information available through these links. We have not investigated or verified the content of linked websites. Use of such external resources is also entirely at your own risk.

Professional Disclaimer

This repository or website does not provide real medical or health advice. The code and data are intended solely for instructional purposes in machine learning and should not be used for any medical or diagnostic purposes. The repository or website does not and cannot provide any kind of medical advice or treatment recommendation. For any medical concerns, consult a qualified healthcare professional.

Installation

pip install aisafe_xgboost

Usage

aisafe_xgboost can be used as either a CLI or a Python package. To train the model, run the following command:

safe-train

To use the model in python, run the following command:

>>> from aisafe_xgboost import model
>>> prediction, explainability = model(
    info = info, # Iterable of Length 4 [Patient Age, Sex, Height Percentile, Weight Percentile]
    bruise = bruse, # Iterable of Length 11 [float]
    response = response, # Iterable of Length 9 [int]
    lab = lab, # Iterable of Length 19 [float]
    xray = xray, # Iterable of Length 9 [float]
    video = video, # Iterable of Length 30 [float]
)
>>> prediction 
0.75
>>> explainability 
[("문진정보", 0.5), ("Lab 수치", 0.3), ("X-ray 영상", 0.1), ("진료 영상", 0.1), ("신체 계측치", 0.0), ("멍 정보", 0.0)]

Project Organization

├── LICENSE            <- Open-source license if one is chosen
├── README.md          <- The top-level README for developers using this project.
├── data
│   ├── external       <- Data from third party sources.
│   ├── interim        <- Intermediate data that has been transformed.
│   ├── processed      <- The final, canonical data sets for modeling.
│   └── raw            <- The original, immutable data dump.
│
│
├── models             <- Trained and serialized models, model predictions, or model summaries
│
├── notebooks          <- Jupyter notebooks. 
│
├── pyproject.toml     <- Project configuration file with package metadata for 
│                         aisafe and configuration for tools like black
│
├── references         <- Data dictionaries, manuals, and all other explanatory materials.
│
│
└── aisafe_xgboost   <- Source code for use in this project.
    │
    ├── __init__.py             <- Makes aisafe a Python module
    │
    ├── training.py             <- For training the xgboost model
    │
    ├── utils.py                <- General utility functions for parsing data
    │
    ├── inference.py            <- Code to run model inference with trained models
    │
    ├── models                
    │   ├── *.ubj               <- XGBoost models, stored as .ubj files (universal binary format) 
    │   └── *.npy               <- Weights for combinining the xgboost model as an ensemble        
    │
    ├── growth data                 
    │   └── *.csv               <- Growth Data for Korean male/female children
    └── mock_data
         └── *.csv              <- Mock data for training the model

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

aisafe_xgboost-0.1.0.tar.gz (159.7 kB view details)

Uploaded Source

Built Distribution

aisafe_xgboost-0.1.0-py3-none-any.whl (176.3 kB view details)

Uploaded Python 3

File details

Details for the file aisafe_xgboost-0.1.0.tar.gz.

File metadata

  • Download URL: aisafe_xgboost-0.1.0.tar.gz
  • Upload date:
  • Size: 159.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for aisafe_xgboost-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8e314dbae89a936bcae21ab2e49b51cb63ffbac7b89ee665b10d82bf76be742c
MD5 9af95b1f376537ca550bb138948da628
BLAKE2b-256 5cf94f6a173292daf4a0b502ab4ab97fefc8b2206cc1ea6bb981e67c79d0d2b2

See more details on using hashes here.

File details

Details for the file aisafe_xgboost-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aisafe_xgboost-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40c12d80f16f9c08813d04f84d6c7da3520329346a7888afbbcb5ba90c058d15
MD5 c5134378c6869a7500589aa47cbdbfe1
BLAKE2b-256 dd9df75af7577f5bd183b33321ac9f03caaaae5313e376a416d9ad1f574d7433

See more details on using hashes here.

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