Closed kou18n closed 3 years ago
@kou18n I have the same question ,Have you solved it?
@mxj-aoyun Not yet, I think the problem is the metadata.csv file has no subset column.
I got the same issue and when I printed "emberdf", there is no column of "subset". So I cannot reproduce the chart as shown in the authors' report. I am looking for an answer too.
I just pushed a change that will fix this. Tested on ember2017 and ember2018. Make sure you regenerate the metadata csv files after pulling in the new code. My newer versions of Altair didn't display the plots nicely in my old notebooks. Hopefully, you're able to save the charts or display them with an older version of Altair now that the metadata files have all the information in them.
Hello,this code in the ember2018-notebook.ipynb can not display.Could you help me?
plotdf = emberdf.copy() gbdf = plotdf.groupby(["label", "subset"]).count().reset_index() alt.Chart(gbdf).mark_bar().encode( alt.X('subset:O', axis=alt.Axis(title='Subset')), alt.Y('sum(sha256):Q', axis=alt.Axis(title='Number of samples')), alt.Color('label:N', scale=alt.Scale(range=["#00b300", "#3333ff", "#ff3333"]), legend=alt.Legend(values=["unlabeled", "benign", "malicious"])) )
error message: `KeyError Traceback (most recent call last)