Ncp
Reliable Uncertainty Estimates in Deep Neural Networks using Noise Contrastive Priors
Install / Use
/learn @brain-research/NcpREADME
Noise Contrastive Priors
This project contains the source code for Noise Contrastive Priors (NCP) by Danijar Hafner, Dustin Tran, Alex Irpan, Timothy Lillicrap, James Davidson.
Running the code
Install dependencies:
pip3 install numpy tensorflow tensorflow_probability matplotlib ruamel.yaml
Active learning on the toy data set:
python3 -m ncp.scripts.toy_active --seeds 20 --logdir /path/to/logdir
Active learning on the flights delay data set:
python3 -m ncp.scripts.flights_active \
--seeds 10 \
--dataset /path/to/dataset \
--logdir /path/to/logdir
The data set path should be a file prefix for four Numpy files named
<dataset>-train-inputs.npy, <dataset>-train-targets.npy,
<dataset>-test-inputs.npy, <dataset>-test-targets.npy.
Related Skills
node-connect
347.6kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.4kCreate 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.6kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.6kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
