SafeAI
Reusable, Easy-to-use Uncertainty module package built with Tensorflow, Keras
Install / Use
/learn @EpiSci/SafeAIREADME
SafeAI: Predictive Uncertainty DL Models
<img src=./assets/SafeguardAI-logo.png width="490px" height="210px">
Reusable, easy-to-use tensorflow uncertainty module package.
Under active development.
Predictive Uncertainty in Deep Learning Models:
Considering deep learning workflow, uncertainty plays a critical role when applying in real applications and is essential property in a safety issue. Autonomous driving, robotics, or critical decision-making, for instance, such domains are especially caring for safety which is uncertainty in deep learning.
Recently, plenty of researches related to uncertainty is actively ongoing. In this project, we leverage TensorFlow to additionally model uncertainty in standard deep learning architectures. Essentially, we focus on reusability and easy-to-use that only least numbers of parameters are necessary to run target functions.
Installation
# Install using pip
$ pip install safeai
# Or, install from source:
$ git clone https://github.com/EpiSci/SafeAI &&\
$ cd SafeAI && pip install -e .
Tensorflow, Python version
Currently, SafeAI is being developed and tested with tensorflow version 1.10, under both python version 3.6 and 2.7.
SafeAI models
SafeAI models are implemented -- [introducing overall concept of our code.]
import tensorflow as tf
from safeai.models import confident_classifier
MESSAGE = "And Short, intuitive sample code goes here"
Run other examples & test code
Every python code in SafeAI was not meant to be directly run as a single script.
Please have them executed as a module, with -m flag
for testing and running the examples in the project.
Also they need to be run from project root folder, not at examples/ directory, nor safeai/tests/.
# Clone project, cd into project, install dependencies
$ git clone https://github.com/EpiSci/SafeAI &&\
$ cd SafeAI && pip install -e .
# To run the example:
$ python -m examples.[script name without '.py'] # e.g.) python -m examples.joint_confident
# To execute all tests
$ python -m unittest discover
List of predictive uncertainty models available:
-
Joint Confident Classifier (safeai/models/joint_confident.py)
: Training Confidence-Calibrated Classifier for Detecting Out-of-distribution Samples(2017)
Kimin Lee et al | arxiv.org/abs | Author's repository -
List other models in the same form as above
Contribute to project:
We appreciate your interest in this project!
Before making an issue, please consider reading Our contribution guideline.
Related Skills
node-connect
347.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
