Closed merveenoyan closed 2 years ago
You passing a np array as a jinja template variable? That should be a str...jinja won't know what to do with it directly
@nateraw I also tried with creating the card with only model and CardData object, in which it creates hyperparameter table (string) and model plot (HTML) and in CardData, there's list of EvalResults object, and bunch of strings. I'll debug better tomorrow to see if there's anything else that might be causing it, but there's nothing numpy to my knowledge. I might be hitting an edge case or it might be my stupidity, I'll see.
It was definitely my fault not seeing that the metric was np.float()
. Sorry!
I get:
when I want to save the card, I don't know what I'm doing wrong (given in the tests I'm doing something similar and they pass) maybe I'm hitting an edge case. I tried with
pyyaml
6.0
and5.4
as they were allowed.Here's code to reproduce the issue:
Below is the error I get:
I also tried to save without args after CardData to see if they have weird characters, I still get the same error. You can try my fork's
feature_importance
branch to get the necessary functions.