Skip to content

Commit

Permalink
Added bibtex for citation.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbonesana committed Nov 5, 2020
1 parent d932805 commit d74c414
Showing 1 changed file with 34 additions and 9 deletions.
43 changes: 34 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,33 @@ public class Starting {
/* CN defined with vertex Factor */

// Define the model (with vertex factors)
SparseModel model = new SparseModel();
int A = model.addVariable(3);
SparseModel<VertexFactor> model = new SparseModel<>();
int A = model.addVariable(3);
int B = model.addVariable(2);

model.addParent(B,A);

// Define a credal set of the partent node
VertexFactor fu = new VertexFactor(model.getDomain(A), Strides.empty());
fu.addVertex(new double[]{0., 1-p, p});
fu.addVertex(new double[]{1-p, 0., p});

model.setFactor(A,fu);


// Define the credal set of the child
VertexFactor fx = new VertexFactor(model.getDomain(B), model.getDomain(A));

fx.addVertex(new double[]{1., 0.,}, 0);
fx.addVertex(new double[]{1., 0.,}, 1);
fx.addVertex(new double[]{0., 1.,}, 2);

model.setFactor(B,fx);

// Run exact inference
CredalVariableElimination inf = new CredalVariableElimination(model);
CredalVariableElimination<VertexFactor> inf = new CredalVariableElimination<>(model);
inf.query(A, ObservationBuilder.observe(B,0));

}
}



```

## Installation
Expand All @@ -76,4 +73,32 @@ Add the following code in the pom.xml of your project:
<scope>compile</scope>
</dependency>
</dependencies>
```
```

## Citation

If you write a scientific paper describing research that made use of the CREMA library, please cite the following paper:

```
Huber, D., Cabañas, R., Antonucci, A., Zaffalon, M. (2020).
CREMA: a Java library for credal network inference.
In Jaeger, M., Nielsen, T.D. (Eds),
Proceedings of the 10th International Conference on Probabilistic Graphical Models (PGM 2020),
Proceedings of Machine Learning Research, PMLR, Aalborg, Denmark.
```

In BiBTeX format (for your convenience):

```bibtex
@INPROCEEDINGS{huber2020a,
title = {{CREMA}: a {J}ava library for credal network inference},
editor = {Jaeger, M. and Nielsen, T.D.},
publisher = {PMLR},
address = {Aalborg, Denmark},
series = {Proceedings of Machine Learning Research},
booktitle = {Proceedings of the 10th International Conference on Probabilistic Graphical Models ({PGM} 2020)},
author = {Huber, D. and Caba\~nas, R. and Antonucci, A. and Zaffalon, M.},
year = {2020},
url = {https://pgm2020.cs.aau.dk}
}
```

0 comments on commit d74c414

Please sign in to comment.