Skip to content

Latest commit

 

History

History
147 lines (108 loc) · 4.71 KB

index.rst

File metadata and controls

147 lines (108 loc) · 4.71 KB

srlearn

Repository preview image: "srlearn. Python wrappers around BoostSRL with a scikit-learn-style interface. pip install srlearn."

License_ LGTM code quality analysis_ GitHub CI Builds_ Code coverage status_ Documentation status_

Introduction

srlearn is a project and set of packages for statistical relational artificial intelligence.

Standard machine learning tends to focus on learning and inference inside of a feature-vector (fit a model such that X predicts y). Statistical Relational Learning attempts to generalize this to arbitrary graph and hypergraph data: where the prediction problem may include a set of objects with attributes and relations on those objects.

from srlearn.rdn import BoostedRDNClassifier
from srlearn import Background
from srlearn.datasets import load_toy_cancer
train, test = load_toy_cancer()
bk = Background(modes=train.modes)
clf = BoostedRDNClassifier(
    background=bk,
    target='cancer',
)
clf.fit(train)
clf.predict_proba(test)
# array([0.88079619, 0.88079619, 0.88079619, 0.3075821 , 0.3075821 ])
print(clf.classes_)
# array([1., 1., 1., 0., 0.])

getting_started

user_guide api

auto_examples/index

Questions? Contact Alexander L. Hayes (hayesall@iu.edu)

Prerequisites and installation instructions for getting started with this package.

Guide to instantiate, parametrize, and invoke the core methods using a built-in data set.

Full documentation for the modules.

A gallery of examples with figures and expected outputs. It complements and extends past the basic example from the User Guide.

Citing

If you find this helpful in your work, please consider citing:

@misc{hayes2019srlearn,
  title={srlearn: A Python Library for Gradient-Boosted Statistical Relational Models},
  author={Alexander L. Hayes},
  year={2019},
  eprint={1912.08198},
  archivePrefix={arXiv},
  primaryClass={cs.LG}
}

Contributing

Many thanks to those who have already made contributions:

Many thanks to the known and unknown contributors to WILL/BoostSRL/SRLBoost, including: Navdeep Kaur, Nandini Ramanan, Srijita Das, Mayukh Das, Kaushik Roy, Devendra Singh Dhami, Shuo Yang, Phillip Odom, Tushar Khot, Gautam Kunapuli, Sriraam Natarajan, Trevor Walker, and Jude W. Shavlik.

We have adopted the Contributor Covenant Code of Conduct version 1.4. Please read, follow, and report any incidents which violate this.

Questions, Issues, and Pull Requests are welcome. Please refer to CONTRIBUTING.md for information on submitting issues and pull requests.