Skip to content

Commit

Permalink
correcting image and code
Browse files Browse the repository at this point in the history
  • Loading branch information
joofio committed Jan 10, 2024
1 parent 958c70d commit 216791a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _posts/2023-01-10-Converting-bif-to-net.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ My solution was to convert the network to the Hugin net format for use in SamIam
2. Import the bif format into bnlearn and then export it to the .net format. (code below)
3. Open it in SamIam.

```{r}
```r
library(bnlearn)

model<-read.bif("<network>.bif",debug = TRUE)
Expand All @@ -31,7 +31,7 @@ This process should have been simple, but I encountered errors related to condit
To address this, I converted them back to standard notation using the following Python script:
```{python}
```python
import re
# Read the file
Expand Down Expand Up @@ -62,4 +62,4 @@ print(f"The modified content has been written to {new_file_path}")
With these adjustments, I was able to successfully read the file in SamIam with the data appearing correctly.
![Network in SamIam](/assets/img/img/samiam-example.png)
![Network in SamIam](/assets/img/samiam-example.png)

0 comments on commit 216791a

Please # to comment.