Closed pedrozudo closed 2 years ago
Hi, yes there has been quite a few changes since version 0.2.3 assuming you are refering to the notebook from here: https://github.com/Juice-jl/JuiceExamples. The notebook is not fully updated. For more updated examples and documentation you can refer to https://juice-jl.github.io/LogicCircuits.jl/dev/. The examples on the doc website should work since they pass the unit tests before being deployed.
isstruct_decomposable(smooth(c1))
isstruct_decomposable(smooth(c2))
DataFrame(BitArray([1 1 0; 1 0 1]), :auto)
Make a new noteook for upgrading to Juice v0.3 versions and fixed the above problems, still need to fix one or two issues, but in the meanwhile can find the notebook in v3
branch here: https://github.com/Juice-jl/JuiceExamples/blob/v3/Juice-Example.ipynb
The plotting should actually work now [if you have LaTeX installed on your machine]. The notebook mentions which packages to install. It should be latest versions of LaTeX.
Ah right, running with the updated version now roughly works (even the plotting, I had a Latex library missing).
I am more or less able to run the whole notebook now, apart from the parts that need the insurance dataset
twenty_datasets("insurance")
AssertionError: name in twenty_dataset_names
twenty_datasets(::String)@data_load.jl:56
top-level scope@Local: 1[inlined]
and indeed, the "insurance" is not part of the list in data_load.jl
const twenty_dataset_names = [
"accidents", "ad", "baudio", "bbc", "bnetflix", "book", "c20ng", "cr52", "cwebkb",
"dna", "jester", "kdd", "kosarek", "msnbc", "msweb", "nltcs", "plants", "pumsb_star", "tmovie", "tretail",
"binarized_mnist"
];
Yes, Insurance is not part of the 20 datasets. It is included in the JuiceExamples repository https://github.com/Juice-jl/JuiceExamples/tree/master/insurance.
I'll close this, seems to work now. Thanks for the help.
I started looking at the code and playing around with the library. Is it possible that parts of the API have changed? It seems that some functions used in the example notebook are not supported (besides the plotting #103 )
cnditional
?3.
I'll leave it here. I have more when running the notebook but I guess they will likely be resolved if the ones above are resolved as well.
Here, is my question: are theses errors due to changes in the API or do I have a wrong install.
Here are my packes: