Skip to content

Commit

Permalink
GitBook: [master] one page modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Douthwaite authored and gitbook-bot committed Jun 23, 2020
1 parent ee2d4d5 commit 97ce9c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Basic API

```text
```python
from apogee import BayesianNetwork, DiscreteVariable as Variable

with BayesianNetwork("simple-bayesian-network") as net:
Expand All @@ -19,7 +19,7 @@ net.predict(x) # x -> [{...}] ->> {"cloudy": {"true": 0.12341, "false": 0.87659

## Sci-kit Learn Classifiers

```text
```python
from sklearn.tree import DecisionTreeClassifier
from apogee import BayesianNetwork, ClassifierVariable, Variable

Expand All @@ -45,7 +45,7 @@ net.graph

## I/O

```text
```python
from apogee.io import read_json, read_hugin

net = read_json("bayes-net.json")
Expand All @@ -54,7 +54,7 @@ net = read_hugin("bayes-net.net")

## REST service

```text
```python
from apogee.rest import RESTService

service = RESTService(model=net, port=8080, address="127.0.0.1")
Expand All @@ -63,7 +63,7 @@ service.run()

## Low-level API

```text
```python
graph = FactorGraph()
graph.add(DiscreteFactor([0, 1], [2, 2], ...))
graph.add(DiscreteFactor([1, 2], ...))
Expand Down

0 comments on commit 97ce9c6

Please sign in to comment.