nyk510 / simple-ngboost

Simple NGBoost Implementation written by numpy and sklearn.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NGBoost

Simple NGBoost (Natural Gradient Boosting for Probabilistic Prediction) Implementation.

Quick Start

Install Docker and docker-compose on your local machine.

docker-compose up -d --build

docker exec -it ngboost-jupyter bash

Run

python ngboost.py

Conditions

  • Data: Artificial Data
    • Input: 1-dimension
    • Target: true_function + random noise scaled by input X
  • NGBoost Parameters:
    • Weak Learner: Decision Tree
    • Distribution: Normal Distribution
      • re-parameterized \theta = ln (var (i.e. \sigma^2))
    • Use Natural Gradient
    • n_estimators: 500
    • learning_rate 1e-2

Result

About

Simple NGBoost Implementation written by numpy and sklearn.


Languages

Language:Python 97.1%Language:Dockerfile 2.9%