import{s as j,n as G,o as O}from"../chunks/scheduler.7da89386.js";import{S as U,i as W,g as f,s as l,r as y,A as B,h,f as a,c as r,j as H,u as C,x as I,k as S,y as F,a as o,v as D,d as E,t as P,w as L}from"../chunks/index.20910acc.js";import{D as J}from"../chunks/Docstring.c9f3fc15.js";import{H as N,E as K}from"../chunks/getInferenceSnippets.7cf363b6.js";function Q(R){let n,_,g,x,s,b,d,V="Methods for visualizing evaluations results:",$,c,z,i,p,M,m,A=`Create a complex radar chart with different scales for each variable
Source: https://towardsdatascience.com/how-to-create-and-visualize-complex-radar-charts-f7764d0f3652`,w,u,T,v,k;return s=new N({props:{title:"Visualization methods",local:"visualization-methods",headingTag:"h1"}}),c=new N({props:{title:"Radar Plot",local:"evaluate.visualization.radar_plot",headingTag:"h2"}}),p=new J({props:{name:"evaluate.visualization.radar_plot",anchor:"evaluate.visualization.radar_plot",parameters:[{name:"data",val:""},{name:"model_names",val:""},{name:"invert_range",val:" = []"},{name:"config",val:" = None"},{name:"fig",val:" = None"}],parametersDescription:[{anchor:"evaluate.visualization.radar_plot.data",description:`data (List[dict]
) — the results (list of metric + value pairs).
E.g. data = [{“accuracy”: 0.9, “precision”:0.8},{“accuracy”: 0.7, “precision”:0.6}]`,name:"data"},{anchor:"evaluate.visualization.radar_plot.names",description:`names (List[dict]
) — model names.
E.g. names = [“model1”, “model 2”, …]`,name:"names"},{anchor:"evaluate.visualization.radar_plot.invert_range",description:`invert_range (List[dict]
, optional) — the metrics to invert (in cases when smaller is better, e.g. speed)
E.g. invert_range=[“latency_in_seconds”]`,name:"invert_range"},{anchor:"evaluate.visualization.radar_plot.config",description:`config (dict
, optional) — a specification of the formatting configurations, namely:
rad_ln_args (dict
, default {"visible": True}
): The visibility of the radial (circle) lines.
outer_ring (dict
, default {"visible": True}
): The visibility of the outer ring.
angle_ln_args (dict
, default {"visible": True}
): The visibility of the angle lines.
rgrid_tick_lbls_args (dict
, default {"fontsize": 12}
): The font size of the tick labels on the scales.
theta_tick_lbls (dict
, default {"fontsize": 12}
): The font size of the variable labels on the plot.
theta_tick_lbls_pad (int
, default 3
): The padding of the variable labels on the plot.
theta_tick_lbls_brk_lng_wrds (bool
, default True
): Whether long words in the label are broken up or not.
theta_tick_lbls_txt_wrap (int
, default 15
): Text wrap for tick labels
incl_endpoint (bool
, default False
): Include value endpoints on calse
marker (str
, default "o"
): the shape of the marker used in the radar plot.
markersize (int
, default 3
): the shape of the marker used in the radar plot.
legend_loc (str
, default "upper right"
): the location of the legend in the radar plot. Must be one of: ‘upper left’, ‘upper right’, ‘lower left’, ‘lower right’.
bbox_to_anchor (tuple
, default (2, 1)
: anchor for the legend.
matplotlib.figure.Figure
, optional) — figure used to plot the radar plot.",name:"fig"}],source:"https://github.com/huggingface/evaluate/blob/v0.4.6/src/evaluate/visualization.py#L138",returnDescription:`