sbi-benchmark / sbibm

Simulation-based inference benchmark
https://sbi-benchmark.github.io
MIT License
88 stars 34 forks source link

module 'altair.vegalite' has no attribute 'v4' #67

Closed CatherineYellow closed 4 months ago

CatherineYellow commented 4 months ago

Hello, I want to ask when I run from sbibm.visualisation import fig_metric results_df = sbibm.get_results(dataset="main_paper.csv") results_subset = results_df.query("task == 'two_moons'") fig = fig_metric(results_subset, metric="C2ST") # Use fig.show() or fig.save() to show or save the figure

for visualization, it will produce the error that

AttributeError: module 'altair.vegalite' has no attribute 'v4' from ----> [4] import deneb as den

Can you help me to solve that, thank you!

CatherineYellow commented 4 months ago

It seems that deneb and altair are not compatible, could anyone give me the version of that.

CatherineYellow commented 4 months ago

I have solved that, just let the altair to decrease a version.

jan-matthis commented 4 months ago

Glad you solved it! For future reference, keeping track of the latest compatible version here: https://github.com/sbi-benchmark/deneb/blob/main/setup.py#L22