- Notifications
You must be signed in to change notification settings - Fork49
Home
This wiki provides documentation for the Hadrian ecosystem of tools.
- How to install: start here!
- Tutorial 1: Building and testing a small model in Titus (Python)
- Tutorial 2: Building a small model in Aurelius (R)
- Tutorial 3: Inspecting a model in PFA-Inspector (commandline)
- Tutorial 4: Executing a model in hadrian-standalone (JVM)
- Basic models: simple examples in Titus PrettyPFA
- Moving windows: How to add moving windows to your preprocessing
- Segmentation: How to subdivide a model into segments
- Concurrency: Running multiple scoring engines simultaneously
Hadrian is a complete implementation of PFA inScala, which can be accessed through any JVM language, principallyJava. It focuses on model deployment, so it is flexible (can run in restricted environments) and fast.
- Complete API reference (Scaladoc)
- Performance table
- Using Hadrian directly
- Loading, validating, and executing PFA on the Scala command prompt
- Hadrian's internal data format and serialization
- Analysis of a PFA engine, including call graphs, and mutability checks, and memory use
- Embedding Hadrian in your Java or Scala program
- Ready-to-use Hadrian wrappers:
- Hadrian-Standalone: command-line program that reads data from standard input and writes it to standard output: use this for testing or a simple shell-based workflow
- Hadrian-MR: Hadoop executable that runs two PFA files as mapper and reducer. Has built-in secondary sort: use this for running fast Hadoop jobs with no compilation
- Usage as a model producer: snapshot and Antinous
- Hadrian-GAE: Java servlet that runs PFA as a service in Google App Engine or any servlet container, such as Tomcat, JBoss, or WildFly: this is the backend forscoringengine.org
- Hadrian-Actors: actor-based network of interacting PFA scoring engines: use this for building data pipelines in a JVM
Titus is a complete, independent implementation of PFA in purePython. It focuses on model development, so it includes model producers and PFA manipulation tools in addition to runtime execution.
- Complete API reference (Sphinx)
- Loading, validating, and executing PFA on the Python command prompt
- PFA development tools
- PrettyPFA is a more human-readable syntax that converts into PFA: use this to write PFA "code"
- Simple example: the quadratic formula
- Realistic example: manipulating an exoplanets dataset
- Titus functions that produce PFA from PrettyPFA
- PrettyPFA complete reference that shows how to produce any PFA structure from a PrettyPFA document
- PFA navigation (look function)
- JSON regular expressions: find and change parts of a PFA document declaratively
- Convert PMML into PFA
- PrettyPFA is a more human-readable syntax that converts into PFA: use this to write PFA "code"
- Model producers in Titus
- CUSUM tutorial: an example of building a model primarily with PrettyPFA
- K-means reference: building cluster models with Titus
- CART reference: building decision trees with Titus
- Transformations producer: coordinates operations on Numpy arrays in the producer stage with PFA code in the runtime scoring engine, for developing pre- and post-processors
- Ready-to-use Titus scripts:
- pfainspector: command-line tool (with history and tab-complete) for inspecting PFA documents (or other JSON): use this to diagnose faulty PFA
- pfachain: turns a linear sequence of PFA files into a combined PFA file, with schema-checking and renaming to avoid namespace collisions
- pfaexternalize: moves large data blocks from a PFA file into external JSON for faster loading (usesijson)
- pfarandom: given an input and output schema, creates a PFA file to fit these schama (the PFA file ignores input and generates random outputs)
Aurelius is a toolkit for generating PFA in theR programming language. It focuses on porting models to PFA from their R equivalents. To validate or execute scoring engines, Aurelius sends them to Titus throughrPython (so both must be installed).
- R-to-PFA code reference
- Complete API reference
- Converting R models
Antinous is a model-producer plugin for Hadrian that allowsJython code to be executed anywhere a PFA scoring engine would go. It also has a library of model producing algorithms.
Return to theHadrian wiki table of contents.
Licensed under the Hadrian Personal Use and Evaluation License (PUEL).