Bayesian model value error
"Value Error: variable names in the model must be identical to the values in the columns of data" is raised though the names are identical
But the values are 100% Identical with the values in the CSV file.
I also tried it with the "ByassNetwork" class and it also throws the same error.
@SakthiMahendran Thanks for reporting this. It's hard for me to guess why this is happening without looking at your code. Would it be possible to share it (or a minimal reproducible example)?
@SakthiMahendran Thanks for reporting this. It's hard for me to guess why this is happening without looking at your code. Would it be possible to share it (or a minimal reproducible example)?
Here is the code
@SakthiMahendran Could you also share the first few lines of the heart.csv or the output of heartDisease.columns file? The error thrown in your case usually happens when the node names of your model doesn't exactly match the column names, so you could also double check that they match exactly using something like set(list(heartDisease.columns)) == set(list(Model.nodes()))
@SakthiMahendran Could you also share the first few lines of the heart.csv or the output of
heartDisease.columnsfile? The error thrown in your case usually happens when the node names of your model doesn't exactly match the column names, so you could also double check that they match exactly using something likeset(list(heartDisease.columns)) == set(list(Model.nodes()))
Sorry for the delay I will check it in this weekend
It seems that the result is false and I am not sure about it.
let me show this to the author of the code.