BoostSRL Deepdive: Starting at the Source
Java is sometimes referenced as the lingua franca of computer science, but if you are less familiar with large Java projects or the respective source code this tutorial is designed to help you get started with BoostSRL.
Prerequisites:
- Eclipse oxygen
- Java (openjdk "1.8.0_144" was used here)
Option 1: Clone the repository with git:
-
master branch:
git clone https://github.com/boost-starai/BoostSRL.git
-
development branch:
git clone -b development https://github.com/boost-starai/BoostSRL.git
Option 2: Download a zip
- Navigate to the BoostSRL directory.
- Find the "Clone or download" button.
- Select "Download ZIP".
For this tutorial we use Eclipse oxygen.
- Start Eclipse.
- Select
File > Import > Maven > Existing Maven Projects
. - Select root directory:
BoostSRL/
from the download location. - Click
Finish
.
If you run into errors along the lines of "could not find main class", try some of the following steps:
- Restart Eclipse
- Set
src/
as the source directory: on the Project Explorer, right clicksrc/
, then go toBuild Path > Use as Source Folder
Download the "Boston Housing Dataset"
- Navigate to
Run > Run Configurations
. - Right-click "Java Application" and click "New".
- Name it
Regression_Learning
- Under "Main class:", write:
edu.wisc.cs.will.Boosting.Regression.RunBoostedRegressionTrees
- Click on the arguments tab (under the name), find "Program arguments:", write:
-l -reg -train "/home/user/Boston-Housing/train_boston/" -target medv -trees 10
- Click Run!
- Navigate to
Run > Run Configurations
. - Right-click "Java Application" and click "New".
- Name it
Regression_Inference
- Under "Main class:", write:
edu.wisc.cs.will.Boosting.Regression.RunBoostedRegressionTrees
- Click on the arguments tab (under the name, find "Program arguments:", write:
-i -reg -model "/home/user/Boston-Housing/train_boston/models/" -test "/home/user/Boston-Housing/test_boston/" -target medv -trees 10
- Click Run!
Download the "UW-CSE" Dataset.
- Navigate to
Run > Run Configurations
. - Right-click "Java Application" and click "New".
- Name it
Classification_Learning
- Under "Main class:", write:
edu.wisc.cs.will.Boosting.RDN.RunBoostedRDN
- Click on the arguments tab (under the name), find "Program arguments:", write:
-l -train "/home/user/UW-CSE/train/" -target advisedby -trees 10
- Click Run!
- Navigate to
Run > Run Configurations
. - Right-click "Java Application" and click "New".
- Name it
Classification_Inference
- Under "Main class:", write:
edu.wisc.cs.will.Boosting.Regression.RunBoostedRegressionTrees
- Click on the arguments tab (under the name, find "Program arguments:", write:
-i -reg -model "/home/user/UW-CSE/train/models/" -test "/home/user/UW-CSE/test/" -target advisedby -trees 10
- Click Run!
BoostSRL Wiki
Home
BoostSRL Basics
- Getting Started
- File Structure
- Basic Usage Parameters
- Advanced Usage Parameters
- Basic Modes Guide
- Advanced Modes Guide
Deep dive into BoostSRL
- Default (RDN-Boost)
- MLN-Boost
- Regression
- Cost-sensitive SRL
- Learning with Advice
- Approximate Counting
- One-class Classification (coming soon)
- Discretization of Continuous Valued Attributes
- Lifted Relational Random Walks
- Grounded Relational Random Walks
Datasets
Applications of BoostSRL