Skip to main content

Relational Functional Gradient Boosting in Python.

Project description

Python Package Index (PyPi) latest version. License. Master branch build status. Master branch code coverage. Documentation build status and link to documentation.

rfgb: Relational Functional Gradient Boosting (in Python).


Stable builds may be installed from PyPi

pip install rfgb

Or develop further by cloning the repository

git clone
cd rfgb/
python develop


Learning with a relational dependency network.

cd testDomains/Logistics/
rfgb init
rfgb learn rdn -target unload

Additional options for each subcommand may be viewed by passing -h as a parameter.

rfgb -h
rfgb learn rdn -h

Classification with Expert Advice (-advice)

Preferred and non-preferred labels may be provided as advice during classification via logical rules. This advice may be specified in a file named advice.txt in the train directory for a dataset.

Four datasets (BlocksWorld, HeartAttack, Logistics, and MoodDisorder) have an advice file included for demonstration

  1. Logistics
cd testDomains/Logistics/
rfgb init
rfgb learn rdn -advice -target unload
  1. HeartAttack
cd testDomains/HeartAttack/
rfgb init
rfgb learn rdn -advice -target ha


“Targets” specify what is learned, examples of the target are provided in pos.txt, neg.txt, or examples.txt (for regression). These are specified here for convenience.

Dataset Target
BlocksWorld putdown
BostonHousing medv
HeartAttack ha
Insurance value
Logistics unload
MoodDisorder bipolar
TicTacToe put or dontput
ToyCancer cancer
XOR xor

In Development

  • Test cases (codecov >90%)
  • General interaction improvements for commandline and library
  • Learning Markov Logic Networks


This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

A full copy of the license is available in the base of this repository. For more information, see

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

rfgb-0.3.1.tar.gz (34.4 kB view hashes)

Uploaded source

Built Distribution

rfgb-0.3.1-py2.py3-none-any.whl (46.1 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page