import{S as yo,i as wo,s as Do,e as r,k as l,w as f,t as i,M as ko,c as o,d as a,m as d,a as n,x as m,h as c,b as s,F as t,g as u,y as h,L as Mo,q as v,o as g,B as _,v as xo}from"../../chunks/vendor-e830fc9c.js";import{D as ne}from"../../chunks/Docstring-785cfc11.js";import{I as w}from"../../chunks/IconCopyLink-af4c5c5b.js";function No(wr){let M,vt,x,V,Ie,se,aa,Pe,ra,gt,N,U,Se,le,oa,Oe,na,_t,A,J,Ce,ie,sa,Fe,la,bt,j,ia,Le,da,ca,$t,I,R,Te,de,pa,He,ua,Et,q,fa,Ve,ma,ha,yt,P,W,Ue,ce,va,Je,ga,wt,z,_a,je,ba,$a,Dt,S,B,Re,pe,Ea,qe,ya,kt,K,wa,We,Da,ka,Mt,O,G,ze,ue,Ma,Be,xa,xt,C,Q,Ke,fe,Na,Ge,Aa,Nt,b,me,Ia,Qe,Pa,Sa,Me,Xe,Oa,Ca,Fa,Ye,La,Ta,X,he,Ha,ve,Va,Ze,Ua,Ja,ja,Y,ge,Ra,F,qa,et,Wa,za,tt,Ba,Ka,At,L,Z,at,_e,Ga,rt,Qa,It,D,Xa,ot,Ya,Za,nt,er,tr,Pt,$,be,ar,st,rr,or,ee,$e,nr,lt,sr,lr,te,Ee,ir,it,dr,cr,k,ye,pr,dt,ur,fr,ct,mr,hr,ae,we,vr,pt,gr,St,T,re,ut,De,_r,ft,br,Ot,H,oe,mt,ke,$r,ht,Er,Ct;return se=new w({}),le=new w({}),ie=new w({}),de=new w({}),ce=new w({}),pe=new w({}),ue=new w({}),fe=new w({}),me=new ne({props:{name:"class evaluate.EvaluationModuleInfo",anchor:"evaluate.EvaluationModuleInfo",parameters:[{name:"description",val:": str"},{name:"citation",val:": str"},{name:"features",val:": typing.Union[datasets.features.features.Features, typing.List[datasets.features.features.Features]]"},{name:"inputs_description",val:": str = <factory>"},{name:"homepage",val:": str = <factory>"},{name:"license",val:": str = <factory>"},{name:"codebase_urls",val:": typing.List[str] = <factory>"},{name:"reference_urls",val:": typing.List[str] = <factory>"},{name:"streamable",val:": bool = False"},{name:"format",val:": typing.Optional[str] = None"},{name:"type",val:": str = 'metric'"},{name:"metric_name",val:": typing.Optional[str] = None"},{name:"config_name",val:": typing.Optional[str] = None"},{name:"experiment_id",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/evaluate/blob/vr_56/src/evaluate/info.py#L35"}}),he=new ne({props:{name:"from_directory",anchor:"evaluate.EvaluationModuleInfo.from_directory",parameters:[{name:"metric_info_dir",val:""}],source:"https://github.com/huggingface/evaluate/blob/vr_56/src/evaluate/info.py#L81"}}),ge=new ne({props:{name:"write_to_directory",anchor:"evaluate.EvaluationModuleInfo.write_to_directory",parameters:[{name:"metric_info_dir",val:""}],source:"https://github.com/huggingface/evaluate/blob/vr_56/src/evaluate/info.py#L71"}}),_e=new w({}),be=new ne({props:{name:"class evaluate.EvaluationModule",anchor:"evaluate.EvaluationModule",parameters:[{name:"config_name",val:": typing.Optional[str] = None"},{name:"keep_in_memory",val:": bool = False"},{name:"cache_dir",val:": typing.Optional[str] = None"},{name:"num_process",val:": int = 1"},{name:"process_id",val:": int = 0"},{name:"seed",val:": typing.Optional[int] = None"},{name:"experiment_id",val:": typing.Optional[str] = None"},{name:"max_concurrent_cache_files",val:": int = 10000"},{name:"timeout",val:": typing.Union[int, float] = 100"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"evaluate.EvaluationModule.config_name",description:`<strong>config_name</strong> (<code>str</code>) &#x2014; This is used to define a hash specific to a module computation script and prevents the module&#x2019;s data
to be overridden when the module loading script is modified.`,name:"config_name"},{anchor:"evaluate.EvaluationModule.keep_in_memory",description:"<strong>keep_in_memory</strong> (<code>bool</code>) &#x2014; keep all predictions and references in memory. Not possible in distributed settings.",name:"keep_in_memory"},{anchor:"evaluate.EvaluationModule.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>) &#x2014; Path to a directory in which temporary prediction/references data will be stored.
The data directory should be located on a shared file-system in distributed setups.`,name:"cache_dir"},{anchor:"evaluate.EvaluationModule.num_process",description:`<strong>num_process</strong> (<code>int</code>) &#x2014; specify the total number of nodes in a distributed settings.
This is useful to compute module in distributed setups (in particular non-additive modules like F1).`,name:"num_process"},{anchor:"evaluate.EvaluationModule.process_id",description:`<strong>process_id</strong> (<code>int</code>) &#x2014; specify the id of the current process in a distributed setup (between 0 and num_process-1)
This is useful to compute module in distributed setups (in particular non-additive metrics like F1).`,name:"process_id"},{anchor:"evaluate.EvaluationModule.seed",description:'<strong>seed</strong> (<code>int</code>, optional) &#x2014; If specified, this will temporarily set numpy&#x2019;s random seed when <a href="/docs/evaluate/pr_56/en/package_reference/main_classes#evaluate.EvaluationModule.compute">evaluate.EvaluationModule.compute()</a> is run.',name:"seed"},{anchor:"evaluate.EvaluationModule.experiment_id",description:`<strong>experiment_id</strong> (<code>str</code>) &#x2014; A specific experiment id. This is used if several distributed evaluations share the same file system.
This is useful to compute module in distributed setups (in particular non-additive metrics like F1).`,name:"experiment_id"},{anchor:"evaluate.EvaluationModule.max_concurrent_cache_files",description:"<strong>max_concurrent_cache_files</strong> (<code>int</code>) &#x2014; Max number of concurrent module cache files (default 10000).",name:"max_concurrent_cache_files"},{anchor:"evaluate.EvaluationModule.timeout",description:"<strong>timeout</strong> (<code>Union[int, float]</code>) &#x2014; Timeout in second for distributed setting synchronization.",name:"timeout"}],source:"https://github.com/huggingface/evaluate/blob/vr_56/src/evaluate/module.py#L144"}}),$e=new ne({props:{name:"add",anchor:"evaluate.EvaluationModule.add",parameters:[{name:"prediction",val:" = None"},{name:"reference",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"evaluate.EvaluationModule.add.prediction",description:"<strong>prediction</strong> (list/array/tensor, optional) &#x2014; Predictions.",name:"prediction"},{anchor:"evaluate.EvaluationModule.add.reference",description:"<strong>reference</strong> (list/array/tensor, optional) &#x2014; References.",name:"reference"}],source:"https://github.com/huggingface/evaluate/blob/vr_56/src/evaluate/module.py#L506"}}),Ee=new ne({props:{name:"add_batch",anchor:"evaluate.EvaluationModule.add_batch",parameters:[{name:"predictions",val:" = None"},{name:"references",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"evaluate.EvaluationModule.add_batch.predictions",description:"<strong>predictions</strong> (list/array/tensor, optional) &#x2014; Predictions.",name:"predictions"},{anchor:"evaluate.EvaluationModule.add_batch.references",description:"<strong>references</strong> (list/array/tensor, optional) &#x2014; References.",name:"references"}],source:"https://github.com/huggingface/evaluate/blob/vr_56/src/evaluate/module.py#L459"}}),ye=new ne({props:{name:"compute",anchor:"evaluate.EvaluationModule.compute",parameters:[{name:"predictions",val:" = None"},{name:"references",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"evaluate.EvaluationModule.compute.predictions",description:"<strong>predictions</strong> (list/array/tensor, optional) &#x2014; Predictions.",name:"predictions"},{anchor:"evaluate.EvaluationModule.compute.references",description:"<strong>references</strong> (list/array/tensor, optional) &#x2014; References.",name:"references"},{anchor:"evaluate.EvaluationModule.compute.*kwargs",description:`*<strong>*kwargs</strong> (optional) &#x2014; Keyword arguments that will be forwarded to the evaluation module <code>_compute</code>
method (see details in the docstring).`,name:"*kwargs"}],source:"https://github.com/huggingface/evaluate/blob/vr_56/src/evaluate/module.py#L395",returnDescription:`
<p>dict or None</p>
<ul>
<li>Dictionary with the results if this evaluation module is run on the main process (<code>process_id == 0</code>).</li>
<li>None if the evaluation module is not run on the main process (<code>process_id != 0</code>).</li>
</ul>
`}}),we=new ne({props:{name:"download_and_prepare",anchor:"evaluate.EvaluationModule.download_and_prepare",parameters:[{name:"download_config",val:": typing.Optional[evaluate.utils.file_utils.DownloadConfig] = None"},{name:"dl_manager",val:": typing.Optional[datasets.utils.download_manager.DownloadManager] = None"}],parametersDescription:[{anchor:"evaluate.EvaluationModule.download_and_prepare.download_config",description:"<strong>download_config</strong> (<code>DownloadConfig</code>, optional) &#x2014; Specific download configuration parameters.",name:"download_config"},{anchor:"evaluate.EvaluationModule.download_and_prepare.dl_manager",description:"<strong>dl_manager</strong> (<code>DownloadManager</code>, optional) &#x2014; Specific download manager to use.",name:"dl_manager"}],source:"https://github.com/huggingface/evaluate/blob/vr_56/src/evaluate/module.py#L623"}}),De=new w({}),ke=new w({}),{c(){M=r("meta"),vt=l(),x=r("h1"),V=r("a"),Ie=r("span"),f(se.$$.fragment),aa=l(),Pe=r("span"),ra=i("Main classes"),gt=l(),N=r("h2"),U=r("a"),Se=r("span"),f(le.$$.fragment),oa=l(),Oe=r("span"),na=i("DatasetInfo"),_t=l(),A=r("h2"),J=r("a"),Ce=r("span"),f(ie.$$.fragment),sa=l(),Fe=r("span"),la=i("Dataset"),bt=l(),j=r("p"),ia=i("The base class "),Le=r("code"),da=i("Dataset"),ca=i(" implements a Dataset backed by an Apache Arrow table."),$t=l(),I=r("h2"),R=r("a"),Te=r("span"),f(de.$$.fragment),pa=l(),He=r("span"),ua=i("DatasetDict"),Et=l(),q=r("p"),fa=i("Dictionary with split names as keys (\u2018train\u2019, \u2018test\u2019 for example), and "),Ve=r("code"),ma=i("Dataset"),ha=i(` objects as values.
It also has dataset transform methods like map or filter, to process all the splits at once.`),yt=l(),P=r("h2"),W=r("a"),Ue=r("span"),f(ce.$$.fragment),va=l(),Je=r("span"),ga=i("IterableDataset"),wt=l(),z=r("p"),_a=i("The base class "),je=r("code"),ba=i("IterableDataset"),$a=i(" implements an iterable Dataset backed by python generators."),Dt=l(),S=r("h2"),B=r("a"),Re=r("span"),f(pe.$$.fragment),Ea=l(),qe=r("span"),ya=i("IterableDatasetDict"),kt=l(),K=r("p"),wa=i("Dictionary with split names as keys (\u2018train\u2019, \u2018test\u2019 for example), and "),We=r("code"),Da=i("IterableDataset"),ka=i(" objects as values."),Mt=l(),O=r("h2"),G=r("a"),ze=r("span"),f(ue.$$.fragment),Ma=l(),Be=r("span"),xa=i("Features"),xt=l(),C=r("h2"),Q=r("a"),Ke=r("span"),f(fe.$$.fragment),Na=l(),Ge=r("span"),Aa=i("MetricInfo"),Nt=l(),b=r("div"),f(me.$$.fragment),Ia=l(),Qe=r("p"),Pa=i("Information about a metric."),Sa=l(),Me=r("p"),Xe=r("code"),Oa=i("EvaluationModuleInfo"),Ca=i(` documents a metric, including its name, version, and features.
See the constructor arguments and properties for a full list.`),Fa=l(),Ye=r("p"),La=i("Note: Not all fields are known on construction and may be updated later."),Ta=l(),X=r("div"),f(he.$$.fragment),Ha=l(),ve=r("p"),Va=i("Create EvaluationModuleInfo from the JSON file in "),Ze=r("code"),Ua=i("metric_info_dir"),Ja=i("."),ja=l(),Y=r("div"),f(ge.$$.fragment),Ra=l(),F=r("p"),qa=i("Write "),et=r("code"),Wa=i("EvaluationModuleInfo"),za=i(" as JSON to "),tt=r("code"),Ba=i("metric_info_dir"),Ka=i(`.
Also save the license separately in LICENCE.`),At=l(),L=r("h2"),Z=r("a"),at=r("span"),f(_e.$$.fragment),Ga=l(),rt=r("span"),Qa=i("Metric"),It=l(),D=r("p"),Xa=i("The base class "),ot=r("code"),Ya=i("Metric"),Za=i(" implements a Metric backed by one or several "),nt=r("code"),er=i("Dataset"),tr=i("."),Pt=l(),$=r("div"),f(be.$$.fragment),ar=l(),st=r("p"),rr=i("A EvaluationModule is the base class and common API for metrics, comparisons, and measurements."),or=l(),ee=r("div"),f($e.$$.fragment),nr=l(),lt=r("p"),sr=i("Add one prediction and reference for the evaluation module\u2019s stack."),lr=l(),te=r("div"),f(Ee.$$.fragment),ir=l(),it=r("p"),dr=i("Add a batch of predictions and references for the evaluation module\u2019s stack."),cr=l(),k=r("div"),f(ye.$$.fragment),pr=l(),dt=r("p"),ur=i("Compute the evaluation module."),fr=l(),ct=r("p"),mr=i("Usage of positional arguments is not allowed to prevent mistakes."),hr=l(),ae=r("div"),f(we.$$.fragment),vr=l(),pt=r("p"),gr=i("Downloads and prepares dataset for reading."),St=l(),T=r("h2"),re=r("a"),ut=r("span"),f(De.$$.fragment),_r=l(),ft=r("span"),br=i("Filesystems"),Ot=l(),H=r("h2"),oe=r("a"),mt=r("span"),f(ke.$$.fragment),$r=l(),ht=r("span"),Er=i("Fingerprint"),this.h()},l(e){const p=ko('[data-svelte="svelte-1phssyn"]',document.head);M=o(p,"META",{name:!0,content:!0}),p.forEach(a),vt=d(e),x=o(e,"H1",{class:!0});var Ft=n(x);V=o(Ft,"A",{id:!0,class:!0,href:!0});var Dr=n(V);Ie=o(Dr,"SPAN",{});var kr=n(Ie);m(se.$$.fragment,kr),kr.forEach(a),Dr.forEach(a),aa=d(Ft),Pe=o(Ft,"SPAN",{});var Mr=n(Pe);ra=c(Mr,"Main classes"),Mr.forEach(a),Ft.forEach(a),gt=d(e),N=o(e,"H2",{class:!0});var Lt=n(N);U=o(Lt,"A",{id:!0,class:!0,href:!0});var xr=n(U);Se=o(xr,"SPAN",{});var Nr=n(Se);m(le.$$.fragment,Nr),Nr.forEach(a),xr.forEach(a),oa=d(Lt),Oe=o(Lt,"SPAN",{});var Ar=n(Oe);na=c(Ar,"DatasetInfo"),Ar.forEach(a),Lt.forEach(a),_t=d(e),A=o(e,"H2",{class:!0});var Tt=n(A);J=o(Tt,"A",{id:!0,class:!0,href:!0});var Ir=n(J);Ce=o(Ir,"SPAN",{});var Pr=n(Ce);m(ie.$$.fragment,Pr),Pr.forEach(a),Ir.forEach(a),sa=d(Tt),Fe=o(Tt,"SPAN",{});var Sr=n(Fe);la=c(Sr,"Dataset"),Sr.forEach(a),Tt.forEach(a),bt=d(e),j=o(e,"P",{});var Ht=n(j);ia=c(Ht,"The base class "),Le=o(Ht,"CODE",{});var Or=n(Le);da=c(Or,"Dataset"),Or.forEach(a),ca=c(Ht," implements a Dataset backed by an Apache Arrow table."),Ht.forEach(a),$t=d(e),I=o(e,"H2",{class:!0});var Vt=n(I);R=o(Vt,"A",{id:!0,class:!0,href:!0});var Cr=n(R);Te=o(Cr,"SPAN",{});var Fr=n(Te);m(de.$$.fragment,Fr),Fr.forEach(a),Cr.forEach(a),pa=d(Vt),He=o(Vt,"SPAN",{});var Lr=n(He);ua=c(Lr,"DatasetDict"),Lr.forEach(a),Vt.forEach(a),Et=d(e),q=o(e,"P",{});var Ut=n(q);fa=c(Ut,"Dictionary with split names as keys (\u2018train\u2019, \u2018test\u2019 for example), and "),Ve=o(Ut,"CODE",{});var Tr=n(Ve);ma=c(Tr,"Dataset"),Tr.forEach(a),ha=c(Ut,` objects as values.
It also has dataset transform methods like map or filter, to process all the splits at once.`),Ut.forEach(a),yt=d(e),P=o(e,"H2",{class:!0});var Jt=n(P);W=o(Jt,"A",{id:!0,class:!0,href:!0});var Hr=n(W);Ue=o(Hr,"SPAN",{});var Vr=n(Ue);m(ce.$$.fragment,Vr),Vr.forEach(a),Hr.forEach(a),va=d(Jt),Je=o(Jt,"SPAN",{});var Ur=n(Je);ga=c(Ur,"IterableDataset"),Ur.forEach(a),Jt.forEach(a),wt=d(e),z=o(e,"P",{});var jt=n(z);_a=c(jt,"The base class "),je=o(jt,"CODE",{});var Jr=n(je);ba=c(Jr,"IterableDataset"),Jr.forEach(a),$a=c(jt," implements an iterable Dataset backed by python generators."),jt.forEach(a),Dt=d(e),S=o(e,"H2",{class:!0});var Rt=n(S);B=o(Rt,"A",{id:!0,class:!0,href:!0});var jr=n(B);Re=o(jr,"SPAN",{});var Rr=n(Re);m(pe.$$.fragment,Rr),Rr.forEach(a),jr.forEach(a),Ea=d(Rt),qe=o(Rt,"SPAN",{});var qr=n(qe);ya=c(qr,"IterableDatasetDict"),qr.forEach(a),Rt.forEach(a),kt=d(e),K=o(e,"P",{});var qt=n(K);wa=c(qt,"Dictionary with split names as keys (\u2018train\u2019, \u2018test\u2019 for example), and "),We=o(qt,"CODE",{});var Wr=n(We);Da=c(Wr,"IterableDataset"),Wr.forEach(a),ka=c(qt," objects as values."),qt.forEach(a),Mt=d(e),O=o(e,"H2",{class:!0});var Wt=n(O);G=o(Wt,"A",{id:!0,class:!0,href:!0});var zr=n(G);ze=o(zr,"SPAN",{});var Br=n(ze);m(ue.$$.fragment,Br),Br.forEach(a),zr.forEach(a),Ma=d(Wt),Be=o(Wt,"SPAN",{});var Kr=n(Be);xa=c(Kr,"Features"),Kr.forEach(a),Wt.forEach(a),xt=d(e),C=o(e,"H2",{class:!0});var zt=n(C);Q=o(zt,"A",{id:!0,class:!0,href:!0});var Gr=n(Q);Ke=o(Gr,"SPAN",{});var Qr=n(Ke);m(fe.$$.fragment,Qr),Qr.forEach(a),Gr.forEach(a),Na=d(zt),Ge=o(zt,"SPAN",{});var Xr=n(Ge);Aa=c(Xr,"MetricInfo"),Xr.forEach(a),zt.forEach(a),Nt=d(e),b=o(e,"DIV",{class:!0});var E=n(b);m(me.$$.fragment,E),Ia=d(E),Qe=o(E,"P",{});var Yr=n(Qe);Pa=c(Yr,"Information about a metric."),Yr.forEach(a),Sa=d(E),Me=o(E,"P",{});var yr=n(Me);Xe=o(yr,"CODE",{});var Zr=n(Xe);Oa=c(Zr,"EvaluationModuleInfo"),Zr.forEach(a),Ca=c(yr,` documents a metric, including its name, version, and features.
See the constructor arguments and properties for a full list.`),yr.forEach(a),Fa=d(E),Ye=o(E,"P",{});var eo=n(Ye);La=c(eo,"Note: Not all fields are known on construction and may be updated later."),eo.forEach(a),Ta=d(E),X=o(E,"DIV",{class:!0});var Bt=n(X);m(he.$$.fragment,Bt),Ha=d(Bt),ve=o(Bt,"P",{});var Kt=n(ve);Va=c(Kt,"Create EvaluationModuleInfo from the JSON file in "),Ze=o(Kt,"CODE",{});var to=n(Ze);Ua=c(to,"metric_info_dir"),to.forEach(a),Ja=c(Kt,"."),Kt.forEach(a),Bt.forEach(a),ja=d(E),Y=o(E,"DIV",{class:!0});var Gt=n(Y);m(ge.$$.fragment,Gt),Ra=d(Gt),F=o(Gt,"P",{});var xe=n(F);qa=c(xe,"Write "),et=o(xe,"CODE",{});var ao=n(et);Wa=c(ao,"EvaluationModuleInfo"),ao.forEach(a),za=c(xe," as JSON to "),tt=o(xe,"CODE",{});var ro=n(tt);Ba=c(ro,"metric_info_dir"),ro.forEach(a),Ka=c(xe,`.
Also save the license separately in LICENCE.`),xe.forEach(a),Gt.forEach(a),E.forEach(a),At=d(e),L=o(e,"H2",{class:!0});var Qt=n(L);Z=o(Qt,"A",{id:!0,class:!0,href:!0});var oo=n(Z);at=o(oo,"SPAN",{});var no=n(at);m(_e.$$.fragment,no),no.forEach(a),oo.forEach(a),Ga=d(Qt),rt=o(Qt,"SPAN",{});var so=n(rt);Qa=c(so,"Metric"),so.forEach(a),Qt.forEach(a),It=d(e),D=o(e,"P",{});var Ne=n(D);Xa=c(Ne,"The base class "),ot=o(Ne,"CODE",{});var lo=n(ot);Ya=c(lo,"Metric"),lo.forEach(a),Za=c(Ne," implements a Metric backed by one or several "),nt=o(Ne,"CODE",{});var io=n(nt);er=c(io,"Dataset"),io.forEach(a),tr=c(Ne,"."),Ne.forEach(a),Pt=d(e),$=o(e,"DIV",{class:!0});var y=n($);m(be.$$.fragment,y),ar=d(y),st=o(y,"P",{});var co=n(st);rr=c(co,"A EvaluationModule is the base class and common API for metrics, comparisons, and measurements."),co.forEach(a),or=d(y),ee=o(y,"DIV",{class:!0});var Xt=n(ee);m($e.$$.fragment,Xt),nr=d(Xt),lt=o(Xt,"P",{});var po=n(lt);sr=c(po,"Add one prediction and reference for the evaluation module\u2019s stack."),po.forEach(a),Xt.forEach(a),lr=d(y),te=o(y,"DIV",{class:!0});var Yt=n(te);m(Ee.$$.fragment,Yt),ir=d(Yt),it=o(Yt,"P",{});var uo=n(it);dr=c(uo,"Add a batch of predictions and references for the evaluation module\u2019s stack."),uo.forEach(a),Yt.forEach(a),cr=d(y),k=o(y,"DIV",{class:!0});var Ae=n(k);m(ye.$$.fragment,Ae),pr=d(Ae),dt=o(Ae,"P",{});var fo=n(dt);ur=c(fo,"Compute the evaluation module."),fo.forEach(a),fr=d(Ae),ct=o(Ae,"P",{});var mo=n(ct);mr=c(mo,"Usage of positional arguments is not allowed to prevent mistakes."),mo.forEach(a),Ae.forEach(a),hr=d(y),ae=o(y,"DIV",{class:!0});var Zt=n(ae);m(we.$$.fragment,Zt),vr=d(Zt),pt=o(Zt,"P",{});var ho=n(pt);gr=c(ho,"Downloads and prepares dataset for reading."),ho.forEach(a),Zt.forEach(a),y.forEach(a),St=d(e),T=o(e,"H2",{class:!0});var ea=n(T);re=o(ea,"A",{id:!0,class:!0,href:!0});var vo=n(re);ut=o(vo,"SPAN",{});var go=n(ut);m(De.$$.fragment,go),go.forEach(a),vo.forEach(a),_r=d(ea),ft=o(ea,"SPAN",{});var _o=n(ft);br=c(_o,"Filesystems"),_o.forEach(a),ea.forEach(a),Ot=d(e),H=o(e,"H2",{class:!0});var ta=n(H);oe=o(ta,"A",{id:!0,class:!0,href:!0});var bo=n(oe);mt=o(bo,"SPAN",{});var $o=n(mt);m(ke.$$.fragment,$o),$o.forEach(a),bo.forEach(a),$r=d(ta),ht=o(ta,"SPAN",{});var Eo=n(ht);Er=c(Eo,"Fingerprint"),Eo.forEach(a),ta.forEach(a),this.h()},h(){s(M,"name","hf:doc:metadata"),s(M,"content",JSON.stringify(Ao)),s(V,"id","main-classes"),s(V,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(V,"href","#main-classes"),s(x,"class","relative group"),s(U,"id","datasetinfo"),s(U,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(U,"href","#datasetinfo"),s(N,"class","relative group"),s(J,"id","dataset"),s(J,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(J,"href","#dataset"),s(A,"class","relative group"),s(R,"id","datasetdict"),s(R,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(R,"href","#datasetdict"),s(I,"class","relative group"),s(W,"id","iterabledataset"),s(W,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(W,"href","#iterabledataset"),s(P,"class","relative group"),s(B,"id","iterabledatasetdict"),s(B,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(B,"href","#iterabledatasetdict"),s(S,"class","relative group"),s(G,"id","features"),s(G,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(G,"href","#features"),s(O,"class","relative group"),s(Q,"id","evaluate.EvaluationModuleInfo"),s(Q,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(Q,"href","#evaluate.EvaluationModuleInfo"),s(C,"class","relative group"),s(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),s(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),s(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),s(Z,"id","evaluate.EvaluationModule"),s(Z,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(Z,"href","#evaluate.EvaluationModule"),s(L,"class","relative group"),s(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),s(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),s(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),s(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),s($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),s(re,"id","filesystems"),s(re,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(re,"href","#filesystems"),s(T,"class","relative group"),s(oe,"id","fingerprint"),s(oe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(oe,"href","#fingerprint"),s(H,"class","relative group")},m(e,p){t(document.head,M),u(e,vt,p),u(e,x,p),t(x,V),t(V,Ie),h(se,Ie,null),t(x,aa),t(x,Pe),t(Pe,ra),u(e,gt,p),u(e,N,p),t(N,U),t(U,Se),h(le,Se,null),t(N,oa),t(N,Oe),t(Oe,na),u(e,_t,p),u(e,A,p),t(A,J),t(J,Ce),h(ie,Ce,null),t(A,sa),t(A,Fe),t(Fe,la),u(e,bt,p),u(e,j,p),t(j,ia),t(j,Le),t(Le,da),t(j,ca),u(e,$t,p),u(e,I,p),t(I,R),t(R,Te),h(de,Te,null),t(I,pa),t(I,He),t(He,ua),u(e,Et,p),u(e,q,p),t(q,fa),t(q,Ve),t(Ve,ma),t(q,ha),u(e,yt,p),u(e,P,p),t(P,W),t(W,Ue),h(ce,Ue,null),t(P,va),t(P,Je),t(Je,ga),u(e,wt,p),u(e,z,p),t(z,_a),t(z,je),t(je,ba),t(z,$a),u(e,Dt,p),u(e,S,p),t(S,B),t(B,Re),h(pe,Re,null),t(S,Ea),t(S,qe),t(qe,ya),u(e,kt,p),u(e,K,p),t(K,wa),t(K,We),t(We,Da),t(K,ka),u(e,Mt,p),u(e,O,p),t(O,G),t(G,ze),h(ue,ze,null),t(O,Ma),t(O,Be),t(Be,xa),u(e,xt,p),u(e,C,p),t(C,Q),t(Q,Ke),h(fe,Ke,null),t(C,Na),t(C,Ge),t(Ge,Aa),u(e,Nt,p),u(e,b,p),h(me,b,null),t(b,Ia),t(b,Qe),t(Qe,Pa),t(b,Sa),t(b,Me),t(Me,Xe),t(Xe,Oa),t(Me,Ca),t(b,Fa),t(b,Ye),t(Ye,La),t(b,Ta),t(b,X),h(he,X,null),t(X,Ha),t(X,ve),t(ve,Va),t(ve,Ze),t(Ze,Ua),t(ve,Ja),t(b,ja),t(b,Y),h(ge,Y,null),t(Y,Ra),t(Y,F),t(F,qa),t(F,et),t(et,Wa),t(F,za),t(F,tt),t(tt,Ba),t(F,Ka),u(e,At,p),u(e,L,p),t(L,Z),t(Z,at),h(_e,at,null),t(L,Ga),t(L,rt),t(rt,Qa),u(e,It,p),u(e,D,p),t(D,Xa),t(D,ot),t(ot,Ya),t(D,Za),t(D,nt),t(nt,er),t(D,tr),u(e,Pt,p),u(e,$,p),h(be,$,null),t($,ar),t($,st),t(st,rr),t($,or),t($,ee),h($e,ee,null),t(ee,nr),t(ee,lt),t(lt,sr),t($,lr),t($,te),h(Ee,te,null),t(te,ir),t(te,it),t(it,dr),t($,cr),t($,k),h(ye,k,null),t(k,pr),t(k,dt),t(dt,ur),t(k,fr),t(k,ct),t(ct,mr),t($,hr),t($,ae),h(we,ae,null),t(ae,vr),t(ae,pt),t(pt,gr),u(e,St,p),u(e,T,p),t(T,re),t(re,ut),h(De,ut,null),t(T,_r),t(T,ft),t(ft,br),u(e,Ot,p),u(e,H,p),t(H,oe),t(oe,mt),h(ke,mt,null),t(H,$r),t(H,ht),t(ht,Er),Ct=!0},p:Mo,i(e){Ct||(v(se.$$.fragment,e),v(le.$$.fragment,e),v(ie.$$.fragment,e),v(de.$$.fragment,e),v(ce.$$.fragment,e),v(pe.$$.fragment,e),v(ue.$$.fragment,e),v(fe.$$.fragment,e),v(me.$$.fragment,e),v(he.$$.fragment,e),v(ge.$$.fragment,e),v(_e.$$.fragment,e),v(be.$$.fragment,e),v($e.$$.fragment,e),v(Ee.$$.fragment,e),v(ye.$$.fragment,e),v(we.$$.fragment,e),v(De.$$.fragment,e),v(ke.$$.fragment,e),Ct=!0)},o(e){g(se.$$.fragment,e),g(le.$$.fragment,e),g(ie.$$.fragment,e),g(de.$$.fragment,e),g(ce.$$.fragment,e),g(pe.$$.fragment,e),g(ue.$$.fragment,e),g(fe.$$.fragment,e),g(me.$$.fragment,e),g(he.$$.fragment,e),g(ge.$$.fragment,e),g(_e.$$.fragment,e),g(be.$$.fragment,e),g($e.$$.fragment,e),g(Ee.$$.fragment,e),g(ye.$$.fragment,e),g(we.$$.fragment,e),g(De.$$.fragment,e),g(ke.$$.fragment,e),Ct=!1},d(e){a(M),e&&a(vt),e&&a(x),_(se),e&&a(gt),e&&a(N),_(le),e&&a(_t),e&&a(A),_(ie),e&&a(bt),e&&a(j),e&&a($t),e&&a(I),_(de),e&&a(Et),e&&a(q),e&&a(yt),e&&a(P),_(ce),e&&a(wt),e&&a(z),e&&a(Dt),e&&a(S),_(pe),e&&a(kt),e&&a(K),e&&a(Mt),e&&a(O),_(ue),e&&a(xt),e&&a(C),_(fe),e&&a(Nt),e&&a(b),_(me),_(he),_(ge),e&&a(At),e&&a(L),_(_e),e&&a(It),e&&a(D),e&&a(Pt),e&&a($),_(be),_($e),_(Ee),_(ye),_(we),e&&a(St),e&&a(T),_(De),e&&a(Ot),e&&a(H),_(ke)}}}const Ao={local:"main-classes",sections:[{local:"datasetinfo",title:"DatasetInfo"},{local:"dataset",title:"Dataset"},{local:"datasetdict",title:"DatasetDict"},{local:"iterabledataset",title:"IterableDataset"},{local:"iterabledatasetdict",title:"IterableDatasetDict"},{local:"features",title:"Features"},{local:"evaluate.EvaluationModuleInfo",title:"MetricInfo"},{local:"evaluate.EvaluationModule",title:"Metric"},{local:"filesystems",title:"Filesystems"},{local:"fingerprint",title:"Fingerprint"}],title:"Main classes"};function Io(wr){return xo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Co extends yo{constructor(M){super();wo(this,M,Io,No,Do,{})}}export{Co as default,Ao as metadata};
