Buckets:

rtrm's picture
download
raw
81.7 kB
import{s as an,n as nn,o as on}from"../chunks/scheduler.7da89386.js";import{S as mn,i as cn,g as a,s as i,r as m,A as pn,h as n,f as t,c as l,j as h,u as c,x as _,k as v,y as s,a as o,v as p,d as g,t as d,w as u}from"../chunks/index.20910acc.js";import{D as f}from"../chunks/Docstring.47f425ac.js";import{H as $,E as gn}from"../chunks/getInferenceSnippets.d539cff9.js";function dn(va){let D,es,Qr,ts,Le,rs,Ce,ss,Me,is,we,Ee,ls,Te,as,P,ke,il,nr,fa="Metric computed over the whole corpora, with computations happening at the aggregation phase",ns,De,os,N,Pe,ll,or,_a="Metric computed per sample, then aggregated over the corpus",ms,Ne,cs,I,Ie,al,mr,$a=`Some metrics are more advantageous to compute together at once.
For example, if a costly preprocessing is the same for all metrics, it makes more sense to compute it once.`,ps,je,gs,j,Ae,nl,cr,ba="MetricGrouping computed over the whole corpora, with computations happening at the aggregation phase",ds,Re,us,A,ze,ol,pr,xa="MetricGrouping are computed per sample, then aggregated over the corpus",hs,Se,vs,Ve,fs,R,Je,ml,ee,Ue,cl,gr,ya="Computes the metric score over all the corpus generated items, by using the scikit learn implementation.",_s,Be,$s,z,Fe,pl,te,Oe,gl,dr,La="Computes the metric score over all the corpus generated items.",bs,Ge,xs,S,qe,dl,re,He,ul,ur,Ca="Computes the metric score over all the corpus generated items, by using the sacrebleu implementation.",ys,Ke,Ls,V,Ye,hl,hr,Ma='Computes the Matthews Correlation Coefficient, using scikit learn (<a href="https://scikit-learn.org/stable/modules/generated/sklearn.metrics.matthews_corrcoef.html" rel="nofollow">doc</a>).',Cs,Xe,Ms,Ze,ws,L,Qe,vl,se,We,fl,vr,wa="Computes the metric over a list of golds and predictions for one single sample.",_l,ie,et,$l,fr,Ea="Compares two strings only.",Es,tt,Ts,C,rt,bl,le,st,xl,_r,Ta="Computes the metric over a list of golds and predictions for one single sample.",yl,ae,it,Ll,$r,ka="Compares two strings only.",ks,lt,Ds,J,at,Cl,ne,nt,Ml,br,Da=`Computes the log likelihood accuracy: is the choice with the highest logprob in <code>choices_logprob</code> present
in the <code>gold_ixs</code>?`,Ps,ot,Ns,U,mt,wl,oe,ct,El,xr,Pa="Computes the log likelihood probability: chance of choosing the best choice.",Is,pt,js,B,gt,Tl,me,dt,kl,yr,Na="Computes the log likelihood probability: chance of choosing the best choice.",As,ut,Rs,F,ht,Dl,ce,vt,Pl,Lr,Ia=`Computes the recall at the requested depth level: looks at the <code>n</code> best predicted choices (with the
highest log probabilities) and see if there is an actual gold among them.`,zs,ft,Ss,O,_t,Nl,pe,$t,Il,Cr,ja="Mean reciprocal rank. Measures the quality of a ranking of choices (ordered by correctness).",Vs,bt,Js,G,xt,jl,ge,yt,Al,Mr,Aa="Computes the metric(s) over a list of golds and predictions for one single sample.",Us,Lt,Bs,q,Ct,Rl,de,Mt,zl,wr,Ra="Computes the prediction, recall and f1 score using the bert scorer.",Fs,wt,Os,H,Et,Sl,M,Tt,Vl,Er,za="Compute the extractiveness of the predictions.",Jl,Tr,Sa=`This method calculates coverage, density, and compression scores for a single
prediction against the input text.`,Gs,kt,qs,K,Dt,Ul,w,Pt,Bl,kr,Va="Compute the faithfulness of the predictions.",Fl,Dr,Ja="The SummaCZS (Summary Content Zero-Shot) model is used with configurable granularity and model variation.",Hs,Nt,Ks,Y,It,Ol,ue,jt,Gl,Pr,Ua="Uses the stored BLEURT scorer to compute the score on the current sample.",Ys,At,Xs,X,Rt,ql,he,zt,Hl,Nr,Ba="Computes the sentence level BLEU between the golds and each prediction, then takes the average.",Zs,St,Qs,y,Vt,Kl,ve,Jt,Yl,Ir,Fa="Computes all the requested metrics on the golds and prediction.",Xl,E,Ut,Zl,jr,Oa="Compute the edit similarity between two lists of strings.",Ql,Ar,Ga=`Edit similarity is also used in the paper
Lee, Katherine, et al.
“Deduplicating training data makes language models better.”
arXiv preprint arXiv:2107.06499 (2021).`,Wl,fe,Bt,ea,Rr,qa="Compute the length of the longest common prefix.",Ws,Ft,ei,Ot,Gt,ti,qt,ri,Z,Ht,ta,_e,Kt,ra,zr,Ha=`Compute the score of a generative task using a llm as a judge.
The generative task can be multiturn with 2 turns max, in that case, we
return scores for turn 1 and 2. Also returns user_prompt and judgement
which are ignored later by the aggregator.`,si,Yt,ii,Q,Xt,sa,$e,Zt,ia,Sr,Ka=`Compute the score of a generative task using a llm as a judge.
The generative task can be multiturn with 2 turns max, in that case, we
return scores for turn 1 and 2. Also returns user_prompt and judgement
which are ignored later by the aggregator.`,li,Qt,ai,W,Wt,la,be,er,aa,Vr,Ya=`Computes the metric over a list of golds and predictions for one single sample.
It applies normalisation (if needed) to model prediction and gold, and takes the most frequent answer of all the available ones,
then compares it to the gold.`,ni,tr,oi,rr,mi,b,sr,na,Jr,Xa="A class representing a judge for evaluating answers using either the OpenAI or Transformers library.",oa,Ur,Za=`Methods:
evaluate_answer: Evaluates an answer using the OpenAI API or Transformers library.
<strong>lazy_load_client: Lazy loads the OpenAI client or Transformers pipeline.
</strong>call_api: Calls the API to get the judge’s response.
<strong>call_transformers: Calls the Transformers pipeline to get the judge’s response.
</strong>call_vllm: Calls the VLLM pipeline to get the judge’s response.`,ma,x,ir,ca,Br,Qa="Transform a dictionary of lists into a list of dictionaries.",pa,Fr,Wa=`Each dictionary in the output list will contain one element from each list in the input dictionary,
with the same keys as the input dictionary.`,ga,Or,en="Example:",da,Gr,tn=`<blockquote><blockquote><p>dict_of_lists_to_list_of_dicts({‘k’: [1, 2, 3], ‘k2’: [‘a’, ‘b’, ‘c’]})
[{‘k’: 1, ‘k2’: ‘a’}, {‘k’: 2, ‘k2’: ‘b’}, {‘k’: 3, ‘k2’: ‘c’}]</p></blockquote></blockquote>`,ua,xe,lr,ha,qr,rn="Evaluates an answer using either Transformers or OpenAI API.",ci,ar,pi,Wr,gi;return Le=new $({props:{title:"Metrics",local:"metrics",headingTag:"h1"}}),Ce=new $({props:{title:"Metrics",local:"metrics",headingTag:"h2"}}),Me=new $({props:{title:"Metric",local:"lighteval.metrics.Metric",headingTag:"h3"}}),Ee=new f({props:{name:"class lighteval.metrics.Metric",anchor:"lighteval.metrics.Metric",parameters:[{name:"metric_name",val:": str"},{name:"higher_is_better",val:": bool"},{name:"category",val:": MetricCategory"},{name:"use_case",val:": MetricUseCase"},{name:"sample_level_fn",val:": <built-in function callable>"},{name:"corpus_level_fn",val:": <built-in function callable>"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/utils/metric_utils.py#L56"}}),Te=new $({props:{title:"CorpusLevelMetric",local:"lighteval.metrics.utils.metric_utils.CorpusLevelMetric",headingTag:"h3"}}),ke=new f({props:{name:"class lighteval.metrics.utils.metric_utils.CorpusLevelMetric",anchor:"lighteval.metrics.utils.metric_utils.CorpusLevelMetric",parameters:[{name:"metric_name",val:": str"},{name:"higher_is_better",val:": bool"},{name:"category",val:": MetricCategory"},{name:"use_case",val:": MetricUseCase"},{name:"sample_level_fn",val:": <built-in function callable>"},{name:"corpus_level_fn",val:": <built-in function callable>"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/utils/metric_utils.py#L89"}}),De=new $({props:{title:"SampleLevelMetric",local:"lighteval.metrics.utils.metric_utils.SampleLevelMetric",headingTag:"h3"}}),Pe=new f({props:{name:"class lighteval.metrics.utils.metric_utils.SampleLevelMetric",anchor:"lighteval.metrics.utils.metric_utils.SampleLevelMetric",parameters:[{name:"metric_name",val:": str"},{name:"higher_is_better",val:": bool"},{name:"category",val:": MetricCategory"},{name:"use_case",val:": MetricUseCase"},{name:"sample_level_fn",val:": <built-in function callable>"},{name:"corpus_level_fn",val:": <built-in function callable>"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/utils/metric_utils.py#L96"}}),Ne=new $({props:{title:"MetricGrouping",local:"lighteval.metrics.utils.metric_utils.MetricGrouping",headingTag:"h3"}}),Ie=new f({props:{name:"class lighteval.metrics.utils.metric_utils.MetricGrouping",anchor:"lighteval.metrics.utils.metric_utils.MetricGrouping",parameters:[{name:"metric_name",val:": list"},{name:"higher_is_better",val:": dict"},{name:"category",val:": MetricCategory"},{name:"use_case",val:": MetricUseCase"},{name:"sample_level_fn",val:": <built-in function callable>"},{name:"corpus_level_fn",val:": dict"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/utils/metric_utils.py#L78"}}),je=new $({props:{title:"CorpusLevelMetricGrouping",local:"lighteval.metrics.utils.metric_utils.CorpusLevelMetricGrouping",headingTag:"h3"}}),Ae=new f({props:{name:"class lighteval.metrics.utils.metric_utils.CorpusLevelMetricGrouping",anchor:"lighteval.metrics.utils.metric_utils.CorpusLevelMetricGrouping",parameters:[{name:"metric_name",val:": list"},{name:"higher_is_better",val:": dict"},{name:"category",val:": MetricCategory"},{name:"use_case",val:": MetricUseCase"},{name:"sample_level_fn",val:": <built-in function callable>"},{name:"corpus_level_fn",val:": dict"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/utils/metric_utils.py#L103"}}),Re=new $({props:{title:"SampleLevelMetricGrouping",local:"lighteval.metrics.utils.metric_utils.SampleLevelMetricGrouping",headingTag:"h3"}}),ze=new f({props:{name:"class lighteval.metrics.utils.metric_utils.SampleLevelMetricGrouping",anchor:"lighteval.metrics.utils.metric_utils.SampleLevelMetricGrouping",parameters:[{name:"metric_name",val:": list"},{name:"higher_is_better",val:": dict"},{name:"category",val:": MetricCategory"},{name:"use_case",val:": MetricUseCase"},{name:"sample_level_fn",val:": <built-in function callable>"},{name:"corpus_level_fn",val:": dict"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/utils/metric_utils.py#L110"}}),Se=new $({props:{title:"Corpus Metrics",local:"corpus-metrics",headingTag:"h2"}}),Ve=new $({props:{title:"CorpusLevelF1Score",local:"lighteval.metrics.metrics_corpus.CorpusLevelF1Score",headingTag:"h3"}}),Je=new f({props:{name:"class lighteval.metrics.metrics_corpus.CorpusLevelF1Score",anchor:"lighteval.metrics.metrics_corpus.CorpusLevelF1Score",parameters:[{name:"average",val:": str"},{name:"num_classes",val:": int = 2"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_corpus.py#L62"}}),Ue=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_corpus.CorpusLevelF1Score.compute",parameters:[{name:"items",val:": list"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_corpus.py#L77"}}),Be=new $({props:{title:"CorpusLevelPerplexityMetric",local:"lighteval.metrics.metrics_corpus.CorpusLevelPerplexityMetric",headingTag:"h3"}}),Fe=new f({props:{name:"class lighteval.metrics.metrics_corpus.CorpusLevelPerplexityMetric",anchor:"lighteval.metrics.metrics_corpus.CorpusLevelPerplexityMetric",parameters:[{name:"metric_type",val:": str"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_corpus.py#L130"}}),Oe=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_corpus.CorpusLevelPerplexityMetric.compute",parameters:[{name:"items",val:": list"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_corpus.py#L148"}}),Ge=new $({props:{title:"CorpusLevelTranslationMetric",local:"lighteval.metrics.metrics_corpus.CorpusLevelTranslationMetric",headingTag:"h3"}}),qe=new f({props:{name:"class lighteval.metrics.metrics_corpus.CorpusLevelTranslationMetric",anchor:"lighteval.metrics.metrics_corpus.CorpusLevelTranslationMetric",parameters:[{name:"metric_type",val:": str"},{name:"lang",val:": typing.Literal['zh', 'ja', 'ko', ''] = ''"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_corpus.py#L93"}}),He=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_corpus.CorpusLevelTranslationMetric.compute",parameters:[{name:"items",val:": list"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_corpus.py#L115"}}),Ke=new $({props:{title:"matthews_corrcoef",local:"lighteval.metrics.metrics_corpus.matthews_corrcoef",headingTag:"h3"}}),Ye=new f({props:{name:"lighteval.metrics.metrics_corpus.matthews_corrcoef",anchor:"lighteval.metrics.metrics_corpus.matthews_corrcoef",parameters:[{name:"items",val:": list"}],parametersDescription:[{anchor:"lighteval.metrics.metrics_corpus.matthews_corrcoef.items",description:"<strong>items</strong> (list[dict]) &#x2014; List of GenerativeCorpusMetricInput",name:"items"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_corpus.py#L48",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>Score</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>float</p>
`}}),Xe=new $({props:{title:"Sample Metrics",local:"sample-metrics",headingTag:"h2"}}),Ze=new $({props:{title:"ExactMatches",local:"lighteval.metrics.metrics_sample.ExactMatches",headingTag:"h3"}}),Qe=new f({props:{name:"class lighteval.metrics.metrics_sample.ExactMatches",anchor:"lighteval.metrics.metrics_sample.ExactMatches",parameters:[{name:"aggregation_function",val:": typing.Callable[[list[float]], float] = <built-in function max>"},{name:"normalize_gold",val:": typing.Optional[typing.Callable[[str], str]] = None"},{name:"normalize_pred",val:": typing.Optional[typing.Callable[[str], str]] = None"},{name:"strip_strings",val:": bool = False"},{name:"type_exact_match",val:": str = 'full'"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L61"}}),We=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.ExactMatches.compute",parameters:[{name:"golds",val:": list"},{name:"predictions",val:": list"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.ExactMatches.compute.golds",description:"<strong>golds</strong> (list[str]) &#x2014; Reference targets",name:"golds"},{anchor:"lighteval.metrics.metrics_sample.ExactMatches.compute.predictions",description:"<strong>predictions</strong> (list[str]) &#x2014; Predicted strings",name:"predictions"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L98",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>Aggregated score over the current sample’s items.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>float</p>
`}}),et=new f({props:{name:"compute_one_item",anchor:"lighteval.metrics.metrics_sample.ExactMatches.compute_one_item",parameters:[{name:"gold",val:": str"},{name:"pred",val:": str"}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.ExactMatches.compute_one_item.gold",description:"<strong>gold</strong> (str) &#x2014; One of the possible references",name:"gold"},{anchor:"lighteval.metrics.metrics_sample.ExactMatches.compute_one_item.pred",description:"<strong>pred</strong> (str) &#x2014; One of the possible predictions",name:"pred"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L115",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>The exact match score. Will be 1 for a match, 0 otherwise.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>float</p>
`}}),tt=new $({props:{title:"F1_score",local:"lighteval.metrics.metrics_sample.F1_score",headingTag:"h3"}}),rt=new f({props:{name:"class lighteval.metrics.metrics_sample.F1_score",anchor:"lighteval.metrics.metrics_sample.F1_score",parameters:[{name:"aggregation_function",val:": typing.Callable[[list[float]], float] = <built-in function max>"},{name:"normalize_gold",val:": typing.Optional[typing.Callable[[str], str]] = None"},{name:"normalize_pred",val:": typing.Optional[typing.Callable[[str], str]] = None"},{name:"strip_strings",val:": bool = False"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L148"}}),st=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.F1_score.compute",parameters:[{name:"golds",val:": list"},{name:"predictions",val:": list"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.F1_score.compute.golds",description:"<strong>golds</strong> (list[str]) &#x2014; Reference targets",name:"golds"},{anchor:"lighteval.metrics.metrics_sample.F1_score.compute.predictions",description:"<strong>predictions</strong> (list[str]) &#x2014; Predicted strings",name:"predictions"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L175",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>Aggregated score over the current sample’s items.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>float</p>
`}}),it=new f({props:{name:"compute_one_item",anchor:"lighteval.metrics.metrics_sample.F1_score.compute_one_item",parameters:[{name:"gold",val:": str"},{name:"pred",val:": str"}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.F1_score.compute_one_item.gold",description:"<strong>gold</strong> (str) &#x2014; One of the possible references",name:"gold"},{anchor:"lighteval.metrics.metrics_sample.F1_score.compute_one_item.pred",description:"<strong>pred</strong> (str) &#x2014; One of the possible predictions",name:"pred"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L192",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>The f1 score over the bag of words, computed using nltk.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>float</p>
`}}),lt=new $({props:{title:"LoglikelihoodAcc",local:"lighteval.metrics.metrics_sample.LoglikelihoodAcc",headingTag:"h3"}}),at=new f({props:{name:"class lighteval.metrics.metrics_sample.LoglikelihoodAcc",anchor:"lighteval.metrics.metrics_sample.LoglikelihoodAcc",parameters:[{name:"logprob_normalization",val:": lighteval.metrics.normalizations.LogProbCharNorm | lighteval.metrics.normalizations.LogProbTokenNorm | lighteval.metrics.normalizations.LogProbPMINorm | None = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L218"}}),nt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.LoglikelihoodAcc.compute",parameters:[{name:"gold_ixs",val:": list"},{name:"choices_logprob",val:": list"},{name:"unconditioned_logprob",val:": list[float] | None"},{name:"choices_tokens",val:": list[list[int]] | None"},{name:"formatted_doc",val:": Doc"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.LoglikelihoodAcc.compute.gold_ixs",description:"<strong>gold_ixs</strong> (list[int]) &#x2014; All the gold choices indices",name:"gold_ixs"},{anchor:"lighteval.metrics.metrics_sample.LoglikelihoodAcc.compute.choices_logprob",description:"<strong>choices_logprob</strong> (list[float]) &#x2014; Summed log-probabilities of all the possible choices for the model, ordered as the choices.",name:"choices_logprob"},{anchor:"lighteval.metrics.metrics_sample.LoglikelihoodAcc.compute.unconditioned_logprob",description:"<strong>unconditioned_logprob</strong> (list[float] | None) &#x2014; Unconditioned log-probabilities for PMI normalization, ordered as the choices.",name:"unconditioned_logprob"},{anchor:"lighteval.metrics.metrics_sample.LoglikelihoodAcc.compute.choices_tokens",description:"<strong>choices_tokens</strong> (list[list[int]] | None) &#x2014; Tokenized choices for token normalization, ordered as the choices.",name:"choices_tokens"},{anchor:"lighteval.metrics.metrics_sample.LoglikelihoodAcc.compute.formatted_doc",description:`<strong>formatted_doc</strong> (Doc) &#x2014; Original document for the sample.
Used to get the original choices&#x2019; length for possible normalization`,name:"formatted_doc"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L229",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>The eval score: 1 if the best log-prob choice is in gold, 0 otherwise.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>int</p>
`}}),ot=new $({props:{title:"NormalizedMultiChoiceProbability",local:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability",headingTag:"h3"}}),mt=new f({props:{name:"class lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability",anchor:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability",parameters:[{name:"log_prob_normalization",val:": lighteval.metrics.normalizations.LogProbCharNorm | lighteval.metrics.normalizations.LogProbTokenNorm | lighteval.metrics.normalizations.LogProbPMINorm | None = None"},{name:"aggregation_function",val:": typing.Callable[[numpy.ndarray], float] = <function max at 0x7ffb0113a970>"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L269"}}),ct=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability.compute",parameters:[{name:"gold_ixs",val:": list"},{name:"choices_logprob",val:": list"},{name:"unconditioned_logprob",val:": list[float] | None"},{name:"choices_tokens",val:": list[list[int]] | None"},{name:"formatted_doc",val:": Doc"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability.compute.gold_ixs",description:"<strong>gold_ixs</strong> (list[int]) &#x2014; All the gold choices indices",name:"gold_ixs"},{anchor:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability.compute.choices_logprob",description:"<strong>choices_logprob</strong> (list[float]) &#x2014; Summed log-probabilities of all the possible choices for the model, ordered as the choices.",name:"choices_logprob"},{anchor:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability.compute.unconditioned_logprob",description:"<strong>unconditioned_logprob</strong> (list[float] | None) &#x2014; Unconditioned log-probabilities for PMI normalization, ordered as the choices.",name:"unconditioned_logprob"},{anchor:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability.compute.choices_tokens",description:"<strong>choices_tokens</strong> (list[list[int]] | None) &#x2014; Tokenized choices for token normalization, ordered as the choices.",name:"choices_tokens"},{anchor:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability.compute.formatted_doc",description:`<strong>formatted_doc</strong> (Doc) &#x2014; Original document for the sample.
Used to get the original choices&#x2019; length for possible normalization`,name:"formatted_doc"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L285",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>The probability of the best log-prob choice being a gold choice.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>float</p>
`}}),pt=new $({props:{title:"Probability",local:"lighteval.metrics.metrics_sample.Probability",headingTag:"h3"}}),gt=new f({props:{name:"class lighteval.metrics.metrics_sample.Probability",anchor:"lighteval.metrics.metrics_sample.Probability",parameters:[{name:"normalization",val:": lighteval.metrics.normalizations.LogProbTokenNorm | None = None"},{name:"aggregation_function",val:": typing.Callable[[numpy.ndarray], float] = <function max at 0x7ffb0113a970>"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L326"}}),dt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.Probability.compute",parameters:[{name:"logprobs",val:": list"},{name:"target_tokens",val:": list[list[int]] | None = None"},{name:"reference_texts",val:": list[str] | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.Probability.compute.gold_ixs",description:"<strong>gold_ixs</strong> (list[int]) &#x2014; All the gold choices indices",name:"gold_ixs"},{anchor:"lighteval.metrics.metrics_sample.Probability.compute.choices_logprob",description:"<strong>choices_logprob</strong> (list[float]) &#x2014; Summed log-probabilities of all the possible choices for the model, ordered as the choices.",name:"choices_logprob"},{anchor:"lighteval.metrics.metrics_sample.Probability.compute.unconditioned_logprob",description:"<strong>unconditioned_logprob</strong> (list[float] | None) &#x2014; Unconditioned log-probabilities for PMI normalization, ordered as the choices.",name:"unconditioned_logprob"},{anchor:"lighteval.metrics.metrics_sample.Probability.compute.choices_tokens",description:"<strong>choices_tokens</strong> (list[list[int]] | None) &#x2014; Tokenized choices for token normalization, ordered as the choices.",name:"choices_tokens"},{anchor:"lighteval.metrics.metrics_sample.Probability.compute.reference_texts",description:"<strong>reference_texts</strong> (list[str] | None) &#x2014; Reference texts for token normalization, ordered as the choices.",name:"reference_texts"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L342",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>The probability of the best log-prob choice being a gold choice.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>float</p>
`}}),ut=new $({props:{title:"Recall",local:"lighteval.metrics.metrics_sample.Recall",headingTag:"h3"}}),ht=new f({props:{name:"class lighteval.metrics.metrics_sample.Recall",anchor:"lighteval.metrics.metrics_sample.Recall",parameters:[{name:"at",val:": int"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L377"}}),vt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.Recall.compute",parameters:[{name:"choices_logprob",val:": list"},{name:"gold_ixs",val:": list"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.Recall.compute.gold_ixs",description:"<strong>gold_ixs</strong> (list[int]) &#x2014; All the gold choices indices",name:"gold_ixs"},{anchor:"lighteval.metrics.metrics_sample.Recall.compute.choices_logprob",description:"<strong>choices_logprob</strong> (list[float]) &#x2014; Summed log-probabilities of all the possible choices for the model, ordered as the choices.",name:"choices_logprob"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L387",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>Score: 1 if one of the top level predicted choices was correct, 0 otherwise.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>int</p>
`}}),ft=new $({props:{title:"MRR",local:"lighteval.metrics.metrics_sample.MRR",headingTag:"h3"}}),_t=new f({props:{name:"class lighteval.metrics.metrics_sample.MRR",anchor:"lighteval.metrics.metrics_sample.MRR",parameters:[{name:"length_normalization",val:": bool = False"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L403"}}),$t=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.MRR.compute",parameters:[{name:"choices_logprob",val:": list"},{name:"gold_ixs",val:": list"},{name:"formatted_doc",val:": Doc"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.MRR.compute.gold_ixs",description:"<strong>gold_ixs</strong> (list[int]) &#x2014; All the gold choices indices",name:"gold_ixs"},{anchor:"lighteval.metrics.metrics_sample.MRR.compute.choices_logprob",description:"<strong>choices_logprob</strong> (list[float]) &#x2014; Summed log-probabilities of all the possible choices for the model, ordered as the choices.",name:"choices_logprob"},{anchor:"lighteval.metrics.metrics_sample.MRR.compute.formatted_doc",description:`<strong>formatted_doc</strong> (Doc) &#x2014; Original document for the sample.
Used to get the original choices&#x2019; length for possible normalization`,name:"formatted_doc"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L412",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>MRR score.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>float</p>
`}}),bt=new $({props:{title:"ROUGE",local:"lighteval.metrics.metrics_sample.ROUGE",headingTag:"h3"}}),xt=new f({props:{name:"class lighteval.metrics.metrics_sample.ROUGE",anchor:"lighteval.metrics.metrics_sample.ROUGE",parameters:[{name:"methods",val:": str | list[str]"},{name:"multiple_golds",val:": bool = False"},{name:"bootstrap",val:": bool = False"},{name:"normalize_gold",val:": <built-in function callable> = None"},{name:"normalize_pred",val:": <built-in function callable> = None"},{name:"aggregation_function",val:": <built-in function callable> = None"},{name:"tokenizer",val:": object = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L442"}}),yt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.ROUGE.compute",parameters:[{name:"golds",val:": list"},{name:"predictions",val:": list"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.ROUGE.compute.golds",description:"<strong>golds</strong> (list[str]) &#x2014; Reference targets",name:"golds"},{anchor:"lighteval.metrics.metrics_sample.ROUGE.compute.predictions",description:"<strong>predictions</strong> (list[str]) &#x2014; Predicted strings",name:"predictions"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L489",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>Aggregated score over the current sample’s items.
If several rouge functions have been selected, returns a dict which maps name and scores.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>float or dict</p>
`}}),Lt=new $({props:{title:"BertScore",local:"lighteval.metrics.metrics_sample.BertScore",headingTag:"h3"}}),Ct=new f({props:{name:"class lighteval.metrics.metrics_sample.BertScore",anchor:"lighteval.metrics.metrics_sample.BertScore",parameters:[{name:"normalize_gold",val:": <built-in function callable> = None"},{name:"normalize_pred",val:": <built-in function callable> = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L550"}}),Mt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.BertScore.compute",parameters:[{name:"golds",val:": list"},{name:"predictions",val:": list"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.BertScore.compute.golds",description:"<strong>golds</strong> (list[str]) &#x2014; Reference targets",name:"golds"},{anchor:"lighteval.metrics.metrics_sample.BertScore.compute.predictions",description:"<strong>predictions</strong> (list[str]) &#x2014; Predicted strings",name:"predictions"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L580",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>Scores over the current sample’s items.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>dict</p>
`}}),wt=new $({props:{title:"Extractiveness",local:"lighteval.metrics.metrics_sample.Extractiveness",headingTag:"h3"}}),Et=new f({props:{name:"class lighteval.metrics.metrics_sample.Extractiveness",anchor:"lighteval.metrics.metrics_sample.Extractiveness",parameters:[{name:"normalize_input",val:": <built-in function callable> = <function remove_braces at 0x7ff9ff858160>"},{name:"normalize_pred",val:": <built-in function callable> = <function remove_braces_and_strip at 0x7ff9ff8581f0>"},{name:"input_column",val:": str = 'text'"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L609"}}),Tt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.Extractiveness.compute",parameters:[{name:"predictions",val:": list"},{name:"formatted_doc",val:": Doc"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.Extractiveness.compute.predictions",description:"<strong>predictions</strong> (list[str]) &#x2014; Predicted strings, a list of length 1.",name:"predictions"},{anchor:"lighteval.metrics.metrics_sample.Extractiveness.compute.formatted_doc",description:"<strong>formatted_doc</strong> (Doc) &#x2014; The formatted document.",name:"formatted_doc"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L631",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>The extractiveness scores.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>dict[str, float]</p>
`}}),kt=new $({props:{title:"Faithfulness",local:"lighteval.metrics.metrics_sample.Faithfulness",headingTag:"h3"}}),Dt=new f({props:{name:"class lighteval.metrics.metrics_sample.Faithfulness",anchor:"lighteval.metrics.metrics_sample.Faithfulness",parameters:[{name:"normalize_input",val:": <built-in function callable> = <function remove_braces at 0x7ff9ff858160>"},{name:"normalize_pred",val:": <built-in function callable> = <function remove_braces_and_strip at 0x7ff9ff8581f0>"},{name:"input_column",val:": str = 'text'"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L663"}}),Pt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.Faithfulness.compute",parameters:[{name:"predictions",val:": list"},{name:"formatted_doc",val:": Doc"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.Faithfulness.compute.predictions",description:"<strong>predictions</strong> (list[str]) &#x2014; Predicted strings, a list of length 1.",name:"predictions"},{anchor:"lighteval.metrics.metrics_sample.Faithfulness.compute.formatted_doc",description:"<strong>formatted_doc</strong> (Doc) &#x2014; The formatted document.",name:"formatted_doc"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L685",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>The faithfulness scores.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>dict[str, float]</p>
`}}),Nt=new $({props:{title:"BLEURT",local:"lighteval.metrics.metrics_sample.BLEURT",headingTag:"h3"}}),It=new f({props:{name:"class lighteval.metrics.metrics_sample.BLEURT",anchor:"lighteval.metrics.metrics_sample.BLEURT",parameters:[],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L709"}}),jt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.BLEURT.compute",parameters:[{name:"golds",val:": list"},{name:"predictions",val:": list"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.BLEURT.compute.golds",description:"<strong>golds</strong> (list[str]) &#x2014; Reference targets",name:"golds"},{anchor:"lighteval.metrics.metrics_sample.BLEURT.compute.predictions",description:"<strong>predictions</strong> (list[str]) &#x2014; Predicted strings",name:"predictions"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L730",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>Score over the current sample’s items.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>float</p>
`}}),At=new $({props:{title:"BLEU",local:"lighteval.metrics.metrics_sample.BLEU",headingTag:"h3"}}),Rt=new f({props:{name:"class lighteval.metrics.metrics_sample.BLEU",anchor:"lighteval.metrics.metrics_sample.BLEU",parameters:[{name:"n_gram",val:": int"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L746"}}),zt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.BLEU.compute",parameters:[{name:"golds",val:": list"},{name:"predictions",val:": list"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.BLEU.compute.golds",description:"<strong>golds</strong> (list[str]) &#x2014; Reference targets",name:"golds"},{anchor:"lighteval.metrics.metrics_sample.BLEU.compute.predictions",description:"<strong>predictions</strong> (list[str]) &#x2014; Predicted strings",name:"predictions"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L756",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>Score over the current sample’s items.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>float</p>
`}}),St=new $({props:{title:"StringDistance",local:"lighteval.metrics.metrics_sample.StringDistance",headingTag:"h3"}}),Vt=new f({props:{name:"class lighteval.metrics.metrics_sample.StringDistance",anchor:"lighteval.metrics.metrics_sample.StringDistance",parameters:[{name:"metric_types",val:": list[str] | str"},{name:"strip_prediction",val:": bool = True"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L782"}}),Jt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.StringDistance.compute",parameters:[{name:"golds",val:": list"},{name:"predictions",val:": list"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.StringDistance.compute.golds",description:"<strong>golds</strong> (list[str]) &#x2014; A list of possible golds. If it contains more than one item, only the first one is kept.",name:"golds"},{anchor:"lighteval.metrics.metrics_sample.StringDistance.compute.predictions",description:"<strong>predictions</strong> (list[str]) &#x2014; Predicted strings.",name:"predictions"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L804",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>The different scores computed</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>dict</p>
`}}),Ut=new f({props:{name:"edit_similarity",anchor:"lighteval.metrics.metrics_sample.StringDistance.edit_similarity",parameters:[{name:"s1",val:""},{name:"s2",val:""}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L857"}}),Bt=new f({props:{name:"longest_common_prefix_length",anchor:"lighteval.metrics.metrics_sample.StringDistance.longest_common_prefix_length",parameters:[{name:"s1",val:": ndarray"},{name:"s2",val:": ndarray"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L850"}}),Ft=new $({props:{title:"JudgeLLM",local:"lighteval.metrics.metrics_sample.JudgeLLM",headingTag:"h3"}}),Gt=new f({props:{name:"class lighteval.metrics.metrics_sample.JudgeLLM",anchor:"lighteval.metrics.metrics_sample.JudgeLLM",parameters:[{name:"judge_model_name",val:": str"},{name:"template",val:": typing.Callable"},{name:"process_judge_response",val:": typing.Callable"},{name:"judge_backend",val:": typing.Literal['litellm', 'openai', 'transformers', 'vllm', 'tgi', 'inference-providers']"},{name:"short_judge_name",val:": str | None = None"},{name:"response_format",val:": BaseModel = None"},{name:"url",val:": str | None = None"},{name:"hf_provider",val:": str | None = None"},{name:"max_tokens",val:": int | None = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L869"}}),qt=new $({props:{title:"JudgeLLMMTBench",local:"lighteval.metrics.metrics_sample.JudgeLLMMTBench",headingTag:"h3"}}),Ht=new f({props:{name:"class lighteval.metrics.metrics_sample.JudgeLLMMTBench",anchor:"lighteval.metrics.metrics_sample.JudgeLLMMTBench",parameters:[{name:"judge_model_name",val:": str"},{name:"template",val:": typing.Callable"},{name:"process_judge_response",val:": typing.Callable"},{name:"judge_backend",val:": typing.Literal['litellm', 'openai', 'transformers', 'vllm', 'tgi', 'inference-providers']"},{name:"short_judge_name",val:": str | None = None"},{name:"response_format",val:": BaseModel = None"},{name:"url",val:": str | None = None"},{name:"hf_provider",val:": str | None = None"},{name:"max_tokens",val:": int | None = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L972"}}),Kt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.JudgeLLMMTBench.compute",parameters:[{name:"predictions",val:": list"},{name:"formatted_doc",val:": Doc"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L973"}}),Yt=new $({props:{title:"JudgeLLMMixEval",local:"lighteval.metrics.metrics_sample.JudgeLLMMixEval",headingTag:"h3"}}),Xt=new f({props:{name:"class lighteval.metrics.metrics_sample.JudgeLLMMixEval",anchor:"lighteval.metrics.metrics_sample.JudgeLLMMixEval",parameters:[{name:"judge_model_name",val:": str"},{name:"template",val:": typing.Callable"},{name:"process_judge_response",val:": typing.Callable"},{name:"judge_backend",val:": typing.Literal['litellm', 'openai', 'transformers', 'vllm', 'tgi', 'inference-providers']"},{name:"short_judge_name",val:": str | None = None"},{name:"response_format",val:": BaseModel = None"},{name:"url",val:": str | None = None"},{name:"hf_provider",val:": str | None = None"},{name:"max_tokens",val:": int | None = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L1004"}}),Zt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.JudgeLLMMixEval.compute",parameters:[{name:"sample_ids",val:": list"},{name:"responses",val:": list"},{name:"formatted_docs",val:": list"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L1005"}}),Qt=new $({props:{title:"MajAtK",local:"lighteval.metrics.metrics_sample.MajAtK",headingTag:"h3"}}),Wt=new f({props:{name:"class lighteval.metrics.metrics_sample.MajAtK",anchor:"lighteval.metrics.metrics_sample.MajAtK",parameters:[{name:"k",val:": int"},{name:"normalize_gold",val:": <built-in function callable> = None"},{name:"normalize_pred",val:": <built-in function callable> = None"},{name:"strip_strings",val:": bool = False"},{name:"type_exact_match",val:": str = 'full'"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L1032"}}),er=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.MajAtK.compute",parameters:[{name:"golds",val:": list"},{name:"predictions",val:": list"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.MajAtK.compute.golds",description:"<strong>golds</strong> (list[str]) &#x2014; Reference targets",name:"golds"},{anchor:"lighteval.metrics.metrics_sample.MajAtK.compute.predictions",description:"<strong>predictions</strong> (list[str]) &#x2014; k predicted strings",name:"predictions"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/metrics_sample.py#L1067",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>Aggregated score over the current sample’s items.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>float</p>
`}}),tr=new $({props:{title:"LLM-as-a-Judge",local:"llm-as-a-judge",headingTag:"h2"}}),rr=new $({props:{title:"JudgeLM",local:"lighteval.metrics.llm_as_judge.JudgeLM",headingTag:"h3"}}),sr=new f({props:{name:"class lighteval.metrics.llm_as_judge.JudgeLM",anchor:"lighteval.metrics.llm_as_judge.JudgeLM",parameters:[{name:"model",val:": str"},{name:"templates",val:": typing.Callable"},{name:"process_judge_response",val:": typing.Callable"},{name:"judge_backend",val:": typing.Literal['litellm', 'openai', 'transformers', 'tgi', 'vllm', 'inference-providers']"},{name:"url",val:": str | None = None"},{name:"api_key",val:": str | None = None"},{name:"max_tokens",val:": int = 512"},{name:"response_format",val:": BaseModel = None"},{name:"hf_provider",val:": typing.Optional[typing.Literal['black-forest-labs', 'cerebras', 'cohere', 'fal-ai', 'fireworks-ai', 'inference-providers', 'hyperbolic', 'nebius', 'novita', 'openai', 'replicate', 'sambanova', 'together']] = None"}],parametersDescription:[{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.model",description:"<strong>model</strong> (str) &#x2014; The name of the model.",name:"model"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.templates",description:"<strong>templates</strong> (Callable) &#x2014; A function taking into account the question, options, answer, and gold and returning the judge prompt.",name:"templates"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.process_judge_response",description:"<strong>process_judge_response</strong> (Callable) &#x2014; A function for processing the judge&#x2019;s response.",name:"process_judge_response"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.judge_backend",description:"<strong>judge_backend</strong> (Literal[&#x201C;openai&#x201D;, &#x201C;transformers&#x201D;, &#x201C;tgi&#x201D;, &#x201C;vllm&#x201D;]) &#x2014; The backend for the judge.",name:"judge_backend"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.url",description:"<strong>url</strong> (str | None) &#x2014; The URL for the OpenAI API.",name:"url"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.api_key",description:"<strong>api_key</strong> (str | None) &#x2014; The API key for the OpenAI API (either OpenAI or HF key).",name:"api_key"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.model",description:"<strong>model</strong> (str) &#x2014; The name of the model.",name:"model"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.template",description:"<strong>template</strong> (Callable) &#x2014; A function taking into account the question, options, answer, and gold and returning the judge prompt.",name:"template"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.API_MAX_RETRY",description:"<strong>API_MAX_RETRY</strong> (int) &#x2014; The maximum number of retries for the API.",name:"API_MAX_RETRY"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.API_RETRY_SLEEP",description:"<strong>API_RETRY_SLEEP</strong> (int) &#x2014; The time to sleep between retries.",name:"API_RETRY_SLEEP"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.client",description:"<strong>client</strong> (OpenAI | None) &#x2014; The OpenAI client.",name:"client"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.pipe",description:"<strong>pipe</strong> (LLM | AutoModel | None) &#x2014; The Transformers or vllm pipeline.",name:"pipe"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.process_judge_response",description:"<strong>process_judge_response</strong> (Callable) &#x2014; A function for processing the judge&#x2019;s response.",name:"process_judge_response"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.url",description:"<strong>url</strong> (str | None) &#x2014; The URL for the OpenAI API.",name:"url"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.api_key",description:"<strong>api_key</strong> (str | None) &#x2014; The API key for the OpenAI API (either OpenAI or HF key).",name:"api_key"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.backend",description:"<strong>backend</strong> (Literal[&#x201C;openai&#x201D;, &#x201C;transformers&#x201D;, &#x201C;tgi&#x201D;, &#x201C;vllm&#x201D;]) &#x2014; The backend for the judge",name:"backend"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/llm_as_judge.py#L48"}}),ir=new f({props:{name:"dict_of_lists_to_list_of_dicts",anchor:"lighteval.metrics.llm_as_judge.JudgeLM.dict_of_lists_to_list_of_dicts",parameters:[{name:"dict_of_lists",val:""}],parametersDescription:[{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.dict_of_lists_to_list_of_dicts.dict_of_lists",description:`<strong>dict_of_lists</strong> &#x2014; A dictionary where each value is a list.
All lists are expected to have the same length.`,name:"dict_of_lists"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/llm_as_judge.py#L188",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>A list of dictionaries.</p>
`}}),lr=new f({props:{name:"evaluate_answer",anchor:"lighteval.metrics.llm_as_judge.JudgeLM.evaluate_answer",parameters:[{name:"question",val:": str"},{name:"answer",val:": str"},{name:"options",val:": list[str] | None = None"},{name:"gold",val:": str | None = None"}],parametersDescription:[{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.evaluate_answer.questions",description:"<strong>questions</strong> (list[str]) &#x2014; The prompt asked to the evaluated model",name:"questions"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.evaluate_answer.answers",description:"<strong>answers</strong> (list[str]) &#x2014; Answer given by the evaluated model",name:"answers"},{anchor:"lighteval.metrics.llm_as_judge.JudgeLM.evaluate_answer.references",description:"<strong>references</strong> (list[str]) &#x2014; A list of reference answers",name:"references"}],source:"https://github.com/huggingface/lighteval/blob/vr_722/src/lighteval/metrics/llm_as_judge.py#L257",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>A tuple containing the score, prompts, and judgment.</p>
`}}),ar=new gn({props:{source:"https://github.com/huggingface/lighteval/blob/main/docs/source/package_reference/metrics.mdx"}}),{c(){D=a("meta"),es=i(),Qr=a("p"),ts=i(),m(Le.$$.fragment),rs=i(),m(Ce.$$.fragment),ss=i(),m(Me.$$.fragment),is=i(),we=a("div"),m(Ee.$$.fragment),ls=i(),m(Te.$$.fragment),as=i(),P=a("div"),m(ke.$$.fragment),il=i(),nr=a("p"),nr.textContent=fa,ns=i(),m(De.$$.fragment),os=i(),N=a("div"),m(Pe.$$.fragment),ll=i(),or=a("p"),or.textContent=_a,ms=i(),m(Ne.$$.fragment),cs=i(),I=a("div"),m(Ie.$$.fragment),al=i(),mr=a("p"),mr.textContent=$a,ps=i(),m(je.$$.fragment),gs=i(),j=a("div"),m(Ae.$$.fragment),nl=i(),cr=a("p"),cr.textContent=ba,ds=i(),m(Re.$$.fragment),us=i(),A=a("div"),m(ze.$$.fragment),ol=i(),pr=a("p"),pr.textContent=xa,hs=i(),m(Se.$$.fragment),vs=i(),m(Ve.$$.fragment),fs=i(),R=a("div"),m(Je.$$.fragment),ml=i(),ee=a("div"),m(Ue.$$.fragment),cl=i(),gr=a("p"),gr.textContent=ya,_s=i(),m(Be.$$.fragment),$s=i(),z=a("div"),m(Fe.$$.fragment),pl=i(),te=a("div"),m(Oe.$$.fragment),gl=i(),dr=a("p"),dr.textContent=La,bs=i(),m(Ge.$$.fragment),xs=i(),S=a("div"),m(qe.$$.fragment),dl=i(),re=a("div"),m(He.$$.fragment),ul=i(),ur=a("p"),ur.textContent=Ca,ys=i(),m(Ke.$$.fragment),Ls=i(),V=a("div"),m(Ye.$$.fragment),hl=i(),hr=a("p"),hr.innerHTML=Ma,Cs=i(),m(Xe.$$.fragment),Ms=i(),m(Ze.$$.fragment),ws=i(),L=a("div"),m(Qe.$$.fragment),vl=i(),se=a("div"),m(We.$$.fragment),fl=i(),vr=a("p"),vr.textContent=wa,_l=i(),ie=a("div"),m(et.$$.fragment),$l=i(),fr=a("p"),fr.textContent=Ea,Es=i(),m(tt.$$.fragment),Ts=i(),C=a("div"),m(rt.$$.fragment),bl=i(),le=a("div"),m(st.$$.fragment),xl=i(),_r=a("p"),_r.textContent=Ta,yl=i(),ae=a("div"),m(it.$$.fragment),Ll=i(),$r=a("p"),$r.textContent=ka,ks=i(),m(lt.$$.fragment),Ds=i(),J=a("div"),m(at.$$.fragment),Cl=i(),ne=a("div"),m(nt.$$.fragment),Ml=i(),br=a("p"),br.innerHTML=Da,Ps=i(),m(ot.$$.fragment),Ns=i(),U=a("div"),m(mt.$$.fragment),wl=i(),oe=a("div"),m(ct.$$.fragment),El=i(),xr=a("p"),xr.textContent=Pa,Is=i(),m(pt.$$.fragment),js=i(),B=a("div"),m(gt.$$.fragment),Tl=i(),me=a("div"),m(dt.$$.fragment),kl=i(),yr=a("p"),yr.textContent=Na,As=i(),m(ut.$$.fragment),Rs=i(),F=a("div"),m(ht.$$.fragment),Dl=i(),ce=a("div"),m(vt.$$.fragment),Pl=i(),Lr=a("p"),Lr.innerHTML=Ia,zs=i(),m(ft.$$.fragment),Ss=i(),O=a("div"),m(_t.$$.fragment),Nl=i(),pe=a("div"),m($t.$$.fragment),Il=i(),Cr=a("p"),Cr.textContent=ja,Vs=i(),m(bt.$$.fragment),Js=i(),G=a("div"),m(xt.$$.fragment),jl=i(),ge=a("div"),m(yt.$$.fragment),Al=i(),Mr=a("p"),Mr.textContent=Aa,Us=i(),m(Lt.$$.fragment),Bs=i(),q=a("div"),m(Ct.$$.fragment),Rl=i(),de=a("div"),m(Mt.$$.fragment),zl=i(),wr=a("p"),wr.textContent=Ra,Fs=i(),m(wt.$$.fragment),Os=i(),H=a("div"),m(Et.$$.fragment),Sl=i(),M=a("div"),m(Tt.$$.fragment),Vl=i(),Er=a("p"),Er.textContent=za,Jl=i(),Tr=a("p"),Tr.textContent=Sa,Gs=i(),m(kt.$$.fragment),qs=i(),K=a("div"),m(Dt.$$.fragment),Ul=i(),w=a("div"),m(Pt.$$.fragment),Bl=i(),kr=a("p"),kr.textContent=Va,Fl=i(),Dr=a("p"),Dr.textContent=Ja,Hs=i(),m(Nt.$$.fragment),Ks=i(),Y=a("div"),m(It.$$.fragment),Ol=i(),ue=a("div"),m(jt.$$.fragment),Gl=i(),Pr=a("p"),Pr.textContent=Ua,Ys=i(),m(At.$$.fragment),Xs=i(),X=a("div"),m(Rt.$$.fragment),ql=i(),he=a("div"),m(zt.$$.fragment),Hl=i(),Nr=a("p"),Nr.textContent=Ba,Zs=i(),m(St.$$.fragment),Qs=i(),y=a("div"),m(Vt.$$.fragment),Kl=i(),ve=a("div"),m(Jt.$$.fragment),Yl=i(),Ir=a("p"),Ir.textContent=Fa,Xl=i(),E=a("div"),m(Ut.$$.fragment),Zl=i(),jr=a("p"),jr.textContent=Oa,Ql=i(),Ar=a("p"),Ar.textContent=Ga,Wl=i(),fe=a("div"),m(Bt.$$.fragment),ea=i(),Rr=a("p"),Rr.textContent=qa,Ws=i(),m(Ft.$$.fragment),ei=i(),Ot=a("div"),m(Gt.$$.fragment),ti=i(),m(qt.$$.fragment),ri=i(),Z=a("div"),m(Ht.$$.fragment),ta=i(),_e=a("div"),m(Kt.$$.fragment),ra=i(),zr=a("p"),zr.textContent=Ha,si=i(),m(Yt.$$.fragment),ii=i(),Q=a("div"),m(Xt.$$.fragment),sa=i(),$e=a("div"),m(Zt.$$.fragment),ia=i(),Sr=a("p"),Sr.textContent=Ka,li=i(),m(Qt.$$.fragment),ai=i(),W=a("div"),m(Wt.$$.fragment),la=i(),be=a("div"),m(er.$$.fragment),aa=i(),Vr=a("p"),Vr.textContent=Ya,ni=i(),m(tr.$$.fragment),oi=i(),m(rr.$$.fragment),mi=i(),b=a("div"),m(sr.$$.fragment),na=i(),Jr=a("p"),Jr.textContent=Xa,oa=i(),Ur=a("p"),Ur.innerHTML=Za,ma=i(),x=a("div"),m(ir.$$.fragment),ca=i(),Br=a("p"),Br.textContent=Qa,pa=i(),Fr=a("p"),Fr.textContent=Wa,ga=i(),Or=a("p"),Or.textContent=en,da=i(),Gr=a("blockquote"),Gr.innerHTML=tn,ua=i(),xe=a("div"),m(lr.$$.fragment),ha=i(),qr=a("p"),qr.textContent=rn,ci=i(),m(ar.$$.fragment),pi=i(),Wr=a("p"),this.h()},l(e){const r=pn("svelte-u9bgzb",document.head);D=n(r,"META",{name:!0,content:!0}),r.forEach(t),es=l(e),Qr=n(e,"P",{}),h(Qr).forEach(t),ts=l(e),c(Le.$$.fragment,e),rs=l(e),c(Ce.$$.fragment,e),ss=l(e),c(Me.$$.fragment,e),is=l(e),we=n(e,"DIV",{class:!0});var sn=h(we);c(Ee.$$.fragment,sn),sn.forEach(t),ls=l(e),c(Te.$$.fragment,e),as=l(e),P=n(e,"DIV",{class:!0});var di=h(P);c(ke.$$.fragment,di),il=l(di),nr=n(di,"P",{"data-svelte-h":!0}),_(nr)!=="svelte-zgtslk"&&(nr.textContent=fa),di.forEach(t),ns=l(e),c(De.$$.fragment,e),os=l(e),N=n(e,"DIV",{class:!0});var ui=h(N);c(Pe.$$.fragment,ui),ll=l(ui),or=n(ui,"P",{"data-svelte-h":!0}),_(or)!=="svelte-f7ehzx"&&(or.textContent=_a),ui.forEach(t),ms=l(e),c(Ne.$$.fragment,e),cs=l(e),I=n(e,"DIV",{class:!0});var hi=h(I);c(Ie.$$.fragment,hi),al=l(hi),mr=n(hi,"P",{"data-svelte-h":!0}),_(mr)!=="svelte-189xko4"&&(mr.textContent=$a),hi.forEach(t),ps=l(e),c(je.$$.fragment,e),gs=l(e),j=n(e,"DIV",{class:!0});var vi=h(j);c(Ae.$$.fragment,vi),nl=l(vi),cr=n(vi,"P",{"data-svelte-h":!0}),_(cr)!=="svelte-648fl7"&&(cr.textContent=ba),vi.forEach(t),ds=l(e),c(Re.$$.fragment,e),us=l(e),A=n(e,"DIV",{class:!0});var fi=h(A);c(ze.$$.fragment,fi),ol=l(fi),pr=n(fi,"P",{"data-svelte-h":!0}),_(pr)!=="svelte-10boi74"&&(pr.textContent=xa),fi.forEach(t),hs=l(e),c(Se.$$.fragment,e),vs=l(e),c(Ve.$$.fragment,e),fs=l(e),R=n(e,"DIV",{class:!0});var _i=h(R);c(Je.$$.fragment,_i),ml=l(_i),ee=n(_i,"DIV",{class:!0});var $i=h(ee);c(Ue.$$.fragment,$i),cl=l($i),gr=n($i,"P",{"data-svelte-h":!0}),_(gr)!=="svelte-6am5wr"&&(gr.textContent=ya),$i.forEach(t),_i.forEach(t),_s=l(e),c(Be.$$.fragment,e),$s=l(e),z=n(e,"DIV",{class:!0});var bi=h(z);c(Fe.$$.fragment,bi),pl=l(bi),te=n(bi,"DIV",{class:!0});var xi=h(te);c(Oe.$$.fragment,xi),gl=l(xi),dr=n(xi,"P",{"data-svelte-h":!0}),_(dr)!=="svelte-1eqcqc"&&(dr.textContent=La),xi.forEach(t),bi.forEach(t),bs=l(e),c(Ge.$$.fragment,e),xs=l(e),S=n(e,"DIV",{class:!0});var yi=h(S);c(qe.$$.fragment,yi),dl=l(yi),re=n(yi,"DIV",{class:!0});var Li=h(re);c(He.$$.fragment,Li),ul=l(Li),ur=n(Li,"P",{"data-svelte-h":!0}),_(ur)!=="svelte-ngk658"&&(ur.textContent=Ca),Li.forEach(t),yi.forEach(t),ys=l(e),c(Ke.$$.fragment,e),Ls=l(e),V=n(e,"DIV",{class:!0});var Ci=h(V);c(Ye.$$.fragment,Ci),hl=l(Ci),hr=n(Ci,"P",{"data-svelte-h":!0}),_(hr)!=="svelte-osccbb"&&(hr.innerHTML=Ma),Ci.forEach(t),Cs=l(e),c(Xe.$$.fragment,e),Ms=l(e),c(Ze.$$.fragment,e),ws=l(e),L=n(e,"DIV",{class:!0});var Hr=h(L);c(Qe.$$.fragment,Hr),vl=l(Hr),se=n(Hr,"DIV",{class:!0});var Mi=h(se);c(We.$$.fragment,Mi),fl=l(Mi),vr=n(Mi,"P",{"data-svelte-h":!0}),_(vr)!=="svelte-m2t8u2"&&(vr.textContent=wa),Mi.forEach(t),_l=l(Hr),ie=n(Hr,"DIV",{class:!0});var wi=h(ie);c(et.$$.fragment,wi),$l=l(wi),fr=n(wi,"P",{"data-svelte-h":!0}),_(fr)!=="svelte-29ay4o"&&(fr.textContent=Ea),wi.forEach(t),Hr.forEach(t),Es=l(e),c(tt.$$.fragment,e),Ts=l(e),C=n(e,"DIV",{class:!0});var Kr=h(C);c(rt.$$.fragment,Kr),bl=l(Kr),le=n(Kr,"DIV",{class:!0});var Ei=h(le);c(st.$$.fragment,Ei),xl=l(Ei),_r=n(Ei,"P",{"data-svelte-h":!0}),_(_r)!=="svelte-m2t8u2"&&(_r.textContent=Ta),Ei.forEach(t),yl=l(Kr),ae=n(Kr,"DIV",{class:!0});var Ti=h(ae);c(it.$$.fragment,Ti),Ll=l(Ti),$r=n(Ti,"P",{"data-svelte-h":!0}),_($r)!=="svelte-29ay4o"&&($r.textContent=ka),Ti.forEach(t),Kr.forEach(t),ks=l(e),c(lt.$$.fragment,e),Ds=l(e),J=n(e,"DIV",{class:!0});var ki=h(J);c(at.$$.fragment,ki),Cl=l(ki),ne=n(ki,"DIV",{class:!0});var Di=h(ne);c(nt.$$.fragment,Di),Ml=l(Di),br=n(Di,"P",{"data-svelte-h":!0}),_(br)!=="svelte-oza3m6"&&(br.innerHTML=Da),Di.forEach(t),ki.forEach(t),Ps=l(e),c(ot.$$.fragment,e),Ns=l(e),U=n(e,"DIV",{class:!0});var Pi=h(U);c(mt.$$.fragment,Pi),wl=l(Pi),oe=n(Pi,"DIV",{class:!0});var Ni=h(oe);c(ct.$$.fragment,Ni),El=l(Ni),xr=n(Ni,"P",{"data-svelte-h":!0}),_(xr)!=="svelte-cm5dxb"&&(xr.textContent=Pa),Ni.forEach(t),Pi.forEach(t),Is=l(e),c(pt.$$.fragment,e),js=l(e),B=n(e,"DIV",{class:!0});var Ii=h(B);c(gt.$$.fragment,Ii),Tl=l(Ii),me=n(Ii,"DIV",{class:!0});var ji=h(me);c(dt.$$.fragment,ji),kl=l(ji),yr=n(ji,"P",{"data-svelte-h":!0}),_(yr)!=="svelte-cm5dxb"&&(yr.textContent=Na),ji.forEach(t),Ii.forEach(t),As=l(e),c(ut.$$.fragment,e),Rs=l(e),F=n(e,"DIV",{class:!0});var Ai=h(F);c(ht.$$.fragment,Ai),Dl=l(Ai),ce=n(Ai,"DIV",{class:!0});var Ri=h(ce);c(vt.$$.fragment,Ri),Pl=l(Ri),Lr=n(Ri,"P",{"data-svelte-h":!0}),_(Lr)!=="svelte-1vzdvz9"&&(Lr.innerHTML=Ia),Ri.forEach(t),Ai.forEach(t),zs=l(e),c(ft.$$.fragment,e),Ss=l(e),O=n(e,"DIV",{class:!0});var zi=h(O);c(_t.$$.fragment,zi),Nl=l(zi),pe=n(zi,"DIV",{class:!0});var Si=h(pe);c($t.$$.fragment,Si),Il=l(Si),Cr=n(Si,"P",{"data-svelte-h":!0}),_(Cr)!=="svelte-oplxpx"&&(Cr.textContent=ja),Si.forEach(t),zi.forEach(t),Vs=l(e),c(bt.$$.fragment,e),Js=l(e),G=n(e,"DIV",{class:!0});var Vi=h(G);c(xt.$$.fragment,Vi),jl=l(Vi),ge=n(Vi,"DIV",{class:!0});var Ji=h(ge);c(yt.$$.fragment,Ji),Al=l(Ji),Mr=n(Ji,"P",{"data-svelte-h":!0}),_(Mr)!=="svelte-1mhw2ts"&&(Mr.textContent=Aa),Ji.forEach(t),Vi.forEach(t),Us=l(e),c(Lt.$$.fragment,e),Bs=l(e),q=n(e,"DIV",{class:!0});var Ui=h(q);c(Ct.$$.fragment,Ui),Rl=l(Ui),de=n(Ui,"DIV",{class:!0});var Bi=h(de);c(Mt.$$.fragment,Bi),zl=l(Bi),wr=n(Bi,"P",{"data-svelte-h":!0}),_(wr)!=="svelte-g8gp3r"&&(wr.textContent=Ra),Bi.forEach(t),Ui.forEach(t),Fs=l(e),c(wt.$$.fragment,e),Os=l(e),H=n(e,"DIV",{class:!0});var Fi=h(H);c(Et.$$.fragment,Fi),Sl=l(Fi),M=n(Fi,"DIV",{class:!0});var Yr=h(M);c(Tt.$$.fragment,Yr),Vl=l(Yr),Er=n(Yr,"P",{"data-svelte-h":!0}),_(Er)!=="svelte-1jqxi5a"&&(Er.textContent=za),Jl=l(Yr),Tr=n(Yr,"P",{"data-svelte-h":!0}),_(Tr)!=="svelte-19u8gji"&&(Tr.textContent=Sa),Yr.forEach(t),Fi.forEach(t),Gs=l(e),c(kt.$$.fragment,e),qs=l(e),K=n(e,"DIV",{class:!0});var Oi=h(K);c(Dt.$$.fragment,Oi),Ul=l(Oi),w=n(Oi,"DIV",{class:!0});var Xr=h(w);c(Pt.$$.fragment,Xr),Bl=l(Xr),kr=n(Xr,"P",{"data-svelte-h":!0}),_(kr)!=="svelte-uuxzaw"&&(kr.textContent=Va),Fl=l(Xr),Dr=n(Xr,"P",{"data-svelte-h":!0}),_(Dr)!=="svelte-q9lg1z"&&(Dr.textContent=Ja),Xr.forEach(t),Oi.forEach(t),Hs=l(e),c(Nt.$$.fragment,e),Ks=l(e),Y=n(e,"DIV",{class:!0});var Gi=h(Y);c(It.$$.fragment,Gi),Ol=l(Gi),ue=n(Gi,"DIV",{class:!0});var qi=h(ue);c(jt.$$.fragment,qi),Gl=l(qi),Pr=n(qi,"P",{"data-svelte-h":!0}),_(Pr)!=="svelte-1e1teq4"&&(Pr.textContent=Ua),qi.forEach(t),Gi.forEach(t),Ys=l(e),c(At.$$.fragment,e),Xs=l(e),X=n(e,"DIV",{class:!0});var Hi=h(X);c(Rt.$$.fragment,Hi),ql=l(Hi),he=n(Hi,"DIV",{class:!0});var Ki=h(he);c(zt.$$.fragment,Ki),Hl=l(Ki),Nr=n(Ki,"P",{"data-svelte-h":!0}),_(Nr)!=="svelte-uuy5fu"&&(Nr.textContent=Ba),Ki.forEach(t),Hi.forEach(t),Zs=l(e),c(St.$$.fragment,e),Qs=l(e),y=n(e,"DIV",{class:!0});var ye=h(y);c(Vt.$$.fragment,ye),Kl=l(ye),ve=n(ye,"DIV",{class:!0});var Yi=h(ve);c(Jt.$$.fragment,Yi),Yl=l(Yi),Ir=n(Yi,"P",{"data-svelte-h":!0}),_(Ir)!=="svelte-1javkrk"&&(Ir.textContent=Fa),Yi.forEach(t),Xl=l(ye),E=n(ye,"DIV",{class:!0});var Zr=h(E);c(Ut.$$.fragment,Zr),Zl=l(Zr),jr=n(Zr,"P",{"data-svelte-h":!0}),_(jr)!=="svelte-1jnlnuh"&&(jr.textContent=Oa),Ql=l(Zr),Ar=n(Zr,"P",{"data-svelte-h":!0}),_(Ar)!=="svelte-eunl3r"&&(Ar.textContent=Ga),Zr.forEach(t),Wl=l(ye),fe=n(ye,"DIV",{class:!0});var Xi=h(fe);c(Bt.$$.fragment,Xi),ea=l(Xi),Rr=n(Xi,"P",{"data-svelte-h":!0}),_(Rr)!=="svelte-vzqvo7"&&(Rr.textContent=qa),Xi.forEach(t),ye.forEach(t),Ws=l(e),c(Ft.$$.fragment,e),ei=l(e),Ot=n(e,"DIV",{class:!0});var ln=h(Ot);c(Gt.$$.fragment,ln),ln.forEach(t),ti=l(e),c(qt.$$.fragment,e),ri=l(e),Z=n(e,"DIV",{class:!0});var Zi=h(Z);c(Ht.$$.fragment,Zi),ta=l(Zi),_e=n(Zi,"DIV",{class:!0});var Qi=h(_e);c(Kt.$$.fragment,Qi),ra=l(Qi),zr=n(Qi,"P",{"data-svelte-h":!0}),_(zr)!=="svelte-4cpcjn"&&(zr.textContent=Ha),Qi.forEach(t),Zi.forEach(t),si=l(e),c(Yt.$$.fragment,e),ii=l(e),Q=n(e,"DIV",{class:!0});var Wi=h(Q);c(Xt.$$.fragment,Wi),sa=l(Wi),$e=n(Wi,"DIV",{class:!0});var el=h($e);c(Zt.$$.fragment,el),ia=l(el),Sr=n(el,"P",{"data-svelte-h":!0}),_(Sr)!=="svelte-4cpcjn"&&(Sr.textContent=Ka),el.forEach(t),Wi.forEach(t),li=l(e),c(Qt.$$.fragment,e),ai=l(e),W=n(e,"DIV",{class:!0});var tl=h(W);c(Wt.$$.fragment,tl),la=l(tl),be=n(tl,"DIV",{class:!0});var rl=h(be);c(er.$$.fragment,rl),aa=l(rl),Vr=n(rl,"P",{"data-svelte-h":!0}),_(Vr)!=="svelte-1hstc1o"&&(Vr.textContent=Ya),rl.forEach(t),tl.forEach(t),ni=l(e),c(tr.$$.fragment,e),oi=l(e),c(rr.$$.fragment,e),mi=l(e),b=n(e,"DIV",{class:!0});var T=h(b);c(sr.$$.fragment,T),na=l(T),Jr=n(T,"P",{"data-svelte-h":!0}),_(Jr)!=="svelte-d59cwj"&&(Jr.textContent=Xa),oa=l(T),Ur=n(T,"P",{"data-svelte-h":!0}),_(Ur)!=="svelte-2785eo"&&(Ur.innerHTML=Za),ma=l(T),x=n(T,"DIV",{class:!0});var k=h(x);c(ir.$$.fragment,k),ca=l(k),Br=n(k,"P",{"data-svelte-h":!0}),_(Br)!=="svelte-zw3fd9"&&(Br.textContent=Qa),pa=l(k),Fr=n(k,"P",{"data-svelte-h":!0}),_(Fr)!=="svelte-87qcsz"&&(Fr.textContent=Wa),ga=l(k),Or=n(k,"P",{"data-svelte-h":!0}),_(Or)!=="svelte-11lpom8"&&(Or.textContent=en),da=l(k),Gr=n(k,"BLOCKQUOTE",{"data-svelte-h":!0}),_(Gr)!=="svelte-1rs2dmb"&&(Gr.innerHTML=tn),k.forEach(t),ua=l(T),xe=n(T,"DIV",{class:!0});var sl=h(xe);c(lr.$$.fragment,sl),ha=l(sl),qr=n(sl,"P",{"data-svelte-h":!0}),_(qr)!=="svelte-tj0p2z"&&(qr.textContent=rn),sl.forEach(t),T.forEach(t),ci=l(e),c(ar.$$.fragment,e),pi=l(e),Wr=n(e,"P",{}),h(Wr).forEach(t),this.h()},h(){v(D,"name","hf:doc:metadata"),v(D,"content",un),v(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,r){s(document.head,D),o(e,es,r),o(e,Qr,r),o(e,ts,r),p(Le,e,r),o(e,rs,r),p(Ce,e,r),o(e,ss,r),p(Me,e,r),o(e,is,r),o(e,we,r),p(Ee,we,null),o(e,ls,r),p(Te,e,r),o(e,as,r),o(e,P,r),p(ke,P,null),s(P,il),s(P,nr),o(e,ns,r),p(De,e,r),o(e,os,r),o(e,N,r),p(Pe,N,null),s(N,ll),s(N,or),o(e,ms,r),p(Ne,e,r),o(e,cs,r),o(e,I,r),p(Ie,I,null),s(I,al),s(I,mr),o(e,ps,r),p(je,e,r),o(e,gs,r),o(e,j,r),p(Ae,j,null),s(j,nl),s(j,cr),o(e,ds,r),p(Re,e,r),o(e,us,r),o(e,A,r),p(ze,A,null),s(A,ol),s(A,pr),o(e,hs,r),p(Se,e,r),o(e,vs,r),p(Ve,e,r),o(e,fs,r),o(e,R,r),p(Je,R,null),s(R,ml),s(R,ee),p(Ue,ee,null),s(ee,cl),s(ee,gr),o(e,_s,r),p(Be,e,r),o(e,$s,r),o(e,z,r),p(Fe,z,null),s(z,pl),s(z,te),p(Oe,te,null),s(te,gl),s(te,dr),o(e,bs,r),p(Ge,e,r),o(e,xs,r),o(e,S,r),p(qe,S,null),s(S,dl),s(S,re),p(He,re,null),s(re,ul),s(re,ur),o(e,ys,r),p(Ke,e,r),o(e,Ls,r),o(e,V,r),p(Ye,V,null),s(V,hl),s(V,hr),o(e,Cs,r),p(Xe,e,r),o(e,Ms,r),p(Ze,e,r),o(e,ws,r),o(e,L,r),p(Qe,L,null),s(L,vl),s(L,se),p(We,se,null),s(se,fl),s(se,vr),s(L,_l),s(L,ie),p(et,ie,null),s(ie,$l),s(ie,fr),o(e,Es,r),p(tt,e,r),o(e,Ts,r),o(e,C,r),p(rt,C,null),s(C,bl),s(C,le),p(st,le,null),s(le,xl),s(le,_r),s(C,yl),s(C,ae),p(it,ae,null),s(ae,Ll),s(ae,$r),o(e,ks,r),p(lt,e,r),o(e,Ds,r),o(e,J,r),p(at,J,null),s(J,Cl),s(J,ne),p(nt,ne,null),s(ne,Ml),s(ne,br),o(e,Ps,r),p(ot,e,r),o(e,Ns,r),o(e,U,r),p(mt,U,null),s(U,wl),s(U,oe),p(ct,oe,null),s(oe,El),s(oe,xr),o(e,Is,r),p(pt,e,r),o(e,js,r),o(e,B,r),p(gt,B,null),s(B,Tl),s(B,me),p(dt,me,null),s(me,kl),s(me,yr),o(e,As,r),p(ut,e,r),o(e,Rs,r),o(e,F,r),p(ht,F,null),s(F,Dl),s(F,ce),p(vt,ce,null),s(ce,Pl),s(ce,Lr),o(e,zs,r),p(ft,e,r),o(e,Ss,r),o(e,O,r),p(_t,O,null),s(O,Nl),s(O,pe),p($t,pe,null),s(pe,Il),s(pe,Cr),o(e,Vs,r),p(bt,e,r),o(e,Js,r),o(e,G,r),p(xt,G,null),s(G,jl),s(G,ge),p(yt,ge,null),s(ge,Al),s(ge,Mr),o(e,Us,r),p(Lt,e,r),o(e,Bs,r),o(e,q,r),p(Ct,q,null),s(q,Rl),s(q,de),p(Mt,de,null),s(de,zl),s(de,wr),o(e,Fs,r),p(wt,e,r),o(e,Os,r),o(e,H,r),p(Et,H,null),s(H,Sl),s(H,M),p(Tt,M,null),s(M,Vl),s(M,Er),s(M,Jl),s(M,Tr),o(e,Gs,r),p(kt,e,r),o(e,qs,r),o(e,K,r),p(Dt,K,null),s(K,Ul),s(K,w),p(Pt,w,null),s(w,Bl),s(w,kr),s(w,Fl),s(w,Dr),o(e,Hs,r),p(Nt,e,r),o(e,Ks,r),o(e,Y,r),p(It,Y,null),s(Y,Ol),s(Y,ue),p(jt,ue,null),s(ue,Gl),s(ue,Pr),o(e,Ys,r),p(At,e,r),o(e,Xs,r),o(e,X,r),p(Rt,X,null),s(X,ql),s(X,he),p(zt,he,null),s(he,Hl),s(he,Nr),o(e,Zs,r),p(St,e,r),o(e,Qs,r),o(e,y,r),p(Vt,y,null),s(y,Kl),s(y,ve),p(Jt,ve,null),s(ve,Yl),s(ve,Ir),s(y,Xl),s(y,E),p(Ut,E,null),s(E,Zl),s(E,jr),s(E,Ql),s(E,Ar),s(y,Wl),s(y,fe),p(Bt,fe,null),s(fe,ea),s(fe,Rr),o(e,Ws,r),p(Ft,e,r),o(e,ei,r),o(e,Ot,r),p(Gt,Ot,null),o(e,ti,r),p(qt,e,r),o(e,ri,r),o(e,Z,r),p(Ht,Z,null),s(Z,ta),s(Z,_e),p(Kt,_e,null),s(_e,ra),s(_e,zr),o(e,si,r),p(Yt,e,r),o(e,ii,r),o(e,Q,r),p(Xt,Q,null),s(Q,sa),s(Q,$e),p(Zt,$e,null),s($e,ia),s($e,Sr),o(e,li,r),p(Qt,e,r),o(e,ai,r),o(e,W,r),p(Wt,W,null),s(W,la),s(W,be),p(er,be,null),s(be,aa),s(be,Vr),o(e,ni,r),p(tr,e,r),o(e,oi,r),p(rr,e,r),o(e,mi,r),o(e,b,r),p(sr,b,null),s(b,na),s(b,Jr),s(b,oa),s(b,Ur),s(b,ma),s(b,x),p(ir,x,null),s(x,ca),s(x,Br),s(x,pa),s(x,Fr),s(x,ga),s(x,Or),s(x,da),s(x,Gr),s(b,ua),s(b,xe),p(lr,xe,null),s(xe,ha),s(xe,qr),o(e,ci,r),p(ar,e,r),o(e,pi,r),o(e,Wr,r),gi=!0},p:nn,i(e){gi||(g(Le.$$.fragment,e),g(Ce.$$.fragment,e),g(Me.$$.fragment,e),g(Ee.$$.fragment,e),g(Te.$$.fragment,e),g(ke.$$.fragment,e),g(De.$$.fragment,e),g(Pe.$$.fragment,e),g(Ne.$$.fragment,e),g(Ie.$$.fragment,e),g(je.$$.fragment,e),g(Ae.$$.fragment,e),g(Re.$$.fragment,e),g(ze.$$.fragment,e),g(Se.$$.fragment,e),g(Ve.$$.fragment,e),g(Je.$$.fragment,e),g(Ue.$$.fragment,e),g(Be.$$.fragment,e),g(Fe.$$.fragment,e),g(Oe.$$.fragment,e),g(Ge.$$.fragment,e),g(qe.$$.fragment,e),g(He.$$.fragment,e),g(Ke.$$.fragment,e),g(Ye.$$.fragment,e),g(Xe.$$.fragment,e),g(Ze.$$.fragment,e),g(Qe.$$.fragment,e),g(We.$$.fragment,e),g(et.$$.fragment,e),g(tt.$$.fragment,e),g(rt.$$.fragment,e),g(st.$$.fragment,e),g(it.$$.fragment,e),g(lt.$$.fragment,e),g(at.$$.fragment,e),g(nt.$$.fragment,e),g(ot.$$.fragment,e),g(mt.$$.fragment,e),g(ct.$$.fragment,e),g(pt.$$.fragment,e),g(gt.$$.fragment,e),g(dt.$$.fragment,e),g(ut.$$.fragment,e),g(ht.$$.fragment,e),g(vt.$$.fragment,e),g(ft.$$.fragment,e),g(_t.$$.fragment,e),g($t.$$.fragment,e),g(bt.$$.fragment,e),g(xt.$$.fragment,e),g(yt.$$.fragment,e),g(Lt.$$.fragment,e),g(Ct.$$.fragment,e),g(Mt.$$.fragment,e),g(wt.$$.fragment,e),g(Et.$$.fragment,e),g(Tt.$$.fragment,e),g(kt.$$.fragment,e),g(Dt.$$.fragment,e),g(Pt.$$.fragment,e),g(Nt.$$.fragment,e),g(It.$$.fragment,e),g(jt.$$.fragment,e),g(At.$$.fragment,e),g(Rt.$$.fragment,e),g(zt.$$.fragment,e),g(St.$$.fragment,e),g(Vt.$$.fragment,e),g(Jt.$$.fragment,e),g(Ut.$$.fragment,e),g(Bt.$$.fragment,e),g(Ft.$$.fragment,e),g(Gt.$$.fragment,e),g(qt.$$.fragment,e),g(Ht.$$.fragment,e),g(Kt.$$.fragment,e),g(Yt.$$.fragment,e),g(Xt.$$.fragment,e),g(Zt.$$.fragment,e),g(Qt.$$.fragment,e),g(Wt.$$.fragment,e),g(er.$$.fragment,e),g(tr.$$.fragment,e),g(rr.$$.fragment,e),g(sr.$$.fragment,e),g(ir.$$.fragment,e),g(lr.$$.fragment,e),g(ar.$$.fragment,e),gi=!0)},o(e){d(Le.$$.fragment,e),d(Ce.$$.fragment,e),d(Me.$$.fragment,e),d(Ee.$$.fragment,e),d(Te.$$.fragment,e),d(ke.$$.fragment,e),d(De.$$.fragment,e),d(Pe.$$.fragment,e),d(Ne.$$.fragment,e),d(Ie.$$.fragment,e),d(je.$$.fragment,e),d(Ae.$$.fragment,e),d(Re.$$.fragment,e),d(ze.$$.fragment,e),d(Se.$$.fragment,e),d(Ve.$$.fragment,e),d(Je.$$.fragment,e),d(Ue.$$.fragment,e),d(Be.$$.fragment,e),d(Fe.$$.fragment,e),d(Oe.$$.fragment,e),d(Ge.$$.fragment,e),d(qe.$$.fragment,e),d(He.$$.fragment,e),d(Ke.$$.fragment,e),d(Ye.$$.fragment,e),d(Xe.$$.fragment,e),d(Ze.$$.fragment,e),d(Qe.$$.fragment,e),d(We.$$.fragment,e),d(et.$$.fragment,e),d(tt.$$.fragment,e),d(rt.$$.fragment,e),d(st.$$.fragment,e),d(it.$$.fragment,e),d(lt.$$.fragment,e),d(at.$$.fragment,e),d(nt.$$.fragment,e),d(ot.$$.fragment,e),d(mt.$$.fragment,e),d(ct.$$.fragment,e),d(pt.$$.fragment,e),d(gt.$$.fragment,e),d(dt.$$.fragment,e),d(ut.$$.fragment,e),d(ht.$$.fragment,e),d(vt.$$.fragment,e),d(ft.$$.fragment,e),d(_t.$$.fragment,e),d($t.$$.fragment,e),d(bt.$$.fragment,e),d(xt.$$.fragment,e),d(yt.$$.fragment,e),d(Lt.$$.fragment,e),d(Ct.$$.fragment,e),d(Mt.$$.fragment,e),d(wt.$$.fragment,e),d(Et.$$.fragment,e),d(Tt.$$.fragment,e),d(kt.$$.fragment,e),d(Dt.$$.fragment,e),d(Pt.$$.fragment,e),d(Nt.$$.fragment,e),d(It.$$.fragment,e),d(jt.$$.fragment,e),d(At.$$.fragment,e),d(Rt.$$.fragment,e),d(zt.$$.fragment,e),d(St.$$.fragment,e),d(Vt.$$.fragment,e),d(Jt.$$.fragment,e),d(Ut.$$.fragment,e),d(Bt.$$.fragment,e),d(Ft.$$.fragment,e),d(Gt.$$.fragment,e),d(qt.$$.fragment,e),d(Ht.$$.fragment,e),d(Kt.$$.fragment,e),d(Yt.$$.fragment,e),d(Xt.$$.fragment,e),d(Zt.$$.fragment,e),d(Qt.$$.fragment,e),d(Wt.$$.fragment,e),d(er.$$.fragment,e),d(tr.$$.fragment,e),d(rr.$$.fragment,e),d(sr.$$.fragment,e),d(ir.$$.fragment,e),d(lr.$$.fragment,e),d(ar.$$.fragment,e),gi=!1},d(e){e&&(t(es),t(Qr),t(ts),t(rs),t(ss),t(is),t(we),t(ls),t(as),t(P),t(ns),t(os),t(N),t(ms),t(cs),t(I),t(ps),t(gs),t(j),t(ds),t(us),t(A),t(hs),t(vs),t(fs),t(R),t(_s),t($s),t(z),t(bs),t(xs),t(S),t(ys),t(Ls),t(V),t(Cs),t(Ms),t(ws),t(L),t(Es),t(Ts),t(C),t(ks),t(Ds),t(J),t(Ps),t(Ns),t(U),t(Is),t(js),t(B),t(As),t(Rs),t(F),t(zs),t(Ss),t(O),t(Vs),t(Js),t(G),t(Us),t(Bs),t(q),t(Fs),t(Os),t(H),t(Gs),t(qs),t(K),t(Hs),t(Ks),t(Y),t(Ys),t(Xs),t(X),t(Zs),t(Qs),t(y),t(Ws),t(ei),t(Ot),t(ti),t(ri),t(Z),t(si),t(ii),t(Q),t(li),t(ai),t(W),t(ni),t(oi),t(mi),t(b),t(ci),t(pi),t(Wr)),t(D),u(Le,e),u(Ce,e),u(Me,e),u(Ee),u(Te,e),u(ke),u(De,e),u(Pe),u(Ne,e),u(Ie),u(je,e),u(Ae),u(Re,e),u(ze),u(Se,e),u(Ve,e),u(Je),u(Ue),u(Be,e),u(Fe),u(Oe),u(Ge,e),u(qe),u(He),u(Ke,e),u(Ye),u(Xe,e),u(Ze,e),u(Qe),u(We),u(et),u(tt,e),u(rt),u(st),u(it),u(lt,e),u(at),u(nt),u(ot,e),u(mt),u(ct),u(pt,e),u(gt),u(dt),u(ut,e),u(ht),u(vt),u(ft,e),u(_t),u($t),u(bt,e),u(xt),u(yt),u(Lt,e),u(Ct),u(Mt),u(wt,e),u(Et),u(Tt),u(kt,e),u(Dt),u(Pt),u(Nt,e),u(It),u(jt),u(At,e),u(Rt),u(zt),u(St,e),u(Vt),u(Jt),u(Ut),u(Bt),u(Ft,e),u(Gt),u(qt,e),u(Ht),u(Kt),u(Yt,e),u(Xt),u(Zt),u(Qt,e),u(Wt),u(er),u(tr,e),u(rr,e),u(sr),u(ir),u(lr),u(ar,e)}}}const un='{"title":"Metrics","local":"metrics","sections":[{"title":"Metrics","local":"metrics","sections":[{"title":"Metric","local":"lighteval.metrics.Metric","sections":[],"depth":3},{"title":"CorpusLevelMetric","local":"lighteval.metrics.utils.metric_utils.CorpusLevelMetric","sections":[],"depth":3},{"title":"SampleLevelMetric","local":"lighteval.metrics.utils.metric_utils.SampleLevelMetric","sections":[],"depth":3},{"title":"MetricGrouping","local":"lighteval.metrics.utils.metric_utils.MetricGrouping","sections":[],"depth":3},{"title":"CorpusLevelMetricGrouping","local":"lighteval.metrics.utils.metric_utils.CorpusLevelMetricGrouping","sections":[],"depth":3},{"title":"SampleLevelMetricGrouping","local":"lighteval.metrics.utils.metric_utils.SampleLevelMetricGrouping","sections":[],"depth":3}],"depth":2},{"title":"Corpus Metrics","local":"corpus-metrics","sections":[{"title":"CorpusLevelF1Score","local":"lighteval.metrics.metrics_corpus.CorpusLevelF1Score","sections":[],"depth":3},{"title":"CorpusLevelPerplexityMetric","local":"lighteval.metrics.metrics_corpus.CorpusLevelPerplexityMetric","sections":[],"depth":3},{"title":"CorpusLevelTranslationMetric","local":"lighteval.metrics.metrics_corpus.CorpusLevelTranslationMetric","sections":[],"depth":3},{"title":"matthews_corrcoef","local":"lighteval.metrics.metrics_corpus.matthews_corrcoef","sections":[],"depth":3}],"depth":2},{"title":"Sample Metrics","local":"sample-metrics","sections":[{"title":"ExactMatches","local":"lighteval.metrics.metrics_sample.ExactMatches","sections":[],"depth":3},{"title":"F1_score","local":"lighteval.metrics.metrics_sample.F1_score","sections":[],"depth":3},{"title":"LoglikelihoodAcc","local":"lighteval.metrics.metrics_sample.LoglikelihoodAcc","sections":[],"depth":3},{"title":"NormalizedMultiChoiceProbability","local":"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability","sections":[],"depth":3},{"title":"Probability","local":"lighteval.metrics.metrics_sample.Probability","sections":[],"depth":3},{"title":"Recall","local":"lighteval.metrics.metrics_sample.Recall","sections":[],"depth":3},{"title":"MRR","local":"lighteval.metrics.metrics_sample.MRR","sections":[],"depth":3},{"title":"ROUGE","local":"lighteval.metrics.metrics_sample.ROUGE","sections":[],"depth":3},{"title":"BertScore","local":"lighteval.metrics.metrics_sample.BertScore","sections":[],"depth":3},{"title":"Extractiveness","local":"lighteval.metrics.metrics_sample.Extractiveness","sections":[],"depth":3},{"title":"Faithfulness","local":"lighteval.metrics.metrics_sample.Faithfulness","sections":[],"depth":3},{"title":"BLEURT","local":"lighteval.metrics.metrics_sample.BLEURT","sections":[],"depth":3},{"title":"BLEU","local":"lighteval.metrics.metrics_sample.BLEU","sections":[],"depth":3},{"title":"StringDistance","local":"lighteval.metrics.metrics_sample.StringDistance","sections":[],"depth":3},{"title":"JudgeLLM","local":"lighteval.metrics.metrics_sample.JudgeLLM","sections":[],"depth":3},{"title":"JudgeLLMMTBench","local":"lighteval.metrics.metrics_sample.JudgeLLMMTBench","sections":[],"depth":3},{"title":"JudgeLLMMixEval","local":"lighteval.metrics.metrics_sample.JudgeLLMMixEval","sections":[],"depth":3},{"title":"MajAtK","local":"lighteval.metrics.metrics_sample.MajAtK","sections":[],"depth":3}],"depth":2},{"title":"LLM-as-a-Judge","local":"llm-as-a-judge","sections":[{"title":"JudgeLM","local":"lighteval.metrics.llm_as_judge.JudgeLM","sections":[],"depth":3}],"depth":2}],"depth":1}';function hn(va){return on(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class bn extends mn{constructor(D){super(),cn(this,D,hn,dn,an,{})}}export{bn as component};

Xet Storage Details

Size:
81.7 kB
·
Xet hash:
36b11b7be21bb3979c8c7a15d1336eec5cec3867bd922b32387c68a414c37be1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.