Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/evaluate/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def use_legend(self, *args, **kwargs):
self.ax1.legend(*args, **kwargs)


def radar_plot(data, model_names, invert_range=[], config=None, fig=None):
def radar_plot(data, model_names, invert_range=None, config=None, fig=None):
"""Create a complex radar chart with different scales for each variable
Source: https://towardsdatascience.com/how-to-create-and-visualize-complex-radar-charts-f7764d0f3652

Expand Down Expand Up @@ -178,6 +178,8 @@ def radar_plot(data, model_names, invert_range=[], config=None, fig=None):
Returns:
`matplotlib.figure.Figure`
"""
if invert_range is None:
invert_range = []
data = pd.DataFrame(data)
data.index = model_names
variables = data.keys()
Expand Down