From 216791acfabefab30a74e578c44d4a48c539a1fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Almeida?= Date: Wed, 10 Jan 2024 10:03:54 +0000 Subject: [PATCH] correcting image and code --- _posts/2023-01-10-Converting-bif-to-net.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_posts/2023-01-10-Converting-bif-to-net.markdown b/_posts/2023-01-10-Converting-bif-to-net.markdown index 03d0f09..ecdfad2 100644 --- a/_posts/2023-01-10-Converting-bif-to-net.markdown +++ b/_posts/2023-01-10-Converting-bif-to-net.markdown @@ -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(".bif",debug = TRUE) @@ -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 @@ -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) \ No newline at end of file +![Network in SamIam](/assets/img/samiam-example.png) \ No newline at end of file