import{s as bF,c as $F,u as yF,g as jF,d as wF,o as vF,n as D}from"../chunks/scheduler.bdbef820.js";import{S as _F,i as xF,r as u,u as f,v as b,d as h,t as g,w as _,g as d,m as sC,s as r,h as i,j as v,n as aC,f as p,c as o,k as M,a as j,y as a,o as MF,A as kF,x as $}from"../chunks/index.c0aea24a.js";import{T as nC}from"../chunks/Tip.31005f7d.js";import{D as k}from"../chunks/Docstring.20f7ed2e.js";import{C}from"../chunks/CodeBlock.6ccca92e.js";import{E as I}from"../chunks/ExampleCodeBlock.da027134.js";import{D as JF}from"../chunks/Deprecated.17138897.js";import{H as Kt,E as TF}from"../chunks/EditOnGithub.725ee0c1.js";function DF(w){let t,x,l,s,c;const e=w[1].default,m=$F(e,w,w[2],null);return{c(){t=d("p"),x=sC("Added in "),l=sC(w[0]),s=r(),m&&m.c(),this.h()},l(Q){t=i(Q,"P",{class:!0});var q=v(t);x=aC(q,"Added in "),l=aC(q,w[0]),q.forEach(p),s=o(Q),m&&m.l(Q),this.h()},h(){M(t,"class","font-medium")},m(Q,q){j(Q,t,q),a(t,x),a(t,l),j(Q,s,q),m&&m.m(Q,q),c=!0},p(Q,q){(!c||q&1)&&MF(l,Q[0]),m&&m.p&&(!c||q&4)&&yF(m,e,Q,Q[2],c?wF(e,Q[2],q,null):jF(Q[2]),null)},i(Q){c||(h(m,Q),c=!0)},o(Q){g(m,Q),c=!1},d(Q){Q&&(p(t),p(s)),m&&m.d(Q)}}}function IF(w){let t,x;return t=new nC({props:{$$slots:{default:[DF]},$$scope:{ctx:w}}}),{c(){u(t.$$.fragment)},l(l){f(t.$$.fragment,l)},m(l,s){b(t,l,s),x=!0},p(l,[s]){const c={};s&5&&(c.$$scope={dirty:s,ctx:l}),t.$set(c)},i(l){x||(h(t.$$.fragment,l),x=!0)},o(l){g(t.$$.fragment,l),x=!1},d(l){_(t,l)}}}function CF(w,t,x){let{$$slots:l={},$$scope:s}=t,{version:c}=t;return w.$$set=e=>{"version"in e&&x(0,c=e.version),"$$scope"in e&&x(2,s=e.$$scope)},[c,l,s]}class fF extends _F{constructor(t){super(),xF(this,t,CF,IF,bF,{version:0})}}function UF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRGF0YXNldEluZm8lMEFkc19pbmZvJTIwJTNEJTIwRGF0YXNldEluZm8uZnJvbV9kaXJlY3RvcnkoJTIyJTJGcGF0aCUyRnRvJTJGZGlyZWN0b3J5JTJGJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> DatasetInfo
<span class="hljs-meta">&gt;&gt;&gt; </span>ds_info = DatasetInfo.from_directory(<span class="hljs-string">&quot;/path/to/directory/&quot;</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function ZF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLmluZm8ud3JpdGVfdG9fZGlyZWN0b3J5KCUyMiUyRnBhdGglMkZ0byUyRmRpcmVjdG9yeSUyRiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.info.write_to_directory(<span class="hljs-string">&quot;/path/to/directory/&quot;</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function FF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQW1vcmVfdGV4dCUyMCUzRCUyMGRzJTVCJTIydGV4dCUyMiU1RCUwQWRzLmFkZF9jb2x1bW4obmFtZSUzRCUyMnRleHRfMiUyMiUyQyUyMGNvbHVtbiUzRG1vcmVfdGV4dCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>more_text = ds[<span class="hljs-string">&quot;text&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.add_column(name=<span class="hljs-string">&quot;text_2&quot;</span>, column=more_text)
Dataset({
    features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>, <span class="hljs-string">&#x27;text_2&#x27;</span>],
    num_rows: <span class="hljs-number">1066</span>
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function RF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQW5ld19yZXZpZXclMjAlM0QlMjAlN0InbGFiZWwnJTNBJTIwMCUyQyUyMCd0ZXh0JyUzQSUyMCd0aGlzJTIwbW92aWUlMjBpcyUyMHRoZSUyMGFic29sdXRlJTIwd29yc3QlMjB0aGluZyUyMEklMjBoYXZlJTIwZXZlciUyMHNlZW4nJTdEJTBBZHMlMjAlM0QlMjBkcy5hZGRfaXRlbShuZXdfcmV2aWV3KSUwQWRzJTVCLTElNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>new_review = {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">0</span>, <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;this movie is the absolute worst thing I have ever seen&#x27;</span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.add_item(new_review)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[-<span class="hljs-number">1</span>]
{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">0</span>, <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;this movie is the absolute worst thing I have ever seen&#x27;</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function zF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMlMjAlM0QlMjBEYXRhc2V0LmZyb21fcGFuZGFzKGRmKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds = Dataset.from_pandas(df)',wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function GF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZGVmJTIwZ2VuKCklM0ElMEElMjAlMjAlMjAlMjB5aWVsZCUyMCU3QiUyMnRleHQlMjIlM0ElMjAlMjJHb29kJTIyJTJDJTIwJTIybGFiZWwlMjIlM0ElMjAwJTdEJTBBJTIwJTIwJTIwJTIweWllbGQlMjAlN0IlMjJ0ZXh0JTIyJTNBJTIwJTIyQmFkJTIyJTJDJTIwJTIybGFiZWwlMjIlM0ElMjAxJTdEJTBBZHMlMjAlM0QlMjBEYXRhc2V0LmZyb21fZ2VuZXJhdG9yKGdlbik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">gen</span>():
<span class="hljs-meta">... </span>    <span class="hljs-keyword">yield</span> {<span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;Good&quot;</span>, <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-number">0</span>}
<span class="hljs-meta">... </span>    <span class="hljs-keyword">yield</span> {<span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;Bad&quot;</span>, <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-number">1</span>}
...
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = Dataset.from_generator(gen)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function NF(w){let t,x;return t=new C({props:{code:"ZGVmJTIwZ2VuKHNoYXJkcyklM0ElMEElMjAlMjAlMjAlMjBmb3IlMjBzaGFyZCUyMGluJTIwc2hhcmRzJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwd2l0aCUyMG9wZW4oc2hhcmQpJTIwYXMlMjBmJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZm9yJTIwbGluZSUyMGluJTIwZiUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHlpZWxkJTIwJTdCJTIybGluZSUyMiUzQSUyMGxpbmUlN0QlMEFzaGFyZHMlMjAlM0QlMjAlNUJmJTIyZGF0YSU3QmklN0QudHh0JTIyJTIwZm9yJTIwaSUyMGluJTIwcmFuZ2UoMzIpJTVEJTBBZHMlMjAlM0QlMjBEYXRhc2V0LmZyb21fZ2VuZXJhdG9yKGdlbiUyQyUyMGdlbl9rd2FyZ3MlM0QlN0IlMjJzaGFyZHMlMjIlM0ElMjBzaGFyZHMlN0Qp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">gen</span>(<span class="hljs-params">shards</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">for</span> shard <span class="hljs-keyword">in</span> shards:
<span class="hljs-meta">... </span>        <span class="hljs-keyword">with</span> <span class="hljs-built_in">open</span>(shard) <span class="hljs-keyword">as</span> f:
<span class="hljs-meta">... </span>            <span class="hljs-keyword">for</span> line <span class="hljs-keyword">in</span> f:
<span class="hljs-meta">... </span>                <span class="hljs-keyword">yield</span> {<span class="hljs-string">&quot;line&quot;</span>: line}
...
<span class="hljs-meta">&gt;&gt;&gt; </span>shards = [<span class="hljs-string">f&quot;data<span class="hljs-subst">{i}</span>.txt&quot;</span> <span class="hljs-keyword">for</span> i <span class="hljs-keyword">in</span> <span class="hljs-built_in">range</span>(<span class="hljs-number">32</span>)]
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = Dataset.from_generator(gen, gen_kwargs={<span class="hljs-string">&quot;shards&quot;</span>: shards})`,wrap:!1}}),{c(){u(t.$$.fragment)},l(l){f(t.$$.fragment,l)},m(l,s){b(t,l,s),x=!0},p:D,i(l){x||(h(t.$$.fragment,l),x=!0)},o(l){g(t.$$.fragment,l),x=!1},d(l){_(t,l)}}}function XF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLmRhdGE=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.data
MemoryMappedTable
text: string
label: int64
----
text: [[<span class="hljs-string">&quot;compassionately explores the seemingly irreconcilable situation between conservative christian parents and their estranged gay and lesbian children .&quot;</span>,<span class="hljs-string">&quot;the soundtrack alone is worth the price of admission .&quot;</span>,<span class="hljs-string">&quot;rodriguez does a splendid job of racial profiling hollywood style--casting excellent latin actors of all ages--a trend long overdue .&quot;</span>,<span class="hljs-string">&quot;beneath the film&#x27;s obvious determination to shock at any cost lies considerable skill and determination , backed by sheer nerve .&quot;</span>,<span class="hljs-string">&quot;bielinsky is a filmmaker of impressive talent .&quot;</span>,<span class="hljs-string">&quot;so beautifully acted and directed , it&#x27;s clear that washington most certainly has a new career ahead of him if he so chooses .&quot;</span>,<span class="hljs-string">&quot;a visual spectacle full of stunning images and effects .&quot;</span>,<span class="hljs-string">&quot;a gentle and engrossing character study .&quot;</span>,<span class="hljs-string">&quot;it&#x27;s enough to watch huppert scheming , with her small , intelligent eyes as steady as any noir villain , and to enjoy the perfectly pitched web of tension that chabrol spins .&quot;</span>,<span class="hljs-string">&quot;an engrossing portrait of uncompromising artists trying to create something original against the backdrop of a corporate music industry that only seems to care about the bottom line .&quot;</span>,...,<span class="hljs-string">&quot;ultimately , jane learns her place as a girl , softens up and loses some of the intensity that made her an interesting character to begin with .&quot;</span>,<span class="hljs-string">&quot;ah-nuld&#x27;s action hero days might be over .&quot;</span>,<span class="hljs-string">&quot;it&#x27;s clear why deuces wild , which was shot two years ago , has been gathering dust on mgm&#x27;s shelf .&quot;</span>,<span class="hljs-string">&quot;feels like nothing quite so much as a middle-aged moviemaker&#x27;s attempt to surround himself with beautiful , half-naked women .&quot;</span>,<span class="hljs-string">&quot;when the precise nature of matthew&#x27;s predicament finally comes into sharp focus , the revelation fails to justify the build-up .&quot;</span>,<span class="hljs-string">&quot;this picture is murder by numbers , and as easy to be bored by as your abc&#x27;s , despite a few whopping shootouts .&quot;</span>,<span class="hljs-string">&quot;hilarious musical comedy though stymied by accents thick as mud .&quot;</span>,<span class="hljs-string">&quot;if you are into splatter movies , then you will probably have a reasonably good time with the salton sea .&quot;</span>,<span class="hljs-string">&quot;a dull , simple-minded and stereotypical tale of drugs , death and mind-numbing indifference on the inner-city streets .&quot;</span>,<span class="hljs-string">&quot;the feature-length stretch . . . strains the show&#x27;s concept .&quot;</span>]]
label: [[<span class="hljs-number">1</span>,<span class="hljs-number">1</span>,<span class="hljs-number">1</span>,<span class="hljs-number">1</span>,<span class="hljs-number">1</span>,<span class="hljs-number">1</span>,<span class="hljs-number">1</span>,<span class="hljs-number">1</span>,<span class="hljs-number">1</span>,<span class="hljs-number">1</span>,...,<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0</span>]]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function VF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLmNhY2hlX2ZpbGVz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.cache_files
[{<span class="hljs-string">&#x27;filename&#x27;</span>: <span class="hljs-string">&#x27;/root/.cache/huggingface/datasets/rotten_tomatoes_movie_review/default/1.0.0/40d411e45a6ce3484deed7cc15b82a53dad9a72aafd9f86f8f227134bec5ca46/rotten_tomatoes_movie_review-validation.arrow&#x27;</span>}]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function qF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLm51bV9jb2x1bW5z",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.num_columns
<span class="hljs-number">2</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function WF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLm51bV9yb3dz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.num_rows
<span class="hljs-number">1066</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function BF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLmNvbHVtbl9uYW1lcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.column_names
[<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function QF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLnNoYXBl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.shape
(<span class="hljs-number">1066</span>, <span class="hljs-number">2</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function EF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLnVuaXF1ZSgnbGFiZWwnKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.unique(<span class="hljs-string">&#x27;label&#x27;</span>)
[<span class="hljs-number">1</span>, <span class="hljs-number">0</span>]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function HF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyc3F1YWQlMjIlMkMlMjBzcGxpdCUzRCUyMnRyYWluJTIyKSUwQWRzLmZlYXR1cmVzJTBBZHMuZmxhdHRlbigp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;squad&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features
{<span class="hljs-string">&#x27;answers&#x27;</span>: <span class="hljs-type">Sequence</span>(feature={<span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>), <span class="hljs-string">&#x27;answer_start&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;int32&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}, length=-<span class="hljs-number">1</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;context&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;id&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;question&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;title&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.flatten()
Dataset({
    features: [<span class="hljs-string">&#x27;id&#x27;</span>, <span class="hljs-string">&#x27;title&#x27;</span>, <span class="hljs-string">&#x27;context&#x27;</span>, <span class="hljs-string">&#x27;question&#x27;</span>, <span class="hljs-string">&#x27;answers.text&#x27;</span>, <span class="hljs-string">&#x27;answers.answer_start&#x27;</span>],
    num_rows: <span class="hljs-number">87599</span>
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function LF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTJDJTIwQ2xhc3NMYWJlbCUyQyUyMFZhbHVlJTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLmZlYXR1cmVzJTBBbmV3X2ZlYXR1cmVzJTIwJTNEJTIwZHMuZmVhdHVyZXMuY29weSgpJTBBbmV3X2ZlYXR1cmVzJTVCJ2xhYmVsJyU1RCUyMCUzRCUyMENsYXNzTGFiZWwobmFtZXMlM0QlNUInYmFkJyUyQyUyMCdnb29kJyU1RCklMEFuZXdfZmVhdHVyZXMlNUIndGV4dCclNUQlMjAlM0QlMjBWYWx1ZSgnbGFyZ2Vfc3RyaW5nJyklMEFkcyUyMCUzRCUyMGRzLmNhc3QobmV3X2ZlYXR1cmVzKSUwQWRzLmZlYXR1cmVz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset, ClassLabel, Value
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;neg&#x27;</span>, <span class="hljs-string">&#x27;pos&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}
<span class="hljs-meta">&gt;&gt;&gt; </span>new_features = ds.features.copy()
<span class="hljs-meta">&gt;&gt;&gt; </span>new_features[<span class="hljs-string">&#x27;label&#x27;</span>] = ClassLabel(names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>new_features[<span class="hljs-string">&#x27;text&#x27;</span>] = Value(<span class="hljs-string">&#x27;large_string&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.cast(new_features)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;large_string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function YF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLmZlYXR1cmVzJTBBZHMlMjAlM0QlMjBkcy5jYXN0X2NvbHVtbignbGFiZWwnJTJDJTIwQ2xhc3NMYWJlbChuYW1lcyUzRCU1QidiYWQnJTJDJTIwJ2dvb2QnJTVEKSklMEFkcy5mZWF0dXJlcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;neg&#x27;</span>, <span class="hljs-string">&#x27;pos&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.cast_column(<span class="hljs-string">&#x27;label&#x27;</span>, ClassLabel(names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>]))
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function SF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzJTIwJTNEJTIwZHMucmVtb3ZlX2NvbHVtbnMoJ2xhYmVsJyklMEFkcyUyMCUzRCUyMGRzLnJlbW92ZV9jb2x1bW5zKGNvbHVtbl9uYW1lcyUzRGRzLmNvbHVtbl9uYW1lcyklMjAlMjMlMjBSZW1vdmluZyUyMGFsbCUyMHRoZSUyMGNvbHVtbnMlMjByZXR1cm5zJTIwYW4lMjBlbXB0eSUyMGRhdGFzZXQlMjB3aXRoJTIwdGhlJTIwJTYwbnVtX3Jvd3MlNjAlMjBwcm9wZXJ0eSUyMHNldCUyMHRvJTIwMA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.remove_columns(<span class="hljs-string">&#x27;label&#x27;</span>)
Dataset({
    features: [<span class="hljs-string">&#x27;text&#x27;</span>],
    num_rows: <span class="hljs-number">1066</span>
})
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.remove_columns(column_names=ds.column_names) <span class="hljs-comment"># Removing all the columns returns an empty dataset with the \`num_rows\` property set to 0</span>
Dataset({
    features: [],
    num_rows: <span class="hljs-number">0</span>
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function AF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzJTIwJTNEJTIwZHMucmVuYW1lX2NvbHVtbignbGFiZWwnJTJDJTIwJ2xhYmVsX25ldycp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.rename_column(<span class="hljs-string">&#x27;label&#x27;</span>, <span class="hljs-string">&#x27;label_new&#x27;</span>)
Dataset({
    features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label_new&#x27;</span>],
    num_rows: <span class="hljs-number">1066</span>
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function PF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzJTIwJTNEJTIwZHMucmVuYW1lX2NvbHVtbnMoJTdCJ3RleHQnJTNBJTIwJ3RleHRfbmV3JyUyQyUyMCdsYWJlbCclM0ElMjAnbGFiZWxfbmV3JyU3RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.rename_columns({<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;text_new&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;label_new&#x27;</span>})
Dataset({
    features: [<span class="hljs-string">&#x27;text_new&#x27;</span>, <span class="hljs-string">&#x27;label_new&#x27;</span>],
    num_rows: <span class="hljs-number">1066</span>
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function KF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLnNlbGVjdF9jb2x1bW5zKCU1Qid0ZXh0JyU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.select_columns([<span class="hljs-string">&#x27;text&#x27;</span>])
Dataset({
    features: [<span class="hljs-string">&#x27;text&#x27;</span>],
    num_rows: <span class="hljs-number">1066</span>
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function OF(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyYm9vbHElMjIlMkMlMjBzcGxpdCUzRCUyMnZhbGlkYXRpb24lMjIpJTBBZHMuZmVhdHVyZXMlMEFkcyUyMCUzRCUyMGRzLmNsYXNzX2VuY29kZV9jb2x1bW4oJ2Fuc3dlcicpJTBBZHMuZmVhdHVyZXM=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;boolq&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features
{<span class="hljs-string">&#x27;answer&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;bool&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;passage&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;question&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.class_encode_column(<span class="hljs-string">&#x27;answer&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features
{<span class="hljs-string">&#x27;answer&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;False&#x27;</span>, <span class="hljs-string">&#x27;True&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;passage&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;question&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function eR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLl9fbGVuX18=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.__len__
&lt;bound method Dataset.__len__ of Dataset({
    features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
    num_rows: <span class="hljs-number">1066</span>
})&gt;`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function tR(w){let t,x="gets updated. In this case, if you apply <code>map</code> on a dataset to add a new column, then this column will be formatted as:",l,s,c;return s=new C({props:{code:"bmV3JTIwZm9ybWF0dGVkJTIwY29sdW1ucyUyMCUzRCUyMChhbGwlMjBjb2x1bW5zJTIwLSUyMHByZXZpb3VzbHklMjB1bmZvcm1hdHRlZCUyMGNvbHVtbnMp",highlighted:'<span class="hljs-built_in">new</span> formatted <span class="hljs-keyword">columns</span> = (<span class="hljs-keyword">all</span> <span class="hljs-keyword">columns</span> - previously unformatted <span class="hljs-keyword">columns</span>)',wrap:!1}}),{c(){t=d("p"),t.innerHTML=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-bzwixd"&&(t.innerHTML=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function sR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJyb3R0ZW5fdG9tYXRvZXMlMjIlMkMlMjBzcGxpdCUzRCUyMnZhbGlkYXRpb24lMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQWRzJTIwJTNEJTIwZHMubWFwKGxhbWJkYSUyMHglM0ElMjB0b2tlbml6ZXIoeCU1Qid0ZXh0JyU1RCUyQyUyMHRydW5jYXRpb24lM0RUcnVlJTJDJTIwcGFkZGluZyUzRFRydWUpJTJDJTIwYmF0Y2hlZCUzRFRydWUpJTBBZHMuc2V0X2Zvcm1hdCh0eXBlJTNEJ251bXB5JyUyQyUyMGNvbHVtbnMlM0QlNUIndGV4dCclMkMlMjAnbGFiZWwnJTVEKSUwQWRzLmZvcm1hdA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(<span class="hljs-keyword">lambda</span> x: tokenizer(x[<span class="hljs-string">&#x27;text&#x27;</span>], truncation=<span class="hljs-literal">True</span>, padding=<span class="hljs-literal">True</span>), batched=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.set_format(<span class="hljs-built_in">type</span>=<span class="hljs-string">&#x27;numpy&#x27;</span>, columns=[<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.<span class="hljs-built_in">format</span>
{<span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;numpy&#x27;</span>,
<span class="hljs-string">&#x27;format_kwargs&#x27;</span>: {},
<span class="hljs-string">&#x27;columns&#x27;</span>: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
<span class="hljs-string">&#x27;output_all_columns&#x27;</span>: <span class="hljs-literal">False</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function aR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJyb3R0ZW5fdG9tYXRvZXMlMjIlMkMlMjBzcGxpdCUzRCUyMnZhbGlkYXRpb24lMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJ2JlcnQtYmFzZS11bmNhc2VkJyklMEFkZWYlMjBlbmNvZGUoYmF0Y2gpJTNBJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwdG9rZW5pemVyKGJhdGNoJTVCJ3RleHQnJTVEJTJDJTIwcGFkZGluZyUzRFRydWUlMkMlMjB0cnVuY2F0aW9uJTNEVHJ1ZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJ3B0JyklMEFkcy5zZXRfdHJhbnNmb3JtKGVuY29kZSklMEFkcyU1QjAlNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&#x27;bert-base-uncased&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">encode</span>(<span class="hljs-params">batch</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> tokenizer(batch[<span class="hljs-string">&#x27;text&#x27;</span>], padding=<span class="hljs-literal">True</span>, truncation=<span class="hljs-literal">True</span>, return_tensors=<span class="hljs-string">&#x27;pt&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.set_transform(encode)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-number">0</span>]
{<span class="hljs-string">&#x27;attention_mask&#x27;</span>: tensor([<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>,
 <span class="hljs-number">1</span>, <span class="hljs-number">1</span>]),
 <span class="hljs-string">&#x27;input_ids&#x27;</span>: tensor([  <span class="hljs-number">101</span>, <span class="hljs-number">29353</span>,  <span class="hljs-number">2135</span>, <span class="hljs-number">15102</span>,  <span class="hljs-number">1996</span>,  <span class="hljs-number">9428</span>, <span class="hljs-number">20868</span>,  <span class="hljs-number">2890</span>,  <span class="hljs-number">8663</span>,  <span class="hljs-number">6895</span>,
         <span class="hljs-number">20470</span>,  <span class="hljs-number">2571</span>,  <span class="hljs-number">3663</span>,  <span class="hljs-number">2090</span>,  <span class="hljs-number">4603</span>,  <span class="hljs-number">3017</span>,  <span class="hljs-number">3008</span>,  <span class="hljs-number">1998</span>,  <span class="hljs-number">2037</span>, <span class="hljs-number">24211</span>,
         <span class="hljs-number">5637</span>,  <span class="hljs-number">1998</span>, <span class="hljs-number">11690</span>,  <span class="hljs-number">2336</span>,  <span class="hljs-number">1012</span>,   <span class="hljs-number">102</span>]),
 <span class="hljs-string">&#x27;token_type_ids&#x27;</span>: tensor([<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>,
         <span class="hljs-number">0</span>, <span class="hljs-number">0</span>])}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function nR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJyb3R0ZW5fdG9tYXRvZXMlMjIlMkMlMjBzcGxpdCUzRCUyMnZhbGlkYXRpb24lMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQWRzJTIwJTNEJTIwZHMubWFwKGxhbWJkYSUyMHglM0ElMjB0b2tlbml6ZXIoeCU1Qid0ZXh0JyU1RCUyQyUyMHRydW5jYXRpb24lM0RUcnVlJTJDJTIwcGFkZGluZyUzRFRydWUpJTJDJTIwYmF0Y2hlZCUzRFRydWUpJTBBZHMuc2V0X2Zvcm1hdCh0eXBlJTNEJ251bXB5JyUyQyUyMGNvbHVtbnMlM0QlNUInaW5wdXRfaWRzJyUyQyUyMCd0b2tlbl90eXBlX2lkcyclMkMlMjAnYXR0ZW50aW9uX21hc2snJTJDJTIwJ2xhYmVsJyU1RCklMEFkcy5mb3JtYXQlMEFkcy5yZXNldF9mb3JtYXQoKSUwQWRzLmZvcm1hdA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(<span class="hljs-keyword">lambda</span> x: tokenizer(x[<span class="hljs-string">&#x27;text&#x27;</span>], truncation=<span class="hljs-literal">True</span>, padding=<span class="hljs-literal">True</span>), batched=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.set_format(<span class="hljs-built_in">type</span>=<span class="hljs-string">&#x27;numpy&#x27;</span>, columns=[<span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.<span class="hljs-built_in">format</span>
{<span class="hljs-string">&#x27;columns&#x27;</span>: [<span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
 <span class="hljs-string">&#x27;format_kwargs&#x27;</span>: {},
 <span class="hljs-string">&#x27;output_all_columns&#x27;</span>: <span class="hljs-literal">False</span>,
 <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;numpy&#x27;</span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.reset_format()
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.<span class="hljs-built_in">format</span>
{<span class="hljs-string">&#x27;columns&#x27;</span>: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>, <span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>],
 <span class="hljs-string">&#x27;format_kwargs&#x27;</span>: {},
 <span class="hljs-string">&#x27;output_all_columns&#x27;</span>: <span class="hljs-literal">False</span>,
 <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-literal">None</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function rR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJyb3R0ZW5fdG9tYXRvZXMlMjIlMkMlMjBzcGxpdCUzRCUyMnZhbGlkYXRpb24lMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQWRzJTIwJTNEJTIwZHMubWFwKGxhbWJkYSUyMHglM0ElMjB0b2tlbml6ZXIoeCU1Qid0ZXh0JyU1RCUyQyUyMHRydW5jYXRpb24lM0RUcnVlJTJDJTIwcGFkZGluZyUzRFRydWUpJTJDJTIwYmF0Y2hlZCUzRFRydWUpJTBBZHMuZm9ybWF0JTBBZHMlMjAlM0QlMjBkcy53aXRoX2Zvcm1hdCh0eXBlJTNEJ3RlbnNvcmZsb3cnJTJDJTIwY29sdW1ucyUzRCU1QidpbnB1dF9pZHMnJTJDJTIwJ3Rva2VuX3R5cGVfaWRzJyUyQyUyMCdhdHRlbnRpb25fbWFzayclMkMlMjAnbGFiZWwnJTVEKSUwQWRzLmZvcm1hdA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(<span class="hljs-keyword">lambda</span> x: tokenizer(x[<span class="hljs-string">&#x27;text&#x27;</span>], truncation=<span class="hljs-literal">True</span>, padding=<span class="hljs-literal">True</span>), batched=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.<span class="hljs-built_in">format</span>
{<span class="hljs-string">&#x27;columns&#x27;</span>: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>, <span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>],
 <span class="hljs-string">&#x27;format_kwargs&#x27;</span>: {},
 <span class="hljs-string">&#x27;output_all_columns&#x27;</span>: <span class="hljs-literal">False</span>,
 <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-literal">None</span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.with_format(<span class="hljs-built_in">type</span>=<span class="hljs-string">&#x27;tensorflow&#x27;</span>, columns=[<span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.<span class="hljs-built_in">format</span>
{<span class="hljs-string">&#x27;columns&#x27;</span>: [<span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
 <span class="hljs-string">&#x27;format_kwargs&#x27;</span>: {},
 <span class="hljs-string">&#x27;output_all_columns&#x27;</span>: <span class="hljs-literal">False</span>,
 <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;tensorflow&#x27;</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function oR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJyb3R0ZW5fdG9tYXRvZXMlMjIlMkMlMjBzcGxpdCUzRCUyMnZhbGlkYXRpb24lMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQWRlZiUyMGVuY29kZShleGFtcGxlKSUzQSUwQSUyMCUyMCUyMCUyMHJldHVybiUyMHRva2VuaXplcihleGFtcGxlJTVCJTIydGV4dCUyMiU1RCUyQyUyMHBhZGRpbmclM0RUcnVlJTJDJTIwdHJ1bmNhdGlvbiUzRFRydWUlMkMlMjByZXR1cm5fdGVuc29ycyUzRCdwdCcpJTBBZHMlMjAlM0QlMjBkcy53aXRoX3RyYW5zZm9ybShlbmNvZGUpJTBBZHMlNUIwJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">encode</span>(<span class="hljs-params">example</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> tokenizer(example[<span class="hljs-string">&quot;text&quot;</span>], padding=<span class="hljs-literal">True</span>, truncation=<span class="hljs-literal">True</span>, return_tensors=<span class="hljs-string">&#x27;pt&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.with_transform(encode)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-number">0</span>]
{<span class="hljs-string">&#x27;attention_mask&#x27;</span>: tensor([<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>,
 <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>]),
 <span class="hljs-string">&#x27;input_ids&#x27;</span>: tensor([  <span class="hljs-number">101</span>, <span class="hljs-number">18027</span>, <span class="hljs-number">16310</span>, <span class="hljs-number">16001</span>,  <span class="hljs-number">1103</span>,  <span class="hljs-number">9321</span>,   <span class="hljs-number">178</span>, <span class="hljs-number">11604</span>,  <span class="hljs-number">7235</span>,  <span class="hljs-number">6617</span>,
         <span class="hljs-number">1742</span>,  <span class="hljs-number">2165</span>,  <span class="hljs-number">2820</span>,  <span class="hljs-number">1206</span>,  <span class="hljs-number">6588</span>, <span class="hljs-number">22572</span>, <span class="hljs-number">12937</span>,  <span class="hljs-number">1811</span>,  <span class="hljs-number">2153</span>,  <span class="hljs-number">1105</span>,
         <span class="hljs-number">1147</span>, <span class="hljs-number">12890</span>, <span class="hljs-number">19587</span>,  <span class="hljs-number">6463</span>,  <span class="hljs-number">1105</span>, <span class="hljs-number">15026</span>,  <span class="hljs-number">1482</span>,   <span class="hljs-number">119</span>,   <span class="hljs-number">102</span>]),
 <span class="hljs-string">&#x27;token_type_ids&#x27;</span>: tensor([<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>,
         <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>])}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function lR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLmNsZWFudXBfY2FjaGVfZmlsZXMoKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.cleanup_cache_files()
<span class="hljs-number">10</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function cR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRlZiUyMGFkZF9wcmVmaXgoZXhhbXBsZSklM0ElMEElMjAlMjAlMjAlMjBleGFtcGxlJTVCJTIydGV4dCUyMiU1RCUyMCUzRCUyMCUyMlJldmlldyUzQSUyMCUyMiUyMCUyQiUyMGV4YW1wbGUlNUIlMjJ0ZXh0JTIyJTVEJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwZXhhbXBsZSUwQWRzJTIwJTNEJTIwZHMubWFwKGFkZF9wcmVmaXgpJTBBZHMlNUIwJTNBMyU1RCU1QiUyMnRleHQlMjIlNUQlMEElMEFkcyUyMCUzRCUyMGRzLm1hcChsYW1iZGElMjBleGFtcGxlJTNBJTIwdG9rZW5pemVyKGV4YW1wbGUlNUIlMjJ0ZXh0JTIyJTVEKSUyQyUyMGJhdGNoZWQlM0RUcnVlKSUwQWRzJTIwJTNEJTIwZHMubWFwKGFkZF9wcmVmaXglMkMlMjBudW1fcHJvYyUzRDQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">add_prefix</span>(<span class="hljs-params">example</span>):
<span class="hljs-meta">... </span>    example[<span class="hljs-string">&quot;text&quot;</span>] = <span class="hljs-string">&quot;Review: &quot;</span> + example[<span class="hljs-string">&quot;text&quot;</span>]
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> example
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(add_prefix)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-number">0</span>:<span class="hljs-number">3</span>][<span class="hljs-string">&quot;text&quot;</span>]
[<span class="hljs-string">&#x27;Review: compassionately explores the seemingly irreconcilable situation between conservative christian parents and their estranged gay and lesbian children .&#x27;</span>,
 <span class="hljs-string">&#x27;Review: the soundtrack alone is worth the price of admission .&#x27;</span>,
 <span class="hljs-string">&#x27;Review: rodriguez does a splendid job of racial profiling hollywood style--casting excellent latin actors of all ages--a trend long overdue .&#x27;</span>]

<span class="hljs-comment"># process a batch of examples</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(<span class="hljs-keyword">lambda</span> example: tokenizer(example[<span class="hljs-string">&quot;text&quot;</span>]), batched=<span class="hljs-literal">True</span>)
<span class="hljs-comment"># set number of processors</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(add_prefix, num_proc=<span class="hljs-number">4</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function dR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLmZpbHRlcihsYW1iZGElMjB4JTNBJTIweCU1QiUyMmxhYmVsJTIyJTVEJTIwJTNEJTNEJTIwMSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.<span class="hljs-built_in">filter</span>(<span class="hljs-keyword">lambda</span> x: x[<span class="hljs-string">&quot;label&quot;</span>] == <span class="hljs-number">1</span>)
Dataset({
    features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
    num_rows: <span class="hljs-number">533</span>
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function iR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzLnNlbGVjdChyYW5nZSg0KSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.select(<span class="hljs-built_in">range</span>(<span class="hljs-number">4</span>))
Dataset({
    features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
    num_rows: <span class="hljs-number">4</span>
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function pR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJ3JvdHRlbl90b21hdG9lcyclMkMlMjBzcGxpdCUzRCd2YWxpZGF0aW9uJyklMEFkcyU1QidsYWJlbCclNUQlNUIlM0ExMCU1RCUwQXNvcnRlZF9kcyUyMCUzRCUyMGRzLnNvcnQoJ2xhYmVsJyklMEFzb3J0ZWRfZHMlNUInbGFiZWwnJTVEJTVCJTNBMTAlNUQlMEFhbm90aGVyX3NvcnRlZF9kcyUyMCUzRCUyMGRzLnNvcnQoJTVCJ2xhYmVsJyUyQyUyMCd0ZXh0JyU1RCUyQyUyMHJldmVyc2UlM0QlNUJUcnVlJTJDJTIwRmFsc2UlNUQpJTBBYW5vdGhlcl9zb3J0ZWRfZHMlNUInbGFiZWwnJTVEJTVCJTNBMTAlNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&#x27;rotten_tomatoes&#x27;</span>, split=<span class="hljs-string">&#x27;validation&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&#x27;label&#x27;</span>][:<span class="hljs-number">10</span>]
[<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>sorted_ds = ds.sort(<span class="hljs-string">&#x27;label&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>sorted_ds[<span class="hljs-string">&#x27;label&#x27;</span>][:<span class="hljs-number">10</span>]
[<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>another_sorted_ds = ds.sort([<span class="hljs-string">&#x27;label&#x27;</span>, <span class="hljs-string">&#x27;text&#x27;</span>], reverse=[<span class="hljs-literal">True</span>, <span class="hljs-literal">False</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>another_sorted_ds[<span class="hljs-string">&#x27;label&#x27;</span>][:<span class="hljs-number">10</span>]
[<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function mR(w){let t,x="This may take a lot of time depending of the size of your dataset though:",l,s,c;return s=new C({props:{code:"bXlfZGF0YXNldCU1QjAlNUQlMjAlMjAlMjMlMjBmYXN0JTBBbXlfZGF0YXNldCUyMCUzRCUyMG15X2RhdGFzZXQuc2h1ZmZsZShzZWVkJTNENDIpJTBBbXlfZGF0YXNldCU1QjAlNUQlMjAlMjAlMjMlMjB1cCUyMHRvJTIwMTB4JTIwc2xvd2VyJTBBbXlfZGF0YXNldCUyMCUzRCUyMG15X2RhdGFzZXQuZmxhdHRlbl9pbmRpY2VzKCklMjAlMjAlMjMlMjByZXdyaXRlJTIwdGhlJTIwc2h1ZmZsZWQlMjBkYXRhc2V0JTIwb24lMjBkaXNrJTIwYXMlMjBjb250aWd1b3VzJTIwY2h1bmtzJTIwb2YlMjBkYXRhJTBBbXlfZGF0YXNldCU1QjAlNUQlMjAlMjAlMjMlMjBmYXN0JTIwYWdhaW4=",highlighted:`my_dataset[<span class="hljs-number">0</span>]  <span class="hljs-comment"># fast</span>
my_dataset = my_dataset.shuffle(seed=<span class="hljs-number">42</span>)
my_dataset[<span class="hljs-number">0</span>]  <span class="hljs-comment"># up to 10x slower</span>
my_dataset = my_dataset.flatten_indices()  <span class="hljs-comment"># rewrite the shuffled dataset on disk as contiguous chunks of data</span>
my_dataset[<span class="hljs-number">0</span>]  <span class="hljs-comment"># fast again</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-4lic98"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function hR(w){let t,x="It only shuffles the shards order and adds a shuffle buffer to your dataset, which keeps the speed of your dataset optimal:",l,s,c;return s=new C({props:{code:"bXlfaXRlcmFibGVfZGF0YXNldCUyMCUzRCUyMG15X2RhdGFzZXQudG9faXRlcmFibGVfZGF0YXNldChudW1fc2hhcmRzJTNEMTI4KSUwQWZvciUyMGV4YW1wbGUlMjBpbiUyMGVudW1lcmF0ZShteV9pdGVyYWJsZV9kYXRhc2V0KSUzQSUyMCUyMCUyMyUyMGZhc3QlMEElMjAlMjAlMjAlMjBwYXNzJTBBJTBBc2h1ZmZsZWRfaXRlcmFibGVfZGF0YXNldCUyMCUzRCUyMG15X2l0ZXJhYmxlX2RhdGFzZXQuc2h1ZmZsZShzZWVkJTNENDIlMkMlMjBidWZmZXJfc2l6ZSUzRDEwMCklMEElMEFmb3IlMjBleGFtcGxlJTIwaW4lMjBlbnVtZXJhdGUoc2h1ZmZsZWRfaXRlcmFibGVfZGF0YXNldCklM0ElMjAlMjAlMjMlMjBhcyUyMGZhc3QlMjBhcyUyMGJlZm9yZSUwQSUyMCUyMCUyMCUyMHBhc3M=",highlighted:`my_iterable_dataset = my_dataset.to_iterable_dataset(num_shards=<span class="hljs-number">128</span>)
<span class="hljs-keyword">for</span> example <span class="hljs-keyword">in</span> <span class="hljs-built_in">enumerate</span>(my_iterable_dataset):  <span class="hljs-comment"># fast</span>
    <span class="hljs-keyword">pass</span>

shuffled_iterable_dataset = my_iterable_dataset.shuffle(seed=<span class="hljs-number">42</span>, buffer_size=<span class="hljs-number">100</span>)

<span class="hljs-keyword">for</span> example <span class="hljs-keyword">in</span> <span class="hljs-built_in">enumerate</span>(shuffled_iterable_dataset):  <span class="hljs-comment"># as fast as before</span>
    <span class="hljs-keyword">pass</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-x7zi6r"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function gR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzJTVCJ2xhYmVsJyU1RCU1QiUzQTEwJTVEJTBBJTBBc2h1ZmZsZWRfZHMlMjAlM0QlMjBkcy5zaHVmZmxlKHNlZWQlM0Q0MiklMEFzaHVmZmxlZF9kcyU1QidsYWJlbCclNUQlNUIlM0ExMCU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&#x27;label&#x27;</span>][:<span class="hljs-number">10</span>]
[<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>]

<span class="hljs-comment"># set a seed</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>shuffled_ds = ds.shuffle(seed=<span class="hljs-number">42</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>shuffled_ds[<span class="hljs-string">&#x27;label&#x27;</span>][:<span class="hljs-number">10</span>]
[<span class="hljs-number">1</span>, <span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function uR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiklMEFsaXN0KGRzLnRha2UoMykpJTBBZHMlMjAlM0QlMjBkcy5za2lwKDEpJTBBbGlzdChkcy50YWtlKDMpKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(ds.take(<span class="hljs-number">3</span>))
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the gorgeously elaborate continuation of &quot; the lord of the rings &quot; trilogy is so huge that a column of words cannot adequately describe co-writer/director peter jackson&#x27;</span>s expanded vision of j . r . r . tolkien<span class="hljs-string">&#x27;s middle-earth .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>, <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;effective but too-tepid biopic&#x27;</span>}]
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.skip(<span class="hljs-number">1</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(ds.take(<span class="hljs-number">3</span>))
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the gorgeously elaborate continuation of &quot; the lord of the rings &quot; trilogy is so huge that a column of words cannot adequately describe co-writer/director peter jackson&#x27;</span>s expanded vision of j . r . r . tolkien<span class="hljs-string">&#x27;s middle-earth .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>, <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;effective but too-tepid biopic&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;if you sometimes like to go to the movies to have fun , wasabi is a good place to start .&#x27;</span>}]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function fR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiklMEFzbWFsbF9kcyUyMCUzRCUyMGRzLnRha2UoMiklMEFsaXN0KHNtYWxsX2RzKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>small_ds = ds.take(<span class="hljs-number">2</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(small_ds)
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the gorgeously elaborate continuation of &quot; the lord of the rings &quot; trilogy is so huge that a column of words cannot adequately describe co-writer/director peter jackson&#x27;</span>s expanded vision of j . r . r . tolkien<span class="hljs-string">&#x27;s middle-earth .&#x27;</span>}]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function bR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzJTIwJTNEJTIwZHMudHJhaW5fdGVzdF9zcGxpdCh0ZXN0X3NpemUlM0QwLjIlMkMlMjBzaHVmZmxlJTNEVHJ1ZSklMEElMEFkcyUyMCUzRCUyMGRzLnRyYWluX3Rlc3Rfc3BsaXQodGVzdF9zaXplJTNEMC4yJTJDJTIwc2VlZCUzRDQyKSUwQSUwQWRzJTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmltZGIlMjIlMkNzcGxpdCUzRCUyMnRyYWluJTIyKSUwQWRzJTIwJTNEJTIwZHMudHJhaW5fdGVzdF9zcGxpdCh0ZXN0X3NpemUlM0QwLjIlMkMlMjBzdHJhdGlmeV9ieV9jb2x1bW4lM0QlMjJsYWJlbCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.train_test_split(test_size=<span class="hljs-number">0.2</span>, shuffle=<span class="hljs-literal">True</span>)
DatasetDict({
    train: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
        num_rows: <span class="hljs-number">852</span>
    })
    test: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
        num_rows: <span class="hljs-number">214</span>
    })
})

<span class="hljs-comment"># set a seed</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.train_test_split(test_size=<span class="hljs-number">0.2</span>, seed=<span class="hljs-number">42</span>)

<span class="hljs-comment"># stratified split</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;imdb&quot;</span>,split=<span class="hljs-string">&quot;train&quot;</span>)
Dataset({
    features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
    num_rows: <span class="hljs-number">25000</span>
})
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.train_test_split(test_size=<span class="hljs-number">0.2</span>, stratify_by_column=<span class="hljs-string">&quot;label&quot;</span>)
DatasetDict({
    train: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
        num_rows: <span class="hljs-number">20000</span>
    })
    test: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
        num_rows: <span class="hljs-number">5000</span>
    })
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function _R(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRzJTBBZHMuc2hhcmQobnVtX3NoYXJkcyUzRDIlMkMlMjBpbmRleCUzRDAp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds
Dataset({
    features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
    num_rows: <span class="hljs-number">1066</span>
})
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.shard(num_shards=<span class="hljs-number">2</span>, index=<span class="hljs-number">0</span>)
Dataset({
    features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
    num_rows: <span class="hljs-number">533</span>
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function xR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHNfdHJhaW4lMjAlM0QlMjBkcyU1QiUyMnRyYWluJTIyJTVELnRvX3RmX2RhdGFzZXQoJTBBJTIwJTIwJTIwY29sdW1ucyUzRCU1QidpbnB1dF9pZHMnJTJDJTIwJ3Rva2VuX3R5cGVfaWRzJyUyQyUyMCdhdHRlbnRpb25fbWFzayclMkMlMjAnbGFiZWwnJTVEJTJDJTBBJTIwJTIwJTIwc2h1ZmZsZSUzRFRydWUlMkMlMEElMjAlMjAlMjBiYXRjaF9zaXplJTNEMTYlMkMlMEElMjAlMjAlMjBjb2xsYXRlX2ZuJTNEZGF0YV9jb2xsYXRvciUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>ds_train = ds[<span class="hljs-string">&quot;train&quot;</span>].to_tf_dataset(
<span class="hljs-meta">... </span>   columns=[<span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
<span class="hljs-meta">... </span>   shuffle=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>   batch_size=<span class="hljs-number">16</span>,
<span class="hljs-meta">... </span>   collate_fn=data_collator,
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function $R(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZGF0YXNldC5wdXNoX3RvX2h1YiglMjIlM0Nvcmdhbml6YXRpb24lM0UlMkYlM0NkYXRhc2V0X2lkJTNFJTIyKSUwQWRhdGFzZXRfZGljdC5wdXNoX3RvX2h1YiglMjIlM0Nvcmdhbml6YXRpb24lM0UlMkYlM0NkYXRhc2V0X2lkJTNFJTIyJTJDJTIwcHJpdmF0ZSUzRFRydWUpJTBBZGF0YXNldC5wdXNoX3RvX2h1YiglMjIlM0Nvcmdhbml6YXRpb24lM0UlMkYlM0NkYXRhc2V0X2lkJTNFJTIyJTJDJTIwbWF4X3NoYXJkX3NpemUlM0QlMjIxR0IlMjIpJTBBZGF0YXNldC5wdXNoX3RvX2h1YiglMjIlM0Nvcmdhbml6YXRpb24lM0UlMkYlM0NkYXRhc2V0X2lkJTNFJTIyJTJDJTIwbnVtX3NoYXJkcyUzRDEwMjQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>dataset.push_to_hub(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset_dict.push_to_hub(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, private=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset.push_to_hub(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, max_shard_size=<span class="hljs-string">&quot;1GB&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset.push_to_hub(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, num_shards=<span class="hljs-number">1024</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function yR(w){let t,x="If your dataset has multiple splits (e.g. train/validation/test):",l,s,c;return s=new C({props:{code:"dHJhaW5fZGF0YXNldC5wdXNoX3RvX2h1YiglMjIlM0Nvcmdhbml6YXRpb24lM0UlMkYlM0NkYXRhc2V0X2lkJTNFJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiklMEF2YWxfZGF0YXNldC5wdXNoX3RvX2h1YiglMjIlM0Nvcmdhbml6YXRpb24lM0UlMkYlM0NkYXRhc2V0X2lkJTNFJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQSUyMyUyMGxhdGVyJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjIlM0Nvcmdhbml6YXRpb24lM0UlMkYlM0NkYXRhc2V0X2lkJTNFJTIyKSUwQXRyYWluX2RhdGFzZXQlMjAlM0QlMjBkYXRhc2V0JTVCJTIydHJhaW4lMjIlNUQlMEF2YWxfZGF0YXNldCUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ2YWxpZGF0aW9uJTIyJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>train_dataset.push_to_hub(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>val_dataset.push_to_hub(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># later</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>train_dataset = dataset[<span class="hljs-string">&quot;train&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>val_dataset = dataset[<span class="hljs-string">&quot;validation&quot;</span>]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-if431r"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function jR(w){let t,x="If you want to add a new configuration (or subset) to a dataset (e.g. if the dataset has multiple tasks/versions/languages):",l,s,c;return s=new C({props:{code:"ZW5nbGlzaF9kYXRhc2V0LnB1c2hfdG9faHViKCUyMiUzQ29yZ2FuaXphdGlvbiUzRSUyRiUzQ2RhdGFzZXRfaWQlM0UlMjIlMkMlMjAlMjJlbiUyMiklMEFmcmVuY2hfZGF0YXNldC5wdXNoX3RvX2h1YiglMjIlM0Nvcmdhbml6YXRpb24lM0UlMkYlM0NkYXRhc2V0X2lkJTNFJTIyJTJDJTIwJTIyZnIlMjIpJTBBJTIzJTIwbGF0ZXIlMEFlbmdsaXNoX2RhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyJTNDb3JnYW5pemF0aW9uJTNFJTJGJTNDZGF0YXNldF9pZCUzRSUyMiUyQyUyMCUyMmVuJTIyKSUwQWZyZW5jaF9kYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMiUzQ29yZ2FuaXphdGlvbiUzRSUyRiUzQ2RhdGFzZXRfaWQlM0UlMjIlMkMlMjAlMjJmciUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>english_dataset.push_to_hub(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, <span class="hljs-string">&quot;en&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>french_dataset.push_to_hub(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, <span class="hljs-string">&quot;fr&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># later</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>english_dataset = load_dataset(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, <span class="hljs-string">&quot;en&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>french_dataset = load_dataset(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, <span class="hljs-string">&quot;fr&quot;</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-1l9vuim"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function wR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMuc2F2ZV90b19kaXNrKCUyMnBhdGglMkZ0byUyRmRhdGFzZXQlMkZkaXJlY3RvcnklMjIpJTBBZHMuc2F2ZV90b19kaXNrKCUyMnBhdGglMkZ0byUyRmRhdGFzZXQlMkZkaXJlY3RvcnklMjIlMkMlMjBtYXhfc2hhcmRfc2l6ZSUzRCUyMjFHQiUyMiklMEFkcy5zYXZlX3RvX2Rpc2soJTIycGF0aCUyRnRvJTJGZGF0YXNldCUyRmRpcmVjdG9yeSUyMiUyQyUyMG51bV9zaGFyZHMlM0QxMDI0KQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>ds.save_to_disk(<span class="hljs-string">&quot;path/to/dataset/directory&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.save_to_disk(<span class="hljs-string">&quot;path/to/dataset/directory&quot;</span>, max_shard_size=<span class="hljs-string">&quot;1GB&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.save_to_disk(<span class="hljs-string">&quot;path/to/dataset/directory&quot;</span>, num_shards=<span class="hljs-number">1024</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function vR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMlMjAlM0QlMjBsb2FkX2Zyb21fZGlzayglMjJwYXRoJTJGdG8lMkZkYXRhc2V0JTJGZGlyZWN0b3J5JTIyKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_from_disk(<span class="hljs-string">&quot;path/to/dataset/directory&quot;</span>)',wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function MR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMudG9fY3N2KCUyMnBhdGglMkZ0byUyRmRhdGFzZXQlMkZkaXJlY3RvcnklMjIp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds.to_csv(<span class="hljs-string">&quot;path/to/dataset/directory&quot;</span>)',wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function kR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMudG9fcGFuZGFzKCk=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds.to_pandas()',wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function JR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMudG9fZGljdCgp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds.to_dict()',wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function TR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMudG9fanNvbiglMjJwYXRoJTJGdG8lMkZkYXRhc2V0JTJGZGlyZWN0b3J5JTJGZmlsZW5hbWUuanNvbmwlMjIp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds.to_json(<span class="hljs-string">&quot;path/to/dataset/directory/filename.jsonl&quot;</span>)',wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function DR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMudG9fcGFycXVldCglMjJwYXRoJTJGdG8lMkZkYXRhc2V0JTJGZGlyZWN0b3J5JTIyKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds.to_parquet(<span class="hljs-string">&quot;path/to/dataset/directory&quot;</span>)',wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function IR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"JTIzJTIwY29uJTIwcHJvdmlkZWQlMjBhcyUyMGElMjBjb25uZWN0aW9uJTIwVVJJJTIwc3RyaW5nJTBBZHMudG9fc3FsKCUyMmRhdGElMjIlMkMlMjAlMjJzcWxpdGUlM0ElMkYlMkYlMkZteV9vd25fZGIuc3FsJTIyKSUwQSUyMyUyMGNvbiUyMHByb3ZpZGVkJTIwYXMlMjBhJTIwc3FsaXRlMyUyMGNvbm5lY3Rpb24lMjBvYmplY3QlMEFpbXBvcnQlMjBzcWxpdGUzJTBBY29uJTIwJTNEJTIwc3FsaXRlMy5jb25uZWN0KCUyMm15X293bl9kYi5zcWwlMjIpJTBBd2l0aCUyMGNvbiUzQSUwQSUyMCUyMCUyMCUyMGRzLnRvX3NxbCglMjJkYXRhJTIyJTJDJTIwY29uKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># con provided as a connection URI string</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.to_sql(<span class="hljs-string">&quot;data&quot;</span>, <span class="hljs-string">&quot;sqlite:///my_own_db.sql&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># con provided as a sqlite3 connection object</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> sqlite3
<span class="hljs-meta">&gt;&gt;&gt; </span>con = sqlite3.connect(<span class="hljs-string">&quot;my_own_db.sql&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> con:
<span class="hljs-meta">... </span>    ds.to_sql(<span class="hljs-string">&quot;data&quot;</span>, con)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function CR(w){let t,x="Basic usage:",l,s,c;return s=new C({props:{code:"aWRzJTIwJTNEJTIwZHMudG9faXRlcmFibGVfZGF0YXNldCgpJTBBZm9yJTIwZXhhbXBsZSUyMGluJTIwaWRzJTNBJTBBJTIwJTIwJTIwJTIwcGFzcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>ids = ds.to_iterable_dataset()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> example <span class="hljs-keyword">in</span> ids:
<span class="hljs-meta">... </span>    <span class="hljs-keyword">pass</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-1aguo8v"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function UR(w){let t,x="With lazy filtering and processing:",l,s,c;return s=new C({props:{code:"aWRzJTIwJTNEJTIwZHMudG9faXRlcmFibGVfZGF0YXNldCgpJTBBaWRzJTIwJTNEJTIwaWRzLmZpbHRlcihmaWx0ZXJfZm4pLm1hcChwcm9jZXNzX2ZuKSUyMCUyMCUyMyUyMHdpbGwlMjBmaWx0ZXIlMjBhbmQlMjBwcm9jZXNzJTIwb24tdGhlLWZseSUyMHdoZW4lMjB5b3UlMjBzdGFydCUyMGl0ZXJhdGluZyUyMG92ZXIlMjB0aGUlMjBpdGVyYWJsZSUyMGRhdGFzZXQlMEFmb3IlMjBleGFtcGxlJTIwaW4lMjBpZHMlM0ElMEElMjAlMjAlMjAlMjBwYXNz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>ids = ds.to_iterable_dataset()
<span class="hljs-meta">&gt;&gt;&gt; </span>ids = ids.<span class="hljs-built_in">filter</span>(filter_fn).<span class="hljs-built_in">map</span>(process_fn)  <span class="hljs-comment"># will filter and process on-the-fly when you start iterating over the iterable dataset</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> example <span class="hljs-keyword">in</span> ids:
<span class="hljs-meta">... </span>    <span class="hljs-keyword">pass</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-1hwce9a"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function ZR(w){let t,x="With sharding to enable efficient shuffling:",l,s,c;return s=new C({props:{code:"aWRzJTIwJTNEJTIwZHMudG9faXRlcmFibGVfZGF0YXNldChudW1fc2hhcmRzJTNENjQpJTIwJTIwJTIzJTIwdGhlJTIwZGF0YXNldCUyMGlzJTIwc3BsaXQlMjBpbnRvJTIwNjQlMjBzaGFyZHMlMjB0byUyMGJlJTIwaXRlcmF0ZWQlMjBvdmVyJTBBaWRzJTIwJTNEJTIwaWRzLnNodWZmbGUoYnVmZmVyX3NpemUlM0QxMF8wMDApJTIwJTIwJTIzJTIwd2lsbCUyMHNodWZmbGUlMjB0aGUlMjBzaGFyZHMlMjBvcmRlciUyMGFuZCUyMHVzZSUyMGElMjBzaHVmZmxlJTIwYnVmZmVyJTIwZm9yJTIwZmFzdCUyMGFwcHJveGltYXRlJTIwc2h1ZmZsaW5nJTIwd2hlbiUyMHlvdSUyMHN0YXJ0JTIwaXRlcmF0aW5nJTBBZm9yJTIwZXhhbXBsZSUyMGluJTIwaWRzJTNBJTBBJTIwJTIwJTIwJTIwcGFzcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>ids = ds.to_iterable_dataset(num_shards=<span class="hljs-number">64</span>)  <span class="hljs-comment"># the dataset is split into 64 shards to be iterated over</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ids = ids.shuffle(buffer_size=<span class="hljs-number">10_000</span>)  <span class="hljs-comment"># will shuffle the shards order and use a shuffle buffer for fast approximate shuffling when you start iterating</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> example <span class="hljs-keyword">in</span> ids:
<span class="hljs-meta">... </span>    <span class="hljs-keyword">pass</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-995aun"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function FR(w){let t,x="With a PyTorch DataLoader:",l,s,c;return s=new C({props:{code:"aW1wb3J0JTIwdG9yY2glMEFpZHMlMjAlM0QlMjBkcy50b19pdGVyYWJsZV9kYXRhc2V0KG51bV9zaGFyZHMlM0Q2NCklMEFpZHMlMjAlM0QlMjBpZHMuZmlsdGVyKGZpbHRlcl9mbikubWFwKHByb2Nlc3NfZm4pJTBBZGF0YWxvYWRlciUyMCUzRCUyMHRvcmNoLnV0aWxzLmRhdGEuRGF0YUxvYWRlcihpZHMlMkMlMjBudW1fd29ya2VycyUzRDQpJTIwJTIwJTIzJTIwd2lsbCUyMGFzc2lnbiUyMDY0JTIwJTJGJTIwNCUyMCUzRCUyMDE2JTIwc2hhcmRzJTIwdG8lMjBlYWNoJTIwd29ya2VyJTIwdG8lMjBsb2FkJTJDJTIwZmlsdGVyJTIwYW5kJTIwcHJvY2VzcyUyMHdoZW4lMjB5b3UlMjBzdGFydCUyMGl0ZXJhdGluZyUwQWZvciUyMGV4YW1wbGUlMjBpbiUyMGlkcyUzQSUwQSUyMCUyMCUyMCUyMHBhc3M=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span>ids = ds.to_iterable_dataset(num_shards=<span class="hljs-number">64</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ids = ids.<span class="hljs-built_in">filter</span>(filter_fn).<span class="hljs-built_in">map</span>(process_fn)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataloader = torch.utils.data.DataLoader(ids, num_workers=<span class="hljs-number">4</span>)  <span class="hljs-comment"># will assign 64 / 4 = 16 shards to each worker to load, filter and process when you start iterating</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> example <span class="hljs-keyword">in</span> ids:
<span class="hljs-meta">... </span>    <span class="hljs-keyword">pass</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-ri12p1"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function RR(w){let t,x="With a PyTorch DataLoader and shuffling:",l,s,c;return s=new C({props:{code:"aW1wb3J0JTIwdG9yY2glMEFpZHMlMjAlM0QlMjBkcy50b19pdGVyYWJsZV9kYXRhc2V0KG51bV9zaGFyZHMlM0Q2NCklMEFpZHMlMjAlM0QlMjBpZHMuc2h1ZmZsZShidWZmZXJfc2l6ZSUzRDEwXzAwMCklMjAlMjAlMjMlMjB3aWxsJTIwc2h1ZmZsZSUyMHRoZSUyMHNoYXJkcyUyMG9yZGVyJTIwYW5kJTIwdXNlJTIwYSUyMHNodWZmbGUlMjBidWZmZXIlMjB3aGVuJTIweW91JTIwc3RhcnQlMjBpdGVyYXRpbmclMEFkYXRhbG9hZGVyJTIwJTNEJTIwdG9yY2gudXRpbHMuZGF0YS5EYXRhTG9hZGVyKGlkcyUyQyUyMG51bV93b3JrZXJzJTNENCklMjAlMjAlMjMlMjB3aWxsJTIwYXNzaWduJTIwNjQlMjAlMkYlMjA0JTIwJTNEJTIwMTYlMjBzaGFyZHMlMjBmcm9tJTIwdGhlJTIwc2h1ZmZsZWQlMjBsaXN0JTIwb2YlMjBzaGFyZHMlMjB0byUyMGVhY2glMjB3b3JrZXIlMjB3aGVuJTIweW91JTIwc3RhcnQlMjBpdGVyYXRpbmclMEFmb3IlMjBleGFtcGxlJTIwaW4lMjBpZHMlM0ElMEElMjAlMjAlMjAlMjBwYXNz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span>ids = ds.to_iterable_dataset(num_shards=<span class="hljs-number">64</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ids = ids.shuffle(buffer_size=<span class="hljs-number">10_000</span>)  <span class="hljs-comment"># will shuffle the shards order and use a shuffle buffer when you start iterating</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>dataloader = torch.utils.data.DataLoader(ids, num_workers=<span class="hljs-number">4</span>)  <span class="hljs-comment"># will assign 64 / 4 = 16 shards from the shuffled list of shards to each worker when you start iterating</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> example <span class="hljs-keyword">in</span> ids:
<span class="hljs-meta">... </span>    <span class="hljs-keyword">pass</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-dsklbq"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function zR(w){let t,x;return t=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzLmRpc3RyaWJ1dGVkJTIwaW1wb3J0JTIwc3BsaXRfZGF0YXNldF9ieV9ub2RlJTBBaWRzJTIwJTNEJTIwZHMudG9faXRlcmFibGVfZGF0YXNldChudW1fc2hhcmRzJTNENTEyKSUwQWlkcyUyMCUzRCUyMGlkcy5zaHVmZmxlKGJ1ZmZlcl9zaXplJTNEMTBfMDAwKSUyMCUyMCUyMyUyMHdpbGwlMjBzaHVmZmxlJTIwdGhlJTIwc2hhcmRzJTIwb3JkZXIlMjBhbmQlMjB1c2UlMjBhJTIwc2h1ZmZsZSUyMGJ1ZmZlciUyMHdoZW4lMjB5b3UlMjBzdGFydCUyMGl0ZXJhdGluZyUwQWlkcyUyMCUzRCUyMHNwbGl0X2RhdGFzZXRfYnlfbm9kZShkcyUyQyUyMHdvcmxkX3NpemUlM0Q4JTJDJTIwcmFuayUzRDApJTIwJTIwJTIzJTIwd2lsbCUyMGtlZXAlMjBvbmx5JTIwNTEyJTIwJTJGJTIwOCUyMCUzRCUyMDY0JTIwc2hhcmRzJTIwZnJvbSUyMHRoZSUyMHNodWZmbGVkJTIwbGlzdHMlMjBvZiUyMHNoYXJkcyUyMHdoZW4lMjB5b3UlMjBzdGFydCUyMGl0ZXJhdGluZyUwQWRhdGFsb2FkZXIlMjAlM0QlMjB0b3JjaC51dGlscy5kYXRhLkRhdGFMb2FkZXIoaWRzJTJDJTIwbnVtX3dvcmtlcnMlM0Q0KSUyMCUyMCUyMyUyMHdpbGwlMjBhc3NpZ24lMjA2NCUyMCUyRiUyMDQlMjAlM0QlMjAxNiUyMHNoYXJkcyUyMGZyb20lMjB0aGlzJTIwbm9kZSdzJTIwbGlzdCUyMG9mJTIwc2hhcmRzJTIwdG8lMjBlYWNoJTIwd29ya2VyJTIwd2hlbiUyMHlvdSUyMHN0YXJ0JTIwaXRlcmF0aW5nJTBBZm9yJTIwZXhhbXBsZSUyMGluJTIwaWRzJTNBJTBBJTIwJTIwJTIwJTIwcGFzcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets.distributed <span class="hljs-keyword">import</span> split_dataset_by_node
<span class="hljs-meta">&gt;&gt;&gt; </span>ids = ds.to_iterable_dataset(num_shards=<span class="hljs-number">512</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ids = ids.shuffle(buffer_size=<span class="hljs-number">10_000</span>)  <span class="hljs-comment"># will shuffle the shards order and use a shuffle buffer when you start iterating</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ids = split_dataset_by_node(ds, world_size=<span class="hljs-number">8</span>, rank=<span class="hljs-number">0</span>)  <span class="hljs-comment"># will keep only 512 / 8 = 64 shards from the shuffled lists of shards when you start iterating</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>dataloader = torch.utils.data.DataLoader(ids, num_workers=<span class="hljs-number">4</span>)  <span class="hljs-comment"># will assign 64 / 4 = 16 shards from this node&#x27;s list of shards to each worker when you start iterating</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> example <span class="hljs-keyword">in</span> ids:
<span class="hljs-meta">... </span>    <span class="hljs-keyword">pass</span>`,wrap:!1}}),{c(){u(t.$$.fragment)},l(l){f(t.$$.fragment,l)},m(l,s){b(t,l,s),x=!0},p:D,i(l){x||(h(t.$$.fragment,l),x=!0)},o(l){g(t.$$.fragment,l),x=!1},d(l){_(t,l)}}}function GR(w){let t,x="With shuffling and multiple epochs:",l,s,c;return s=new C({props:{code:"aWRzJTIwJTNEJTIwZHMudG9faXRlcmFibGVfZGF0YXNldChudW1fc2hhcmRzJTNENjQpJTBBaWRzJTIwJTNEJTIwaWRzLnNodWZmbGUoYnVmZmVyX3NpemUlM0QxMF8wMDAlMkMlMjBzZWVkJTNENDIpJTIwJTIwJTIzJTIwd2lsbCUyMHNodWZmbGUlMjB0aGUlMjBzaGFyZHMlMjBvcmRlciUyMGFuZCUyMHVzZSUyMGElMjBzaHVmZmxlJTIwYnVmZmVyJTIwd2hlbiUyMHlvdSUyMHN0YXJ0JTIwaXRlcmF0aW5nJTBBZm9yJTIwZXBvY2glMjBpbiUyMHJhbmdlKG5fZXBvY2hzKSUzQSUwQSUyMCUyMCUyMCUyMGlkcy5zZXRfZXBvY2goZXBvY2gpJTIwJTIwJTIzJTIwd2lsbCUyMHVzZSUyMGVmZmVjdGl2ZV9zZWVkJTIwJTNEJTIwc2VlZCUyMCUyQiUyMGVwb2NoJTIwdG8lMjBzaHVmZmxlJTIwdGhlJTIwc2hhcmRzJTIwYW5kJTIwZm9yJTIwdGhlJTIwc2h1ZmZsZSUyMGJ1ZmZlciUyMHdoZW4lMjB5b3UlMjBzdGFydCUyMGl0ZXJhdGluZyUwQSUyMCUyMCUyMCUyMGZvciUyMGV4YW1wbGUlMjBpbiUyMGlkcyUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHBhc3M=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>ids = ds.to_iterable_dataset(num_shards=<span class="hljs-number">64</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ids = ids.shuffle(buffer_size=<span class="hljs-number">10_000</span>, seed=<span class="hljs-number">42</span>)  <span class="hljs-comment"># will shuffle the shards order and use a shuffle buffer when you start iterating</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> epoch <span class="hljs-keyword">in</span> <span class="hljs-built_in">range</span>(n_epochs):
<span class="hljs-meta">... </span>    ids.set_epoch(epoch)  <span class="hljs-comment"># will use effective_seed = seed + epoch to shuffle the shards and for the shuffle buffer when you start iterating</span>
<span class="hljs-meta">... </span>    <span class="hljs-keyword">for</span> example <span class="hljs-keyword">in</span> ids:
<span class="hljs-meta">... </span>        <span class="hljs-keyword">pass</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-1ul2v9x"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function NR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMlMjAlM0QlMjBkYXRhc2V0cy5sb2FkX2RhdGFzZXQoJ2NyaW1lX2FuZF9wdW5pc2gnJTJDJTIwc3BsaXQlM0QndHJhaW4nKSUwQWRzX3dpdGhfZW1iZWRkaW5ncyUyMCUzRCUyMGRzLm1hcChsYW1iZGElMjBleGFtcGxlJTNBJTIwJTdCJ2VtYmVkZGluZ3MnJTNBJTIwZW1iZWQoZXhhbXBsZSU1QidsaW5lJyU1RCU3RCkpJTBBZHNfd2l0aF9lbWJlZGRpbmdzLmFkZF9mYWlzc19pbmRleChjb2x1bW4lM0QnZW1iZWRkaW5ncycpJTBBJTIzJTIwcXVlcnklMEFzY29yZXMlMkMlMjByZXRyaWV2ZWRfZXhhbXBsZXMlMjAlM0QlMjBkc193aXRoX2VtYmVkZGluZ3MuZ2V0X25lYXJlc3RfZXhhbXBsZXMoJ2VtYmVkZGluZ3MnJTJDJTIwZW1iZWQoJ215JTIwbmV3JTIwcXVlcnknKSUyQyUyMGslM0QxMCklMEElMjMlMjBzYXZlJTIwaW5kZXglMEFkc193aXRoX2VtYmVkZGluZ3Muc2F2ZV9mYWlzc19pbmRleCgnZW1iZWRkaW5ncyclMkMlMjAnbXlfaW5kZXguZmFpc3MnKSUwQSUwQWRzJTIwJTNEJTIwZGF0YXNldHMubG9hZF9kYXRhc2V0KCdjcmltZV9hbmRfcHVuaXNoJyUyQyUyMHNwbGl0JTNEJ3RyYWluJyklMEElMjMlMjBsb2FkJTIwaW5kZXglMEFkcy5sb2FkX2ZhaXNzX2luZGV4KCdlbWJlZGRpbmdzJyUyQyUyMCdteV9pbmRleC5mYWlzcycpJTBBJTIzJTIwcXVlcnklMEFzY29yZXMlMkMlMjByZXRyaWV2ZWRfZXhhbXBsZXMlMjAlM0QlMjBkcy5nZXRfbmVhcmVzdF9leGFtcGxlcygnZW1iZWRkaW5ncyclMkMlMjBlbWJlZCgnbXklMjBuZXclMjBxdWVyeScpJTJDJTIwayUzRDEwKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>ds = datasets.load_dataset(<span class="hljs-string">&#x27;crime_and_punish&#x27;</span>, split=<span class="hljs-string">&#x27;train&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds_with_embeddings = ds.<span class="hljs-built_in">map</span>(<span class="hljs-keyword">lambda</span> example: {<span class="hljs-string">&#x27;embeddings&#x27;</span>: embed(example[<span class="hljs-string">&#x27;line&#x27;</span>]}))
<span class="hljs-meta">&gt;&gt;&gt; </span>ds_with_embeddings.add_faiss_index(column=<span class="hljs-string">&#x27;embeddings&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># query</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>scores, retrieved_examples = ds_with_embeddings.get_nearest_examples(<span class="hljs-string">&#x27;embeddings&#x27;</span>, embed(<span class="hljs-string">&#x27;my new query&#x27;</span>), k=<span class="hljs-number">10</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># save index</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ds_with_embeddings.save_faiss_index(<span class="hljs-string">&#x27;embeddings&#x27;</span>, <span class="hljs-string">&#x27;my_index.faiss&#x27;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>ds = datasets.load_dataset(<span class="hljs-string">&#x27;crime_and_punish&#x27;</span>, split=<span class="hljs-string">&#x27;train&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># load index</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.load_faiss_index(<span class="hljs-string">&#x27;embeddings&#x27;</span>, <span class="hljs-string">&#x27;my_index.faiss&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># query</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>scores, retrieved_examples = ds.get_nearest_examples(<span class="hljs-string">&#x27;embeddings&#x27;</span>, embed(<span class="hljs-string">&#x27;my new query&#x27;</span>), k=<span class="hljs-number">10</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function XR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZXNfY2xpZW50JTIwJTNEJTIwZWxhc3RpY3NlYXJjaC5FbGFzdGljc2VhcmNoKCklMEFkcyUyMCUzRCUyMGRhdGFzZXRzLmxvYWRfZGF0YXNldCgnY3JpbWVfYW5kX3B1bmlzaCclMkMlMjBzcGxpdCUzRCd0cmFpbicpJTBBZHMuYWRkX2VsYXN0aWNzZWFyY2hfaW5kZXgoY29sdW1uJTNEJ2xpbmUnJTJDJTIwZXNfY2xpZW50JTNEZXNfY2xpZW50JTJDJTIwZXNfaW5kZXhfbmFtZSUzRCUyMm15X2VzX2luZGV4JTIyKSUwQXNjb3JlcyUyQyUyMHJldHJpZXZlZF9leGFtcGxlcyUyMCUzRCUyMGRzLmdldF9uZWFyZXN0X2V4YW1wbGVzKCdsaW5lJyUyQyUyMCdteSUyMG5ldyUyMHF1ZXJ5JyUyQyUyMGslM0QxMCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>es_client = elasticsearch.Elasticsearch()
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = datasets.load_dataset(<span class="hljs-string">&#x27;crime_and_punish&#x27;</span>, split=<span class="hljs-string">&#x27;train&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.add_elasticsearch_index(column=<span class="hljs-string">&#x27;line&#x27;</span>, es_client=es_client, es_index_name=<span class="hljs-string">&quot;my_es_index&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>scores, retrieved_examples = ds.get_nearest_examples(<span class="hljs-string">&#x27;line&#x27;</span>, <span class="hljs-string">&#x27;my new query&#x27;</span>, k=<span class="hljs-number">10</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function VR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMlMjAlM0QlMjBEYXRhc2V0LmZyb21fY3N2KCdwYXRoJTJGdG8lMkZkYXRhc2V0LmNzdicp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds = Dataset.from_csv(<span class="hljs-string">&#x27;path/to/dataset.csv&#x27;</span>)',wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function qR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMlMjAlM0QlMjBEYXRhc2V0LmZyb21fanNvbigncGF0aCUyRnRvJTJGZGF0YXNldC5qc29uJyk=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds = Dataset.from_json(<span class="hljs-string">&#x27;path/to/dataset.json&#x27;</span>)',wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function WR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMlMjAlM0QlMjBEYXRhc2V0LmZyb21fcGFycXVldCgncGF0aCUyRnRvJTJGZGF0YXNldC5wYXJxdWV0Jyk=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds = Dataset.from_parquet(<span class="hljs-string">&#x27;path/to/dataset.parquet&#x27;</span>)',wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function BR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMlMjAlM0QlMjBEYXRhc2V0LmZyb21fdGV4dCgncGF0aCUyRnRvJTJGZGF0YXNldC50eHQnKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds = Dataset.from_text(<span class="hljs-string">&#x27;path/to/dataset.txt&#x27;</span>)',wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function QR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"JTIzJTIwRmV0Y2glMjBhJTIwZGF0YWJhc2UlMjB0YWJsZSUwQWRzJTIwJTNEJTIwRGF0YXNldC5mcm9tX3NxbCglMjJ0ZXN0X2RhdGElMjIlMkMlMjAlMjJwb3N0Z3JlcyUzQSUyRiUyRiUyRmRiX25hbWUlMjIpJTBBJTIzJTIwRXhlY3V0ZSUyMGElMjBTUUwlMjBxdWVyeSUyMG9uJTIwdGhlJTIwdGFibGUlMEFkcyUyMCUzRCUyMERhdGFzZXQuZnJvbV9zcWwoJTIyU0VMRUNUJTIwc2VudGVuY2UlMjBGUk9NJTIwdGVzdF9kYXRhJTIyJTJDJTIwJTIycG9zdGdyZXMlM0ElMkYlMkYlMkZkYl9uYW1lJTIyKSUwQSUyMyUyMFVzZSUyMGElMjBTZWxlY3RhYmxlJTIwb2JqZWN0JTIwdG8lMjBzcGVjaWZ5JTIwdGhlJTIwcXVlcnklMEFmcm9tJTIwc3FsYWxjaGVteSUyMGltcG9ydCUyMHNlbGVjdCUyQyUyMHRleHQlMEFzdG10JTIwJTNEJTIwc2VsZWN0KCU1QnRleHQoJTIyc2VudGVuY2UlMjIpJTVEKS5zZWxlY3RfZnJvbSh0ZXh0KCUyMnRlc3RfZGF0YSUyMikpJTBBZHMlMjAlM0QlMjBEYXRhc2V0LmZyb21fc3FsKHN0bXQlMkMlMjAlMjJwb3N0Z3JlcyUzQSUyRiUyRiUyRmRiX25hbWUlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Fetch a database table</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = Dataset.from_sql(<span class="hljs-string">&quot;test_data&quot;</span>, <span class="hljs-string">&quot;postgres:///db_name&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Execute a SQL query on the table</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = Dataset.from_sql(<span class="hljs-string">&quot;SELECT sentence FROM test_data&quot;</span>, <span class="hljs-string">&quot;postgres:///db_name&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Use a Selectable object to specify the query</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> sqlalchemy <span class="hljs-keyword">import</span> select, text
<span class="hljs-meta">&gt;&gt;&gt; </span>stmt = select([text(<span class="hljs-string">&quot;sentence&quot;</span>)]).select_from(text(<span class="hljs-string">&quot;test_data&quot;</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = Dataset.from_sql(stmt, <span class="hljs-string">&quot;postgres:///db_name&quot;</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function ER(w){let t,x="The returned dataset can only be cached if <code>con</code> is specified as URI string.";return{c(){t=d("p"),t.innerHTML=x},l(l){t=i(l,"P",{"data-svelte-h":!0}),$(t)!=="svelte-1iojgz0"&&(t.innerHTML=x)},m(l,s){j(l,t,s)},p:D,d(l){l&&p(t)}}}function HR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"JTIzJTIwZGF0YXNldCUyMHdpdGglMjBtYXBwaW5nJTIwJTdCJ2VudGFpbG1lbnQnJTNBJTIwMCUyQyUyMCduZXV0cmFsJyUzQSUyMDElMkMlMjAnY29udHJhZGljdGlvbiclM0ElMjAyJTdEJTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyZ2x1ZSUyMiUyQyUyMCUyMm1ubGklMjIlMkMlMjBzcGxpdCUzRCUyMnRyYWluJTIyKSUwQSUyMyUyMG1hcHBpbmclMjB0byUyMGFsaWduJTIwd2l0aCUwQWxhYmVsMmlkJTIwJTNEJTIwJTdCJ0NPTlRSQURJQ1RJT04nJTNBJTIwMCUyQyUyMCdORVVUUkFMJyUzQSUyMDElMkMlMjAnRU5UQUlMTUVOVCclM0ElMjAyJTdEJTBBZHNfYWxpZ25lZCUyMCUzRCUyMGRzLmFsaWduX2xhYmVsc193aXRoX21hcHBpbmcobGFiZWwyaWQlMkMlMjAlMjJsYWJlbCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># dataset with mapping {&#x27;entailment&#x27;: 0, &#x27;neutral&#x27;: 1, &#x27;contradiction&#x27;: 2}</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;glue&quot;</span>, <span class="hljs-string">&quot;mnli&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># mapping to align with</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>label2id = {<span class="hljs-string">&#x27;CONTRADICTION&#x27;</span>: <span class="hljs-number">0</span>, <span class="hljs-string">&#x27;NEUTRAL&#x27;</span>: <span class="hljs-number">1</span>, <span class="hljs-string">&#x27;ENTAILMENT&#x27;</span>: <span class="hljs-number">2</span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds_aligned = ds.align_labels_with_mapping(label2id, <span class="hljs-string">&quot;label&quot;</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function LR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMzJTIwJTNEJTIwY29uY2F0ZW5hdGVfZGF0YXNldHMoJTVCZHMxJTJDJTIwZHMyJTVEKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds3 = concatenate_datasets([ds1, ds2])',wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function YR(w){let t,x="For regular datasets (map-style):",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRGF0YXNldCUyQyUyMGludGVybGVhdmVfZGF0YXNldHMlMEFkMSUyMCUzRCUyMERhdGFzZXQuZnJvbV9kaWN0KCU3QiUyMmElMjIlM0ElMjAlNUIwJTJDJTIwMSUyQyUyMDIlNUQlN0QpJTBBZDIlMjAlM0QlMjBEYXRhc2V0LmZyb21fZGljdCglN0IlMjJhJTIyJTNBJTIwJTVCMTAlMkMlMjAxMSUyQyUyMDEyJTVEJTdEKSUwQWQzJTIwJTNEJTIwRGF0YXNldC5mcm9tX2RpY3QoJTdCJTIyYSUyMiUzQSUyMCU1QjIwJTJDJTIwMjElMkMlMjAyMiU1RCU3RCklMEFkYXRhc2V0JTIwJTNEJTIwaW50ZXJsZWF2ZV9kYXRhc2V0cyglNUJkMSUyQyUyMGQyJTJDJTIwZDMlNUQlMkMlMjBwcm9iYWJpbGl0aWVzJTNEJTVCMC43JTJDJTIwMC4yJTJDJTIwMC4xJTVEJTJDJTIwc2VlZCUzRDQyJTJDJTIwc3RvcHBpbmdfc3RyYXRlZ3klM0QlMjJhbGxfZXhoYXVzdGVkJTIyKSUwQWRhdGFzZXQlNUIlMjJhJTIyJTVEJTBBZGF0YXNldCUyMCUzRCUyMGludGVybGVhdmVfZGF0YXNldHMoJTVCZDElMkMlMjBkMiUyQyUyMGQzJTVEJTJDJTIwcHJvYmFiaWxpdGllcyUzRCU1QjAuNyUyQyUyMDAuMiUyQyUyMDAuMSU1RCUyQyUyMHNlZWQlM0Q0MiklMEFkYXRhc2V0JTVCJTIyYSUyMiU1RCUwQWRhdGFzZXQlMjAlM0QlMjBpbnRlcmxlYXZlX2RhdGFzZXRzKCU1QmQxJTJDJTIwZDIlMkMlMjBkMyU1RCklMEFkYXRhc2V0JTVCJTIyYSUyMiU1RCUwQWRhdGFzZXQlMjAlM0QlMjBpbnRlcmxlYXZlX2RhdGFzZXRzKCU1QmQxJTJDJTIwZDIlMkMlMjBkMyU1RCUyQyUyMHN0b3BwaW5nX3N0cmF0ZWd5JTNEJTIyYWxsX2V4aGF1c3RlZCUyMiklMEFkYXRhc2V0JTVCJTIyYSUyMiU1RCUwQWQxJTIwJTNEJTIwRGF0YXNldC5mcm9tX2RpY3QoJTdCJTIyYSUyMiUzQSUyMCU1QjAlMkMlMjAxJTJDJTIwMiU1RCU3RCklMEFkMiUyMCUzRCUyMERhdGFzZXQuZnJvbV9kaWN0KCU3QiUyMmElMjIlM0ElMjAlNUIxMCUyQyUyMDExJTJDJTIwMTIlMkMlMjAxMyU1RCU3RCklMEFkMyUyMCUzRCUyMERhdGFzZXQuZnJvbV9kaWN0KCU3QiUyMmElMjIlM0ElMjAlNUIyMCUyQyUyMDIxJTJDJTIwMjIlMkMlMjAyMyUyQyUyMDI0JTVEJTdEKSUwQWRhdGFzZXQlMjAlM0QlMjBpbnRlcmxlYXZlX2RhdGFzZXRzKCU1QmQxJTJDJTIwZDIlMkMlMjBkMyU1RCklMEFkYXRhc2V0JTVCJTIyYSUyMiU1RCUwQWRhdGFzZXQlMjAlM0QlMjBpbnRlcmxlYXZlX2RhdGFzZXRzKCU1QmQxJTJDJTIwZDIlMkMlMjBkMyU1RCUyQyUyMHN0b3BwaW5nX3N0cmF0ZWd5JTNEJTIyYWxsX2V4aGF1c3RlZCUyMiklMEFkYXRhc2V0JTVCJTIyYSUyMiU1RCUwQWRhdGFzZXQlMjAlM0QlMjBpbnRlcmxlYXZlX2RhdGFzZXRzKCU1QmQxJTJDJTIwZDIlMkMlMjBkMyU1RCUyQyUyMHByb2JhYmlsaXRpZXMlM0QlNUIwLjclMkMlMjAwLjIlMkMlMjAwLjElNUQlMkMlMjBzZWVkJTNENDIpJTBBZGF0YXNldCU1QiUyMmElMjIlNUQlMEFkYXRhc2V0JTIwJTNEJTIwaW50ZXJsZWF2ZV9kYXRhc2V0cyglNUJkMSUyQyUyMGQyJTJDJTIwZDMlNUQlMkMlMjBwcm9iYWJpbGl0aWVzJTNEJTVCMC43JTJDJTIwMC4yJTJDJTIwMC4xJTVEJTJDJTIwc2VlZCUzRDQyJTJDJTIwc3RvcHBpbmdfc3RyYXRlZ3klM0QlMjJhbGxfZXhoYXVzdGVkJTIyKSUwQWRhdGFzZXQlNUIlMjJhJTIyJTVEJTBBJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTJDJTIwaW50ZXJsZWF2ZV9kYXRhc2V0cyUwQWQxJTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMm9zY2FyJTIyJTJDJTIwJTIydW5zaHVmZmxlZF9kZWR1cGxpY2F0ZWRfZW4lMjIlMkMlMjBzcGxpdCUzRCUyMnRyYWluJTIyJTJDJTIwc3RyZWFtaW5nJTNEVHJ1ZSklMEFkMiUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJvc2NhciUyMiUyQyUyMCUyMnVuc2h1ZmZsZWRfZGVkdXBsaWNhdGVkX2ZyJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiUyQyUyMHN0cmVhbWluZyUzRFRydWUpJTBBZGF0YXNldCUyMCUzRCUyMGludGVybGVhdmVfZGF0YXNldHMoJTVCZDElMkMlMjBkMiU1RCklMEFpdGVyYXRvciUyMCUzRCUyMGl0ZXIoZGF0YXNldCklMEFuZXh0KGl0ZXJhdG9yKSUwQW5leHQoaXRlcmF0b3Ip",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> Dataset, interleave_datasets
<span class="hljs-meta">&gt;&gt;&gt; </span>d1 = Dataset.from_dict({<span class="hljs-string">&quot;a&quot;</span>: [<span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>]})
<span class="hljs-meta">&gt;&gt;&gt; </span>d2 = Dataset.from_dict({<span class="hljs-string">&quot;a&quot;</span>: [<span class="hljs-number">10</span>, <span class="hljs-number">11</span>, <span class="hljs-number">12</span>]})
<span class="hljs-meta">&gt;&gt;&gt; </span>d3 = Dataset.from_dict({<span class="hljs-string">&quot;a&quot;</span>: [<span class="hljs-number">20</span>, <span class="hljs-number">21</span>, <span class="hljs-number">22</span>]})
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = interleave_datasets([d1, d2, d3], probabilities=[<span class="hljs-number">0.7</span>, <span class="hljs-number">0.2</span>, <span class="hljs-number">0.1</span>], seed=<span class="hljs-number">42</span>, stopping_strategy=<span class="hljs-string">&quot;all_exhausted&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-string">&quot;a&quot;</span>]
[<span class="hljs-number">10</span>, <span class="hljs-number">0</span>, <span class="hljs-number">11</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">20</span>, <span class="hljs-number">12</span>, <span class="hljs-number">10</span>, <span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">21</span>, <span class="hljs-number">0</span>, <span class="hljs-number">11</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">12</span>, <span class="hljs-number">2</span>, <span class="hljs-number">10</span>, <span class="hljs-number">0</span>, <span class="hljs-number">22</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = interleave_datasets([d1, d2, d3], probabilities=[<span class="hljs-number">0.7</span>, <span class="hljs-number">0.2</span>, <span class="hljs-number">0.1</span>], seed=<span class="hljs-number">42</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-string">&quot;a&quot;</span>]
[<span class="hljs-number">10</span>, <span class="hljs-number">0</span>, <span class="hljs-number">11</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = interleave_datasets([d1, d2, d3])
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-string">&quot;a&quot;</span>]
[<span class="hljs-number">0</span>, <span class="hljs-number">10</span>, <span class="hljs-number">20</span>, <span class="hljs-number">1</span>, <span class="hljs-number">11</span>, <span class="hljs-number">21</span>, <span class="hljs-number">2</span>, <span class="hljs-number">12</span>, <span class="hljs-number">22</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = interleave_datasets([d1, d2, d3], stopping_strategy=<span class="hljs-string">&quot;all_exhausted&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-string">&quot;a&quot;</span>]
[<span class="hljs-number">0</span>, <span class="hljs-number">10</span>, <span class="hljs-number">20</span>, <span class="hljs-number">1</span>, <span class="hljs-number">11</span>, <span class="hljs-number">21</span>, <span class="hljs-number">2</span>, <span class="hljs-number">12</span>, <span class="hljs-number">22</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>d1 = Dataset.from_dict({<span class="hljs-string">&quot;a&quot;</span>: [<span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>]})
<span class="hljs-meta">&gt;&gt;&gt; </span>d2 = Dataset.from_dict({<span class="hljs-string">&quot;a&quot;</span>: [<span class="hljs-number">10</span>, <span class="hljs-number">11</span>, <span class="hljs-number">12</span>, <span class="hljs-number">13</span>]})
<span class="hljs-meta">&gt;&gt;&gt; </span>d3 = Dataset.from_dict({<span class="hljs-string">&quot;a&quot;</span>: [<span class="hljs-number">20</span>, <span class="hljs-number">21</span>, <span class="hljs-number">22</span>, <span class="hljs-number">23</span>, <span class="hljs-number">24</span>]})
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = interleave_datasets([d1, d2, d3])
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-string">&quot;a&quot;</span>]
[<span class="hljs-number">0</span>, <span class="hljs-number">10</span>, <span class="hljs-number">20</span>, <span class="hljs-number">1</span>, <span class="hljs-number">11</span>, <span class="hljs-number">21</span>, <span class="hljs-number">2</span>, <span class="hljs-number">12</span>, <span class="hljs-number">22</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = interleave_datasets([d1, d2, d3], stopping_strategy=<span class="hljs-string">&quot;all_exhausted&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-string">&quot;a&quot;</span>]
[<span class="hljs-number">0</span>, <span class="hljs-number">10</span>, <span class="hljs-number">20</span>, <span class="hljs-number">1</span>, <span class="hljs-number">11</span>, <span class="hljs-number">21</span>, <span class="hljs-number">2</span>, <span class="hljs-number">12</span>, <span class="hljs-number">22</span>, <span class="hljs-number">0</span>, <span class="hljs-number">13</span>, <span class="hljs-number">23</span>, <span class="hljs-number">1</span>, <span class="hljs-number">10</span>, <span class="hljs-number">24</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = interleave_datasets([d1, d2, d3], probabilities=[<span class="hljs-number">0.7</span>, <span class="hljs-number">0.2</span>, <span class="hljs-number">0.1</span>], seed=<span class="hljs-number">42</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-string">&quot;a&quot;</span>]
[<span class="hljs-number">10</span>, <span class="hljs-number">0</span>, <span class="hljs-number">11</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = interleave_datasets([d1, d2, d3], probabilities=[<span class="hljs-number">0.7</span>, <span class="hljs-number">0.2</span>, <span class="hljs-number">0.1</span>], seed=<span class="hljs-number">42</span>, stopping_strategy=<span class="hljs-string">&quot;all_exhausted&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-string">&quot;a&quot;</span>]
[<span class="hljs-number">10</span>, <span class="hljs-number">0</span>, <span class="hljs-number">11</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">20</span>, <span class="hljs-number">12</span>, <span class="hljs-number">13</span>, ..., <span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">0</span>, <span class="hljs-number">24</span>]
For datasets <span class="hljs-keyword">in</span> streaming mode (iterable):

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset, interleave_datasets
<span class="hljs-meta">&gt;&gt;&gt; </span>d1 = load_dataset(<span class="hljs-string">&quot;oscar&quot;</span>, <span class="hljs-string">&quot;unshuffled_deduplicated_en&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>d2 = load_dataset(<span class="hljs-string">&quot;oscar&quot;</span>, <span class="hljs-string">&quot;unshuffled_deduplicated_fr&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = interleave_datasets([d1, d2])
<span class="hljs-meta">&gt;&gt;&gt; </span>iterator = <span class="hljs-built_in">iter</span>(dataset)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">next</span>(iterator)
{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;Mtendere Village was inspired by the vision...}
&gt;&gt;&gt; next(iterator)
{&#x27;</span>text<span class="hljs-string">&#x27;: &quot;Média de débat d&#x27;</span><span class="hljs-built_in">id</span>ées, de culture...}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-1as9ud5"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function SR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzLmRhdGE=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.data`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function AR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzLmNhY2hlX2ZpbGVz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.cache_files
{<span class="hljs-string">&#x27;test&#x27;</span>: [{<span class="hljs-string">&#x27;filename&#x27;</span>: <span class="hljs-string">&#x27;/root/.cache/huggingface/datasets/rotten_tomatoes_movie_review/default/1.0.0/40d411e45a6ce3484deed7cc15b82a53dad9a72aafd9f86f8f227134bec5ca46/rotten_tomatoes_movie_review-test.arrow&#x27;</span>}],
 <span class="hljs-string">&#x27;train&#x27;</span>: [{<span class="hljs-string">&#x27;filename&#x27;</span>: <span class="hljs-string">&#x27;/root/.cache/huggingface/datasets/rotten_tomatoes_movie_review/default/1.0.0/40d411e45a6ce3484deed7cc15b82a53dad9a72aafd9f86f8f227134bec5ca46/rotten_tomatoes_movie_review-train.arrow&#x27;</span>}],
 <span class="hljs-string">&#x27;validation&#x27;</span>: [{<span class="hljs-string">&#x27;filename&#x27;</span>: <span class="hljs-string">&#x27;/root/.cache/huggingface/datasets/rotten_tomatoes_movie_review/default/1.0.0/40d411e45a6ce3484deed7cc15b82a53dad9a72aafd9f86f8f227134bec5ca46/rotten_tomatoes_movie_review-validation.arrow&#x27;</span>}]}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function PR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzLm51bV9jb2x1bW5z",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.num_columns
{<span class="hljs-string">&#x27;test&#x27;</span>: <span class="hljs-number">2</span>, <span class="hljs-string">&#x27;train&#x27;</span>: <span class="hljs-number">2</span>, <span class="hljs-string">&#x27;validation&#x27;</span>: <span class="hljs-number">2</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function KR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzLm51bV9yb3dz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.num_rows
{<span class="hljs-string">&#x27;test&#x27;</span>: <span class="hljs-number">1066</span>, <span class="hljs-string">&#x27;train&#x27;</span>: <span class="hljs-number">8530</span>, <span class="hljs-string">&#x27;validation&#x27;</span>: <span class="hljs-number">1066</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function OR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzLmNvbHVtbl9uYW1lcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.column_names
{<span class="hljs-string">&#x27;test&#x27;</span>: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
 <span class="hljs-string">&#x27;train&#x27;</span>: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
 <span class="hljs-string">&#x27;validation&#x27;</span>: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>]}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function e5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzLnNoYXBl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.shape
{<span class="hljs-string">&#x27;test&#x27;</span>: (<span class="hljs-number">1066</span>, <span class="hljs-number">2</span>), <span class="hljs-string">&#x27;train&#x27;</span>: (<span class="hljs-number">8530</span>, <span class="hljs-number">2</span>), <span class="hljs-string">&#x27;validation&#x27;</span>: (<span class="hljs-number">1066</span>, <span class="hljs-number">2</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function t5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzLnVuaXF1ZSglMjJsYWJlbCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.unique(<span class="hljs-string">&quot;label&quot;</span>)
{<span class="hljs-string">&#x27;test&#x27;</span>: [<span class="hljs-number">1</span>, <span class="hljs-number">0</span>], <span class="hljs-string">&#x27;train&#x27;</span>: [<span class="hljs-number">1</span>, <span class="hljs-number">0</span>], <span class="hljs-string">&#x27;validation&#x27;</span>: [<span class="hljs-number">1</span>, <span class="hljs-number">0</span>]}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function s5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzLmNsZWFudXBfY2FjaGVfZmlsZXMoKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.cleanup_cache_files()
{<span class="hljs-string">&#x27;test&#x27;</span>: <span class="hljs-number">0</span>, <span class="hljs-string">&#x27;train&#x27;</span>: <span class="hljs-number">0</span>, <span class="hljs-string">&#x27;validation&#x27;</span>: <span class="hljs-number">0</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function a5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRlZiUyMGFkZF9wcmVmaXgoZXhhbXBsZSklM0ElMEElMjAlMjAlMjAlMjBleGFtcGxlJTVCJTIydGV4dCUyMiU1RCUyMCUzRCUyMCUyMlJldmlldyUzQSUyMCUyMiUyMCUyQiUyMGV4YW1wbGUlNUIlMjJ0ZXh0JTIyJTVEJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwZXhhbXBsZSUwQWRzJTIwJTNEJTIwZHMubWFwKGFkZF9wcmVmaXgpJTBBZHMlNUIlMjJ0cmFpbiUyMiU1RCU1QjAlM0EzJTVEJTVCJTIydGV4dCUyMiU1RCUwQSUwQWRzJTIwJTNEJTIwZHMubWFwKGxhbWJkYSUyMGV4YW1wbGUlM0ElMjB0b2tlbml6ZXIoZXhhbXBsZSU1QiUyMnRleHQlMjIlNUQpJTJDJTIwYmF0Y2hlZCUzRFRydWUpJTBBZHMlMjAlM0QlMjBkcy5tYXAoYWRkX3ByZWZpeCUyQyUyMG51bV9wcm9jJTNENCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">add_prefix</span>(<span class="hljs-params">example</span>):
<span class="hljs-meta">... </span>    example[<span class="hljs-string">&quot;text&quot;</span>] = <span class="hljs-string">&quot;Review: &quot;</span> + example[<span class="hljs-string">&quot;text&quot;</span>]
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> example
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(add_prefix)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>][<span class="hljs-number">0</span>:<span class="hljs-number">3</span>][<span class="hljs-string">&quot;text&quot;</span>]
[<span class="hljs-string">&#x27;Review: the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>,
 <span class="hljs-string">&#x27;Review: the gorgeously elaborate continuation of &quot; the lord of the rings &quot; trilogy is so huge that a column of words cannot adequately describe co-writer/director peter jackson&#x27;</span>s expanded vision of j . r . r . tolkien<span class="hljs-string">&#x27;s middle-earth .&#x27;</span>,
 <span class="hljs-string">&#x27;Review: effective but too-tepid biopic&#x27;</span>]

<span class="hljs-comment"># process a batch of examples</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(<span class="hljs-keyword">lambda</span> example: tokenizer(example[<span class="hljs-string">&quot;text&quot;</span>]), batched=<span class="hljs-literal">True</span>)
<span class="hljs-comment"># set number of processors</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(add_prefix, num_proc=<span class="hljs-number">4</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function n5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzLmZpbHRlcihsYW1iZGElMjB4JTNBJTIweCU1QiUyMmxhYmVsJTIyJTVEJTIwJTNEJTNEJTIwMSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.<span class="hljs-built_in">filter</span>(<span class="hljs-keyword">lambda</span> x: x[<span class="hljs-string">&quot;label&quot;</span>] == <span class="hljs-number">1</span>)
DatasetDict({
    train: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
        num_rows: <span class="hljs-number">4265</span>
    })
    validation: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
        num_rows: <span class="hljs-number">533</span>
    })
    test: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
        num_rows: <span class="hljs-number">533</span>
    })
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function r5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJ3JvdHRlbl90b21hdG9lcycpJTBBZHMlNUIndHJhaW4nJTVEJTVCJ2xhYmVsJyU1RCU1QiUzQTEwJTVEJTBBc29ydGVkX2RzJTIwJTNEJTIwZHMuc29ydCgnbGFiZWwnKSUwQXNvcnRlZF9kcyU1Qid0cmFpbiclNUQlNUInbGFiZWwnJTVEJTVCJTNBMTAlNUQlMEFhbm90aGVyX3NvcnRlZF9kcyUyMCUzRCUyMGRzLnNvcnQoJTVCJ2xhYmVsJyUyQyUyMCd0ZXh0JyU1RCUyQyUyMHJldmVyc2UlM0QlNUJUcnVlJTJDJTIwRmFsc2UlNUQpJTBBYW5vdGhlcl9zb3J0ZWRfZHMlNUIndHJhaW4nJTVEJTVCJ2xhYmVsJyU1RCU1QiUzQTEwJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&#x27;rotten_tomatoes&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&#x27;train&#x27;</span>][<span class="hljs-string">&#x27;label&#x27;</span>][:<span class="hljs-number">10</span>]
[<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>sorted_ds = ds.sort(<span class="hljs-string">&#x27;label&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>sorted_ds[<span class="hljs-string">&#x27;train&#x27;</span>][<span class="hljs-string">&#x27;label&#x27;</span>][:<span class="hljs-number">10</span>]
[<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>another_sorted_ds = ds.sort([<span class="hljs-string">&#x27;label&#x27;</span>, <span class="hljs-string">&#x27;text&#x27;</span>], reverse=[<span class="hljs-literal">True</span>, <span class="hljs-literal">False</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>another_sorted_ds[<span class="hljs-string">&#x27;train&#x27;</span>][<span class="hljs-string">&#x27;label&#x27;</span>][:<span class="hljs-number">10</span>]
[<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function o5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzJTVCJTIydHJhaW4lMjIlNUQlNUIlMjJsYWJlbCUyMiU1RCU1QiUzQTEwJTVEJTBBJTBBc2h1ZmZsZWRfZHMlMjAlM0QlMjBkcy5zaHVmZmxlKHNlZWQlM0Q0MiklMEFzaHVmZmxlZF9kcyU1QiUyMnRyYWluJTIyJTVEJTVCJTIybGFiZWwlMjIlNUQlNUIlM0ExMCU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>][<span class="hljs-string">&quot;label&quot;</span>][:<span class="hljs-number">10</span>]
[<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>]

<span class="hljs-comment"># set a seed</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>shuffled_ds = ds.shuffle(seed=<span class="hljs-number">42</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>shuffled_ds[<span class="hljs-string">&quot;train&quot;</span>][<span class="hljs-string">&quot;label&quot;</span>][:<span class="hljs-number">10</span>]
[<span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function l5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJiZXJ0LWJhc2UtY2FzZWQlMjIpJTBBZHMlMjAlM0QlMjBkcy5tYXAobGFtYmRhJTIweCUzQSUyMHRva2VuaXplcih4JTVCJTIydGV4dCUyMiU1RCUyQyUyMHRydW5jYXRpb24lM0RUcnVlJTJDJTIwcGFkZGluZyUzRFRydWUpJTJDJTIwYmF0Y2hlZCUzRFRydWUpJTBBZHMuc2V0X2Zvcm1hdCh0eXBlJTNEJTIybnVtcHklMjIlMkMlMjBjb2x1bW5zJTNEJTVCJ2lucHV0X2lkcyclMkMlMjAndG9rZW5fdHlwZV9pZHMnJTJDJTIwJ2F0dGVudGlvbl9tYXNrJyUyQyUyMCdsYWJlbCclNUQpJTBBZHMlNUIlMjJ0cmFpbiUyMiU1RC5mb3JtYXQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(<span class="hljs-keyword">lambda</span> x: tokenizer(x[<span class="hljs-string">&quot;text&quot;</span>], truncation=<span class="hljs-literal">True</span>, padding=<span class="hljs-literal">True</span>), batched=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.set_format(<span class="hljs-built_in">type</span>=<span class="hljs-string">&quot;numpy&quot;</span>, columns=[<span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].<span class="hljs-built_in">format</span>
{<span class="hljs-string">&#x27;columns&#x27;</span>: [<span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
 <span class="hljs-string">&#x27;format_kwargs&#x27;</span>: {},
 <span class="hljs-string">&#x27;output_all_columns&#x27;</span>: <span class="hljs-literal">False</span>,
 <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;numpy&#x27;</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function c5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJyb3R0ZW5fdG9tYXRvZXMlMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQWRzJTIwJTNEJTIwZHMubWFwKGxhbWJkYSUyMHglM0ElMjB0b2tlbml6ZXIoeCU1QiUyMnRleHQlMjIlNUQlMkMlMjB0cnVuY2F0aW9uJTNEVHJ1ZSUyQyUyMHBhZGRpbmclM0RUcnVlKSUyQyUyMGJhdGNoZWQlM0RUcnVlKSUwQWRzLnNldF9mb3JtYXQodHlwZSUzRCUyMm51bXB5JTIyJTJDJTIwY29sdW1ucyUzRCU1QidpbnB1dF9pZHMnJTJDJTIwJ3Rva2VuX3R5cGVfaWRzJyUyQyUyMCdhdHRlbnRpb25fbWFzayclMkMlMjAnbGFiZWwnJTVEKSUwQWRzJTVCJTIydHJhaW4lMjIlNUQuZm9ybWF0JTBBZHMucmVzZXRfZm9ybWF0KCklMEFkcyU1QiUyMnRyYWluJTIyJTVELmZvcm1hdA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(<span class="hljs-keyword">lambda</span> x: tokenizer(x[<span class="hljs-string">&quot;text&quot;</span>], truncation=<span class="hljs-literal">True</span>, padding=<span class="hljs-literal">True</span>), batched=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.set_format(<span class="hljs-built_in">type</span>=<span class="hljs-string">&quot;numpy&quot;</span>, columns=[<span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].<span class="hljs-built_in">format</span>
{<span class="hljs-string">&#x27;columns&#x27;</span>: [<span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
 <span class="hljs-string">&#x27;format_kwargs&#x27;</span>: {},
 <span class="hljs-string">&#x27;output_all_columns&#x27;</span>: <span class="hljs-literal">False</span>,
 <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;numpy&#x27;</span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.reset_format()
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].<span class="hljs-built_in">format</span>
{<span class="hljs-string">&#x27;columns&#x27;</span>: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>, <span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>],
 <span class="hljs-string">&#x27;format_kwargs&#x27;</span>: {},
 <span class="hljs-string">&#x27;output_all_columns&#x27;</span>: <span class="hljs-literal">False</span>,
 <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-literal">None</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function d5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJyb3R0ZW5fdG9tYXRvZXMlMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQWRzJTIwJTNEJTIwZHMubWFwKGxhbWJkYSUyMHglM0ElMjB0b2tlbml6ZXIoeCU1Qid0ZXh0JyU1RCUyQyUyMHRydW5jYXRpb24lM0RUcnVlJTJDJTIwcGFkZGluZyUzRFRydWUpJTJDJTIwYmF0Y2hlZCUzRFRydWUpJTBBZHMlNUIlMjJ0cmFpbiUyMiU1RC5mb3JtYXQlMEFkcyUyMCUzRCUyMGRzLndpdGhfZm9ybWF0KHR5cGUlM0QndGVuc29yZmxvdyclMkMlMjBjb2x1bW5zJTNEJTVCJ2lucHV0X2lkcyclMkMlMjAndG9rZW5fdHlwZV9pZHMnJTJDJTIwJ2F0dGVudGlvbl9tYXNrJyUyQyUyMCdsYWJlbCclNUQpJTBBZHMlNUIlMjJ0cmFpbiUyMiU1RC5mb3JtYXQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(<span class="hljs-keyword">lambda</span> x: tokenizer(x[<span class="hljs-string">&#x27;text&#x27;</span>], truncation=<span class="hljs-literal">True</span>, padding=<span class="hljs-literal">True</span>), batched=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].<span class="hljs-built_in">format</span>
{<span class="hljs-string">&#x27;columns&#x27;</span>: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>, <span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>],
 <span class="hljs-string">&#x27;format_kwargs&#x27;</span>: {},
 <span class="hljs-string">&#x27;output_all_columns&#x27;</span>: <span class="hljs-literal">False</span>,
 <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-literal">None</span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.with_format(<span class="hljs-built_in">type</span>=<span class="hljs-string">&#x27;tensorflow&#x27;</span>, columns=[<span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].<span class="hljs-built_in">format</span>
{<span class="hljs-string">&#x27;columns&#x27;</span>: [<span class="hljs-string">&#x27;input_ids&#x27;</span>, <span class="hljs-string">&#x27;token_type_ids&#x27;</span>, <span class="hljs-string">&#x27;attention_mask&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>],
 <span class="hljs-string">&#x27;format_kwargs&#x27;</span>: {},
 <span class="hljs-string">&#x27;output_all_columns&#x27;</span>: <span class="hljs-literal">False</span>,
 <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;tensorflow&#x27;</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function i5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJyb3R0ZW5fdG9tYXRvZXMlMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQWRlZiUyMGVuY29kZShleGFtcGxlKSUzQSUwQSUyMCUyMCUyMCUyMHJldHVybiUyMHRva2VuaXplcihleGFtcGxlJTVCJ3RleHQnJTVEJTJDJTIwdHJ1bmNhdGlvbiUzRFRydWUlMkMlMjBwYWRkaW5nJTNEVHJ1ZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBZHMlMjAlM0QlMjBkcy53aXRoX3RyYW5zZm9ybShlbmNvZGUpJTBBZHMlNUIlMjJ0cmFpbiUyMiU1RCU1QjAlNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">encode</span>(<span class="hljs-params">example</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> tokenizer(example[<span class="hljs-string">&#x27;text&#x27;</span>], truncation=<span class="hljs-literal">True</span>, padding=<span class="hljs-literal">True</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.with_transform(encode)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>][<span class="hljs-number">0</span>]
{<span class="hljs-string">&#x27;attention_mask&#x27;</span>: tensor([<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>,
 <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>,
 <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>]),
 <span class="hljs-string">&#x27;input_ids&#x27;</span>: tensor([  <span class="hljs-number">101</span>,  <span class="hljs-number">1103</span>,  <span class="hljs-number">2067</span>,  <span class="hljs-number">1110</span>, <span class="hljs-number">17348</span>,  <span class="hljs-number">1106</span>,  <span class="hljs-number">1129</span>,  <span class="hljs-number">1103</span>,  <span class="hljs-number">6880</span>,  <span class="hljs-number">1432</span>,
        <span class="hljs-number">112</span>,   <span class="hljs-number">188</span>,  <span class="hljs-number">1207</span>,   <span class="hljs-number">107</span>, <span class="hljs-number">14255</span>,  <span class="hljs-number">1389</span>,   <span class="hljs-number">107</span>,  <span class="hljs-number">1105</span>,  <span class="hljs-number">1115</span>,  <span class="hljs-number">1119</span>,
        <span class="hljs-number">112</span>,   <span class="hljs-number">188</span>,  <span class="hljs-number">1280</span>,  <span class="hljs-number">1106</span>,  <span class="hljs-number">1294</span>,   <span class="hljs-number">170</span>, <span class="hljs-number">24194</span>,  <span class="hljs-number">1256</span>,  <span class="hljs-number">3407</span>,  <span class="hljs-number">1190</span>,
        <span class="hljs-number">170</span>, <span class="hljs-number">11791</span>,  <span class="hljs-number">5253</span>,   <span class="hljs-number">188</span>,  <span class="hljs-number">1732</span>,  <span class="hljs-number">7200</span>, <span class="hljs-number">10947</span>, <span class="hljs-number">12606</span>,  <span class="hljs-number">2895</span>,   <span class="hljs-number">117</span>,
        <span class="hljs-number">179</span>,  <span class="hljs-number">7766</span>,   <span class="hljs-number">118</span>,   <span class="hljs-number">172</span>, <span class="hljs-number">15554</span>,  <span class="hljs-number">1181</span>,  <span class="hljs-number">3498</span>,  <span class="hljs-number">6961</span>,  <span class="hljs-number">3263</span>,  <span class="hljs-number">1137</span>,
        <span class="hljs-number">188</span>,  <span class="hljs-number">1566</span>,  <span class="hljs-number">7912</span>, <span class="hljs-number">14516</span>,  <span class="hljs-number">6997</span>,   <span class="hljs-number">119</span>,   <span class="hljs-number">102</span>]),
 <span class="hljs-string">&#x27;token_type_ids&#x27;</span>: tensor([<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>,
        <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>,
        <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>])}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function p5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyc3F1YWQlMjIpJTBBZHMlNUIlMjJ0cmFpbiUyMiU1RC5mZWF0dXJlcyUwQWRzLmZsYXR0ZW4oKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;squad&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].features
{<span class="hljs-string">&#x27;answers&#x27;</span>: <span class="hljs-type">Sequence</span>(feature={<span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>), <span class="hljs-string">&#x27;answer_start&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;int32&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}, length=-<span class="hljs-number">1</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;context&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;id&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;question&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;title&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.flatten()
DatasetDict({
    train: Dataset({
        features: [<span class="hljs-string">&#x27;id&#x27;</span>, <span class="hljs-string">&#x27;title&#x27;</span>, <span class="hljs-string">&#x27;context&#x27;</span>, <span class="hljs-string">&#x27;question&#x27;</span>, <span class="hljs-string">&#x27;answers.text&#x27;</span>, <span class="hljs-string">&#x27;answers.answer_start&#x27;</span>],
        num_rows: <span class="hljs-number">87599</span>
    })
    validation: Dataset({
        features: [<span class="hljs-string">&#x27;id&#x27;</span>, <span class="hljs-string">&#x27;title&#x27;</span>, <span class="hljs-string">&#x27;context&#x27;</span>, <span class="hljs-string">&#x27;question&#x27;</span>, <span class="hljs-string">&#x27;answers.text&#x27;</span>, <span class="hljs-string">&#x27;answers.answer_start&#x27;</span>],
        num_rows: <span class="hljs-number">10570</span>
    })
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function m5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzJTVCJTIydHJhaW4lMjIlNUQuZmVhdHVyZXMlMEFuZXdfZmVhdHVyZXMlMjAlM0QlMjBkcyU1QiUyMnRyYWluJTIyJTVELmZlYXR1cmVzLmNvcHkoKSUwQW5ld19mZWF0dXJlcyU1QidsYWJlbCclNUQlMjAlM0QlMjBDbGFzc0xhYmVsKG5hbWVzJTNEJTVCJ2JhZCclMkMlMjAnZ29vZCclNUQpJTBBbmV3X2ZlYXR1cmVzJTVCJ3RleHQnJTVEJTIwJTNEJTIwVmFsdWUoJ2xhcmdlX3N0cmluZycpJTBBZHMlMjAlM0QlMjBkcy5jYXN0KG5ld19mZWF0dXJlcyklMEFkcyU1QiUyMnRyYWluJTIyJTVELmZlYXR1cmVz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;neg&#x27;</span>, <span class="hljs-string">&#x27;pos&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}
<span class="hljs-meta">&gt;&gt;&gt; </span>new_features = ds[<span class="hljs-string">&quot;train&quot;</span>].features.copy()
<span class="hljs-meta">&gt;&gt;&gt; </span>new_features[<span class="hljs-string">&#x27;label&#x27;</span>] = ClassLabel(names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>new_features[<span class="hljs-string">&#x27;text&#x27;</span>] = Value(<span class="hljs-string">&#x27;large_string&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.cast(new_features)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;large_string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function h5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzJTVCJTIydHJhaW4lMjIlNUQuZmVhdHVyZXMlMEFkcyUyMCUzRCUyMGRzLmNhc3RfY29sdW1uKCdsYWJlbCclMkMlMjBDbGFzc0xhYmVsKG5hbWVzJTNEJTVCJ2JhZCclMkMlMjAnZ29vZCclNUQpKSUwQWRzJTVCJTIydHJhaW4lMjIlNUQuZmVhdHVyZXM=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;neg&#x27;</span>, <span class="hljs-string">&#x27;pos&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.cast_column(<span class="hljs-string">&#x27;label&#x27;</span>, ClassLabel(names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>]))
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function g5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzJTIwJTNEJTIwZHMucmVtb3ZlX2NvbHVtbnMoJTIybGFiZWwlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.remove_columns(<span class="hljs-string">&quot;label&quot;</span>)
DatasetDict({
    train: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>],
        num_rows: <span class="hljs-number">8530</span>
    })
    validation: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>],
        num_rows: <span class="hljs-number">1066</span>
    })
    test: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>],
        num_rows: <span class="hljs-number">1066</span>
    })
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function u5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzJTIwJTNEJTIwZHMucmVuYW1lX2NvbHVtbiglMjJsYWJlbCUyMiUyQyUyMCUyMmxhYmVsX25ldyUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.rename_column(<span class="hljs-string">&quot;label&quot;</span>, <span class="hljs-string">&quot;label_new&quot;</span>)
DatasetDict({
    train: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label_new&#x27;</span>],
        num_rows: <span class="hljs-number">8530</span>
    })
    validation: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label_new&#x27;</span>],
        num_rows: <span class="hljs-number">1066</span>
    })
    test: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;label_new&#x27;</span>],
        num_rows: <span class="hljs-number">1066</span>
    })
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function f5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzLnJlbmFtZV9jb2x1bW5zKCU3Qid0ZXh0JyUzQSUyMCd0ZXh0X25ldyclMkMlMjAnbGFiZWwnJTNBJTIwJ2xhYmVsX25ldyclN0Qp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.rename_columns({<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;text_new&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;label_new&#x27;</span>})
DatasetDict({
    train: Dataset({
        features: [<span class="hljs-string">&#x27;text_new&#x27;</span>, <span class="hljs-string">&#x27;label_new&#x27;</span>],
        num_rows: <span class="hljs-number">8530</span>
    })
    validation: Dataset({
        features: [<span class="hljs-string">&#x27;text_new&#x27;</span>, <span class="hljs-string">&#x27;label_new&#x27;</span>],
        num_rows: <span class="hljs-number">1066</span>
    })
    test: Dataset({
        features: [<span class="hljs-string">&#x27;text_new&#x27;</span>, <span class="hljs-string">&#x27;label_new&#x27;</span>],
        num_rows: <span class="hljs-number">1066</span>
    })
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function b5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyKSUwQWRzLnNlbGVjdF9jb2x1bW5zKCUyMnRleHQlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.select_columns(<span class="hljs-string">&quot;text&quot;</span>)
DatasetDict({
    train: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>],
        num_rows: <span class="hljs-number">8530</span>
    })
    validation: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>],
        num_rows: <span class="hljs-number">1066</span>
    })
    test: Dataset({
        features: [<span class="hljs-string">&#x27;text&#x27;</span>],
        num_rows: <span class="hljs-number">1066</span>
    })
})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function _5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyYm9vbHElMjIpJTBBZHMlNUIlMjJ0cmFpbiUyMiU1RC5mZWF0dXJlcyUwQWRzJTIwJTNEJTIwZHMuY2xhc3NfZW5jb2RlX2NvbHVtbiglMjJhbnN3ZXIlMjIpJTBBZHMlNUIlMjJ0cmFpbiUyMiU1RC5mZWF0dXJlcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;boolq&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].features
{<span class="hljs-string">&#x27;answer&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;bool&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;passage&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;question&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.class_encode_column(<span class="hljs-string">&quot;answer&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].features
{<span class="hljs-string">&#x27;answer&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;False&#x27;</span>, <span class="hljs-string">&#x27;True&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;passage&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;question&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function x5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZGF0YXNldF9kaWN0LnB1c2hfdG9faHViKCUyMiUzQ29yZ2FuaXphdGlvbiUzRSUyRiUzQ2RhdGFzZXRfaWQlM0UlMjIpJTBBZGF0YXNldF9kaWN0LnB1c2hfdG9faHViKCUyMiUzQ29yZ2FuaXphdGlvbiUzRSUyRiUzQ2RhdGFzZXRfaWQlM0UlMjIlMkMlMjBwcml2YXRlJTNEVHJ1ZSklMEFkYXRhc2V0X2RpY3QucHVzaF90b19odWIoJTIyJTNDb3JnYW5pemF0aW9uJTNFJTJGJTNDZGF0YXNldF9pZCUzRSUyMiUyQyUyMG1heF9zaGFyZF9zaXplJTNEJTIyMUdCJTIyKSUwQWRhdGFzZXRfZGljdC5wdXNoX3RvX2h1YiglMjIlM0Nvcmdhbml6YXRpb24lM0UlMkYlM0NkYXRhc2V0X2lkJTNFJTIyJTJDJTIwbnVtX3NoYXJkcyUzRCU3QiUyMnRyYWluJTIyJTNBJTIwMTAyNCUyQyUyMCUyMnRlc3QlMjIlM0ElMjA4JTdEKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>dataset_dict.push_to_hub(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset_dict.push_to_hub(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, private=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset_dict.push_to_hub(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, max_shard_size=<span class="hljs-string">&quot;1GB&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset_dict.push_to_hub(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, num_shards={<span class="hljs-string">&quot;train&quot;</span>: <span class="hljs-number">1024</span>, <span class="hljs-string">&quot;test&quot;</span>: <span class="hljs-number">8</span>})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function $5(w){let t,x="If you want to add a new configuration (or subset) to a dataset (e.g. if the dataset has multiple tasks/versions/languages):",l,s,c;return s=new C({props:{code:"ZW5nbGlzaF9kYXRhc2V0LnB1c2hfdG9faHViKCUyMiUzQ29yZ2FuaXphdGlvbiUzRSUyRiUzQ2RhdGFzZXRfaWQlM0UlMjIlMkMlMjAlMjJlbiUyMiklMEFmcmVuY2hfZGF0YXNldC5wdXNoX3RvX2h1YiglMjIlM0Nvcmdhbml6YXRpb24lM0UlMkYlM0NkYXRhc2V0X2lkJTNFJTIyJTJDJTIwJTIyZnIlMjIpJTBBJTIzJTIwbGF0ZXIlMEFlbmdsaXNoX2RhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyJTNDb3JnYW5pemF0aW9uJTNFJTJGJTNDZGF0YXNldF9pZCUzRSUyMiUyQyUyMCUyMmVuJTIyKSUwQWZyZW5jaF9kYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMiUzQ29yZ2FuaXphdGlvbiUzRSUyRiUzQ2RhdGFzZXRfaWQlM0UlMjIlMkMlMjAlMjJmciUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>english_dataset.push_to_hub(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, <span class="hljs-string">&quot;en&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>french_dataset.push_to_hub(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, <span class="hljs-string">&quot;fr&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># later</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>english_dataset = load_dataset(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, <span class="hljs-string">&quot;en&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>french_dataset = load_dataset(<span class="hljs-string">&quot;&lt;organization&gt;/&lt;dataset_id&gt;&quot;</span>, <span class="hljs-string">&quot;fr&quot;</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-1l9vuim"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function y5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZGF0YXNldF9kaWN0LnNhdmVfdG9fZGlzayglMjJwYXRoJTJGdG8lMkZkYXRhc2V0JTJGZGlyZWN0b3J5JTIyKSUwQWRhdGFzZXRfZGljdC5zYXZlX3RvX2Rpc2soJTIycGF0aCUyRnRvJTJGZGF0YXNldCUyRmRpcmVjdG9yeSUyMiUyQyUyMG1heF9zaGFyZF9zaXplJTNEJTIyMUdCJTIyKSUwQWRhdGFzZXRfZGljdC5zYXZlX3RvX2Rpc2soJTIycGF0aCUyRnRvJTJGZGF0YXNldCUyRmRpcmVjdG9yeSUyMiUyQyUyMG51bV9zaGFyZHMlM0QlN0IlMjJ0cmFpbiUyMiUzQSUyMDEwMjQlMkMlMjAlMjJ0ZXN0JTIyJTNBJTIwOCU3RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>dataset_dict.save_to_disk(<span class="hljs-string">&quot;path/to/dataset/directory&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset_dict.save_to_disk(<span class="hljs-string">&quot;path/to/dataset/directory&quot;</span>, max_shard_size=<span class="hljs-string">&quot;1GB&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset_dict.save_to_disk(<span class="hljs-string">&quot;path/to/dataset/directory&quot;</span>, num_shards={<span class="hljs-string">&quot;train&quot;</span>: <span class="hljs-number">1024</span>, <span class="hljs-string">&quot;test&quot;</span>: <span class="hljs-number">8</span>})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function j5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMlMjAlM0QlMjBsb2FkX2Zyb21fZGlzaygncGF0aCUyRnRvJTJGZGF0YXNldCUyRmRpcmVjdG9yeScp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_from_disk(<span class="hljs-string">&#x27;path/to/dataset/directory&#x27;</span>)',wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function w5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRGF0YXNldERpY3QlMEFkcyUyMCUzRCUyMERhdGFzZXREaWN0LmZyb21fY3N2KCU3Qid0cmFpbiclM0ElMjAncGF0aCUyRnRvJTJGZGF0YXNldC5jc3YnJTdEKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> DatasetDict
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = DatasetDict.from_csv({<span class="hljs-string">&#x27;train&#x27;</span>: <span class="hljs-string">&#x27;path/to/dataset.csv&#x27;</span>})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function v5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRGF0YXNldERpY3QlMEFkcyUyMCUzRCUyMERhdGFzZXREaWN0LmZyb21fanNvbiglN0IndHJhaW4nJTNBJTIwJ3BhdGglMkZ0byUyRmRhdGFzZXQuanNvbiclN0Qp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> DatasetDict
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = DatasetDict.from_json({<span class="hljs-string">&#x27;train&#x27;</span>: <span class="hljs-string">&#x27;path/to/dataset.json&#x27;</span>})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function M5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRGF0YXNldERpY3QlMEFkcyUyMCUzRCUyMERhdGFzZXREaWN0LmZyb21fcGFycXVldCglN0IndHJhaW4nJTNBJTIwJ3BhdGglMkZ0byUyRmRhdGFzZXQlMkZwYXJxdWV0JyU3RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> DatasetDict
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = DatasetDict.from_parquet({<span class="hljs-string">&#x27;train&#x27;</span>: <span class="hljs-string">&#x27;path/to/dataset/parquet&#x27;</span>})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function k5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRGF0YXNldERpY3QlMEFkcyUyMCUzRCUyMERhdGFzZXREaWN0LmZyb21fdGV4dCglN0IndHJhaW4nJTNBJTIwJ3BhdGglMkZ0byUyRmRhdGFzZXQudHh0JyU3RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> DatasetDict
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = DatasetDict.from_text({<span class="hljs-string">&#x27;train&#x27;</span>: <span class="hljs-string">&#x27;path/to/dataset.txt&#x27;</span>})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function J5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZGVmJTIwZ2VuKCklM0ElMEElMjAlMjAlMjAlMjB5aWVsZCUyMCU3QiUyMnRleHQlMjIlM0ElMjAlMjJHb29kJTIyJTJDJTIwJTIybGFiZWwlMjIlM0ElMjAwJTdEJTBBJTIwJTIwJTIwJTIweWllbGQlMjAlN0IlMjJ0ZXh0JTIyJTNBJTIwJTIyQmFkJTIyJTJDJTIwJTIybGFiZWwlMjIlM0ElMjAxJTdEJTBBZHMlMjAlM0QlMjBJdGVyYWJsZURhdGFzZXQuZnJvbV9nZW5lcmF0b3IoZ2VuKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">gen</span>():
<span class="hljs-meta">... </span>    <span class="hljs-keyword">yield</span> {<span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;Good&quot;</span>, <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-number">0</span>}
<span class="hljs-meta">... </span>    <span class="hljs-keyword">yield</span> {<span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;Bad&quot;</span>, <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-number">1</span>}
...
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = IterableDataset.from_generator(gen)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function T5(w){let t,x;return t=new C({props:{code:"ZGVmJTIwZ2VuKHNoYXJkcyklM0ElMEElMjAlMjAlMjAlMjBmb3IlMjBzaGFyZCUyMGluJTIwc2hhcmRzJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwd2l0aCUyMG9wZW4oc2hhcmQpJTIwYXMlMjBmJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZm9yJTIwbGluZSUyMGluJTIwZiUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHlpZWxkJTIwJTdCJTIybGluZSUyMiUzQSUyMGxpbmUlN0QlMEFzaGFyZHMlMjAlM0QlMjAlNUJmJTIyZGF0YSU3QmklN0QudHh0JTIyJTIwZm9yJTIwaSUyMGluJTIwcmFuZ2UoMzIpJTVEJTBBZHMlMjAlM0QlMjBJdGVyYWJsZURhdGFzZXQuZnJvbV9nZW5lcmF0b3IoZ2VuJTJDJTIwZ2VuX2t3YXJncyUzRCU3QiUyMnNoYXJkcyUyMiUzQSUyMHNoYXJkcyU3RCklMEFkcyUyMCUzRCUyMGRzLnNodWZmbGUoc2VlZCUzRDQyJTJDJTIwYnVmZmVyX3NpemUlM0QxMF8wMDApJTIwJTIwJTIzJTIwc2h1ZmZsZXMlMjB0aGUlMjBzaGFyZHMlMjBvcmRlciUyMCUyQiUyMHVzZXMlMjBhJTIwc2h1ZmZsZSUyMGJ1ZmZlciUwQWZyb20lMjB0b3JjaC51dGlscy5kYXRhJTIwaW1wb3J0JTIwRGF0YUxvYWRlciUwQWRhdGFsb2FkZXIlMjAlM0QlMjBEYXRhTG9hZGVyKGRzLndpdGhfZm9ybWF0KCUyMnRvcmNoJTIyKSUyQyUyMG51bV93b3JrZXJzJTNENCklMjAlMjAlMjMlMjBnaXZlJTIwZWFjaCUyMHdvcmtlciUyMGElMjBzdWJzZXQlMjBvZiUyMDMyJTJGNCUzRDglMjBzaGFyZHM=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">gen</span>(<span class="hljs-params">shards</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">for</span> shard <span class="hljs-keyword">in</span> shards:
<span class="hljs-meta">... </span>        <span class="hljs-keyword">with</span> <span class="hljs-built_in">open</span>(shard) <span class="hljs-keyword">as</span> f:
<span class="hljs-meta">... </span>            <span class="hljs-keyword">for</span> line <span class="hljs-keyword">in</span> f:
<span class="hljs-meta">... </span>                <span class="hljs-keyword">yield</span> {<span class="hljs-string">&quot;line&quot;</span>: line}
...
<span class="hljs-meta">&gt;&gt;&gt; </span>shards = [<span class="hljs-string">f&quot;data<span class="hljs-subst">{i}</span>.txt&quot;</span> <span class="hljs-keyword">for</span> i <span class="hljs-keyword">in</span> <span class="hljs-built_in">range</span>(<span class="hljs-number">32</span>)]
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = IterableDataset.from_generator(gen, gen_kwargs={<span class="hljs-string">&quot;shards&quot;</span>: shards})
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.shuffle(seed=<span class="hljs-number">42</span>, buffer_size=<span class="hljs-number">10_000</span>)  <span class="hljs-comment"># shuffles the shards order + uses a shuffle buffer</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> torch.utils.data <span class="hljs-keyword">import</span> DataLoader
<span class="hljs-meta">&gt;&gt;&gt; </span>dataloader = DataLoader(ds.with_format(<span class="hljs-string">&quot;torch&quot;</span>), num_workers=<span class="hljs-number">4</span>)  <span class="hljs-comment"># give each worker a subset of 32/4=8 shards</span>`,wrap:!1}}),{c(){u(t.$$.fragment)},l(l){f(t.$$.fragment,l)},m(l,s){b(t,l,s),x=!0},p:D,i(l){x||(h(t.$$.fragment,l),x=!0)},o(l){g(t.$$.fragment,l),x=!1},d(l){_(t,l)}}}function D5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiUyQyUyMHN0cmVhbWluZyUzRFRydWUpJTBBbmV4dChpdGVyKGRzKSklMEFkcyUyMCUzRCUyMGRzLnJlbW92ZV9jb2x1bW5zKCUyMmxhYmVsJTIyKSUwQW5leHQoaXRlcihkcykp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">next</span>(<span class="hljs-built_in">iter</span>(ds))
{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.remove_columns(<span class="hljs-string">&quot;label&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">next</span>(<span class="hljs-built_in">iter</span>(ds))
{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function I5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiUyQyUyMHN0cmVhbWluZyUzRFRydWUpJTBBbmV4dChpdGVyKGRzKSklMEFkcyUyMCUzRCUyMGRzLnNlbGVjdF9jb2x1bW5zKCUyMnRleHQlMjIpJTBBbmV4dChpdGVyKGRzKSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">next</span>(<span class="hljs-built_in">iter</span>(ds))
{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.select_columns(<span class="hljs-string">&quot;text&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">next</span>(<span class="hljs-built_in">iter</span>(ds))
{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function C5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTJDJTIwQXVkaW8lMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJQb2x5QUklMkZtaW5kczE0JTIyJTJDJTIwbmFtZSUzRCUyMmVuLVVTJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiUyQyUyMHN0cmVhbWluZyUzRFRydWUpJTBBZHMuZmVhdHVyZXMlMEFkcyUyMCUzRCUyMGRzLmNhc3RfY29sdW1uKCUyMmF1ZGlvJTIyJTJDJTIwQXVkaW8oc2FtcGxpbmdfcmF0ZSUzRDE2MDAwKSklMEFkcy5mZWF0dXJlcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset, Audio
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;PolyAI/minds14&quot;</span>, name=<span class="hljs-string">&quot;en-US&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features
{<span class="hljs-string">&#x27;audio&#x27;</span>: Audio(sampling_rate=<span class="hljs-number">8000</span>, mono=<span class="hljs-literal">True</span>, decode=<span class="hljs-literal">True</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;english_transcription&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;intent_class&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">14</span>, names=[<span class="hljs-string">&#x27;abroad&#x27;</span>, <span class="hljs-string">&#x27;address&#x27;</span>, <span class="hljs-string">&#x27;app_error&#x27;</span>, <span class="hljs-string">&#x27;atm_limit&#x27;</span>, <span class="hljs-string">&#x27;balance&#x27;</span>, <span class="hljs-string">&#x27;business_loan&#x27;</span>,  <span class="hljs-string">&#x27;card_issues&#x27;</span>, <span class="hljs-string">&#x27;cash_deposit&#x27;</span>, <span class="hljs-string">&#x27;direct_debit&#x27;</span>, <span class="hljs-string">&#x27;freeze&#x27;</span>, <span class="hljs-string">&#x27;high_value_payment&#x27;</span>, <span class="hljs-string">&#x27;joint_account&#x27;</span>, <span class="hljs-string">&#x27;latest_transactions&#x27;</span>, <span class="hljs-string">&#x27;pay_bill&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;lang_id&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">14</span>, names=[<span class="hljs-string">&#x27;cs-CZ&#x27;</span>, <span class="hljs-string">&#x27;de-DE&#x27;</span>, <span class="hljs-string">&#x27;en-AU&#x27;</span>, <span class="hljs-string">&#x27;en-GB&#x27;</span>, <span class="hljs-string">&#x27;en-US&#x27;</span>, <span class="hljs-string">&#x27;es-ES&#x27;</span>, <span class="hljs-string">&#x27;fr-FR&#x27;</span>, <span class="hljs-string">&#x27;it-IT&#x27;</span>, <span class="hljs-string">&#x27;ko-KR&#x27;</span>,  <span class="hljs-string">&#x27;nl-NL&#x27;</span>, <span class="hljs-string">&#x27;pl-PL&#x27;</span>, <span class="hljs-string">&#x27;pt-PT&#x27;</span>, <span class="hljs-string">&#x27;ru-RU&#x27;</span>, <span class="hljs-string">&#x27;zh-CN&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;path&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;transcription&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.cast_column(<span class="hljs-string">&quot;audio&quot;</span>, Audio(sampling_rate=<span class="hljs-number">16000</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features
{<span class="hljs-string">&#x27;audio&#x27;</span>: Audio(sampling_rate=<span class="hljs-number">16000</span>, mono=<span class="hljs-literal">True</span>, decode=<span class="hljs-literal">True</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;english_transcription&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;intent_class&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">14</span>, names=[<span class="hljs-string">&#x27;abroad&#x27;</span>, <span class="hljs-string">&#x27;address&#x27;</span>, <span class="hljs-string">&#x27;app_error&#x27;</span>, <span class="hljs-string">&#x27;atm_limit&#x27;</span>, <span class="hljs-string">&#x27;balance&#x27;</span>, <span class="hljs-string">&#x27;business_loan&#x27;</span>,  <span class="hljs-string">&#x27;card_issues&#x27;</span>, <span class="hljs-string">&#x27;cash_deposit&#x27;</span>, <span class="hljs-string">&#x27;direct_debit&#x27;</span>, <span class="hljs-string">&#x27;freeze&#x27;</span>, <span class="hljs-string">&#x27;high_value_payment&#x27;</span>, <span class="hljs-string">&#x27;joint_account&#x27;</span>, <span class="hljs-string">&#x27;latest_transactions&#x27;</span>, <span class="hljs-string">&#x27;pay_bill&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;lang_id&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">14</span>, names=[<span class="hljs-string">&#x27;cs-CZ&#x27;</span>, <span class="hljs-string">&#x27;de-DE&#x27;</span>, <span class="hljs-string">&#x27;en-AU&#x27;</span>, <span class="hljs-string">&#x27;en-GB&#x27;</span>, <span class="hljs-string">&#x27;en-US&#x27;</span>, <span class="hljs-string">&#x27;es-ES&#x27;</span>, <span class="hljs-string">&#x27;fr-FR&#x27;</span>, <span class="hljs-string">&#x27;it-IT&#x27;</span>, <span class="hljs-string">&#x27;ko-KR&#x27;</span>,  <span class="hljs-string">&#x27;nl-NL&#x27;</span>, <span class="hljs-string">&#x27;pl-PL&#x27;</span>, <span class="hljs-string">&#x27;pt-PT&#x27;</span>, <span class="hljs-string">&#x27;ru-RU&#x27;</span>, <span class="hljs-string">&#x27;zh-CN&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;path&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;transcription&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function U5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiUyQyUyMHN0cmVhbWluZyUzRFRydWUpJTBBZHMuZmVhdHVyZXMlMEFuZXdfZmVhdHVyZXMlMjAlM0QlMjBkcy5mZWF0dXJlcy5jb3B5KCklMEFuZXdfZmVhdHVyZXMlNUIlMjJsYWJlbCUyMiU1RCUyMCUzRCUyMENsYXNzTGFiZWwobmFtZXMlM0QlNUIlMjJiYWQlMjIlMkMlMjAlMjJnb29kJTIyJTVEKSUwQW5ld19mZWF0dXJlcyU1QiUyMnRleHQlMjIlNUQlMjAlM0QlMjBWYWx1ZSglMjJsYXJnZV9zdHJpbmclMjIpJTBBZHMlMjAlM0QlMjBkcy5jYXN0KG5ld19mZWF0dXJlcyklMEFkcy5mZWF0dXJlcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;neg&#x27;</span>, <span class="hljs-string">&#x27;pos&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}
<span class="hljs-meta">&gt;&gt;&gt; </span>new_features = ds.features.copy()
<span class="hljs-meta">&gt;&gt;&gt; </span>new_features[<span class="hljs-string">&quot;label&quot;</span>] = ClassLabel(names=[<span class="hljs-string">&quot;bad&quot;</span>, <span class="hljs-string">&quot;good&quot;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>new_features[<span class="hljs-string">&quot;text&quot;</span>] = Value(<span class="hljs-string">&quot;large_string&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.cast(new_features)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;large_string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function Z5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiUyQyUyMHN0cmVhbWluZyUzRFRydWUpJTBBZGVmJTIwYWRkX3ByZWZpeChleGFtcGxlKSUzQSUwQSUyMCUyMCUyMCUyMGV4YW1wbGUlNUIlMjJ0ZXh0JTIyJTVEJTIwJTNEJTIwJTIyUmV2aWV3JTNBJTIwJTIyJTIwJTJCJTIwZXhhbXBsZSU1QiUyMnRleHQlMjIlNUQlMEElMjAlMjAlMjAlMjByZXR1cm4lMjBleGFtcGxlJTBBZHMlMjAlM0QlMjBkcy5tYXAoYWRkX3ByZWZpeCklMEFsaXN0KGRzLnRha2UoMykp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">add_prefix</span>(<span class="hljs-params">example</span>):
<span class="hljs-meta">... </span>    example[<span class="hljs-string">&quot;text&quot;</span>] = <span class="hljs-string">&quot;Review: &quot;</span> + example[<span class="hljs-string">&quot;text&quot;</span>]
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> example
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(add_prefix)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(ds.take(<span class="hljs-number">3</span>))
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;Review: the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;Review: the gorgeously elaborate continuation of &quot; the lord of the rings &quot; trilogy is so huge that a column of words cannot adequately describe co-writer/director peter jackson&#x27;</span>s expanded vision of j . r . r . tolkien<span class="hljs-string">&#x27;s middle-earth .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>, <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;Review: effective but too-tepid biopic&#x27;</span>}]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function F5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiUyQyUyMHN0cmVhbWluZyUzRFRydWUpJTBBbmV4dChpdGVyKGRzKSklMEFkcyUyMCUzRCUyMGRzLnJlbmFtZV9jb2x1bW4oJTIydGV4dCUyMiUyQyUyMCUyMm1vdmllX3JldmlldyUyMiklMEFuZXh0KGl0ZXIoZHMpKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">next</span>(<span class="hljs-built_in">iter</span>(ds))
{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.rename_column(<span class="hljs-string">&quot;text&quot;</span>, <span class="hljs-string">&quot;movie_review&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">next</span>(<span class="hljs-built_in">iter</span>(ds))
{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;movie_review&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function R5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiUyQyUyMHN0cmVhbWluZyUzRFRydWUpJTBBZHMlMjAlM0QlMjBkcy5maWx0ZXIobGFtYmRhJTIweCUzQSUyMHglNUIlMjJsYWJlbCUyMiU1RCUyMCUzRCUzRCUyMDApJTBBbGlzdChkcy50YWtlKDMpKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">filter</span>(<span class="hljs-keyword">lambda</span> x: x[<span class="hljs-string">&quot;label&quot;</span>] == <span class="hljs-number">0</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(ds.take(<span class="hljs-number">3</span>))
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">0</span>, <span class="hljs-string">&#x27;movie_review&#x27;</span>: <span class="hljs-string">&#x27;simplistic , silly and tedious .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">0</span>,
 <span class="hljs-string">&#x27;movie_review&#x27;</span>: <span class="hljs-string">&quot;it&#x27;s so laddish and juvenile , only teenage boys could possibly find it funny .&quot;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">0</span>,
 <span class="hljs-string">&#x27;movie_review&#x27;</span>: <span class="hljs-string">&#x27;exploitative and largely devoid of the depth or sophistication that would make watching such a graphic treatment of the crimes bearable .&#x27;</span>}]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function z5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiUyQyUyMHN0cmVhbWluZyUzRFRydWUpJTBBbGlzdChkcy50YWtlKDMpKSUwQXNodWZmbGVkX2RzJTIwJTNEJTIwZHMuc2h1ZmZsZShzZWVkJTNENDIpJTBBbGlzdChzaHVmZmxlZF9kcy50YWtlKDMpKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(ds.take(<span class="hljs-number">3</span>))
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the gorgeously elaborate continuation of &quot; the lord of the rings &quot; trilogy is so huge that a column of words cannot adequately describe co-writer/director peter jackson&#x27;</span>s expanded vision of j . r . r . tolkien<span class="hljs-string">&#x27;s middle-earth .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>, <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;effective but too-tepid biopic&#x27;</span>}]
<span class="hljs-meta">&gt;&gt;&gt; </span>shuffled_ds = ds.shuffle(seed=<span class="hljs-number">42</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(shuffled_ds.take(<span class="hljs-number">3</span>))
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&quot;a sports movie with action that&#x27;s exciting on the field and a story you care about off it .&quot;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;at its best , the good girl is a refreshingly adult take on adultery . . .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&quot;sam jones became a very lucky filmmaker the day wilco got dropped from their record label , proving that one man&#x27;s ruin may be another&#x27;s fortune .&quot;</span>}]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function G5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiUyQyUyMHN0cmVhbWluZyUzRFRydWUpJTBBbGlzdChkcy50YWtlKDMpKSUwQWRzJTIwJTNEJTIwZHMuc2tpcCgxKSUwQWxpc3QoZHMudGFrZSgzKSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(ds.take(<span class="hljs-number">3</span>))
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the gorgeously elaborate continuation of &quot; the lord of the rings &quot; trilogy is so huge that a column of words cannot adequately describe co-writer/director peter jackson&#x27;</span>s expanded vision of j . r . r . tolkien<span class="hljs-string">&#x27;s middle-earth .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>, <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;effective but too-tepid biopic&#x27;</span>}]
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.skip(<span class="hljs-number">1</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(ds.take(<span class="hljs-number">3</span>))
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the gorgeously elaborate continuation of &quot; the lord of the rings &quot; trilogy is so huge that a column of words cannot adequately describe co-writer/director peter jackson&#x27;</span>s expanded vision of j . r . r . tolkien<span class="hljs-string">&#x27;s middle-earth .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>, <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;effective but too-tepid biopic&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;if you sometimes like to go to the movies to have fun , wasabi is a good place to start .&#x27;</span>}]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function N5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiUyQyUyMHN0cmVhbWluZyUzRFRydWUpJTBBc21hbGxfZHMlMjAlM0QlMjBkcy50YWtlKDIpJTBBbGlzdChzbWFsbF9kcyk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>small_ds = ds.take(<span class="hljs-number">2</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(small_ds)
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the gorgeously elaborate continuation of &quot; the lord of the rings &quot; trilogy is so huge that a column of words cannot adequately describe co-writer/director peter jackson&#x27;</span>s expanded vision of j . r . r . tolkien<span class="hljs-string">&#x27;s middle-earth .&#x27;</span>}]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function X5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRGF0YXNldCUyQyUyMGNvbmNhdGVuYXRlX2RhdGFzZXRzJTBBZHMlMjAlM0QlMjBEYXRhc2V0LmZyb21fZGljdCglN0IlMjJhJTIyJTNBJTIwcmFuZ2UoNiklN0QpLnRvX2l0ZXJhYmxlX2RhdGFzZXQobnVtX3NoYXJkcyUzRDMpJTBBZm9yJTIwaWR4JTJDJTIwZXhhbXBsZSUyMGluJTIwZW51bWVyYXRlKGRzKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KGV4YW1wbGUpJTBBJTIwJTIwJTIwJTIwaWYlMjBpZHglMjAlM0QlM0QlMjAyJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwc3RhdGVfZGljdCUyMCUzRCUyMGRzLnN0YXRlX2RpY3QoKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHByaW50KCUyMmNoZWNrcG9pbnQlMjIpJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwYnJlYWslMEFkcy5sb2FkX3N0YXRlX2RpY3Qoc3RhdGVfZGljdCklMEFwcmludChmJTIycmVzdGFydCUyMGZyb20lMjBjaGVja3BvaW50JTIyKSUwQWZvciUyMGV4YW1wbGUlMjBpbiUyMGRzJTNBJTBBJTIwJTIwJTIwJTIwcHJpbnQoZXhhbXBsZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> Dataset, concatenate_datasets
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = Dataset.from_dict({<span class="hljs-string">&quot;a&quot;</span>: <span class="hljs-built_in">range</span>(<span class="hljs-number">6</span>)}).to_iterable_dataset(num_shards=<span class="hljs-number">3</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> idx, example <span class="hljs-keyword">in</span> <span class="hljs-built_in">enumerate</span>(ds):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(example)
<span class="hljs-meta">... </span>    <span class="hljs-keyword">if</span> idx == <span class="hljs-number">2</span>:
<span class="hljs-meta">... </span>        state_dict = ds.state_dict()
<span class="hljs-meta">... </span>        <span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;checkpoint&quot;</span>)
<span class="hljs-meta">... </span>        <span class="hljs-keyword">break</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.load_state_dict(state_dict)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;restart from checkpoint&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> example <span class="hljs-keyword">in</span> ds:
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(example)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function V5(w){let t,x="which returns:",l,s,c;return s=new C({props:{code:"JTdCJ2EnJTNBJTIwMCU3RCUwQSU3QidhJyUzQSUyMDElN0QlMEElN0InYSclM0ElMjAyJTdEJTBBY2hlY2twb2ludCUwQXJlc3RhcnQlMjBmcm9tJTIwY2hlY2twb2ludCUwQSU3QidhJyUzQSUyMDMlN0QlMEElN0InYSclM0ElMjA0JTdEJTBBJTdCJ2EnJTNBJTIwNSU3RA==",highlighted:`{<span class="hljs-string">&#x27;a&#x27;</span>: <span class="hljs-number">0</span>}
{<span class="hljs-string">&#x27;a&#x27;</span>: <span class="hljs-number">1</span>}
{<span class="hljs-string">&#x27;a&#x27;</span>: <span class="hljs-number">2</span>}
<span class="hljs-keyword">checkpoint</span>
<span class="hljs-keyword">restart</span> <span class="hljs-keyword">from</span> <span class="hljs-keyword">checkpoint</span>
{<span class="hljs-string">&#x27;a&#x27;</span>: <span class="hljs-number">3</span>}
{<span class="hljs-string">&#x27;a&#x27;</span>: <span class="hljs-number">4</span>}
{<span class="hljs-string">&#x27;a&#x27;</span>: <span class="hljs-number">5</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-1pybjl4"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function q5(w){let t,x;return t=new C({props:{code:"ZnJvbSUyMHRvcmNoZGF0YS5zdGF0ZWZ1bF9kYXRhbG9hZGVyJTIwaW1wb3J0JTIwU3RhdGVmdWxEYXRhTG9hZGVyJTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyZGVlcG1pbmQlMkZjb2RlX2NvbnRlc3RzJTIyJTJDJTIwc3RyZWFtaW5nJTNEVHJ1ZSUyQyUyMHNwbGl0JTNEJTIydHJhaW4lMjIpJTBBZGF0YWxvYWRlciUyMCUzRCUyMFN0YXRlZnVsRGF0YUxvYWRlcihkcyUyQyUyMGJhdGNoX3NpemUlM0QzMiUyQyUyMG51bV93b3JrZXJzJTNENCklMEElMjMlMjBjaGVja3BvaW50JTBBc3RhdGVfZGljdCUyMCUzRCUyMGRhdGFsb2FkZXIuc3RhdGVfZGljdCgpJTIwJTIwJTIzJTIwdXNlcyUyMGRzLnN0YXRlX2RpY3QoKSUyMHVuZGVyJTIwdGhlJTIwaG9vZCUwQSUyMyUyMHJlc3VtZSUyMGZyb20lMjBjaGVja3BvaW50JTBBZGF0YWxvYWRlci5sb2FkX3N0YXRlX2RpY3Qoc3RhdGVfZGljdCklMjAlMjAlMjMlMjB1c2VzJTIwZHMubG9hZF9zdGF0ZV9kaWN0KCklMjB1bmRlciUyMHRoZSUyMGhvb2Q=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> torchdata.stateful_dataloader <span class="hljs-keyword">import</span> StatefulDataLoader
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;deepmind/code_contests&quot;</span>, streaming=<span class="hljs-literal">True</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataloader = StatefulDataLoader(ds, batch_size=<span class="hljs-number">32</span>, num_workers=<span class="hljs-number">4</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># checkpoint</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>state_dict = dataloader.state_dict()  <span class="hljs-comment"># uses ds.state_dict() under the hood</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># resume from checkpoint</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>dataloader.load_state_dict(state_dict)  <span class="hljs-comment"># uses ds.load_state_dict() under the hood</span>`,wrap:!1}}),{c(){u(t.$$.fragment)},l(l){f(t.$$.fragment,l)},m(l,s){b(t,l,s),x=!0},p:D,i(l){x||(h(t.$$.fragment,l),x=!0)},o(l){g(t.$$.fragment,l),x=!1},d(l){_(t,l)}}}function W5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRGF0YXNldCUyQyUyMGNvbmNhdGVuYXRlX2RhdGFzZXRzJTBBZHMlMjAlM0QlMjBEYXRhc2V0LmZyb21fZGljdCglN0IlMjJhJTIyJTNBJTIwcmFuZ2UoNiklN0QpLnRvX2l0ZXJhYmxlX2RhdGFzZXQobnVtX3NoYXJkcyUzRDMpJTBBZm9yJTIwaWR4JTJDJTIwZXhhbXBsZSUyMGluJTIwZW51bWVyYXRlKGRzKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KGV4YW1wbGUpJTBBJTIwJTIwJTIwJTIwaWYlMjBpZHglMjAlM0QlM0QlMjAyJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwc3RhdGVfZGljdCUyMCUzRCUyMGRzLnN0YXRlX2RpY3QoKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHByaW50KCUyMmNoZWNrcG9pbnQlMjIpJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwYnJlYWslMEFkcy5sb2FkX3N0YXRlX2RpY3Qoc3RhdGVfZGljdCklMEFwcmludChmJTIycmVzdGFydCUyMGZyb20lMjBjaGVja3BvaW50JTIyKSUwQWZvciUyMGV4YW1wbGUlMjBpbiUyMGRzJTNBJTBBJTIwJTIwJTIwJTIwcHJpbnQoZXhhbXBsZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> Dataset, concatenate_datasets
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = Dataset.from_dict({<span class="hljs-string">&quot;a&quot;</span>: <span class="hljs-built_in">range</span>(<span class="hljs-number">6</span>)}).to_iterable_dataset(num_shards=<span class="hljs-number">3</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> idx, example <span class="hljs-keyword">in</span> <span class="hljs-built_in">enumerate</span>(ds):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(example)
<span class="hljs-meta">... </span>    <span class="hljs-keyword">if</span> idx == <span class="hljs-number">2</span>:
<span class="hljs-meta">... </span>        state_dict = ds.state_dict()
<span class="hljs-meta">... </span>        <span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;checkpoint&quot;</span>)
<span class="hljs-meta">... </span>        <span class="hljs-keyword">break</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.load_state_dict(state_dict)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;restart from checkpoint&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">for</span> example <span class="hljs-keyword">in</span> ds:
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(example)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function B5(w){let t,x="which returns:",l,s,c;return s=new C({props:{code:"JTdCJ2EnJTNBJTIwMCU3RCUwQSU3QidhJyUzQSUyMDElN0QlMEElN0InYSclM0ElMjAyJTdEJTBBY2hlY2twb2ludCUwQXJlc3RhcnQlMjBmcm9tJTIwY2hlY2twb2ludCUwQSU3QidhJyUzQSUyMDMlN0QlMEElN0InYSclM0ElMjA0JTdEJTBBJTdCJ2EnJTNBJTIwNSU3RA==",highlighted:`{<span class="hljs-string">&#x27;a&#x27;</span>: <span class="hljs-number">0</span>}
{<span class="hljs-string">&#x27;a&#x27;</span>: <span class="hljs-number">1</span>}
{<span class="hljs-string">&#x27;a&#x27;</span>: <span class="hljs-number">2</span>}
<span class="hljs-keyword">checkpoint</span>
<span class="hljs-keyword">restart</span> <span class="hljs-keyword">from</span> <span class="hljs-keyword">checkpoint</span>
{<span class="hljs-string">&#x27;a&#x27;</span>: <span class="hljs-number">3</span>}
{<span class="hljs-string">&#x27;a&#x27;</span>: <span class="hljs-number">4</span>}
{<span class="hljs-string">&#x27;a&#x27;</span>: <span class="hljs-number">5</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-1pybjl4"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function Q5(w){let t,x;return t=new C({props:{code:"ZnJvbSUyMHRvcmNoZGF0YS5zdGF0ZWZ1bF9kYXRhbG9hZGVyJTIwaW1wb3J0JTIwU3RhdGVmdWxEYXRhTG9hZGVyJTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyZGVlcG1pbmQlMkZjb2RlX2NvbnRlc3RzJTIyJTJDJTIwc3RyZWFtaW5nJTNEVHJ1ZSUyQyUyMHNwbGl0JTNEJTIydHJhaW4lMjIpJTBBZGF0YWxvYWRlciUyMCUzRCUyMFN0YXRlZnVsRGF0YUxvYWRlcihkcyUyQyUyMGJhdGNoX3NpemUlM0QzMiUyQyUyMG51bV93b3JrZXJzJTNENCklMEElMjMlMjBjaGVja3BvaW50JTBBc3RhdGVfZGljdCUyMCUzRCUyMGRhdGFsb2FkZXIuc3RhdGVfZGljdCgpJTIwJTIwJTIzJTIwdXNlcyUyMGRzLnN0YXRlX2RpY3QoKSUyMHVuZGVyJTIwdGhlJTIwaG9vZCUwQSUyMyUyMHJlc3VtZSUyMGZyb20lMjBjaGVja3BvaW50JTBBZGF0YWxvYWRlci5sb2FkX3N0YXRlX2RpY3Qoc3RhdGVfZGljdCklMjAlMjAlMjMlMjB1c2VzJTIwZHMubG9hZF9zdGF0ZV9kaWN0KCklMjB1bmRlciUyMHRoZSUyMGhvb2Q=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> torchdata.stateful_dataloader <span class="hljs-keyword">import</span> StatefulDataLoader
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;deepmind/code_contests&quot;</span>, streaming=<span class="hljs-literal">True</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataloader = StatefulDataLoader(ds, batch_size=<span class="hljs-number">32</span>, num_workers=<span class="hljs-number">4</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># checkpoint</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>state_dict = dataloader.state_dict()  <span class="hljs-comment"># uses ds.state_dict() under the hood</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># resume from checkpoint</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>dataloader.load_state_dict(state_dict)  <span class="hljs-comment"># uses ds.load_state_dict() under the hood</span>`,wrap:!1}}),{c(){u(t.$$.fragment)},l(l){f(t.$$.fragment,l)},m(l,s){b(t,l,s),x=!0},p:D,i(l){x||(h(t.$$.fragment,l),x=!0)},o(l){g(t.$$.fragment,l),x=!1},d(l){_(t,l)}}}function E5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3RyZWFtaW5nJTNEVHJ1ZSklMEFkZWYlMjBhZGRfcHJlZml4KGV4YW1wbGUpJTNBJTBBJTIwJTIwJTIwJTIwZXhhbXBsZSU1QiUyMnRleHQlMjIlNUQlMjAlM0QlMjAlMjJSZXZpZXclM0ElMjAlMjIlMjAlMkIlMjBleGFtcGxlJTVCJTIydGV4dCUyMiU1RCUwQSUyMCUyMCUyMCUyMHJldHVybiUyMGV4YW1wbGUlMEFkcyUyMCUzRCUyMGRzLm1hcChhZGRfcHJlZml4KSUwQW5leHQoaXRlcihkcyU1QiUyMnRyYWluJTIyJTVEKSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">add_prefix</span>(<span class="hljs-params">example</span>):
<span class="hljs-meta">... </span>    example[<span class="hljs-string">&quot;text&quot;</span>] = <span class="hljs-string">&quot;Review: &quot;</span> + example[<span class="hljs-string">&quot;text&quot;</span>]
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> example
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(add_prefix)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">next</span>(<span class="hljs-built_in">iter</span>(ds[<span class="hljs-string">&quot;train&quot;</span>]))
{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;Review: the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function H5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3RyZWFtaW5nJTNEVHJ1ZSklMEFkcyUyMCUzRCUyMGRzLmZpbHRlcihsYW1iZGElMjB4JTNBJTIweCU1QiUyMmxhYmVsJTIyJTVEJTIwJTNEJTNEJTIwMCklMEFsaXN0KGRzJTVCJTIydHJhaW4lMjIlNUQudGFrZSgzKSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">filter</span>(<span class="hljs-keyword">lambda</span> x: x[<span class="hljs-string">&quot;label&quot;</span>] == <span class="hljs-number">0</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(ds[<span class="hljs-string">&quot;train&quot;</span>].take(<span class="hljs-number">3</span>))
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">0</span>, <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;Review: simplistic , silly and tedious .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">0</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&quot;Review: it&#x27;s so laddish and juvenile , only teenage boys could possibly find it funny .&quot;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">0</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;Review: exploitative and largely devoid of the depth or sophistication that would make watching such a graphic treatment of the crimes bearable .&#x27;</span>}]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function L5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3RyZWFtaW5nJTNEVHJ1ZSklMEFsaXN0KGRzJTVCJTIydHJhaW4lMjIlNUQudGFrZSgzKSklMEFkcyUyMCUzRCUyMGRzLnNodWZmbGUoc2VlZCUzRDQyKSUwQWxpc3QoZHMlNUIlMjJ0cmFpbiUyMiU1RC50YWtlKDMpKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(ds[<span class="hljs-string">&quot;train&quot;</span>].take(<span class="hljs-number">3</span>))
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the gorgeously elaborate continuation of &quot; the lord of the rings &quot; trilogy is so huge that a column of words cannot adequately describe co-writer/director peter jackson&#x27;</span>s expanded vision of j . r . r . tolkien<span class="hljs-string">&#x27;s middle-earth .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>, <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;effective but too-tepid biopic&#x27;</span>}]
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.shuffle(seed=<span class="hljs-number">42</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(ds[<span class="hljs-string">&quot;train&quot;</span>].take(<span class="hljs-number">3</span>))
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&quot;a sports movie with action that&#x27;s exciting on the field and a story you care about off it .&quot;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;at its best , the good girl is a refreshingly adult take on adultery . . .&#x27;</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&quot;sam jones became a very lucky filmmaker the day wilco got dropped from their record label , proving that one man&#x27;s ruin may be another&#x27;s fortune .&quot;</span>}]`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function Y5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3RyZWFtaW5nJTNEVHJ1ZSklMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Rva2VuaXplciUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMmJlcnQtYmFzZS11bmNhc2VkJTIyKSUwQWRlZiUyMGVuY29kZShleGFtcGxlKSUzQSUwQSUyMCUyMCUyMCUyMHJldHVybiUyMHRva2VuaXplcihleGFtcGxlcyU1QiUyMnRleHQlMjIlNUQlMkMlMjB0cnVuY2F0aW9uJTNEVHJ1ZSUyQyUyMHBhZGRpbmclM0QlMjJtYXhfbGVuZ3RoJTIyKSUwQWRzJTIwJTNEJTIwZHMubWFwKGVuY29kZSUyQyUyMGJhdGNoZWQlM0RUcnVlJTJDJTIwcmVtb3ZlX2NvbHVtbnMlM0QlNUIlMjJ0ZXh0JTIyJTVEKSUwQWRzJTIwJTNEJTIwZHMud2l0aF9mb3JtYXQoJTIydG9yY2glMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;bert-base-uncased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">encode</span>(<span class="hljs-params">example</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> tokenizer(examples[<span class="hljs-string">&quot;text&quot;</span>], truncation=<span class="hljs-literal">True</span>, padding=<span class="hljs-string">&quot;max_length&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.<span class="hljs-built_in">map</span>(encode, batched=<span class="hljs-literal">True</span>, remove_columns=[<span class="hljs-string">&quot;text&quot;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.with_format(<span class="hljs-string">&quot;torch&quot;</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function S5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3RyZWFtaW5nJTNEVHJ1ZSklMEFkcyU1QiUyMnRyYWluJTIyJTVELmZlYXR1cmVzJTBBbmV3X2ZlYXR1cmVzJTIwJTNEJTIwZHMlNUIlMjJ0cmFpbiUyMiU1RC5mZWF0dXJlcy5jb3B5KCklMEFuZXdfZmVhdHVyZXMlNUInbGFiZWwnJTVEJTIwJTNEJTIwQ2xhc3NMYWJlbChuYW1lcyUzRCU1QidiYWQnJTJDJTIwJ2dvb2QnJTVEKSUwQW5ld19mZWF0dXJlcyU1Qid0ZXh0JyU1RCUyMCUzRCUyMFZhbHVlKCdsYXJnZV9zdHJpbmcnKSUwQWRzJTIwJTNEJTIwZHMuY2FzdChuZXdfZmVhdHVyZXMpJTBBZHMlNUIlMjJ0cmFpbiUyMiU1RC5mZWF0dXJlcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;neg&#x27;</span>, <span class="hljs-string">&#x27;pos&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}
<span class="hljs-meta">&gt;&gt;&gt; </span>new_features = ds[<span class="hljs-string">&quot;train&quot;</span>].features.copy()
<span class="hljs-meta">&gt;&gt;&gt; </span>new_features[<span class="hljs-string">&#x27;label&#x27;</span>] = ClassLabel(names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>new_features[<span class="hljs-string">&#x27;text&#x27;</span>] = Value(<span class="hljs-string">&#x27;large_string&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.cast(new_features)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;large_string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function A5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3RyZWFtaW5nJTNEVHJ1ZSklMEFkcyU1QiUyMnRyYWluJTIyJTVELmZlYXR1cmVzJTBBZHMlMjAlM0QlMjBkcy5jYXN0X2NvbHVtbignbGFiZWwnJTJDJTIwQ2xhc3NMYWJlbChuYW1lcyUzRCU1QidiYWQnJTJDJTIwJ2dvb2QnJTVEKSklMEFkcyU1QiUyMnRyYWluJTIyJTVELmZlYXR1cmVz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;neg&#x27;</span>, <span class="hljs-string">&#x27;pos&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.cast_column(<span class="hljs-string">&#x27;label&#x27;</span>, ClassLabel(names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>]))
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-string">&quot;train&quot;</span>].features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function P5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3RyZWFtaW5nJTNEVHJ1ZSklMEFkcyUyMCUzRCUyMGRzLnJlbW92ZV9jb2x1bW5zKCUyMmxhYmVsJTIyKSUwQW5leHQoaXRlcihkcyU1QiUyMnRyYWluJTIyJTVEKSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.remove_columns(<span class="hljs-string">&quot;label&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">next</span>(<span class="hljs-built_in">iter</span>(ds[<span class="hljs-string">&quot;train&quot;</span>]))
{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function K5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3RyZWFtaW5nJTNEVHJ1ZSklMEFkcyUyMCUzRCUyMGRzLnJlbmFtZV9jb2x1bW4oJTIydGV4dCUyMiUyQyUyMCUyMm1vdmllX3JldmlldyUyMiklMEFuZXh0KGl0ZXIoZHMlNUIlMjJ0cmFpbiUyMiU1RCkp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.rename_column(<span class="hljs-string">&quot;text&quot;</span>, <span class="hljs-string">&quot;movie_review&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">next</span>(<span class="hljs-built_in">iter</span>(ds[<span class="hljs-string">&quot;train&quot;</span>]))
{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-number">1</span>,
 <span class="hljs-string">&#x27;movie_review&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function O5(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3RyZWFtaW5nJTNEVHJ1ZSklMEFkcyUyMCUzRCUyMGRzLnJlbmFtZV9jb2x1bW5zKCU3QiUyMnRleHQlMjIlM0ElMjAlMjJtb3ZpZV9yZXZpZXclMjIlMkMlMjAlMjJsYWJlbCUyMiUzQSUyMCUyMnJhdGluZyUyMiU3RCklMEFuZXh0KGl0ZXIoZHMlNUIlMjJ0cmFpbiUyMiU1RCkp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.rename_columns({<span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;movie_review&quot;</span>, <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;rating&quot;</span>})
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">next</span>(<span class="hljs-built_in">iter</span>(ds[<span class="hljs-string">&quot;train&quot;</span>]))
{<span class="hljs-string">&#x27;movie_review&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>,
 <span class="hljs-string">&#x27;rating&#x27;</span>: <span class="hljs-number">1</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function ez(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3RyZWFtaW5nJTNEVHJ1ZSklMEFkcyUyMCUzRCUyMGRzLnNlbGVjdCglMjJ0ZXh0JTIyKSUwQW5leHQoaXRlcihkcyU1QiUyMnRyYWluJTIyJTVEKSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.select(<span class="hljs-string">&quot;text&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">next</span>(<span class="hljs-built_in">iter</span>(ds[<span class="hljs-string">&quot;train&quot;</span>]))
{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;the rock is destined to be the 21st century&#x27;</span>s new <span class="hljs-string">&quot; conan &quot;</span> <span class="hljs-keyword">and</span> that he<span class="hljs-string">&#x27;s going to make a splash even greater than arnold schwarzenegger , jean-claud van damme or steven segal .&#x27;</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function tz(w){let t,x=`A <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Sequence">Sequence</a> with a internal dictionary feature will be automatically converted into a dictionary of
lists. This behavior is implemented to have a compatilbity layer with the TensorFlow Datasets library but may be
un-wanted in some cases. If you don’t want this behavior, you can use a python <code>list</code> instead of the
<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Sequence">Sequence</a>.`;return{c(){t=d("p"),t.innerHTML=x},l(l){t=i(l,"P",{"data-svelte-h":!0}),$(t)!=="svelte-1k6twds"&&(t.innerHTML=x)},m(l,s){j(l,t,s)},p:D,d(l){l&&p(t)}}}function sz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiklMEFjb3B5X29mX2ZlYXR1cmVzJTIwJTNEJTIwZHMuZmVhdHVyZXMuY29weSgpJTBBY29weV9vZl9mZWF0dXJlcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>copy_of_features = ds.features.copy()
<span class="hljs-meta">&gt;&gt;&gt; </span>copy_of_features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;neg&#x27;</span>, <span class="hljs-string">&#x27;pos&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function az(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyc3F1YWQlMjIlMkMlMjBzcGxpdCUzRCUyMnRyYWluJTIyKSUwQWRzLmZlYXR1cmVzLmZsYXR0ZW4oKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;squad&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features.flatten()
{<span class="hljs-string">&#x27;answers.answer_start&#x27;</span>: <span class="hljs-type">Sequence</span>(feature=Value(dtype=<span class="hljs-string">&#x27;int32&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>), length=-<span class="hljs-number">1</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;answers.text&#x27;</span>: <span class="hljs-type">Sequence</span>(feature=Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>), length=-<span class="hljs-number">1</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;context&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;id&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;question&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>),
 <span class="hljs-string">&#x27;title&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function nz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"RmVhdHVyZXMuZnJvbV9kaWN0KCU3QidfdHlwZSclM0ElMjAlN0InZHR5cGUnJTNBJTIwJ3N0cmluZyclMkMlMjAnaWQnJTNBJTIwTm9uZSUyQyUyMCdfdHlwZSclM0ElMjAnVmFsdWUnJTdEJTdEKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>Features.from_dict({<span class="hljs-string">&#x27;_type&#x27;</span>: {<span class="hljs-string">&#x27;dtype&#x27;</span>: <span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-string">&#x27;id&#x27;</span>: <span class="hljs-literal">None</span>, <span class="hljs-string">&#x27;_type&#x27;</span>: <span class="hljs-string">&#x27;Value&#x27;</span>}})
{<span class="hljs-string">&#x27;_type&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function rz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRmVhdHVyZXMlMkMlMjBTZXF1ZW5jZSUyQyUyMFZhbHVlJTBBJTIzJTIwbGV0J3MlMjBzYXklMjB3ZSUyMGhhdmUlMjB0byUyMGZlYXR1cmVzJTIwd2l0aCUyMGElMjBkaWZmZXJlbnQlMjBvcmRlciUyMG9mJTIwbmVzdGVkJTIwZmllbGRzJTIwKGZvciUyMGElMjBhbmQlMjBiJTIwZm9yJTIwZXhhbXBsZSklMEFmMSUyMCUzRCUyMEZlYXR1cmVzKCU3QiUyMnJvb3QlMjIlM0ElMjBTZXF1ZW5jZSglN0IlMjJhJTIyJTNBJTIwVmFsdWUoJTIyc3RyaW5nJTIyKSUyQyUyMCUyMmIlMjIlM0ElMjBWYWx1ZSglMjJzdHJpbmclMjIpJTdEKSU3RCklMEFmMiUyMCUzRCUyMEZlYXR1cmVzKCU3QiUyMnJvb3QlMjIlM0ElMjAlN0IlMjJiJTIyJTNBJTIwU2VxdWVuY2UoVmFsdWUoJTIyc3RyaW5nJTIyKSklMkMlMjAlMjJhJTIyJTNBJTIwU2VxdWVuY2UoVmFsdWUoJTIyc3RyaW5nJTIyKSklN0QlN0QpJTBBYXNzZXJ0JTIwZjEudHlwZSUyMCElM0QlMjBmMi50eXBlJTBBJTIzJTIwcmUtb3JkZXJpbmclMjBrZWVwcyUyMHRoZSUyMGJhc2UlMjBzdHJ1Y3R1cmUlMjAoaGVyZSUyMFNlcXVlbmNlJTIwaXMlMjBkZWZpbmVkJTIwYXQlMjB0aGUlMjByb290JTIwbGV2ZWwpJTJDJTIwYnV0JTIwbWFrZSUyMHRoZSUyMGZpZWxkcyUyMG9yZGVyJTIwbWF0Y2glMEFmMS5yZW9yZGVyX2ZpZWxkc19hcyhmMiklMEFhc3NlcnQlMjBmMS5yZW9yZGVyX2ZpZWxkc19hcyhmMikudHlwZSUyMCUzRCUzRCUyMGYyLnR5cGU=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> Features, <span class="hljs-type">Sequence</span>, Value
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># let&#x27;s say we have to features with a different order of nested fields (for a and b for example)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>f1 = Features({<span class="hljs-string">&quot;root&quot;</span>: <span class="hljs-type">Sequence</span>({<span class="hljs-string">&quot;a&quot;</span>: Value(<span class="hljs-string">&quot;string&quot;</span>), <span class="hljs-string">&quot;b&quot;</span>: Value(<span class="hljs-string">&quot;string&quot;</span>)})})
<span class="hljs-meta">&gt;&gt;&gt; </span>f2 = Features({<span class="hljs-string">&quot;root&quot;</span>: {<span class="hljs-string">&quot;b&quot;</span>: <span class="hljs-type">Sequence</span>(Value(<span class="hljs-string">&quot;string&quot;</span>)), <span class="hljs-string">&quot;a&quot;</span>: <span class="hljs-type">Sequence</span>(Value(<span class="hljs-string">&quot;string&quot;</span>))}})
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">assert</span> f1.<span class="hljs-built_in">type</span> != f2.<span class="hljs-built_in">type</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># re-ordering keeps the base structure (here Sequence is defined at the root level), but make the fields order match</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>f1.reorder_fields_as(f2)
{<span class="hljs-string">&#x27;root&#x27;</span>: <span class="hljs-type">Sequence</span>(feature={<span class="hljs-string">&#x27;b&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>), <span class="hljs-string">&#x27;a&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}, length=-<span class="hljs-number">1</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">assert</span> f1.reorder_fields_as(f2).<span class="hljs-built_in">type</span> == f2.<span class="hljs-built_in">type</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function oz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRmVhdHVyZXMlMkMlMjBTZXF1ZW5jZSUyQyUyMFZhbHVlJTJDJTIwQ2xhc3NMYWJlbCUwQWZlYXR1cmVzJTIwJTNEJTIwRmVhdHVyZXMoJTdCJ3Bvc3QnJTNBJTIwU2VxdWVuY2UoZmVhdHVyZSUzRCU3Qid0ZXh0JyUzQSUyMFZhbHVlKGR0eXBlJTNEJ3N0cmluZycpJTJDJTIwJ3Vwdm90ZXMnJTNBJTIwVmFsdWUoZHR5cGUlM0QnaW50MzInKSUyQyUyMCdsYWJlbCclM0ElMjBDbGFzc0xhYmVsKG51bV9jbGFzc2VzJTNEMiUyQyUyMG5hbWVzJTNEJTVCJ2hvdCclMkMlMjAnY29sZCclNUQpJTdEKSU3RCklMEFmZWF0dXJlcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> Features, <span class="hljs-type">Sequence</span>, Value, ClassLabel
<span class="hljs-meta">&gt;&gt;&gt; </span>features = Features({<span class="hljs-string">&#x27;post&#x27;</span>: <span class="hljs-type">Sequence</span>(feature={<span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>), <span class="hljs-string">&#x27;upvotes&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;int32&#x27;</span>), <span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;hot&#x27;</span>, <span class="hljs-string">&#x27;cold&#x27;</span>])})})
<span class="hljs-meta">&gt;&gt;&gt; </span>features
{<span class="hljs-string">&#x27;post&#x27;</span>: <span class="hljs-type">Sequence</span>(feature={<span class="hljs-string">&#x27;text&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;string&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>), <span class="hljs-string">&#x27;upvotes&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;int32&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>), <span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">2</span>, names=[<span class="hljs-string">&#x27;hot&#x27;</span>, <span class="hljs-string">&#x27;cold&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}, length=-<span class="hljs-number">1</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function lz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRmVhdHVyZXMlMEFmZWF0dXJlcyUyMCUzRCUyMEZlYXR1cmVzKCU3QidsYWJlbCclM0ElMjBDbGFzc0xhYmVsKG51bV9jbGFzc2VzJTNEMyUyQyUyMG5hbWVzJTNEJTVCJ2JhZCclMkMlMjAnb2snJTJDJTIwJ2dvb2QnJTVEKSU3RCklMEFmZWF0dXJlcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> Features
<span class="hljs-meta">&gt;&gt;&gt; </span>features = Features({<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">3</span>, names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;ok&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>])})
<span class="hljs-meta">&gt;&gt;&gt; </span>features
{<span class="hljs-string">&#x27;label&#x27;</span>: ClassLabel(num_classes=<span class="hljs-number">3</span>, names=[<span class="hljs-string">&#x27;bad&#x27;</span>, <span class="hljs-string">&#x27;ok&#x27;</span>, <span class="hljs-string">&#x27;good&#x27;</span>], <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function cz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiklMEFkcy5mZWF0dXJlcyU1QiUyMmxhYmVsJTIyJTVELmludDJzdHIoMCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features[<span class="hljs-string">&quot;label&quot;</span>].int2str(<span class="hljs-number">0</span>)
<span class="hljs-string">&#x27;neg&#x27;</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function dz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIycm90dGVuX3RvbWF0b2VzJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiklMEFkcy5mZWF0dXJlcyU1QiUyMmxhYmVsJTIyJTVELnN0cjJpbnQoJ25lZycp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;rotten_tomatoes&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features[<span class="hljs-string">&quot;label&quot;</span>].str2int(<span class="hljs-string">&#x27;neg&#x27;</span>)
<span class="hljs-number">0</span>`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function iz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRmVhdHVyZXMlMEFmZWF0dXJlcyUyMCUzRCUyMEZlYXR1cmVzKCU3QidzdGFycyclM0ElMjBWYWx1ZShkdHlwZSUzRCdpbnQzMicpJTdEKSUwQWZlYXR1cmVz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> Features
<span class="hljs-meta">&gt;&gt;&gt; </span>features = Features({<span class="hljs-string">&#x27;stars&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;int32&#x27;</span>)})
<span class="hljs-meta">&gt;&gt;&gt; </span>features
{<span class="hljs-string">&#x27;stars&#x27;</span>: Value(dtype=<span class="hljs-string">&#x27;int32&#x27;</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function pz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"JTIzJTIwQXQlMjBjb25zdHJ1Y3Rpb24lMjB0aW1lJTNBJTBBZGF0YXNldHMuZmVhdHVyZXMuVHJhbnNsYXRpb24obGFuZ3VhZ2VzJTNEJTVCJ2VuJyUyQyUyMCdmciclMkMlMjAnZGUnJTVEKSUwQSUyMyUyMER1cmluZyUyMGRhdGElMjBnZW5lcmF0aW9uJTNBJTBBeWllbGQlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAnZW4nJTNBJTIwJ3RoZSUyMGNhdCclMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAnZnInJTNBJTIwJ2xlJTIwY2hhdCclMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAnZGUnJTNBJTIwJ2RpZSUyMGthdHplJyUwQSU3RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># At construction time:</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>datasets.features.Translation(languages=[<span class="hljs-string">&#x27;en&#x27;</span>, <span class="hljs-string">&#x27;fr&#x27;</span>, <span class="hljs-string">&#x27;de&#x27;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># During data generation:</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">yield</span> {
<span class="hljs-meta">... </span>        <span class="hljs-string">&#x27;en&#x27;</span>: <span class="hljs-string">&#x27;the cat&#x27;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&#x27;fr&#x27;</span>: <span class="hljs-string">&#x27;le chat&#x27;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&#x27;de&#x27;</span>: <span class="hljs-string">&#x27;die katze&#x27;</span>
<span class="hljs-meta">... </span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function mz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"JTIzJTIwQXQlMjBjb25zdHJ1Y3Rpb24lMjB0aW1lJTNBJTBBZGF0YXNldHMuZmVhdHVyZXMuVHJhbnNsYXRpb25WYXJpYWJsZUxhbmd1YWdlcyhsYW5ndWFnZXMlM0QlNUInZW4nJTJDJTIwJ2ZyJyUyQyUyMCdkZSclNUQpJTBBJTIzJTIwRHVyaW5nJTIwZGF0YSUyMGdlbmVyYXRpb24lM0ElMEF5aWVsZCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCdlbiclM0ElMjAndGhlJTIwY2F0JyUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCdmciclM0ElMjAlNUInbGUlMjBjaGF0JyUyQyUyMCdsYSUyMGNoYXR0ZSUyQyclNUQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAnZGUnJTNBJTIwJ2RpZSUyMGthdHplJyUwQSU3RCUwQSUyMyUyMFRlbnNvciUyMHJldHVybmVkJTIwJTNBJTBBJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJ2xhbmd1YWdlJyUzQSUyMCU1QidlbiclMkMlMjAnZGUnJTJDJTIwJ2ZyJyUyQyUyMCdmciclNUQlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAndHJhbnNsYXRpb24nJTNBJTIwJTVCJ3RoZSUyMGNhdCclMkMlMjAnZGllJTIwa2F0emUnJTJDJTIwJ2xhJTIwY2hhdHRlJyUyQyUyMCdsZSUyMGNoYXQnJTVEJTJDJTBBJTdE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># At construction time:</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>datasets.features.TranslationVariableLanguages(languages=[<span class="hljs-string">&#x27;en&#x27;</span>, <span class="hljs-string">&#x27;fr&#x27;</span>, <span class="hljs-string">&#x27;de&#x27;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># During data generation:</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">yield</span> {
<span class="hljs-meta">... </span>        <span class="hljs-string">&#x27;en&#x27;</span>: <span class="hljs-string">&#x27;the cat&#x27;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&#x27;fr&#x27;</span>: [<span class="hljs-string">&#x27;le chat&#x27;</span>, <span class="hljs-string">&#x27;la chatte,&#x27;</span>]
<span class="hljs-meta">... </span>        <span class="hljs-string">&#x27;de&#x27;</span>: <span class="hljs-string">&#x27;die katze&#x27;</span>
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Tensor returned :</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>{
<span class="hljs-meta">... </span>        <span class="hljs-string">&#x27;language&#x27;</span>: [<span class="hljs-string">&#x27;en&#x27;</span>, <span class="hljs-string">&#x27;de&#x27;</span>, <span class="hljs-string">&#x27;fr&#x27;</span>, <span class="hljs-string">&#x27;fr&#x27;</span>],
<span class="hljs-meta">... </span>        <span class="hljs-string">&#x27;translation&#x27;</span>: [<span class="hljs-string">&#x27;the cat&#x27;</span>, <span class="hljs-string">&#x27;die katze&#x27;</span>, <span class="hljs-string">&#x27;la chatte&#x27;</span>, <span class="hljs-string">&#x27;le chat&#x27;</span>],
<span class="hljs-meta">... </span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function hz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRmVhdHVyZXMlMEFmZWF0dXJlcyUyMCUzRCUyMEZlYXR1cmVzKCU3Qid4JyUzQSUyMEFycmF5MkQoc2hhcGUlM0QoMSUyQyUyMDMpJTJDJTIwZHR5cGUlM0QnaW50MzInKSU3RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> Features
<span class="hljs-meta">&gt;&gt;&gt; </span>features = Features({<span class="hljs-string">&#x27;x&#x27;</span>: Array2D(shape=(<span class="hljs-number">1</span>, <span class="hljs-number">3</span>), dtype=<span class="hljs-string">&#x27;int32&#x27;</span>)})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function gz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRmVhdHVyZXMlMEFmZWF0dXJlcyUyMCUzRCUyMEZlYXR1cmVzKCU3Qid4JyUzQSUyMEFycmF5M0Qoc2hhcGUlM0QoMSUyQyUyMDIlMkMlMjAzKSUyQyUyMGR0eXBlJTNEJ2ludDMyJyklN0Qp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> Features
<span class="hljs-meta">&gt;&gt;&gt; </span>features = Features({<span class="hljs-string">&#x27;x&#x27;</span>: Array3D(shape=(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>), dtype=<span class="hljs-string">&#x27;int32&#x27;</span>)})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function uz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRmVhdHVyZXMlMEFmZWF0dXJlcyUyMCUzRCUyMEZlYXR1cmVzKCU3Qid4JyUzQSUyMEFycmF5NEQoc2hhcGUlM0QoMSUyQyUyMDIlMkMlMjAyJTJDJTIwMyklMkMlMjBkdHlwZSUzRCdpbnQzMicpJTdEKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> Features
<span class="hljs-meta">&gt;&gt;&gt; </span>features = Features({<span class="hljs-string">&#x27;x&#x27;</span>: Array4D(shape=(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>), dtype=<span class="hljs-string">&#x27;int32&#x27;</span>)})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function fz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRmVhdHVyZXMlMEFmZWF0dXJlcyUyMCUzRCUyMEZlYXR1cmVzKCU3Qid4JyUzQSUyMEFycmF5NUQoc2hhcGUlM0QoMSUyQyUyMDIlMkMlMjAyJTJDJTIwMyUyQyUyMDMpJTJDJTIwZHR5cGUlM0QnaW50MzInKSU3RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> Features
<span class="hljs-meta">&gt;&gt;&gt; </span>features = Features({<span class="hljs-string">&#x27;x&#x27;</span>: Array5D(shape=(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>, <span class="hljs-number">3</span>), dtype=<span class="hljs-string">&#x27;int32&#x27;</span>)})`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function bz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTJDJTIwQXVkaW8lMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJQb2x5QUklMkZtaW5kczE0JTIyJTJDJTIwbmFtZSUzRCUyMmVuLVVTJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiklMEFkcyUyMCUzRCUyMGRzLmNhc3RfY29sdW1uKCUyMmF1ZGlvJTIyJTJDJTIwQXVkaW8oc2FtcGxpbmdfcmF0ZSUzRDE2MDAwKSklMEFkcyU1QjAlNUQlNUIlMjJhdWRpbyUyMiU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset, Audio
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;PolyAI/minds14&quot;</span>, name=<span class="hljs-string">&quot;en-US&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.cast_column(<span class="hljs-string">&quot;audio&quot;</span>, Audio(sampling_rate=<span class="hljs-number">16000</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>]
{<span class="hljs-string">&#x27;array&#x27;</span>: array([ <span class="hljs-number">2.3443763e-05</span>,  <span class="hljs-number">2.1729663e-04</span>,  <span class="hljs-number">2.2145823e-04</span>, ...,
     <span class="hljs-number">3.8356509e-05</span>, -<span class="hljs-number">7.3497440e-06</span>, -<span class="hljs-number">2.1754686e-05</span>], dtype=float32),
 <span class="hljs-string">&#x27;path&#x27;</span>: <span class="hljs-string">&#x27;/root/.cache/huggingface/datasets/downloads/extracted/f14948e0e84be638dd7943ac36518a4cf3324e8b7aa331c5ab11541518e9368c/en-US~JOINT_ACCOUNT/602ba55abb1e6d0fbce92065.wav&#x27;</span>,
 <span class="hljs-string">&#x27;sampling_rate&#x27;</span>: <span class="hljs-number">16000</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function _z(w){let t,x="Examples:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTJDJTIwSW1hZ2UlMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJiZWFucyUyMiUyQyUyMHNwbGl0JTNEJTIydHJhaW4lMjIpJTBBZHMuZmVhdHVyZXMlNUIlMjJpbWFnZSUyMiU1RCUwQWRzJTVCMCU1RCU1QiUyMmltYWdlJTIyJTVEJTBBZHMlMjAlM0QlMjBkcy5jYXN0X2NvbHVtbignaW1hZ2UnJTJDJTIwSW1hZ2UoZGVjb2RlJTNERmFsc2UpKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset, Image
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;beans&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds.features[<span class="hljs-string">&quot;image&quot;</span>]
Image(decode=<span class="hljs-literal">True</span>, <span class="hljs-built_in">id</span>=<span class="hljs-literal">None</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;image&quot;</span>]
&lt;PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=500x500 at <span class="hljs-number">0x15E52E7F0</span>&gt;
<span class="hljs-meta">&gt;&gt;&gt; </span>ds = ds.cast_column(<span class="hljs-string">&#x27;image&#x27;</span>, Image(decode=<span class="hljs-literal">False</span>))
{<span class="hljs-string">&#x27;bytes&#x27;</span>: <span class="hljs-literal">None</span>,
 <span class="hljs-string">&#x27;path&#x27;</span>: <span class="hljs-string">&#x27;/root/.cache/huggingface/datasets/downloads/extracted/b0a21163f78769a2cf11f58dfc767fb458fc7cea5c05dccc0144a2c0f0bc1292/train/healthy/healthy_train.85.jpg&#x27;</span>}`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-kvfsh7"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function xz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwTWV0cmljSW5mbyUwQW1ldHJpY19pbmZvJTIwJTNEJTIwTWV0cmljSW5mby5mcm9tX2RpcmVjdG9yeSglMjIlMkZwYXRoJTJGdG8lMkZkaXJlY3RvcnklMkYlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> MetricInfo
<span class="hljs-meta">&gt;&gt;&gt; </span>metric_info = MetricInfo.from_directory(<span class="hljs-string">&quot;/path/to/directory/&quot;</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function $z(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9tZXRyaWMlMEFtZXRyaWMlMjAlM0QlMjBsb2FkX21ldHJpYyglMjJhY2N1cmFjeSUyMiklMEFtZXRyaWMuaW5mby53cml0ZV90b19kaXJlY3RvcnkoJTIyJTJGcGF0aCUyRnRvJTJGZGlyZWN0b3J5JTJGJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_metric
<span class="hljs-meta">&gt;&gt;&gt; </span>metric = load_metric(<span class="hljs-string">&quot;accuracy&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>metric.info.write_to_directory(<span class="hljs-string">&quot;/path/to/directory/&quot;</span>)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function yz(w){let t,x='Use the new library 🤗 Evaluate instead: <a href="https://huggingface.co/docs/evaluate" rel="nofollow">https://huggingface.co/docs/evaluate</a>';return{c(){t=d("p"),t.innerHTML=x},l(l){t=i(l,"P",{"data-svelte-h":!0}),$(t)!=="svelte-uq7is2"&&(t.innerHTML=x)},m(l,s){j(l,t,s)},p:D,d(l){l&&p(t)}}}function jz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9tZXRyaWMlMEFtZXRyaWMlMjAlM0QlMjBsb2FkX21ldHJpYyglMjJhY2N1cmFjeSUyMiklMEFtZXRyaWMuYWRkKHByZWRpY3Rpb25zJTNEbW9kZWxfcHJlZGljdGlvbnMlMkMlMjByZWZlcmVuY2VzJTNEbGFiZWxzKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_metric
<span class="hljs-meta">&gt;&gt;&gt; </span>metric = load_metric(<span class="hljs-string">&quot;accuracy&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>metric.add(predictions=model_predictions, references=labels)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function wz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9tZXRyaWMlMEFtZXRyaWMlMjAlM0QlMjBsb2FkX21ldHJpYyglMjJhY2N1cmFjeSUyMiklMEFtZXRyaWMuYWRkX2JhdGNoKHByZWRpY3Rpb25zJTNEbW9kZWxfcHJlZGljdGlvbiUyQyUyMHJlZmVyZW5jZXMlM0RsYWJlbHMp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_metric
<span class="hljs-meta">&gt;&gt;&gt; </span>metric = load_metric(<span class="hljs-string">&quot;accuracy&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>metric.add_batch(predictions=model_prediction, references=labels)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function vz(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9tZXRyaWMlMEFtZXRyaWMlMjAlM0QlMjBsb2FkX21ldHJpYyglMjJhY2N1cmFjeSUyMiklMEFhY2N1cmFjeSUyMCUzRCUyMG1ldHJpYy5jb21wdXRlKHByZWRpY3Rpb25zJTNEbW9kZWxfcHJlZGljdGlvbiUyQyUyMHJlZmVyZW5jZXMlM0RsYWJlbHMp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_metric
<span class="hljs-meta">&gt;&gt;&gt; </span>metric = load_metric(<span class="hljs-string">&quot;accuracy&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>accuracy = metric.compute(predictions=model_prediction, references=labels)`,wrap:!1}}),{c(){t=d("p"),t.textContent=x,l=r(),u(s.$$.fragment)},l(e){t=i(e,"P",{"data-svelte-h":!0}),$(t)!=="svelte-11lpom8"&&(t.textContent=x),l=o(e),f(s.$$.fragment,e)},m(e,m){j(e,t,m),j(e,l,m),b(s,e,m),c=!0},p:D,i(e){c||(h(s.$$.fragment,e),c=!0)},o(e){g(s.$$.fragment,e),c=!1},d(e){e&&(p(t),p(l)),_(s,e)}}}function Mz(w){let t,x;return t=new C({props:{code:"aW1wb3J0JTIwZGF0YXNldHMlMEFzMyUyMCUzRCUyMGRhdGFzZXRzLmZpbGVzeXN0ZW1zLlMzRmlsZVN5c3RlbShhbm9uJTNEVHJ1ZSklMEFzMy5scygncHVibGljLWRhdGFzZXRzJTJGaW1kYiUyRnRyYWluJyk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> datasets
<span class="hljs-meta">&gt;&gt;&gt; </span>s3 = datasets.filesystems.S3FileSystem(anon=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>s3.ls(<span class="hljs-string">&#x27;public-datasets/imdb/train&#x27;</span>)
[<span class="hljs-string">&#x27;dataset_info.json.json&#x27;</span>,<span class="hljs-string">&#x27;dataset.arrow&#x27;</span>,<span class="hljs-string">&#x27;state.json&#x27;</span>]`,wrap:!1}}),{c(){u(t.$$.fragment)},l(l){f(t.$$.fragment,l)},m(l,s){b(t,l,s),x=!0},p:D,i(l){x||(h(t.$$.fragment,l),x=!0)},o(l){g(t.$$.fragment,l),x=!1},d(l){_(t,l)}}}function kz(w){let t,x;return t=new C({props:{code:"aW1wb3J0JTIwZGF0YXNldHMlMEFzMyUyMCUzRCUyMGRhdGFzZXRzLmZpbGVzeXN0ZW1zLlMzRmlsZVN5c3RlbShrZXklM0Rhd3NfYWNjZXNzX2tleV9pZCUyQyUyMHNlY3JldCUzRGF3c19zZWNyZXRfYWNjZXNzX2tleSklMEFzMy5scygnbXktcHJpdmF0ZS1kYXRhc2V0cyUyRmltZGIlMkZ0cmFpbicp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> datasets
<span class="hljs-meta">&gt;&gt;&gt; </span>s3 = datasets.filesystems.S3FileSystem(key=aws_access_key_id, secret=aws_secret_access_key)
<span class="hljs-meta">&gt;&gt;&gt; </span>s3.ls(<span class="hljs-string">&#x27;my-private-datasets/imdb/train&#x27;</span>)
[<span class="hljs-string">&#x27;dataset_info.json.json&#x27;</span>,<span class="hljs-string">&#x27;dataset.arrow&#x27;</span>,<span class="hljs-string">&#x27;state.json&#x27;</span>]`,wrap:!1}}),{c(){u(t.$$.fragment)},l(l){f(t.$$.fragment,l)},m(l,s){b(t,l,s),x=!0},p:D,i(l){x||(h(t.$$.fragment,l),x=!0)},o(l){g(t.$$.fragment,l),x=!1},d(l){_(t,l)}}}function Jz(w){let t,x;return t=new C({props:{code:"aW1wb3J0JTIwYm90b2NvcmUlMEFmcm9tJTIwZGF0YXNldHMuZmlsZXN5c3RlbXMlMjBpbXBvcnQlMjBTM0ZpbGVzeXN0ZW0lMEElMEFzM19zZXNzaW9uJTIwJTNEJTIwYm90b2NvcmUuc2Vzc2lvbi5TZXNzaW9uKHByb2ZpbGVfbmFtZSUzRCdteV9wcm9maWxlX25hbWUnKSUwQXMzJTIwJTNEJTIwUzNGaWxlU3lzdGVtKHNlc3Npb24lM0RzM19zZXNzaW9uKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> botocore
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets.filesystems <span class="hljs-keyword">import</span> S3Filesystem

<span class="hljs-meta">&gt;&gt;&gt; </span>s3_session = botocore.session.Session(profile_name=<span class="hljs-string">&#x27;my_profile_name&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>s3 = S3FileSystem(session=s3_session)`,wrap:!1}}),{c(){u(t.$$.fragment)},l(l){f(t.$$.fragment,l)},m(l,s){b(t,l,s),x=!0},p:D,i(l){x||(h(t.$$.fragment,l),x=!0)},o(l){g(t.$$.fragment,l),x=!1},d(l){_(t,l)}}}function Tz(w){let t,x;return t=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9mcm9tX2Rpc2slMEFmcm9tJTIwZGF0YXNldHMuZmlsZXN5c3RlbXMlMjBpbXBvcnQlMjBTM0ZpbGVzeXN0ZW0lMEElMEFzMyUyMCUzRCUyMFMzRmlsZVN5c3RlbShrZXklM0Rhd3NfYWNjZXNzX2tleV9pZCUyQyUyMHNlY3JldCUzRGF3c19zZWNyZXRfYWNjZXNzX2tleSklMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9mcm9tX2Rpc2soJ3MzJTNBJTJGJTJGbXktcHJpdmF0ZS1kYXRhc2V0cyUyRmltZGIlMkZ0cmFpbiclMkMlMjBzdG9yYWdlX29wdGlvbnMlM0RzMy5zdG9yYWdlX29wdGlvbnMpJTBBcHJpbnQobGVuKGRhdGFzZXQpKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_from_disk
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets.filesystems <span class="hljs-keyword">import</span> S3Filesystem

<span class="hljs-meta">&gt;&gt;&gt; </span>s3 = S3FileSystem(key=aws_access_key_id, secret=aws_secret_access_key)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_from_disk(<span class="hljs-string">&#x27;s3://my-private-datasets/imdb/train&#x27;</span>, storage_options=s3.storage_options)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(<span class="hljs-built_in">len</span>(dataset))
<span class="hljs-number">25000</span>`,wrap:!1}}),{c(){u(t.$$.fragment)},l(l){f(t.$$.fragment,l)},m(l,s){b(t,l,s),x=!0},p:D,i(l){x||(h(t.$$.fragment,l),x=!0)},o(l){g(t.$$.fragment,l),x=!1},d(l){_(t,l)}}}function Dz(w){let t,x;return t=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMGRhdGFzZXRzLmZpbGVzeXN0ZW1zJTIwaW1wb3J0JTIwUzNGaWxlc3lzdGVtJTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJpbWRiJTIyKSUwQXMzJTIwJTNEJTIwUzNGaWxlU3lzdGVtKGtleSUzRGF3c19hY2Nlc3Nfa2V5X2lkJTJDJTIwc2VjcmV0JTNEYXdzX3NlY3JldF9hY2Nlc3Nfa2V5KSUwQWRhdGFzZXQuc2F2ZV90b19kaXNrKCdzMyUzQSUyRiUyRm15LXByaXZhdGUtZGF0YXNldHMlMkZpbWRiJTJGdHJhaW4nJTJDJTIwc3RvcmFnZV9vcHRpb25zJTNEczMuc3RvcmFnZV9vcHRpb25zKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets.filesystems <span class="hljs-keyword">import</span> S3Filesystem

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;imdb&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>s3 = S3FileSystem(key=aws_access_key_id, secret=aws_secret_access_key)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset.save_to_disk(<span class="hljs-string">&#x27;s3://my-private-datasets/imdb/train&#x27;</span>, storage_options=s3.storage_options)`,wrap:!1}}),{c(){u(t.$$.fragment)},l(l){f(t.$$.fragment,l)},m(l,s){b(t,l,s),x=!0},p:D,i(l){x||(h(t.$$.fragment,l),x=!0)},o(l){g(t.$$.fragment,l),x=!1},d(l){_(t,l)}}}function Iz(w){let t,x,l,s,c,e,m,Q,q,Wc,xy,zh,rC="Information about a dataset.",$y,Gh,oC=`<code>DatasetInfo</code> documents datasets, including its name, version, and features.
See the constructor arguments and properties for a full list.`,yy,Nh,lC="Not all fields are known on construction and may be updated later.",jy,Me,Bc,wy,Xh,cC='Create <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetInfo">DatasetInfo</a> from the JSON file in <code>dataset_info_dir</code>.',vy,Vh,dC=`This function updates all the dynamically generated fields (num_examples,
hash, time of creation,…) of the <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetInfo">DatasetInfo</a>.`,My,qh,iC="This will overwrite all previous metadata.",ky,Kn,Jy,Ot,Qc,Ty,Wh,pC="Write <code>DatasetInfo</code> and license (if present) as JSON files to <code>dataset_info_dir</code>.",Dy,On,o2,Ec,l2,Hc,mC='The base class <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a> implements a Dataset backed by an Apache Arrow table.',c2,J,Lc,Iy,Bh,hC="A Dataset backed by an Arrow table.",Cy,it,Yc,Uy,Qh,gC="Add column to Dataset.",Zy,Sc,Fy,er,Ry,pt,Ac,zy,Eh,uC="Add item to Dataset.",Gy,Pc,Ny,tr,Xy,sr,Kc,Vy,Hh,fC="Instantiate a Dataset backed by an Arrow table at filename.",qy,ar,Oc,Wy,Lh,bC="Instantiate a Dataset backed by an Arrow buffer.",By,ke,ed,Qy,Yh,_C='Convert <code>pandas.DataFrame</code> to a <code>pyarrow.Table</code> to create a <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a>.',Ey,Sh,xC=`The column types in the resulting Arrow Table are inferred from the dtypes of the <code>pandas.Series</code> in the
DataFrame. In the case of non-object Series, the NumPy dtype is translated to its Arrow equivalent. In the
case of <code>object</code>, we need to guess the datatype by looking at the Python objects in this Series.`,Hy,Ah,$C=`Be aware that Series of the <code>object</code> dtype don’t carry enough information to always lead to a meaningful Arrow
type. In the case that we cannot infer a type, e.g. because the DataFrame is of length 0 or the Series only
contains <code>None/nan</code> objects, the type is set to <code>null</code>. This behavior can be avoided by constructing explicit
features and passing it to this function.`,Ly,nr,Yy,rr,td,Sy,Ph,yC='Convert <code>dict</code> to a <code>pyarrow.Table</code> to create a <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a>.',Ay,mt,sd,Py,Kh,jC="Create a Dataset from a generator.",Ky,or,Oy,lr,e1,es,ad,t1,Oh,wC="The Apache Arrow table backing the dataset.",s1,cr,a1,ts,nd,n1,eg,vC="The cache files containing the Apache Arrow table backing the dataset.",r1,dr,o1,ss,rd,l1,tg,MC="Number of columns in the dataset.",c1,ir,d1,as,od,i1,sg,kC='Number of rows in the dataset (same as <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.__len__">Dataset.<strong>len</strong>()</a>).',p1,pr,m1,ns,ld,h1,ag,JC="Names of the columns in the dataset.",g1,mr,u1,rs,cd,f1,ng,TC="Shape of the dataset (number of columns, number of rows).",b1,hr,_1,ht,dd,x1,rg,DC="Return a list of the unique elements in a column.",$1,og,IC="This is implemented in the low-level backend and as such, very fast.",y1,gr,j1,os,id,w1,lg,CC=`Flatten the table.
Each column with a struct type is flattened into one column per struct field.
Other columns are left unchanged.`,v1,ur,M1,ls,pd,k1,cg,UC="Cast the dataset to a new set of features.",J1,fr,T1,cs,md,D1,dg,ZC="Cast column to feature for decoding.",I1,br,C1,gt,hd,U1,ig,FC="Remove one or several column(s) in the dataset and the features associated to them.",Z1,pg,RC=`You can also remove a column using <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.map">map()</a> with <code>remove_columns</code> but the present method
doesn’t copy the data of the remaining columns and is thus faster.`,F1,_r,R1,ds,gd,z1,mg,zC=`Rename a column in the dataset, and move the features associated to the original column under the new column
name.`,G1,xr,N1,is,ud,X1,hg,GC=`Rename several columns in the dataset, and move the features associated to the original columns under
the new column names.`,V1,$r,q1,ps,fd,W1,gg,NC=`Select one or several column(s) in the dataset and the features
associated to them.`,B1,yr,Q1,ms,bd,E1,ug,XC='Casts the given column as <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.ClassLabel">ClassLabel</a> and updates the table.',H1,jr,L1,hs,_d,Y1,fg,VC="Number of rows in the dataset.",S1,wr,A1,gs,xd,P1,bg,qC="Iterate through the examples.",K1,_g,WC=`If a formatting is set with <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.set_format">Dataset.set_format()</a> rows will be returned with the
selected format.`,O1,us,$d,ej,xg,BC="Iterate through the batches of size <em>batch_size</em>.",tj,$g,QC=`If a formatting is set with [<em>~datasets.Dataset.set_format</em>] rows will be returned with the
selected format.`,sj,vr,yd,aj,yg,EC="To be used in a <code>with</code> statement. Set <code>__getitem__</code> return format (type and columns).",nj,Je,jd,rj,jg,HC=`Set <code>__getitem__</code> return format (type and columns). The data formatting is applied on-the-fly.
The format <code>type</code> (for example “numpy”) is used to format batches when using <code>__getitem__</code>.
It’s also possible to use custom transforms for formatting using <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.set_transform">set_transform()</a>.`,oj,wg,LC='It is possible to call <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.map">map()</a> after calling <code>set_format</code>. Since <code>map</code> may add new columns, then the list of formatted columns',lj,Mr,cj,kr,dj,fs,wd,ij,vg,YC=`Set <code>__getitem__</code> return format using this transform. The transform is applied on-the-fly on batches when <code>__getitem__</code> is called.
As <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.set_format">set_format()</a>, this can be reset using <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.reset_format">reset_format()</a>.`,pj,Jr,mj,ut,vd,hj,Mg,SC="Reset <code>__getitem__</code> return format to python objects and all columns.",gj,kg,AC="Same as <code>self.set_format()</code>",uj,Tr,fj,Te,Md,bj,Jg,PC=`Set <code>__getitem__</code> return format (type and columns). The data formatting is applied on-the-fly.
The format <code>type</code> (for example “numpy”) is used to format batches when using <code>__getitem__</code>.`,_j,Tg,KC='It’s also possible to use custom transforms for formatting using <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.with_transform">with_transform()</a>.',xj,Dg,OC='Contrary to <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.set_format">set_format()</a>, <code>with_format</code> returns a new <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a> object.',$j,Dr,yj,De,kd,jj,Ig,eU="Set <code>__getitem__</code> return format using this transform. The transform is applied on-the-fly on batches when <code>__getitem__</code> is called.",wj,Cg,tU='As <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.set_format">set_format()</a>, this can be reset using <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.reset_format">reset_format()</a>.',vj,Ug,sU='Contrary to <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.set_transform">set_transform()</a>, <code>with_transform</code> returns a new <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a> object.',Mj,Ir,kj,Cr,Jd,Jj,Zg,aU="Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).",Tj,ft,Td,Dj,Fg,nU=`Clean up all cache files in the dataset cache directory, excepted the currently used cache file if there is
one.`,Ij,Rg,rU="Be careful when running this command that no other process is currently using other cache files.",Cj,Ur,Uj,Ie,Dd,Zj,zg,oU=`Apply a function to all the examples in the table (individually or in batches) and update the table.
If your function returns a column that already exists, then it overwrites it.`,Fj,Gg,lU="You can specify whether the function should be batched or not with the <code>batched</code> parameter:",Rj,Ng,cU=`<li>If batched is <code>False</code>, then the function takes 1 example in and should return 1 example.
An example is a dictionary, e.g. <code>{&quot;text&quot;: &quot;Hello there !&quot;}</code>.</li> <li>If batched is <code>True</code> and <code>batch_size</code> is 1, then the function takes a batch of 1 example as input and can return a batch with 1 or more examples.
A batch is a dictionary, e.g. a batch of 1 example is <code>{&quot;text&quot;: [&quot;Hello there !&quot;]}</code>.</li> <li>If batched is <code>True</code> and <code>batch_size</code> is <code>n &gt; 1</code>, then the function takes a batch of <code>n</code> examples as input and can return a batch with <code>n</code> examples, or with an arbitrary number of examples.
Note that the last batch may have less than <code>n</code> examples.
A batch is a dictionary, e.g. a batch of <code>n</code> examples is <code>{&quot;text&quot;: [&quot;Hello there !&quot;] * n}</code>.</li>`,zj,Zr,Gj,bs,Id,Nj,Xg,dU=`Apply a filter function to all the elements in the table in batches
and update the table so that the dataset only includes examples according to the filter function.`,Xj,Fr,Vj,_s,Cd,qj,Vg,iU="Create a new dataset with rows selected following the list/array of indices.",Wj,Rr,Bj,xs,Ud,Qj,qg,pU="Create a new dataset sorted according to a single or multiple columns.",Ej,zr,Hj,P,Zd,Lj,Wg,mU="Create a new Dataset where the rows are shuffled.",Yj,Bg,hU=`Currently shuffling uses numpy random generators.
You can either supply a NumPy BitGenerator to use, or a seed to initiate NumPy’s default random generator (PCG64).`,Sj,Qg,gU=`Shuffling takes the list of indices <code>[0:len(my_dataset)]</code> and shuffles it to create an indices mapping.
However as soon as your <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a> has an indices mapping, the speed can become 10x slower.
This is because there is an extra step to get the row index to read using the indices mapping, and most importantly, you aren’t reading contiguous chunks of data anymore.
To restore the speed, you’d need to rewrite the entire dataset on your disk again using <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.flatten_indices">Dataset.flatten_indices()</a>, which removes the indices mapping.`,Aj,Gr,Pj,Eg,uU='In this case, we recommend switching to an <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> and leveraging its fast approximate shuffling method <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset.shuffle">IterableDataset.shuffle()</a>.',Kj,Nr,Oj,Xr,e0,$s,Fd,t0,Hg,fU='Create a new <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a> that skips the first <code>n</code> elements.',s0,Vr,a0,ys,Rd,n0,Lg,bU='Create a new <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a> with only the first <code>n</code> elements.',r0,qr,o0,bt,zd,l0,Yg,_U=`Return a dictionary (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict">datasets.DatasetDict</a>) with two random train and test subsets (<code>train</code> and <code>test</code> <code>Dataset</code> splits).
Splits are created from the dataset according to <code>test_size</code>, <code>train_size</code> and <code>shuffle</code>.`,c0,Sg,xU="This method is similar to scikit-learn <code>train_test_split</code>.",d0,Wr,i0,ie,Gd,p0,Ag,$U="Return the <code>index</code>-nth shard from dataset split into <code>num_shards</code> pieces.",m0,Pg,yU=`This shards deterministically. <code>dset.shard(n, i)</code> will contain all elements of dset whose
index mod <code>n = i</code>.`,h0,Kg,jU=`<code>dset.shard(n, i, contiguous=True)</code> will instead split dset into contiguous chunks,
so it can be easily concatenated back together after processing. If <code>n % i == l</code>, then the
first <code>l</code> shards will have length <code>(n // i) + 1</code>, and the remaining shards will have length <code>(n // i)</code>.
<code>datasets.concatenate([dset.shard(n, i, contiguous=True) for i in range(n)])</code> will return
a dataset with the same order as the original.`,g0,Og,wU=`Be sure to shard before using any randomizing operator (such as <code>shuffle</code>).
It is best if the shard operator is used early in the dataset pipeline.`,u0,Br,f0,js,Nd,b0,eu,vU=`Create a <code>tf.data.Dataset</code> from the underlying Dataset. This <code>tf.data.Dataset</code> will load and collate batches from
the Dataset, and is suitable for passing to methods like <code>model.fit()</code> or <code>model.predict()</code>. The dataset will yield
<code>dicts</code> for both inputs and labels unless the <code>dict</code> would contain only a single key, in which case a raw
<code>tf.Tensor</code> is yielded instead.`,_0,Qr,x0,pe,Xd,$0,tu,MU=`Pushes the dataset to the hub as a Parquet dataset.
The dataset is pushed using HTTP requests and does not need to have neither git or git-lfs installed.`,y0,su,kU=`The resulting Parquet files are self-contained by default. If your dataset contains <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Image">Image</a> or <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Audio">Audio</a>
data, the Parquet files will store the bytes of your images or audio files.
You can disable this by setting <code>embed_external_files</code> to <code>False</code>.`,j0,Er,w0,Hr,v0,Lr,M0,Ce,Vd,k0,au,JU="Saves a dataset to a dataset directory, or in a filesystem using any implementation of <code>fsspec.spec.AbstractFileSystem</code>.",J0,nu,TU='For <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Image">Image</a> and <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Audio">Audio</a> data:',T0,ru,DU=`All the Image() and Audio() data are stored in the arrow files.
If you want to store paths or urls, please use the Value(“string”) type.`,D0,Yr,I0,ws,qd,C0,ou,IU=`Loads a dataset that was previously saved using <code>save_to_disk</code> from a dataset directory, or from a
filesystem using any implementation of <code>fsspec.spec.AbstractFileSystem</code>.`,U0,Sr,Z0,Ar,Wd,F0,lu,CU="Create and cache a new Dataset by flattening the indices mapping.",R0,vs,Bd,z0,cu,UU="Exports the dataset to csv",G0,Pr,N0,Ms,Qd,X0,du,ZU="Returns the dataset as a <code>pandas.DataFrame</code>. Can also return a generator for large datasets.",V0,Kr,q0,ks,Ed,W0,iu,FU="Returns the dataset as a Python dict. Can also return a generator for large datasets.",B0,Or,Q0,_t,Hd,E0,pu,RU="Export the dataset to JSON Lines or JSON.",H0,mu,zU=`The default output format is <a href="https://jsonlines.org/" rel="nofollow">JSON Lines</a>.
To export to <a href="https://www.json.org" rel="nofollow">JSON</a>, pass <code>lines=False</code> argument and the desired <code>orient</code>.`,L0,eo,Y0,Js,Ld,S0,hu,GU="Exports the dataset to parquet",A0,to,P0,Ts,Yd,K0,gu,NU="Exports the dataset to a SQL database.",O0,so,ew,G,Sd,tw,uu,XU=`Get an <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset">datasets.IterableDataset</a> from a map-style <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">datasets.Dataset</a>.
This is equivalent to loading a dataset in streaming mode with <a href="/docs/datasets/pr_6981/en/package_reference/loading_methods#datasets.load_dataset">datasets.load_dataset()</a>, but much faster since the data is streamed from local files.`,sw,fu,VU=`Contrary to map-style datasets, iterable datasets are lazy and can only be iterated over (e.g. using a for loop).
Since they are read sequentially in training loops, iterable datasets are much faster than map-style datasets.
All the transformations applied to iterable datasets like filtering or processing are done on-the-fly when you start iterating over the dataset.`,aw,bu,qU=`Still, it is possible to shuffle an iterable dataset using <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset.shuffle">datasets.IterableDataset.shuffle()</a>.
This is a fast approximate shuffling that works best if you have multiple shards and if you specify a buffer size that is big enough.`,nw,_u,WU=`To get the best speed performance, make sure your dataset doesn’t have an indices mapping.
If this is the case, the data are not read contiguously, which can be slow sometimes.
You can use <code>ds = ds.flatten_indices()</code> to write your dataset in contiguous chunks of data and have optimal speed before switching to an iterable dataset.`,rw,xu,BU="Example:",ow,ao,lw,no,cw,ro,dw,oo,iw,lo,pw,$u,QU="In a distributed setup like PyTorch DDP with a PyTorch DataLoader and shuffling",mw,co,hw,io,gw,uw,xt,Ad,fw,yu,EU=`Add a dense index using Faiss for fast retrieval.
By default the index is done over the vectors of the specified column.
You can specify <code>device</code> if you want to run it on GPU (<code>device</code> must be the GPU index).
You can find more information about Faiss here:`,bw,ju,HU='<li>For <a href="https://github.com/facebookresearch/faiss/wiki/The-index-factory" rel="nofollow">string factory</a></li>',_w,po,xw,Ds,Pd,$w,wu,LU=`Add a dense index using Faiss for fast retrieval.
The index is created using the vectors of <code>external_arrays</code>.
You can specify <code>device</code> if you want to run it on GPU (<code>device</code> must be the GPU index).
You can find more information about Faiss here:`,yw,vu,YU='<li>For <a href="https://github.com/facebookresearch/faiss/wiki/The-index-factory" rel="nofollow">string factory</a></li>',jw,mo,Kd,ww,Mu,SU="Save a FaissIndex on disk.",vw,Is,Od,Mw,ku,AU="Load a FaissIndex from disk.",kw,Ju,PU=`If you want to do additional configurations, you can have access to the faiss index object by doing
<code>.get_index(index_name).faiss_index</code> to make it fit your needs.`,Jw,Cs,ei,Tw,Tu,KU="Add a text index using ElasticSearch for fast retrieval. This is done in-place.",Dw,ho,Iw,go,ti,Cw,Du,OU="Load an existing text index using ElasticSearch for fast retrieval.",Uw,uo,si,Zw,Iu,eZ="List the <code>colindex_nameumns</code>/identifiers of all the attached indexes.",Fw,fo,ai,Rw,Cu,tZ="List the <code>index_name</code>/identifiers of all the attached indexes.",zw,bo,ni,Gw,Uu,sZ="Drop the index with the specified column.",Nw,_o,ri,Xw,Zu,aZ="Find the nearest examples indices in the dataset to the query.",Vw,xo,oi,qw,Fu,nZ="Find the nearest examples indices in the dataset to the query.",Ww,$o,li,Bw,Ru,rZ="Find the nearest examples in the dataset to the query.",Qw,yo,ci,Ew,zu,oZ="Find the nearest examples in the dataset to the query.",Hw,jo,di,Lw,Gu,lZ='<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetInfo">DatasetInfo</a> object containing all the metadata in the dataset.',Yw,wo,ii,Sw,Nu,cZ='<a href="/docs/datasets/pr_6981/en/package_reference/builder_classes#datasets.NamedSplit">NamedSplit</a> object corresponding to a named dataset split.',Aw,Xu,pi,Pw,Vu,mi,Kw,qu,hi,Ow,Wu,gi,ev,Bu,ui,tv,Qu,fi,sv,Eu,bi,av,Hu,_i,nv,Lu,xi,rv,Yu,$i,ov,Su,yi,lv,Au,ji,cv,Pu,wi,dv,Us,vi,iv,Ku,dZ="Create Dataset from CSV file(s).",pv,vo,mv,Zs,Mi,hv,Ou,iZ="Create Dataset from JSON or JSON Lines file(s).",gv,Mo,uv,Fs,ki,fv,ef,pZ="Create Dataset from Parquet file(s).",bv,ko,_v,Rs,Ji,xv,tf,mZ="Create Dataset from text file(s).",$v,Jo,yv,$t,Ti,jv,sf,hZ="Create Dataset from SQL query or database table.",wv,To,vv,Do,Mv,zs,Di,kv,af,gZ='Prepare a dataset for the given task by casting the dataset’s <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a> to standardized column names and types as detailed in <a href="./task_templates"><code>datasets.tasks</code></a>.',Jv,nf,uZ="Casts <code>datasets.DatasetInfo.features</code> according to a task-specific schema. Intended for single-use only, so all task templates are removed from <code>datasets.DatasetInfo.task_templates</code> after casting.",Tv,Gs,Ii,Dv,rf,fZ=`Align the dataset’s label ID and label name mapping to match an input <code>label2id</code> mapping.
This is useful when you want to ensure that a model’s predicted labels are aligned with the dataset.
The alignment in done using the lowercase label names.`,Iv,Io,d2,Ct,Ci,Cv,of,bZ='Converts a list of <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a> with the same schema into a single <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a>.',Uv,Co,i2,L,Ui,Zv,lf,_Z=`Interleave several datasets (sources) into a single dataset.
The new dataset is constructed by alternating between the sources to get the examples.`,Fv,cf,xZ='You can use this function on a list of <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a> objects, or on a list of <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> objects.',Rv,df,$Z="<li>If <code>probabilities</code> is <code>None</code> (default) the new dataset is constructed by cycling between each source to get the examples.</li> <li>If <code>probabilities</code> is not <code>None</code>, the new dataset is constructed by getting examples from a random source at a time according to the provided probabilities.</li>",zv,pf,yZ=`The resulting dataset ends when one of the source datasets runs out of examples except when <code>oversampling</code> is <code>True</code>,
in which case, the resulting dataset ends when all datasets have ran out of examples at least one time.`,Gv,mf,jZ="Note for iterable datasets:",Nv,hf,wZ=`In a distributed setup or in PyTorch DataLoader workers, the stopping strategy is applied per process.
Therefore the “first_exhausted” strategy on an sharded iterable dataset can generate less samples in total (up to 1 missing sample per subdataset per worker).`,Xv,gf,vZ="Example:",Vv,Uo,p2,oe,Zi,qv,uf,MZ="Split a dataset for the node at rank <code>rank</code> in a pool of nodes of size <code>world_size</code>.",Wv,ff,kZ="For map-style datasets:",Bv,bf,JZ=`Each node is assigned a chunk of data, e.g. rank 0 is given the first chunk of the dataset.
To maximize data loading throughput, chunks are made of contiguous data on disk if possible.`,Qv,_f,TZ="For iterable datasets:",Ev,xf,DZ=`If the dataset has a number of shards that is a factor of <code>world_size</code> (i.e. if <code>dataset.n_shards % world_size == 0</code>),
then the shards are evenly assigned across the nodes, which is the most optimized.
Otherwise, each node keeps 1 example out of <code>world_size</code>, skipping the other examples.`,m2,fe,Fi,Hv,$f,IZ=`When applying transforms on a dataset, the data are stored in cache files.
The caching mechanism allows to reload an existing cache file if it’s already been computed.`,Lv,yf,CZ=`Reloading a dataset is possible since the cache files are named using the dataset fingerprint, which is updated
after each transform.`,Yv,jf,UZ=`If disabled, the library will no longer reload cached datasets files when applying transforms to the datasets.
More precisely, if the caching is disabled:`,Sv,wf,ZZ=`<li>cache files are always recreated</li> <li>cache files are written to a temporary directory that is deleted when session closes</li> <li>cache files are named using a random hash instead of the dataset fingerprint</li> <li>use <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.save_to_disk">save_to_disk()</a> to save a transformed dataset or it will be deleted when session closes</li> <li>caching doesn’t affect <a href="/docs/datasets/pr_6981/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a>. If you want to regenerate a dataset from scratch you should use
the <code>download_mode</code> parameter in <a href="/docs/datasets/pr_6981/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a>.</li>`,h2,be,Ri,Av,vf,FZ=`When applying transforms on a dataset, the data are stored in cache files.
The caching mechanism allows to reload an existing cache file if it’s already been computed.`,Pv,Mf,RZ=`Reloading a dataset is possible since the cache files are named using the dataset fingerprint, which is updated
after each transform.`,Kv,kf,zZ=`If disabled, the library will no longer reload cached datasets files when applying transforms to the datasets.
More precisely, if the caching is disabled:`,Ov,Jf,GZ=`<li>cache files are always recreated</li> <li>cache files are written to a temporary directory that is deleted when session closes</li> <li>cache files are named using a random hash instead of the dataset fingerprint</li> <li>use <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.save_to_disk">save_to_disk()</a> to save a transformed dataset or it will be deleted when session closes</li> <li>caching doesn’t affect <a href="/docs/datasets/pr_6981/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a>. If you want to regenerate a dataset from scratch you should use
the <code>download_mode</code> parameter in <a href="/docs/datasets/pr_6981/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a>.</li>`,g2,_e,zi,eM,Tf,NZ=`When applying transforms on a dataset, the data are stored in cache files.
The caching mechanism allows to reload an existing cache file if it’s already been computed.`,tM,Df,XZ=`Reloading a dataset is possible since the cache files are named using the dataset fingerprint, which is updated
after each transform.`,sM,If,VZ=`If disabled, the library will no longer reload cached datasets files when applying transforms to the datasets.
More precisely, if the caching is disabled:`,aM,Cf,qZ=`<li>cache files are always recreated</li> <li>cache files are written to a temporary directory that is deleted when session closes</li> <li>cache files are named using a random hash instead of the dataset fingerprint</li> <li>use <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.save_to_disk">save_to_disk()</a>] to save a transformed dataset or it will be deleted when session closes</li> <li>caching doesn’t affect <a href="/docs/datasets/pr_6981/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a>. If you want to regenerate a dataset from scratch you should use
the <code>download_mode</code> parameter in <a href="/docs/datasets/pr_6981/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a>.</li>`,u2,Gi,f2,Ni,WZ=`Dictionary with split names as keys (‘train’, ‘test’ for example), and <code>Dataset</code> objects as values.
It also has dataset transform methods like map or filter, to process all the splits at once.`,b2,U,Xi,nM,Uf,BZ="A dictionary (dict of str: datasets.Dataset) with dataset transforms methods (map, filter, etc.)",rM,Ns,Vi,oM,Zf,QZ="The Apache Arrow tables backing each split.",lM,Zo,cM,Xs,qi,dM,Ff,EZ="The cache files containing the Apache Arrow table backing each split.",iM,Fo,pM,Vs,Wi,mM,Rf,HZ="Number of columns in each split of the dataset.",hM,Ro,gM,qs,Bi,uM,zf,LZ="Number of rows in each split of the dataset.",fM,zo,bM,Ws,Qi,_M,Gf,YZ="Names of the columns in each split of the dataset.",xM,Go,$M,Bs,Ei,yM,Nf,SZ="Shape of each split of the dataset (number of rows, number of columns).",jM,No,wM,yt,Hi,vM,Xf,AZ="Return a list of the unique elements in a column for each split.",MM,Vf,PZ="This is implemented in the low-level backend and as such, very fast.",kM,Xo,JM,Qs,Li,TM,qf,KZ=`Clean up all cache files in the dataset cache directory, excepted the currently used cache file if there is one.
Be careful when running this command that no other process is currently using other cache files.`,DM,Vo,IM,Es,Yi,CM,Wf,OZ=`Apply a function to all the elements in the table (individually or in batches)
and update the table (if function does updated examples).
The transformation is applied to all the datasets of the dataset dictionary.`,UM,qo,ZM,Hs,Si,FM,Bf,e9=`Apply a filter function to all the elements in the table in batches
and update the table so that the dataset only includes examples according to the filter function.
The transformation is applied to all the datasets of the dataset dictionary.`,RM,Wo,zM,Ls,Ai,GM,Qf,t9="Create a new dataset sorted according to a single or multiple columns.",NM,Bo,XM,Ue,Pi,VM,Ef,s9="Create a new Dataset where the rows are shuffled.",qM,Hf,a9="The transformation is applied to all the datasets of the dataset dictionary.",WM,Lf,n9=`Currently shuffling uses numpy random generators.
You can either supply a NumPy BitGenerator to use, or a seed to initiate NumPy’s default random generator (PCG64).`,BM,Qo,QM,Ze,Ki,EM,Yf,r9=`Set <code>__getitem__</code> return format (type and columns).
The format is set for every dataset in the dataset dictionary.`,HM,Sf,o9=`It is possible to call <code>map</code> after calling <code>set_format</code>. Since <code>map</code> may add new columns, then the list of formatted columns
gets updated. In this case, if you apply <code>map</code> on a dataset to add a new column, then this column will be formatted:`,LM,Af,l9="<code>new formatted columns = (all columns - previously unformatted columns)</code>",YM,Eo,SM,jt,Oi,AM,Pf,c9=`Reset <code>__getitem__</code> return format to python objects and all columns.
The transformation is applied to all the datasets of the dataset dictionary.`,PM,Kf,d9="Same as <code>self.set_format()</code>",KM,Ho,OM,Lo,ep,ek,Of,i9=`To be used in a <code>with</code> statement. Set <code>__getitem__</code> return format (type and columns).
The transformation is applied to all the datasets of the dataset dictionary.`,tk,Fe,tp,sk,eb,p9=`Set <code>__getitem__</code> return format (type and columns). The data formatting is applied on-the-fly.
The format <code>type</code> (for example “numpy”) is used to format batches when using <code>__getitem__</code>.
The format is set for every dataset in the dataset dictionary.`,ak,tb,m9='It’s also possible to use custom transforms for formatting using <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.with_transform">with_transform()</a>.',nk,sb,h9='Contrary to <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict.set_format">set_format()</a>, <code>with_format</code> returns a new <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> object with new <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a> objects.',rk,Yo,ok,Re,sp,lk,ab,g9=`Set <code>__getitem__</code> return format using this transform. The transform is applied on-the-fly on batches when <code>__getitem__</code> is called.
The transform is set for every dataset in the dataset dictionary`,ck,nb,u9='As <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.set_format">set_format()</a>, this can be reset using <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.reset_format">reset_format()</a>.',dk,rb,f9='Contrary to <code>set_transform()</code>, <code>with_transform</code> returns a new <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> object with new <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a> objects.',ik,So,pk,Ys,ap,mk,ob,b9=`Flatten the Apache Arrow Table of each split (nested features are flatten).
Each column with a struct type is flattened into one column per struct field.
Other columns are left unchanged.`,hk,Ao,gk,Ss,np,uk,lb,_9=`Cast the dataset to a new set of features.
The transformation is applied to all the datasets of the dataset dictionary.`,fk,Po,bk,As,rp,_k,cb,x9="Cast column to feature for decoding.",xk,Ko,$k,ze,op,yk,db,$9=`Remove one or several column(s) from each split in the dataset
and the features associated to the column(s).`,jk,ib,y9="The transformation is applied to all the splits of the dataset dictionary.",wk,pb,j9=`You can also remove a column using <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict.map">map()</a> with <code>remove_columns</code> but the present method
doesn’t copy the data of the remaining columns and is thus faster.`,vk,Oo,Mk,Ge,lp,kk,mb,w9=`Rename a column in the dataset and move the features associated to the original column under the new column name.
The transformation is applied to all the datasets of the dataset dictionary.`,Jk,hb,v9='You can also rename a column using <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict.map">map()</a> with <code>remove_columns</code> but the present method:',Tk,gb,M9="<li>takes care of moving the original features under the new column name.</li> <li>doesn’t copy the data to a new dataset and is thus much faster.</li>",Dk,el,Ik,Ps,cp,Ck,ub,k9=`Rename several columns in the dataset, and move the features associated to the original columns under
the new column names.
The transformation is applied to all the datasets of the dataset dictionary.`,Uk,tl,Zk,wt,dp,Fk,fb,J9=`Select one or several column(s) from each split in the dataset and
the features associated to the column(s).`,Rk,bb,T9=`The transformation is applied to all the splits of the dataset
dictionary.`,zk,sl,Gk,Ks,ip,Nk,_b,D9='Casts the given column as <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.ClassLabel">ClassLabel</a> and updates the tables.',Xk,al,Vk,me,pp,qk,xb,I9=`Pushes the <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> to the hub as a Parquet dataset.
The <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> is pushed using HTTP requests and does not need to have neither git or git-lfs installed.`,Wk,$b,C9="Each dataset split will be pushed independently. The pushed dataset will keep the original split names.",Bk,yb,U9=`The resulting Parquet files are self-contained by default: if your dataset contains <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Image">Image</a> or <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Audio">Audio</a>
data, the Parquet files will store the bytes of your images or audio files.
You can disable this by setting <code>embed_external_files</code> to False.`,Qk,nl,Ek,rl,Hk,Ne,mp,Lk,jb,Z9="Saves a dataset dict to a filesystem using <code>fsspec.spec.AbstractFileSystem</code>.",Yk,wb,F9='For <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Image">Image</a> and <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Audio">Audio</a> data:',Sk,vb,R9=`All the Image() and Audio() data are stored in the arrow files.
If you want to store paths or urls, please use the Value(“string”) type.`,Ak,ol,Pk,Os,hp,Kk,Mb,z9="Load a dataset that was previously saved using <code>save_to_disk</code> from a filesystem using <code>fsspec.spec.AbstractFileSystem</code>.",Ok,ll,eJ,ea,gp,tJ,kb,G9='Create <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> from CSV file(s).',sJ,cl,aJ,ta,up,nJ,Jb,N9='Create <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> from JSON Lines file(s).',rJ,dl,oJ,sa,fp,lJ,Tb,X9='Create <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> from Parquet file(s).',cJ,il,dJ,aa,bp,iJ,Db,V9='Create <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> from text file(s).',pJ,pl,mJ,na,_p,hJ,Ib,q9='Prepare a dataset for the given task by casting the dataset’s <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a> to standardized column names and types as detailed in <a href="./task_templates"><code>datasets.tasks</code></a>.',gJ,Cb,W9="Casts <code>datasets.DatasetInfo.features</code> according to a task-specific schema. Intended for single-use only, so all task templates are removed from <code>datasets.DatasetInfo.task_templates</code> after casting.",_2,Ub,x2,xp,$2,$p,B9='The base class <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> implements an iterable Dataset backed by python generators.',y2,F,yp,uJ,Zb,Q9="A Dataset backed by an iterable.",fJ,vt,jp,bJ,Fb,E9="Create an Iterable Dataset from a generator.",_J,ml,xJ,hl,$J,ra,wp,yJ,Rb,H9=`Remove one or several column(s) in the dataset and the features associated to them.
The removal is done on-the-fly on the examples when iterating over the dataset.`,jJ,gl,wJ,oa,vp,vJ,zb,L9=`Select one or several column(s) in the dataset and the features
associated to them. The selection is done on-the-fly on the examples
when iterating over the dataset.`,MJ,ul,kJ,la,Mp,JJ,Gb,Y9="Cast column to feature for decoding.",TJ,fl,DJ,ca,kp,IJ,Nb,S9="Cast the dataset to a new set of features.",CJ,bl,UJ,Xb,Jp,ZJ,_l,Tp,FJ,Vb,A9="Iterate through the batches of size <em>batch_size</em>.",RJ,Xe,Dp,zJ,qb,P9=`Apply a function to all the examples in the iterable dataset (individually or in batches) and update them.
If your function returns a column that already exists, then it overwrites it.
The function is applied on-the-fly on the examples when iterating over the dataset.`,GJ,Wb,K9="You can specify whether the function should be batched or not with the <code>batched</code> parameter:",NJ,Bb,O9=`<li>If batched is <code>False</code>, then the function takes 1 example in and should return 1 example.
An example is a dictionary, e.g. <code>{&quot;text&quot;: &quot;Hello there !&quot;}</code>.</li> <li>If batched is <code>True</code> and <code>batch_size</code> is 1, then the function takes a batch of 1 example as input and can return a batch with 1 or more examples.
A batch is a dictionary, e.g. a batch of 1 example is {“text”: [“Hello there !”]}.</li> <li>If batched is <code>True</code> and <code>batch_size</code> is <code>n</code> &gt; 1, then the function takes a batch of <code>n</code> examples as input and can return a batch with <code>n</code> examples, or with an arbitrary number of examples.
Note that the last batch may have less than <code>n</code> examples.
A batch is a dictionary, e.g. a batch of <code>n</code> examples is <code>{&quot;text&quot;: [&quot;Hello there !&quot;] * n}</code>.</li>`,XJ,xl,VJ,da,Ip,qJ,Qb,e4=`Rename a column in the dataset, and move the features associated to the original column under the new column
name.`,WJ,$l,BJ,ia,Cp,QJ,Eb,t4=`Apply a filter function to all the elements so that the dataset only includes examples according to the filter function.
The filtering is done on-the-fly when iterating over the dataset.`,EJ,yl,HJ,he,Up,LJ,Hb,s4="Randomly shuffles the elements of this dataset.",YJ,Lb,a4=`This dataset fills a buffer with <code>buffer_size</code> elements, then randomly samples elements from this buffer,
replacing the selected elements with new elements. For perfect shuffling, a buffer size greater than or
equal to the full size of the dataset is required.`,SJ,Yb,n4=`For instance, if your dataset contains 10,000 elements but <code>buffer_size</code> is set to 1000, then <code>shuffle</code> will
initially select a random element from only the first 1000 elements in the buffer. Once an element is
selected, its space in the buffer is replaced by the next (i.e. 1,001-st) element,
maintaining the 1000 element buffer.`,AJ,Sb,r4=`If the dataset is made of several shards, it also does shuffle the order of the shards.
However if the order has been fixed by using <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset.skip">skip()</a> or <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset.take">take()</a>
then the order of the shards is kept unchanged.`,PJ,jl,KJ,pa,Zp,OJ,Ab,o4='Create a new <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> that skips the first <code>n</code> elements.',eT,wl,tT,ma,Fp,sT,Pb,l4='Create a new <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> with only the first <code>n</code> elements.',aT,vl,nT,ae,Rp,rT,Kb,c4=`Load the state_dict of the dataset.
The iteration will restart at the next example from when the state was saved.`,oT,Ob,d4="Resuming returns exactly where the checkpoint was saved except in two cases:",lT,e_,i4="<li>examples from shuffle buffers are lost when resuming and the buffers are refilled with new data</li> <li>combinations of <code>.with_format(arrow)</code> and batched <code>.map()</code> may skip one batch.</li>",cT,Ml,dT,kl,iT,Jl,pT,ne,zp,mT,t_,p4=`Get the current state_dict of the dataset.
It corresponds to the state at the latest example it yielded.`,hT,s_,m4="Resuming returns exactly where the checkpoint was saved except in two cases:",gT,a_,h4="<li>examples from shuffle buffers are lost when resuming and the buffers are refilled with new data</li> <li>combinations of <code>.with_format(arrow)</code> and batched <code>.map()</code> may skip one batch.</li>",uT,Tl,fT,Dl,bT,Il,_T,Cl,Gp,xT,n_,g4='<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetInfo">DatasetInfo</a> object containing all the metadata in the dataset.',$T,Ul,Np,yT,r_,u4='<a href="/docs/datasets/pr_6981/en/package_reference/builder_classes#datasets.NamedSplit">NamedSplit</a> object corresponding to a named dataset split.',jT,o_,Xp,wT,l_,Vp,vT,c_,qp,MT,d_,Wp,kT,i_,Bp,JT,p_,Qp,TT,m_,Ep,DT,h_,Hp,IT,g_,Lp,CT,u_,Yp,UT,f_,Sp,ZT,b_,Ap,FT,__,Pp,j2,Kp,w2,Op,f4="Dictionary with split names as keys (‘train’, ‘test’ for example), and <code>IterableDataset</code> objects as values.",v2,B,em,RT,Ve,tm,zT,x_,b4=`Apply a function to all the examples in the iterable dataset (individually or in batches) and update them.
If your function returns a column that already exists, then it overwrites it.
The function is applied on-the-fly on the examples when iterating over the dataset.
The transformation is applied to all the datasets of the dataset dictionary.`,GT,$_,_4="You can specify whether the function should be batched or not with the <code>batched</code> parameter:",NT,y_,x4=`<li>If batched is <code>False</code>, then the function takes 1 example in and should return 1 example.
An example is a dictionary, e.g. <code>{&quot;text&quot;: &quot;Hello there !&quot;}</code>.</li> <li>If batched is <code>True</code> and <code>batch_size</code> is 1, then the function takes a batch of 1 example as input and can return a batch with 1 or more examples.
A batch is a dictionary, e.g. a batch of 1 example is <code>{&quot;text&quot;: [&quot;Hello there !&quot;]}</code>.</li> <li>If batched is <code>True</code> and <code>batch_size</code> is <code>n</code> &gt; 1, then the function takes a batch of <code>n</code> examples as input and can return a batch with <code>n</code> examples, or with an arbitrary number of examples.
Note that the last batch may have less than <code>n</code> examples.
A batch is a dictionary, e.g. a batch of <code>n</code> examples is <code>{&quot;text&quot;: [&quot;Hello there !&quot;] * n}</code>.</li>`,XT,Zl,VT,ha,sm,qT,j_,$4=`Apply a filter function to all the elements so that the dataset only includes examples according to the filter function.
The filtering is done on-the-fly when iterating over the dataset.
The filtering is applied to all the datasets of the dataset dictionary.`,WT,Fl,BT,ge,am,QT,w_,y4=`Randomly shuffles the elements of this dataset.
The shuffling is applied to all the datasets of the dataset dictionary.`,ET,v_,j4=`This dataset fills a buffer with buffer_size elements, then randomly samples elements from this buffer,
replacing the selected elements with new elements. For perfect shuffling, a buffer size greater than or
equal to the full size of the dataset is required.`,HT,M_,w4=`For instance, if your dataset contains 10,000 elements but <code>buffer_size</code> is set to 1000, then <code>shuffle</code> will
initially select a random element from only the first 1000 elements in the buffer. Once an element is
selected, its space in the buffer is replaced by the next (i.e. 1,001-st) element,
maintaining the 1000 element buffer.`,LT,k_,v4=`If the dataset is made of several shards, it also does <code>shuffle</code> the order of the shards.
However if the order has been fixed by using <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset.skip">skip()</a> or <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset.take">take()</a>
then the order of the shards is kept unchanged.`,YT,Rl,ST,ga,nm,AT,J_,M4=`Return a dataset with the specified format.
This method only supports the “torch” format for now.
The format is set to all the datasets of the dataset dictionary.`,PT,zl,KT,ua,rm,OT,T_,k4=`Cast the dataset to a new set of features.
The type casting is applied to all the datasets of the dataset dictionary.`,eD,Gl,tD,fa,om,sD,D_,J4=`Cast column to feature for decoding.
The type casting is applied to all the datasets of the dataset dictionary.`,aD,Nl,nD,ba,lm,rD,I_,T4=`Remove one or several column(s) in the dataset and the features associated to them.
The removal is done on-the-fly on the examples when iterating over the dataset.
The removal is applied to all the datasets of the dataset dictionary.`,oD,Xl,lD,_a,cm,cD,C_,D4=`Rename a column in the dataset, and move the features associated to the original column under the new column
name.
The renaming is applied to all the datasets of the dataset dictionary.`,dD,Vl,iD,xa,dm,pD,U_,I4=`Rename several columns in the dataset, and move the features associated to the original columns under
the new column names.
The renaming is applied to all the datasets of the dataset dictionary.`,mD,ql,hD,$a,im,gD,Z_,C4=`Select one or several column(s) in the dataset and the features
associated to them. The selection is done on-the-fly on the examples
when iterating over the dataset. The selection is applied to all the
datasets of the dataset dictionary.`,uD,Wl,M2,pm,k2,z,mm,fD,F_,U4="A special dictionary that defines the internal structure of a dataset.",bD,R_,Z4=`Instantiated with a dictionary of type <code>dict[str, FieldType]</code>, where keys are the desired column names,
and values are the type of that column.`,_D,z_,F4="<code>FieldType</code> can be one of the following:",xD,ee,G_,R4='<p>a <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Value">Value</a> feature specifies a single typed value, e.g. <code>int64</code> or <code>string</code>.</p>',$D,N_,z4=`<p>a <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.ClassLabel">ClassLabel</a> feature specifies a field with a predefined set of classes which can have labels
associated to them and will be stored as integers in the dataset.</p>`,yD,X_,G4=`<p>a python <code>dict</code> which specifies that the field is a nested field containing a mapping of sub-fields to sub-fields
features. It’s possible to have nested fields of nested fields in an arbitrary manner.</p>`,jD,hm,V_,N4=`a python <code>list</code> or a <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Sequence">Sequence</a> specifies that the field contains a list of objects. The python
<code>list</code> or <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Sequence">Sequence</a> should be provided with a single sub-feature as an example of the feature
type hosted in this list.`,wD,Bl,vD,q_,X4='<p>a <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Array2D">Array2D</a>, <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Array3D">Array3D</a>, <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Array4D">Array4D</a> or <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Array5D">Array5D</a> feature for multidimensional arrays.</p>',MD,W_,V4=`<p>an <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Audio">Audio</a> feature to store the absolute path to an audio file or a dictionary with the relative path
to an audio file (“path” key) and its bytes content (“bytes” key). This feature extracts the audio data.</p>`,kD,B_,q4=`<p>an <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Image">Image</a> feature to store the absolute path to an image file, an <code>np.ndarray</code> object, a <code>PIL.Image.Image</code> object
or a dictionary with the relative path to an image file (“path” key) and its bytes content (“bytes” key). This feature extracts the image data.</p>`,JD,Q_,W4='<p><a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Translation">Translation</a> and <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.TranslationVariableLanguages">TranslationVariableLanguages</a>, the two features specific to Machine Translation.</p>',TD,ya,gm,DD,E_,B4='Make a deep copy of <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>.',ID,Ql,CD,El,um,UD,H_,Q4="Decode batch with custom feature decoding.",ZD,Hl,fm,FD,L_,E4="Decode column with custom feature decoding.",RD,Ll,bm,zD,Y_,H4="Decode example with custom feature decoding.",GD,Yl,_m,ND,S_,L4="Encode batch into a format for Arrow.",XD,Sl,xm,VD,A_,Y4="Encode column into a format for Arrow.",qD,Al,$m,WD,P_,S4="Encode example into a format for Arrow.",BD,Mt,ym,QD,K_,A4=`Flatten the features. Every dictionary column is removed and is replaced by
all the subfields it contains. The new fields are named by concatenating the
name of the original column and the subfield name like this: <code>&lt;original&gt;.&lt;subfield&gt;</code>.`,ED,O_,P4=`If a column contains nested dictionaries, then all the lower-level subfields names are
also concatenated to form new columns: <code>&lt;original&gt;.&lt;subfield&gt;.&lt;subsubfield&gt;</code>, etc.`,HD,Pl,LD,ja,jm,YD,ex,K4=`Construct <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a> from Arrow Schema.
It also checks the schema metadata for Hugging Face Datasets features.
Non-nullable fields are not supported and set to nullable.`,SD,tx,O4=`Also, pa.dictionary is not supported and it uses its underlying type instead.
Therefore datasets convert DictionaryArray objects to their actual values.`,AD,qe,wm,PD,sx,e3="Construct [<em>Features</em>] from dict.",KD,ax,t3=`Regenerate the nested feature object from a deserialized dict.
We use the <em>_type</em> key to infer the dataclass name of the feature <em>FieldType</em>.`,OD,nx,s3=`It allows for a convenient constructor syntax
to define features from deserialized JSON dictionaries. This function is used in particular when deserializing
a [<em>DatasetInfo</em>] that was dumped to a JSON object. This acts as an analogue to
[<em>Features.from_arrow_schema</em>] and handles the recursive field-by-field instantiation, but doesn’t require
any mapping to/from pyarrow, except for the fact that it takes advantage of the mapping of pyarrow primitive
dtypes that [<em>Value</em>] automatically performs.`,e7,Kl,t7,kt,vm,s7,rx,a3="Reorder Features fields to match the field order of other [<em>Features</em>].",a7,ox,n3=`The order of the fields is important since it matters for the underlying arrow data.
Re-ordering the fields allows to make the underlying arrow data type match.`,n7,Ol,J2,Ut,Mm,r7,lx,r3=`Construct a list of feature from a single type or a dict of types.
Mostly here for compatiblity with tfds.`,o7,ec,T2,Y,km,l7,cx,o3="Feature type for integer class labels.",c7,dx,l3="There are 3 ways to define a <code>ClassLabel</code>, which correspond to the 3 arguments:",d7,ix,c3="<li><code>num_classes</code>: Create 0 to (num_classes-1) labels.</li> <li><code>names</code>: List of label strings.</li> <li><code>names_file</code>: File containing the list of labels.</li>",i7,px,d3=`Under the hood the labels are stored as integers.
You can use negative integers to represent unknown/missing labels.`,p7,tc,m7,wa,Jm,h7,mx,i3=`Cast an Arrow array to the <code>ClassLabel</code> arrow storage type.
The Arrow types that can be converted to the <code>ClassLabel</code> pyarrow storage type are:`,g7,hx,p3="<li><code>pa.string()</code></li> <li><code>pa.int()</code></li>",u7,Jt,Tm,f7,gx,m3="Conversion <code>integer</code> =&gt; class name <code>string</code>.",b7,ux,h3="Regarding unknown/missing labels: passing negative integers raises <code>ValueError</code>.",_7,sc,x7,va,Dm,$7,fx,g3="Conversion class name <code>string</code> =&gt; <code>integer</code>.",y7,ac,D2,Be,Im,j7,bx,u3="The <code>Value</code> dtypes are as follows:",w7,_x,f3="<li><code>null</code></li> <li><code>bool</code></li> <li><code>int8</code></li> <li><code>int16</code></li> <li><code>int32</code></li> <li><code>int64</code></li> <li><code>uint8</code></li> <li><code>uint16</code></li> <li><code>uint32</code></li> <li><code>uint64</code></li> <li><code>float16</code></li> <li><code>float32</code> (alias float)</li> <li><code>float64</code> (alias double)</li> <li><code>time32[(s|ms)]</code></li> <li><code>time64[(us|ns)]</code></li> <li><code>timestamp[(s|ms|us|ns)]</code></li> <li><code>timestamp[(s|ms|us|ns), tz=(tzstring)]</code></li> <li><code>date32</code></li> <li><code>date64</code></li> <li><code>duration[(s|ms|us|ns)]</code></li> <li><code>decimal128(precision, scale)</code></li> <li><code>decimal256(precision, scale)</code></li> <li><code>binary</code></li> <li><code>large_binary</code></li> <li><code>string</code></li> <li><code>large_string</code></li>",v7,nc,I2,Qe,Cm,M7,xx,b3=`<code>FeatureConnector</code> for translations with fixed languages per example.
Here for compatiblity with tfds.`,k7,rc,J7,oc,Um,T7,$x,_3="Flatten the Translation feature into a dictionary.",C2,Ee,Zm,D7,yx,x3=`<code>FeatureConnector</code> for translations with variable languages per example.
Here for compatiblity with tfds.`,I7,lc,C7,cc,Fm,U7,jx,$3="Flatten the TranslationVariableLanguages feature into a dictionary.",U2,Zt,Rm,Z7,wx,y3="Create a two-dimensional array.",F7,dc,Z2,Ft,zm,R7,vx,j3="Create a three-dimensional array.",z7,ic,F2,Rt,Gm,G7,Mx,w3="Create a four-dimensional array.",N7,pc,R2,zt,Nm,X7,kx,v3="Create a five-dimensional array.",V7,mc,z2,E,Xm,q7,Jx,M3="Audio <code>Feature</code> to extract audio data from an audio file.",W7,Tx,k3="Input: The Audio feature accepts as input:",B7,Dx,J3="<li><p>A <code>str</code>: Absolute path to the audio file (i.e. random access is allowed).</p></li> <li><p>A <code>dict</code> with the keys:</p> <ul><li><code>path</code>: String with relative path of the audio file to the archive file.</li> <li><code>bytes</code>: Bytes content of the audio file.</li></ul> <p>This is useful for archived files with sequential access.</p></li> <li><p>A <code>dict</code> with the keys:</p> <ul><li><code>path</code>: String with relative path of the audio file to the archive file.</li> <li><code>array</code>: Array containing the audio sample</li> <li><code>sampling_rate</code>: Integer corresponding to the sampling rate of the audio sample.</li></ul> <p>This is useful for archived files with sequential access.</p></li>",Q7,hc,E7,Ma,Vm,H7,Ix,T3=`Cast an Arrow array to the Audio arrow storage type.
The Arrow types that can be converted to the Audio pyarrow storage type are:`,L7,Cx,D3="<li><code>pa.string()</code> - it must contain the “path” data</li> <li><code>pa.binary()</code> - it must contain the audio bytes</li> <li><code>pa.struct({&quot;bytes&quot;: pa.binary()})</code></li> <li><code>pa.struct({&quot;path&quot;: pa.string()})</code></li> <li><code>pa.struct({&quot;bytes&quot;: pa.binary(), &quot;path&quot;: pa.string()})</code>  - order doesn’t matter</li>",Y7,gc,qm,S7,Ux,I3="Decode example audio file into audio data.",A7,uc,Wm,P7,Zx,C3="Embed audio files into the Arrow array.",K7,fc,Bm,O7,Fx,U3="Encode example into a format for Arrow.",eI,bc,Qm,tI,Rx,Z3="If in the decodable state, raise an error, otherwise flatten the feature into a dictionary.",G2,H,Em,sI,zx,F3="Image <code>Feature</code> to read image data from an image file.",aI,Gx,R3="Input: The Image feature accepts as input:",nI,Nx,z3="<li><p>A <code>str</code>: Absolute path to the image file (i.e. random access is allowed).</p></li> <li><p>A <code>dict</code> with the keys:</p> <ul><li><code>path</code>: String with relative path of the image file to the archive file.</li> <li><code>bytes</code>: Bytes of the image file.</li></ul> <p>This is useful for archived files with sequential access.</p></li> <li><p>An <code>np.ndarray</code>: NumPy array representing an image.</p></li> <li><p>A <code>PIL.Image.Image</code>: PIL image object.</p></li>",rI,_c,oI,ka,Hm,lI,Xx,G3=`Cast an Arrow array to the Image arrow storage type.
The Arrow types that can be converted to the Image pyarrow storage type are:`,cI,Vx,N3="<li><code>pa.string()</code> - it must contain the “path” data</li> <li><code>pa.binary()</code> - it must contain the image bytes</li> <li><code>pa.struct({&quot;bytes&quot;: pa.binary()})</code></li> <li><code>pa.struct({&quot;path&quot;: pa.string()})</code></li> <li><code>pa.struct({&quot;bytes&quot;: pa.binary(), &quot;path&quot;: pa.string()})</code>  - order doesn’t matter</li> <li><code>pa.list(*)</code> - it must contain the image array data</li>",dI,xc,Lm,iI,qx,X3="Decode example image file into image data.",pI,$c,Ym,mI,Wx,V3="Embed image files into the Arrow array.",hI,yc,Sm,gI,Bx,q3="Encode example into a format for Arrow.",uI,jc,Am,fI,Qx,W3="If in the decodable state, return the feature itself, otherwise flatten the feature into a dictionary.",N2,Pm,X2,le,Km,bI,Ex,B3="Information about a metric.",_I,Hx,Q3=`<code>MetricInfo</code> documents a metric, including its name, version, and features.
See the constructor arguments and properties for a full list.`,xI,Lx,E3="Note: Not all fields are known on construction and may be updated later.",$I,Ja,Om,yI,Yx,H3="Create MetricInfo from the JSON file in <code>metric_info_dir</code>.",jI,wc,wI,Ta,eh,vI,Sx,L3=`Write <code>MetricInfo</code> as JSON to <code>metric_info_dir</code>.
Also save the license separately in LICENCE.
If <code>pretty_print</code> is True, the JSON will be pretty-printed with the indent level of 4.`,MI,vc,V2,th,q2,sh,Y3='The base class <code>Metric</code> implements a Metric backed by one or several <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a>.',W2,te,ah,kI,Ax,S3="A Metric is the base class and common API for all metrics.",JI,Mc,TI,Da,nh,DI,Px,A3="Add one prediction and reference for the metric’s stack.",II,kc,CI,Ia,rh,UI,Kx,P3="Add a batch of predictions and references for the metric’s stack.",ZI,Jc,FI,Tt,oh,RI,Ox,K3="Compute the metrics.",zI,e$,O3="Usage of positional arguments is not allowed to prevent mistakes.",GI,Tc,NI,Dc,lh,XI,t$,eF="Downloads and prepares dataset for reading.",B2,ch,Q2,N,dh,VI,s$,tF='<code>datasets.filesystems.S3FileSystem</code> is a subclass of <a href="https://s3fs.readthedocs.io/en/latest/api.html" rel="nofollow"><code>s3fs.S3FileSystem</code></a>.',qI,a$,sF="Users can use this class to access S3 as if it were a file system. It exposes a filesystem-like API (ls, cp, open, etc.) on top of S3 storage. Provide credentials either explicitly (<code>key=</code>, <code>secret=</code>) or with boto’s credential methods. See botocore documentation for more information. If no credentials are available, use <code>anon=True</code>.",WI,n$,aF="Examples:",BI,r$,nF="Listing files from public S3 bucket.",QI,Ic,EI,o$,rF="Listing files from private S3 bucket using <code>aws_access_key_id</code> and <code>aws_secret_access_key</code>.",HI,Cc,LI,l$,oF="Using <code>S3Filesystem</code> with <code>botocore.session.Session</code> and custom <code>aws_profile</code>.",YI,Uc,SI,c$,lF='Loading dataset from S3 using <code>S3Filesystem</code> and <a href="/docs/datasets/pr_6981/en/package_reference/loading_methods#datasets.load_from_disk">load_from_disk()</a>.',AI,Zc,PI,d$,cF='Saving dataset to S3 using <code>S3Filesystem</code> and <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.save_to_disk">Dataset.save_to_disk()</a>.',KI,Fc,E2,Za,ih,OI,i$,dF="Preprocesses <code>dataset_path</code> and removes remote filesystem (e.g. removing <code>s3://</code>).",H2,Fa,ph,eC,p$,iF="Checks if <code>fs</code> is a remote filesystem.",L2,mh,Y2,Ra,hh,tC,m$,pF="Hasher that accepts python objects as inputs.",S2,gh,A2,z$,P2;return c=new Kt({props:{title:"Main classes",local:"main-classes",headingTag:"h1"}}),m=new Kt({props:{title:"DatasetInfo",local:"datasets.DatasetInfo",headingTag:"h2"}}),Wc=new k({props:{name:"class datasets.DatasetInfo",anchor:"datasets.DatasetInfo",parameters:[{name:"description",val:": str = <factory>"},{name:"citation",val:": str = <factory>"},{name:"homepage",val:": str = <factory>"},{name:"license",val:": str = <factory>"},{name:"features",val:": Optional = None"},{name:"post_processed",val:": Optional = None"},{name:"supervised_keys",val:": Optional = None"},{name:"task_templates",val:": Optional = None"},{name:"builder_name",val:": Optional = None"},{name:"dataset_name",val:": Optional = None"},{name:"config_name",val:": Optional = None"},{name:"version",val:": Union = None"},{name:"splits",val:": Optional = None"},{name:"download_checksums",val:": Optional = None"},{name:"download_size",val:": Optional = None"},{name:"post_processing_size",val:": Optional = None"},{name:"dataset_size",val:": Optional = None"},{name:"size_in_bytes",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.DatasetInfo.description",description:`<strong>description</strong> (<code>str</code>) &#x2014;
A description of the dataset.`,name:"description"},{anchor:"datasets.DatasetInfo.citation",description:`<strong>citation</strong> (<code>str</code>) &#x2014;
A BibTeX citation of the dataset.`,name:"citation"},{anchor:"datasets.DatasetInfo.homepage",description:`<strong>homepage</strong> (<code>str</code>) &#x2014;
A URL to the official homepage for the dataset.`,name:"homepage"},{anchor:"datasets.DatasetInfo.license",description:`<strong>license</strong> (<code>str</code>) &#x2014;
The dataset&#x2019;s license. It can be the name of the license or a paragraph containing the terms of the license.`,name:"license"},{anchor:"datasets.DatasetInfo.features",description:`<strong>features</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>, <em>optional</em>) &#x2014;
The features used to specify the dataset&#x2019;s column types.`,name:"features"},{anchor:"datasets.DatasetInfo.post_processed",description:`<strong>post_processed</strong> (<code>PostProcessedInfo</code>, <em>optional</em>) &#x2014;
Information regarding the resources of a possible post-processing of a dataset. For example, it can contain the information of an index.`,name:"post_processed"},{anchor:"datasets.DatasetInfo.supervised_keys",description:`<strong>supervised_keys</strong> (<code>SupervisedKeysData</code>, <em>optional</em>) &#x2014;
Specifies the input feature and the label for supervised learning if applicable for the dataset (legacy from TFDS).`,name:"supervised_keys"},{anchor:"datasets.DatasetInfo.builder_name",description:`<strong>builder_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the <code>GeneratorBasedBuilder</code> subclass used to create the dataset. Usually matched to the corresponding script name. It is also the snake_case version of the dataset builder class name.`,name:"builder_name"},{anchor:"datasets.DatasetInfo.config_name",description:`<strong>config_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the configuration derived from <a href="/docs/datasets/pr_6981/en/package_reference/builder_classes#datasets.BuilderConfig">BuilderConfig</a>.`,name:"config_name"},{anchor:"datasets.DatasetInfo.version",description:`<strong>version</strong> (<code>str</code> or <a href="/docs/datasets/pr_6981/en/package_reference/builder_classes#datasets.Version">Version</a>, <em>optional</em>) &#x2014;
The version of the dataset.`,name:"version"},{anchor:"datasets.DatasetInfo.splits",description:`<strong>splits</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
The mapping between split name and metadata.`,name:"splits"},{anchor:"datasets.DatasetInfo.download_checksums",description:`<strong>download_checksums</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
The mapping between the URL to download the dataset&#x2019;s checksums and corresponding metadata.`,name:"download_checksums"},{anchor:"datasets.DatasetInfo.download_size",description:`<strong>download_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The size of the files to download to generate the dataset, in bytes.`,name:"download_size"},{anchor:"datasets.DatasetInfo.post_processing_size",description:`<strong>post_processing_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Size of the dataset in bytes after post-processing, if any.`,name:"post_processing_size"},{anchor:"datasets.DatasetInfo.dataset_size",description:`<strong>dataset_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The combined size in bytes of the Arrow tables for all splits.`,name:"dataset_size"},{anchor:"datasets.DatasetInfo.size_in_bytes",description:`<strong>size_in_bytes</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The combined size in bytes of all files associated with the dataset (downloaded files + Arrow files).`,name:"size_in_bytes"},{anchor:"datasets.DatasetInfo.task_templates",description:`<strong>task_templates</strong> (<code>List[TaskTemplate]</code>, <em>optional</em>) &#x2014;
The task templates to prepare the dataset for during training and evaluation. Each template casts the dataset&#x2019;s <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a> to standardized column names and types as detailed in <code>datasets.tasks</code>.`,name:"task_templates"},{anchor:"datasets.DatasetInfo.*config_kwargs",description:`*<strong>*config_kwargs</strong> (additional keyword arguments) &#x2014;
Keyword arguments to be passed to the <a href="/docs/datasets/pr_6981/en/package_reference/builder_classes#datasets.BuilderConfig">BuilderConfig</a> and used in the <a href="/docs/datasets/pr_6981/en/package_reference/builder_classes#datasets.DatasetBuilder">DatasetBuilder</a>.`,name:"*config_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/info.py#L93"}}),Bc=new k({props:{name:"from_directory",anchor:"datasets.DatasetInfo.from_directory",parameters:[{name:"dataset_info_dir",val:": str"},{name:"fs",val:" = 'deprecated'"},{name:"storage_options",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.DatasetInfo.from_directory.dataset_info_dir",description:`<strong>dataset_info_dir</strong> (<code>str</code>) &#x2014;
The directory containing the metadata file. This
should be the root directory of a specific dataset version.`,name:"dataset_info_dir"},{anchor:"datasets.DatasetInfo.from_directory.fs",description:`<strong>fs</strong> (<code>fsspec.spec.AbstractFileSystem</code>, <em>optional</em>) &#x2014;
Instance of the remote filesystem used to download the files from.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						<p class="font-medium">Deprecated in 2.9.0</p>
						
<p><code>fs</code> was deprecated in version 2.9.0 and will be removed in 3.0.0.
Please use <code>storage_options</code> instead, e.g. <code>storage_options=fs.storage_options</code>.</p>

					</div>`,name:"fs"},{anchor:"datasets.DatasetInfo.from_directory.storage_options",description:`<strong>storage_options</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Key/value pairs to be passed on to the file-system backend, if any.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.9.0</p>
						
					</div>`,name:"storage_options"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/info.py#L305"}}),Kn=new I({props:{anchor:"datasets.DatasetInfo.from_directory.example",$$slots:{default:[UF]},$$scope:{ctx:w}}}),Qc=new k({props:{name:"write_to_directory",anchor:"datasets.DatasetInfo.write_to_directory",parameters:[{name:"dataset_info_dir",val:""},{name:"pretty_print",val:" = False"},{name:"fs",val:" = 'deprecated'"},{name:"storage_options",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.DatasetInfo.write_to_directory.dataset_info_dir",description:`<strong>dataset_info_dir</strong> (<code>str</code>) &#x2014;
Destination directory.`,name:"dataset_info_dir"},{anchor:"datasets.DatasetInfo.write_to_directory.pretty_print",description:`<strong>pretty_print</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, the JSON will be pretty-printed with the indent level of 4.`,name:"pretty_print"},{anchor:"datasets.DatasetInfo.write_to_directory.fs",description:`<strong>fs</strong> (<code>fsspec.spec.AbstractFileSystem</code>, <em>optional</em>) &#x2014;
Instance of the remote filesystem used to download the files from.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						<p class="font-medium">Deprecated in 2.9.0</p>
						
<p><code>fs</code> was deprecated in version 2.9.0 and will be removed in 3.0.0.
Please use <code>storage_options</code> instead, e.g. <code>storage_options=fs.storage_options</code>.</p>

					</div>`,name:"fs"},{anchor:"datasets.DatasetInfo.write_to_directory.storage_options",description:`<strong>storage_options</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Key/value pairs to be passed on to the file-system backend, if any.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.9.0</p>
						
					</div>`,name:"storage_options"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/info.py#L213"}}),On=new I({props:{anchor:"datasets.DatasetInfo.write_to_directory.example",$$slots:{default:[ZF]},$$scope:{ctx:w}}}),Ec=new Kt({props:{title:"Dataset",local:"datasets.Dataset",headingTag:"h2"}}),Lc=new k({props:{name:"class datasets.Dataset",anchor:"datasets.Dataset",parameters:[{name:"arrow_table",val:": Table"},{name:"info",val:": Optional = None"},{name:"split",val:": Optional = None"},{name:"indices_table",val:": Optional = None"},{name:"fingerprint",val:": Optional = None"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L668"}}),Yc=new k({props:{name:"add_column",anchor:"datasets.Dataset.add_column",parameters:[{name:"name",val:": str"},{name:"column",val:": Union"},{name:"new_fingerprint",val:": str"}],parametersDescription:[{anchor:"datasets.Dataset.add_column.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
Column name.`,name:"name"},{anchor:"datasets.Dataset.add_column.column",description:`<strong>column</strong> (<code>list</code> or <code>np.array</code>) &#x2014;
Column data to be added.`,name:"column"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L5829",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),Sc=new fF({props:{version:"1.7"}}),er=new I({props:{anchor:"datasets.Dataset.add_column.example",$$slots:{default:[FF]},$$scope:{ctx:w}}}),Ac=new k({props:{name:"add_item",anchor:"datasets.Dataset.add_item",parameters:[{name:"item",val:": dict"},{name:"new_fingerprint",val:": str"}],parametersDescription:[{anchor:"datasets.Dataset.add_item.item",description:`<strong>item</strong> (<code>dict</code>) &#x2014;
Item data to be added.`,name:"item"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L6076",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),Pc=new fF({props:{version:"1.7"}}),tr=new I({props:{anchor:"datasets.Dataset.add_item.example",$$slots:{default:[RF]},$$scope:{ctx:w}}}),Kc=new k({props:{name:"from_file",anchor:"datasets.Dataset.from_file",parameters:[{name:"filename",val:": str"},{name:"info",val:": Optional = None"},{name:"split",val:": Optional = None"},{name:"indices_filename",val:": Optional = None"},{name:"in_memory",val:": bool = False"}],parametersDescription:[{anchor:"datasets.Dataset.from_file.filename",description:`<strong>filename</strong> (<code>str</code>) &#x2014;
File name of the dataset.`,name:"filename"},{anchor:"datasets.Dataset.from_file.info",description:`<strong>info</strong> (<code>DatasetInfo</code>, <em>optional</em>) &#x2014;
Dataset information, like description, citation, etc.`,name:"info"},{anchor:"datasets.Dataset.from_file.split",description:`<strong>split</strong> (<code>NamedSplit</code>, <em>optional</em>) &#x2014;
Name of the dataset split.`,name:"split"},{anchor:"datasets.Dataset.from_file.indices_filename",description:`<strong>indices_filename</strong> (<code>str</code>, <em>optional</em>) &#x2014;
File names of the indices.`,name:"indices_filename"},{anchor:"datasets.Dataset.from_file.in_memory",description:`<strong>in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to copy the data in-memory.`,name:"in_memory"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L751",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),Oc=new k({props:{name:"from_buffer",anchor:"datasets.Dataset.from_buffer",parameters:[{name:"buffer",val:": Buffer"},{name:"info",val:": Optional = None"},{name:"split",val:": Optional = None"},{name:"indices_buffer",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.from_buffer.buffer",description:`<strong>buffer</strong> (<code>pyarrow.Buffer</code>) &#x2014;
Arrow buffer.`,name:"buffer"},{anchor:"datasets.Dataset.from_buffer.info",description:`<strong>info</strong> (<code>DatasetInfo</code>, <em>optional</em>) &#x2014;
Dataset information, like description, citation, etc.`,name:"info"},{anchor:"datasets.Dataset.from_buffer.split",description:`<strong>split</strong> (<code>NamedSplit</code>, <em>optional</em>) &#x2014;
Name of the dataset split.`,name:"split"},{anchor:"datasets.Dataset.from_buffer.indices_buffer",description:`<strong>indices_buffer</strong> (<code>pyarrow.Buffer</code>, <em>optional</em>) &#x2014;
Indices Arrow buffer.`,name:"indices_buffer"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L791",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),ed=new k({props:{name:"from_pandas",anchor:"datasets.Dataset.from_pandas",parameters:[{name:"df",val:": DataFrame"},{name:"features",val:": Optional = None"},{name:"info",val:": Optional = None"},{name:"split",val:": Optional = None"},{name:"preserve_index",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.from_pandas.df",description:`<strong>df</strong> (<code>pandas.DataFrame</code>) &#x2014;
Dataframe that contains the dataset.`,name:"df"},{anchor:"datasets.Dataset.from_pandas.features",description:`<strong>features</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>, <em>optional</em>) &#x2014;
Dataset features.`,name:"features"},{anchor:"datasets.Dataset.from_pandas.info",description:`<strong>info</strong> (<code>DatasetInfo</code>, <em>optional</em>) &#x2014;
Dataset information, like description, citation, etc.`,name:"info"},{anchor:"datasets.Dataset.from_pandas.split",description:`<strong>split</strong> (<code>NamedSplit</code>, <em>optional</em>) &#x2014;
Name of the dataset split.`,name:"split"},{anchor:"datasets.Dataset.from_pandas.preserve_index",description:`<strong>preserve_index</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to store the index as an additional column in the resulting Dataset.
The default of <code>None</code> will store the index as a column, except for <code>RangeIndex</code> which is stored as metadata only.
Use <code>preserve_index=True</code> to force it to be stored as a column.`,name:"preserve_index"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L823",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),nr=new I({props:{anchor:"datasets.Dataset.from_pandas.example",$$slots:{default:[zF]},$$scope:{ctx:w}}}),td=new k({props:{name:"from_dict",anchor:"datasets.Dataset.from_dict",parameters:[{name:"mapping",val:": dict"},{name:"features",val:": Optional = None"},{name:"info",val:": Optional = None"},{name:"split",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.from_dict.mapping",description:`<strong>mapping</strong> (<code>Mapping</code>) &#x2014;
Mapping of strings to Arrays or Python lists.`,name:"mapping"},{anchor:"datasets.Dataset.from_dict.features",description:`<strong>features</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>, <em>optional</em>) &#x2014;
Dataset features.`,name:"features"},{anchor:"datasets.Dataset.from_dict.info",description:`<strong>info</strong> (<code>DatasetInfo</code>, <em>optional</em>) &#x2014;
Dataset information, like description, citation, etc.`,name:"info"},{anchor:"datasets.Dataset.from_dict.split",description:`<strong>split</strong> (<code>NamedSplit</code>, <em>optional</em>) &#x2014;
Name of the dataset split.`,name:"split"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L927",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),sd=new k({props:{name:"from_generator",anchor:"datasets.Dataset.from_generator",parameters:[{name:"generator",val:": Callable"},{name:"features",val:": Optional = None"},{name:"cache_dir",val:": str = None"},{name:"keep_in_memory",val:": bool = False"},{name:"gen_kwargs",val:": Optional = None"},{name:"num_proc",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.from_generator.generator",description:`<strong>generator</strong> ( &#x2014;<code>Callable</code>):
A generator function that <code>yields</code> examples.`,name:"generator"},{anchor:"datasets.Dataset.from_generator.features",description:`<strong>features</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>, <em>optional</em>) &#x2014;
Dataset features.`,name:"features"},{anchor:"datasets.Dataset.from_generator.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;~/.cache/huggingface/datasets&quot;</code>) &#x2014;
Directory to cache data.`,name:"cache_dir"},{anchor:"datasets.Dataset.from_generator.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to copy the data in-memory.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.from_generator.gen_kwargs(dict,",description:`<strong>gen_kwargs(<code>dict</code>,</strong> <em>optional</em>) &#x2014;
Keyword arguments to be passed to the <code>generator</code> callable.
You can define a sharded dataset by passing the list of shards in <code>gen_kwargs</code> and setting <code>num_proc</code> greater than 1.`,name:"gen_kwargs(dict,"},{anchor:"datasets.Dataset.from_generator.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Number of processes when downloading and generating the dataset locally.
This is helpful if the dataset is made of multiple files. Multiprocessing is disabled by default.
If <code>num_proc</code> is greater than one, then all list values in <code>gen_kwargs</code> must be the same length. These values will be split between calls to the generator. The number of shards will be the minimum of the shortest list in <code>gen_kwargs</code> and <code>num_proc</code>.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.7.0</p>
						
					</div>`,name:"num_proc"},{anchor:"datasets.Dataset.from_generator.*kwargs",description:`*<strong>*kwargs</strong> (additional keyword arguments) &#x2014;
Keyword arguments to be passed to :<code>GeneratorConfig</code>.`,name:"*kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1063",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),or=new I({props:{anchor:"datasets.Dataset.from_generator.example",$$slots:{default:[GF]},$$scope:{ctx:w}}}),lr=new I({props:{anchor:"datasets.Dataset.from_generator.example-2",$$slots:{default:[NF]},$$scope:{ctx:w}}}),ad=new k({props:{name:"data",anchor:"datasets.Dataset.data",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1795"}}),cr=new I({props:{anchor:"datasets.Dataset.data.example",$$slots:{default:[XF]},$$scope:{ctx:w}}}),nd=new k({props:{name:"cache_files",anchor:"datasets.Dataset.cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1815"}}),dr=new I({props:{anchor:"datasets.Dataset.cache_files.example",$$slots:{default:[VF]},$$scope:{ctx:w}}}),rd=new k({props:{name:"num_columns",anchor:"datasets.Dataset.num_columns",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1833"}}),ir=new I({props:{anchor:"datasets.Dataset.num_columns.example",$$slots:{default:[qF]},$$scope:{ctx:w}}}),od=new k({props:{name:"num_rows",anchor:"datasets.Dataset.num_rows",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1848"}}),pr=new I({props:{anchor:"datasets.Dataset.num_rows.example",$$slots:{default:[WF]},$$scope:{ctx:w}}}),ld=new k({props:{name:"column_names",anchor:"datasets.Dataset.column_names",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1865"}}),mr=new I({props:{anchor:"datasets.Dataset.column_names.example",$$slots:{default:[BF]},$$scope:{ctx:w}}}),cd=new k({props:{name:"shape",anchor:"datasets.Dataset.shape",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1880"}}),hr=new I({props:{anchor:"datasets.Dataset.shape.example",$$slots:{default:[QF]},$$scope:{ctx:w}}}),dd=new k({props:{name:"unique",anchor:"datasets.Dataset.unique",parameters:[{name:"column",val:": str"}],parametersDescription:[{anchor:"datasets.Dataset.unique.column",description:`<strong>column</strong> (<code>str</code>) &#x2014;
Column name (list all the column names with <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.column_names">column_names</a>).`,name:"column"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1897",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of unique elements in the given column.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>list</code></p>
`}}),gr=new I({props:{anchor:"datasets.Dataset.unique.example",$$slots:{default:[EF]},$$scope:{ctx:w}}}),id=new k({props:{name:"flatten",anchor:"datasets.Dataset.flatten",parameters:[{name:"new_fingerprint",val:": Optional = None"},{name:"max_depth",val:" = 16"}],parametersDescription:[{anchor:"datasets.Dataset.flatten.new_fingerprint",description:`<strong>new_fingerprint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The new fingerprint of the dataset after transform.
If <code>None</code>, the new fingerprint is computed using a hash of the previous fingerprint, and the transform arguments.`,name:"new_fingerprint"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2003",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset with flattened columns.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),ur=new I({props:{anchor:"datasets.Dataset.flatten.example",$$slots:{default:[HF]},$$scope:{ctx:w}}}),pd=new k({props:{name:"cast",anchor:"datasets.Dataset.cast",parameters:[{name:"features",val:": Features"},{name:"batch_size",val:": Optional = 1000"},{name:"keep_in_memory",val:": bool = False"},{name:"load_from_cache_file",val:": Optional = None"},{name:"cache_file_name",val:": Optional = None"},{name:"writer_batch_size",val:": Optional = 1000"},{name:"num_proc",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.cast.features",description:`<strong>features</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>) &#x2014;
New features to cast the dataset to.
The name of the fields in the features must match the current column names.
The type of the data must also be convertible from one type to the other.
For non-trivial conversion, e.g. <code>str</code> &lt;-&gt; <code>ClassLabel</code> you should use <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.map">map()</a> to update the Dataset.`,name:"features"},{anchor:"datasets.Dataset.cast.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Number of examples per batch provided to cast.
If <code>batch_size &lt;= 0</code> or <code>batch_size == None</code> then provide the full dataset as a single batch to cast.`,name:"batch_size"},{anchor:"datasets.Dataset.cast.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to copy the data in-memory.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.cast.load_from_cache_file",description:`<strong>load_from_cache_file</strong> (<code>bool</code>, defaults to <code>True</code> if caching is enabled) &#x2014;
If a cache file storing the current computation from <code>function</code>
can be identified, use it instead of recomputing.`,name:"load_from_cache_file"},{anchor:"datasets.Dataset.cast.cache_file_name",description:`<strong>cache_file_name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Provide the name of a path for the cache file. It is used to store the
results of the computation instead of the automatically generated cache file name.`,name:"cache_file_name"},{anchor:"datasets.Dataset.cast.writer_batch_size",description:`<strong>writer_batch_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Number of rows per write operation for the cache file writer.
This value is a good trade-off between memory usage during the processing, and processing speed.
Higher value makes the processing do fewer lookups, lower value consume less temporary memory while running <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.map">map()</a>.`,name:"writer_batch_size"},{anchor:"datasets.Dataset.cast.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Number of processes for multiprocessing. By default it doesn&#x2019;t
use multiprocessing.`,name:"num_proc"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2048",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset with casted features.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),fr=new I({props:{anchor:"datasets.Dataset.cast.example",$$slots:{default:[LF]},$$scope:{ctx:w}}}),md=new k({props:{name:"cast_column",anchor:"datasets.Dataset.cast_column",parameters:[{name:"column",val:": str"},{name:"feature",val:": Union"},{name:"new_fingerprint",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.cast_column.column",description:`<strong>column</strong> (<code>str</code>) &#x2014;
Column name.`,name:"column"},{anchor:"datasets.Dataset.cast_column.feature",description:`<strong>feature</strong> (<code>FeatureType</code>) &#x2014;
Target feature.`,name:"feature"},{anchor:"datasets.Dataset.cast_column.new_fingerprint",description:`<strong>new_fingerprint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The new fingerprint of the dataset after transform.
If <code>None</code>, the new fingerprint is computed using a hash of the previous fingerprint, and the transform arguments.`,name:"new_fingerprint"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2131",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),br=new I({props:{anchor:"datasets.Dataset.cast_column.example",$$slots:{default:[YF]},$$scope:{ctx:w}}}),hd=new k({props:{name:"remove_columns",anchor:"datasets.Dataset.remove_columns",parameters:[{name:"column_names",val:": Union"},{name:"new_fingerprint",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.remove_columns.column_names",description:`<strong>column_names</strong> (<code>Union[str, List[str]]</code>) &#x2014;
Name of the column(s) to remove.`,name:"column_names"},{anchor:"datasets.Dataset.remove_columns.new_fingerprint",description:`<strong>new_fingerprint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The new fingerprint of the dataset after transform.
If <code>None</code>, the new fingerprint is computed using a hash of the previous fingerprint, and the transform arguments.`,name:"new_fingerprint"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2173",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset object without the columns to remove.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),_r=new I({props:{anchor:"datasets.Dataset.remove_columns.example",$$slots:{default:[SF]},$$scope:{ctx:w}}}),gd=new k({props:{name:"rename_column",anchor:"datasets.Dataset.rename_column",parameters:[{name:"original_column_name",val:": str"},{name:"new_column_name",val:": str"},{name:"new_fingerprint",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.rename_column.original_column_name",description:`<strong>original_column_name</strong> (<code>str</code>) &#x2014;
Name of the column to rename.`,name:"original_column_name"},{anchor:"datasets.Dataset.rename_column.new_column_name",description:`<strong>new_column_name</strong> (<code>str</code>) &#x2014;
New name for the column.`,name:"new_column_name"},{anchor:"datasets.Dataset.rename_column.new_fingerprint",description:`<strong>new_fingerprint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The new fingerprint of the dataset after transform.
If <code>None</code>, the new fingerprint is computed using a hash of the previous fingerprint, and the transform arguments.`,name:"new_fingerprint"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2229",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset with a renamed column.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),xr=new I({props:{anchor:"datasets.Dataset.rename_column.example",$$slots:{default:[AF]},$$scope:{ctx:w}}}),ud=new k({props:{name:"rename_columns",anchor:"datasets.Dataset.rename_columns",parameters:[{name:"column_mapping",val:": Dict"},{name:"new_fingerprint",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.rename_columns.column_mapping",description:`<strong>column_mapping</strong> (<code>Dict[str, str]</code>) &#x2014;
A mapping of columns to rename to their new names`,name:"column_mapping"},{anchor:"datasets.Dataset.rename_columns.new_fingerprint",description:`<strong>new_fingerprint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The new fingerprint of the dataset after transform.
If <code>None</code>, the new fingerprint is computed using a hash of the previous fingerprint, and the transform arguments.`,name:"new_fingerprint"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2296",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset with renamed columns</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),$r=new I({props:{anchor:"datasets.Dataset.rename_columns.example",$$slots:{default:[PF]},$$scope:{ctx:w}}}),fd=new k({props:{name:"select_columns",anchor:"datasets.Dataset.select_columns",parameters:[{name:"column_names",val:": Union"},{name:"new_fingerprint",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.select_columns.column_names",description:`<strong>column_names</strong> (<code>Union[str, List[str]]</code>) &#x2014;
Name of the column(s) to keep.`,name:"column_names"},{anchor:"datasets.Dataset.select_columns.new_fingerprint",description:`<strong>new_fingerprint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The new fingerprint of the dataset after transform. If <code>None</code>,
the new fingerprint is computed using a hash of the previous
fingerprint, and the transform arguments.`,name:"new_fingerprint"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2364",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset object which only consists of
selected columns.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),yr=new I({props:{anchor:"datasets.Dataset.select_columns.example",$$slots:{default:[KF]},$$scope:{ctx:w}}}),bd=new k({props:{name:"class_encode_column",anchor:"datasets.Dataset.class_encode_column",parameters:[{name:"column",val:": str"},{name:"include_nulls",val:": bool = False"}],parametersDescription:[{anchor:"datasets.Dataset.class_encode_column.column",description:`<strong>column</strong> (<code>str</code>) &#x2014;
The name of the column to cast (list all the column names with <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.column_names">column_names</a>)`,name:"column"},{anchor:"datasets.Dataset.class_encode_column.include_nulls",description:`<strong>include_nulls</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to include null values in the class labels. If <code>True</code>, the null values will be encoded as the <code>&quot;None&quot;</code> class label.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 1.14.2</p>
						
					</div>`,name:"include_nulls"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1928"}}),jr=new I({props:{anchor:"datasets.Dataset.class_encode_column.example",$$slots:{default:[OF]},$$scope:{ctx:w}}}),_d=new k({props:{name:"__len__",anchor:"datasets.Dataset.__len__",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2413"}}),wr=new I({props:{anchor:"datasets.Dataset.__len__.example",$$slots:{default:[eR]},$$scope:{ctx:w}}}),xd=new k({props:{name:"__iter__",anchor:"datasets.Dataset.__iter__",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2430"}}),$d=new k({props:{name:"iter",anchor:"datasets.Dataset.iter",parameters:[{name:"batch_size",val:": int"},{name:"drop_last_batch",val:": bool = False"}],parametersDescription:[{anchor:"datasets.Dataset.iter.batch_size",description:"<strong>batch_size</strong> (<code>int</code>) &#x2014; size of each batch to yield.",name:"batch_size"},{anchor:"datasets.Dataset.iter.drop_last_batch",description:`<strong>drop_last_batch</strong> (<code>bool</code>, default <em>False</em>) &#x2014; Whether a last batch smaller than the batch_size should be
dropped`,name:"drop_last_batch"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2459"}}),yd=new k({props:{name:"formatted_as",anchor:"datasets.Dataset.formatted_as",parameters:[{name:"type",val:": Optional = None"},{name:"columns",val:": Optional = None"},{name:"output_all_columns",val:": bool = False"},{name:"**format_kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.formatted_as.type",description:`<strong>type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Output type selected in <code>[None, &apos;numpy&apos;, &apos;torch&apos;, &apos;tensorflow&apos;, &apos;pandas&apos;, &apos;arrow&apos;, &apos;jax&apos;]</code>.
<code>None</code> means \`<strong>getitem</strong>&#x201C; returns python objects (default).`,name:"type"},{anchor:"datasets.Dataset.formatted_as.columns",description:`<strong>columns</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
Columns to format in the output.
<code>None</code> means <code>__getitem__</code> returns all columns (default).`,name:"columns"},{anchor:"datasets.Dataset.formatted_as.output_all_columns",description:`<strong>output_all_columns</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep un-formatted columns as well in the output (as python objects).`,name:"output_all_columns"},{anchor:"datasets.Dataset.formatted_as.*format_kwargs",description:`*<strong>*format_kwargs</strong> (additional keyword arguments) &#x2014;
Keywords arguments passed to the convert function like <code>np.array</code>, <code>torch.tensor</code> or <code>tensorflow.ragged.constant</code>.`,name:"*format_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2503"}}),jd=new k({props:{name:"set_format",anchor:"datasets.Dataset.set_format",parameters:[{name:"type",val:": Optional = None"},{name:"columns",val:": Optional = None"},{name:"output_all_columns",val:": bool = False"},{name:"**format_kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.set_format.type",description:`<strong>type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Either output type selected in <code>[None, &apos;numpy&apos;, &apos;torch&apos;, &apos;tensorflow&apos;, &apos;pandas&apos;, &apos;arrow&apos;, &apos;jax&apos;]</code>.
<code>None</code> means <code>__getitem__</code> returns python objects (default).`,name:"type"},{anchor:"datasets.Dataset.set_format.columns",description:`<strong>columns</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
Columns to format in the output.
<code>None</code> means <code>__getitem__</code> returns all columns (default).`,name:"columns"},{anchor:"datasets.Dataset.set_format.output_all_columns",description:`<strong>output_all_columns</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep un-formatted columns as well in the output (as python objects).`,name:"output_all_columns"},{anchor:"datasets.Dataset.set_format.*format_kwargs",description:`*<strong>*format_kwargs</strong> (additional keyword arguments) &#x2014;
Keywords arguments passed to the convert function like <code>np.array</code>, <code>torch.tensor</code> or <code>tensorflow.ragged.constant</code>.`,name:"*format_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2535"}}),Mr=new I({props:{anchor:"datasets.Dataset.set_format.example",$$slots:{default:[tR]},$$scope:{ctx:w}}}),kr=new I({props:{anchor:"datasets.Dataset.set_format.example-2",$$slots:{default:[sR]},$$scope:{ctx:w}}}),wd=new k({props:{name:"set_transform",anchor:"datasets.Dataset.set_transform",parameters:[{name:"transform",val:": Optional"},{name:"columns",val:": Optional = None"},{name:"output_all_columns",val:": bool = False"}],parametersDescription:[{anchor:"datasets.Dataset.set_transform.transform",description:`<strong>transform</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
User-defined formatting transform, replaces the format defined by <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.set_format">set_format()</a>.
A formatting function is a callable that takes a batch (as a <code>dict</code>) as input and returns a batch.
This function is applied right before returning the objects in <code>__getitem__</code>.`,name:"transform"},{anchor:"datasets.Dataset.set_transform.columns",description:`<strong>columns</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
Columns to format in the output.
If specified, then the input batch of the transform only contains those columns.`,name:"columns"},{anchor:"datasets.Dataset.set_transform.output_all_columns",description:`<strong>output_all_columns</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep un-formatted columns as well in the output (as python objects).
If set to True, then the other un-formatted columns are kept with the output of the transform.`,name:"output_all_columns"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2643"}}),Jr=new I({props:{anchor:"datasets.Dataset.set_transform.example",$$slots:{default:[aR]},$$scope:{ctx:w}}}),vd=new k({props:{name:"reset_format",anchor:"datasets.Dataset.reset_format",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2614"}}),Tr=new I({props:{anchor:"datasets.Dataset.reset_format.example",$$slots:{default:[nR]},$$scope:{ctx:w}}}),Md=new k({props:{name:"with_format",anchor:"datasets.Dataset.with_format",parameters:[{name:"type",val:": Optional = None"},{name:"columns",val:": Optional = None"},{name:"output_all_columns",val:": bool = False"},{name:"**format_kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.with_format.type",description:`<strong>type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Either output type selected in <code>[None, &apos;numpy&apos;, &apos;torch&apos;, &apos;tensorflow&apos;, &apos;pandas&apos;, &apos;arrow&apos;, &apos;jax&apos;]</code>.
<code>None</code> means <code>__getitem__</code> returns python objects (default).`,name:"type"},{anchor:"datasets.Dataset.with_format.columns",description:`<strong>columns</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
Columns to format in the output.
<code>None</code> means <code>__getitem__</code> returns all columns (default).`,name:"columns"},{anchor:"datasets.Dataset.with_format.output_all_columns",description:`<strong>output_all_columns</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep un-formatted columns as well in the output (as python objects).`,name:"output_all_columns"},{anchor:"datasets.Dataset.with_format.*format_kwargs",description:`*<strong>*format_kwargs</strong> (additional keyword arguments) &#x2014;
Keywords arguments passed to the convert function like <code>np.array</code>, <code>torch.tensor</code> or <code>tensorflow.ragged.constant</code>.`,name:"*format_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2686"}}),Dr=new I({props:{anchor:"datasets.Dataset.with_format.example",$$slots:{default:[rR]},$$scope:{ctx:w}}}),kd=new k({props:{name:"with_transform",anchor:"datasets.Dataset.with_transform",parameters:[{name:"transform",val:": Optional"},{name:"columns",val:": Optional = None"},{name:"output_all_columns",val:": bool = False"}],parametersDescription:[{anchor:"datasets.Dataset.with_transform.transform",description:`<strong>transform</strong> (<code>Callable</code>, <code>optional</code>) &#x2014;
User-defined formatting transform, replaces the format defined by <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.set_format">set_format()</a>.
A formatting function is a callable that takes a batch (as a <code>dict</code>) as input and returns a batch.
This function is applied right before returning the objects in <code>__getitem__</code>.`,name:"transform"},{anchor:"datasets.Dataset.with_transform.columns",description:`<strong>columns</strong> (<code>List[str]</code>, <code>optional</code>) &#x2014;
Columns to format in the output.
If specified, then the input batch of the transform only contains those columns.`,name:"columns"},{anchor:"datasets.Dataset.with_transform.output_all_columns",description:`<strong>output_all_columns</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep un-formatted columns as well in the output (as python objects).
If set to <code>True</code>, then the other un-formatted columns are kept with the output of the transform.`,name:"output_all_columns"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2737"}}),Ir=new I({props:{anchor:"datasets.Dataset.with_transform.example",$$slots:{default:[oR]},$$scope:{ctx:w}}}),Jd=new k({props:{name:"__getitem__",anchor:"datasets.Dataset.__getitem__",parameters:[{name:"key",val:""}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2864"}}),Td=new k({props:{name:"cleanup_cache_files",anchor:"datasets.Dataset.cleanup_cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2874",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Number of removed files.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>int</code></p>
`}}),Ur=new I({props:{anchor:"datasets.Dataset.cleanup_cache_files.example",$$slots:{default:[lR]},$$scope:{ctx:w}}}),Dd=new k({props:{name:"map",anchor:"datasets.Dataset.map",parameters:[{name:"function",val:": Optional = None"},{name:"with_indices",val:": bool = False"},{name:"with_rank",val:": bool = False"},{name:"input_columns",val:": Union = None"},{name:"batched",val:": bool = False"},{name:"batch_size",val:": Optional = 1000"},{name:"drop_last_batch",val:": bool = False"},{name:"remove_columns",val:": Union = None"},{name:"keep_in_memory",val:": bool = False"},{name:"load_from_cache_file",val:": Optional = None"},{name:"cache_file_name",val:": Optional = None"},{name:"writer_batch_size",val:": Optional = 1000"},{name:"features",val:": Optional = None"},{name:"disable_nullable",val:": bool = False"},{name:"fn_kwargs",val:": Optional = None"},{name:"num_proc",val:": Optional = None"},{name:"suffix_template",val:": str = '_{rank:05d}_of_{num_proc:05d}'"},{name:"new_fingerprint",val:": Optional = None"},{name:"desc",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.map.function",description:`<strong>function</strong> (<code>Callable</code>) &#x2014; Function with one of the following signatures:</p>
<ul>
<li><code>function(example: Dict[str, Any]) -&gt; Dict[str, Any]</code> if <code>batched=False</code> and <code>with_indices=False</code> and <code>with_rank=False</code></li>
<li><code>function(example: Dict[str, Any], *extra_args) -&gt; Dict[str, Any]</code> if <code>batched=False</code> and <code>with_indices=True</code> and/or <code>with_rank=True</code> (one extra arg for each)</li>
<li><code>function(batch: Dict[str, List]) -&gt; Dict[str, List]</code> if <code>batched=True</code> and <code>with_indices=False</code> and <code>with_rank=False</code></li>
<li><code>function(batch: Dict[str, List], *extra_args) -&gt; Dict[str, List]</code> if <code>batched=True</code> and <code>with_indices=True</code> and/or <code>with_rank=True</code> (one extra arg for each)</li>
</ul>
<p>For advanced usage, the function can also return a <code>pyarrow.Table</code>.
Moreover if your function returns nothing (<code>None</code>), then <code>map</code> will run your function and return the dataset unchanged.
If no function is provided, default to identity function: <code>lambda x: x</code>.`,name:"function"},{anchor:"datasets.Dataset.map.with_indices",description:`<strong>with_indices</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide example indices to <code>function</code>. Note that in this case the
signature of <code>function</code> should be <code>def function(example, idx[, rank]): ...</code>.`,name:"with_indices"},{anchor:"datasets.Dataset.map.with_rank",description:`<strong>with_rank</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide process rank to <code>function</code>. Note that in this case the
signature of <code>function</code> should be <code>def function(example[, idx], rank): ...</code>.`,name:"with_rank"},{anchor:"datasets.Dataset.map.input_columns",description:`<strong>input_columns</strong> (<code>Optional[Union[str, List[str]]]</code>, defaults to <code>None</code>) &#x2014;
The columns to be passed into <code>function</code>
as positional arguments. If <code>None</code>, a <code>dict</code> mapping to all formatted columns is passed as one argument.`,name:"input_columns"},{anchor:"datasets.Dataset.map.batched",description:`<strong>batched</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide batch of examples to <code>function</code>.`,name:"batched"},{anchor:"datasets.Dataset.map.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>1000</code>) &#x2014;
Number of examples per batch provided to <code>function</code> if <code>batched=True</code>.
If <code>batch_size &lt;= 0</code> or <code>batch_size == None</code>, provide the full dataset as a single batch to <code>function</code>.`,name:"batch_size"},{anchor:"datasets.Dataset.map.drop_last_batch",description:`<strong>drop_last_batch</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether a last batch smaller than the batch_size should be
dropped instead of being processed by the function.`,name:"drop_last_batch"},{anchor:"datasets.Dataset.map.remove_columns",description:`<strong>remove_columns</strong> (<code>Optional[Union[str, List[str]]]</code>, defaults to <code>None</code>) &#x2014;
Remove a selection of columns while doing the mapping.
Columns will be removed before updating the examples with the output of <code>function</code>, i.e. if <code>function</code> is adding
columns with names in <code>remove_columns</code>, these columns will be kept.`,name:"remove_columns"},{anchor:"datasets.Dataset.map.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep the dataset in memory instead of writing it to a cache file.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.map.load_from_cache_file",description:`<strong>load_from_cache_file</strong> (<code>Optional[bool]</code>, defaults to <code>True</code> if caching is enabled) &#x2014;
If a cache file storing the current computation from <code>function</code>
can be identified, use it instead of recomputing.`,name:"load_from_cache_file"},{anchor:"datasets.Dataset.map.cache_file_name",description:`<strong>cache_file_name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Provide the name of a path for the cache file. It is used to store the
results of the computation instead of the automatically generated cache file name.`,name:"cache_file_name"},{anchor:"datasets.Dataset.map.writer_batch_size",description:`<strong>writer_batch_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Number of rows per write operation for the cache file writer.
This value is a good trade-off between memory usage during the processing, and processing speed.
Higher value makes the processing do fewer lookups, lower value consume less temporary memory while running <code>map</code>.`,name:"writer_batch_size"},{anchor:"datasets.Dataset.map.features",description:`<strong>features</strong> (<code>Optional[datasets.Features]</code>, defaults to <code>None</code>) &#x2014;
Use a specific Features to store the cache file
instead of the automatically generated one.`,name:"features"},{anchor:"datasets.Dataset.map.disable_nullable",description:`<strong>disable_nullable</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Disallow null values in the table.`,name:"disable_nullable"},{anchor:"datasets.Dataset.map.fn_kwargs",description:`<strong>fn_kwargs</strong> (<code>Dict</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Keyword arguments to be passed to <code>function</code>.`,name:"fn_kwargs"},{anchor:"datasets.Dataset.map.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Max number of processes when generating cache. Already cached shards are loaded sequentially.`,name:"num_proc"},{anchor:"datasets.Dataset.map.suffix_template",description:`<strong>suffix_template</strong> (<code>str</code>) &#x2014;
If <code>cache_file_name</code> is specified, then this suffix
will be added at the end of the base name of each. Defaults to <code>&quot;_{rank:05d}_of_{num_proc:05d}&quot;</code>. For example, if <code>cache_file_name</code> is &#x201C;processed.arrow&#x201D;, then for
<code>rank=1</code> and <code>num_proc=4</code>, the resulting file would be <code>&quot;processed_00001_of_00004.arrow&quot;</code> for the default suffix.`,name:"suffix_template"},{anchor:"datasets.Dataset.map.new_fingerprint",description:`<strong>new_fingerprint</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The new fingerprint of the dataset after transform.
If <code>None</code>, the new fingerprint is computed using a hash of the previous fingerprint, and the transform arguments.`,name:"new_fingerprint"},{anchor:"datasets.Dataset.map.desc",description:`<strong>desc</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Meaningful description to be displayed alongside with the progress bar while mapping examples.`,name:"desc"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2921"}}),Zr=new I({props:{anchor:"datasets.Dataset.map.example",$$slots:{default:[cR]},$$scope:{ctx:w}}}),Id=new k({props:{name:"filter",anchor:"datasets.Dataset.filter",parameters:[{name:"function",val:": Optional = None"},{name:"with_indices",val:": bool = False"},{name:"with_rank",val:": bool = False"},{name:"input_columns",val:": Union = None"},{name:"batched",val:": bool = False"},{name:"batch_size",val:": Optional = 1000"},{name:"keep_in_memory",val:": bool = False"},{name:"load_from_cache_file",val:": Optional = None"},{name:"cache_file_name",val:": Optional = None"},{name:"writer_batch_size",val:": Optional = 1000"},{name:"fn_kwargs",val:": Optional = None"},{name:"num_proc",val:": Optional = None"},{name:"suffix_template",val:": str = '_{rank:05d}_of_{num_proc:05d}'"},{name:"new_fingerprint",val:": Optional = None"},{name:"desc",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.filter.function",description:`<strong>function</strong> (<code>Callable</code>) &#x2014; Callable with one of the following signatures:</p>
<ul>
<li><code>function(example: Dict[str, Any]) -&gt; bool</code> if <code>batched=False</code> and <code>with_indices=False</code> and <code>with_rank=False</code></li>
<li><code>function(example: Dict[str, Any], *extra_args) -&gt; bool</code> if <code>batched=False</code> and <code>with_indices=True</code> and/or <code>with_rank=True</code> (one extra arg for each)</li>
<li><code>function(batch: Dict[str, List]) -&gt; List[bool]</code> if <code>batched=True</code> and <code>with_indices=False</code> and <code>with_rank=False</code></li>
<li><code>function(batch: Dict[str, List], *extra_args) -&gt; List[bool]</code> if <code>batched=True</code> and <code>with_indices=True</code> and/or <code>with_rank=True</code> (one extra arg for each)</li>
</ul>
<p>If no function is provided, defaults to an always <code>True</code> function: <code>lambda x: True</code>.`,name:"function"},{anchor:"datasets.Dataset.filter.with_indices",description:`<strong>with_indices</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide example indices to <code>function</code>. Note that in this case the
signature of <code>function</code> should be <code>def function(example, idx[, rank]): ...</code>.`,name:"with_indices"},{anchor:"datasets.Dataset.filter.with_rank",description:`<strong>with_rank</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide process rank to <code>function</code>. Note that in this case the
signature of <code>function</code> should be <code>def function(example[, idx], rank): ...</code>.`,name:"with_rank"},{anchor:"datasets.Dataset.filter.input_columns",description:`<strong>input_columns</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The columns to be passed into <code>function</code> as
positional arguments. If <code>None</code>, a <code>dict</code> mapping to all formatted columns is passed as one argument.`,name:"input_columns"},{anchor:"datasets.Dataset.filter.batched",description:`<strong>batched</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide batch of examples to <code>function</code>.`,name:"batched"},{anchor:"datasets.Dataset.filter.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>1000</code>) &#x2014;
Number of examples per batch provided to <code>function</code> if
<code>batched = True</code>. If <code>batched = False</code>, one example per batch is passed to <code>function</code>.
If <code>batch_size &lt;= 0</code> or <code>batch_size == None</code>, provide the full dataset as a single batch to <code>function</code>.`,name:"batch_size"},{anchor:"datasets.Dataset.filter.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep the dataset in memory instead of writing it to a cache file.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.filter.load_from_cache_file",description:`<strong>load_from_cache_file</strong> (<code>Optional[bool]</code>, defaults to <code>True</code> if caching is enabled) &#x2014;
If a cache file storing the current computation from <code>function</code>
can be identified, use it instead of recomputing.`,name:"load_from_cache_file"},{anchor:"datasets.Dataset.filter.cache_file_name",description:`<strong>cache_file_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Provide the name of a path for the cache file. It is used to store the
results of the computation instead of the automatically generated cache file name.`,name:"cache_file_name"},{anchor:"datasets.Dataset.filter.writer_batch_size",description:`<strong>writer_batch_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Number of rows per write operation for the cache file writer.
This value is a good trade-off between memory usage during the processing, and processing speed.
Higher value makes the processing do fewer lookups, lower value consume less temporary memory while running <code>map</code>.`,name:"writer_batch_size"},{anchor:"datasets.Dataset.filter.fn_kwargs",description:`<strong>fn_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Keyword arguments to be passed to <code>function</code>.`,name:"fn_kwargs"},{anchor:"datasets.Dataset.filter.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of processes for multiprocessing. By default it doesn&#x2019;t
use multiprocessing.`,name:"num_proc"},{anchor:"datasets.Dataset.filter.suffix_template",description:`<strong>suffix_template</strong> (<code>str</code>) &#x2014;
If <code>cache_file_name</code> is specified, then this suffix will be added at the end of the base name of each.
For example, if <code>cache_file_name</code> is <code>&quot;processed.arrow&quot;</code>, then for <code>rank = 1</code> and <code>num_proc = 4</code>,
the resulting file would be <code>&quot;processed_00001_of_00004.arrow&quot;</code> for the default suffix (default
<code>_{rank:05d}_of_{num_proc:05d}</code>).`,name:"suffix_template"},{anchor:"datasets.Dataset.filter.new_fingerprint",description:`<strong>new_fingerprint</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The new fingerprint of the dataset after transform.
If <code>None</code>, the new fingerprint is computed using a hash of the previous fingerprint, and the transform arguments.`,name:"new_fingerprint"},{anchor:"datasets.Dataset.filter.desc",description:`<strong>desc</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Meaningful description to be displayed alongside with the progress bar while filtering examples.`,name:"desc"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L3614"}}),Fr=new I({props:{anchor:"datasets.Dataset.filter.example",$$slots:{default:[dR]},$$scope:{ctx:w}}}),Cd=new k({props:{name:"select",anchor:"datasets.Dataset.select",parameters:[{name:"indices",val:": Iterable"},{name:"keep_in_memory",val:": bool = False"},{name:"indices_cache_file_name",val:": Optional = None"},{name:"writer_batch_size",val:": Optional = 1000"},{name:"new_fingerprint",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.select.indices",description:`<strong>indices</strong> (<code>range</code>, <code>list</code>, <code>iterable</code>, <code>ndarray</code> or <code>Series</code>) &#x2014;
Range, list or 1D-array of integer indices for indexing.
If the indices correspond to a contiguous range, the Arrow table is simply sliced.
However passing a list of indices that are not contiguous creates indices mapping, which is much less efficient,
but still faster than recreating an Arrow table made of the requested rows.`,name:"indices"},{anchor:"datasets.Dataset.select.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep the indices mapping in memory instead of writing it to a cache file.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.select.indices_cache_file_name",description:`<strong>indices_cache_file_name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Provide the name of a path for the cache file. It is used to store the
indices mapping instead of the automatically generated cache file name.`,name:"indices_cache_file_name"},{anchor:"datasets.Dataset.select.writer_batch_size",description:`<strong>writer_batch_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Number of rows per write operation for the cache file writer.
This value is a good trade-off between memory usage during the processing, and processing speed.
Higher value makes the processing do fewer lookups, lower value consume less temporary memory while running <code>map</code>.`,name:"writer_batch_size"},{anchor:"datasets.Dataset.select.new_fingerprint",description:`<strong>new_fingerprint</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The new fingerprint of the dataset after transform.
If <code>None</code>, the new fingerprint is computed using a hash of the previous fingerprint, and the transform arguments.`,name:"new_fingerprint"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L3825"}}),Rr=new I({props:{anchor:"datasets.Dataset.select.example",$$slots:{default:[iR]},$$scope:{ctx:w}}}),Ud=new k({props:{name:"sort",anchor:"datasets.Dataset.sort",parameters:[{name:"column_names",val:": Union"},{name:"reverse",val:": Union = False"},{name:"kind",val:" = 'deprecated'"},{name:"null_placement",val:": str = 'at_end'"},{name:"keep_in_memory",val:": bool = False"},{name:"load_from_cache_file",val:": Optional = None"},{name:"indices_cache_file_name",val:": Optional = None"},{name:"writer_batch_size",val:": Optional = 1000"},{name:"new_fingerprint",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.sort.column_names",description:`<strong>column_names</strong> (<code>Union[str, Sequence[str]]</code>) &#x2014;
Column name(s) to sort by.`,name:"column_names"},{anchor:"datasets.Dataset.sort.reverse",description:`<strong>reverse</strong> (<code>Union[bool, Sequence[bool]]</code>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, sort by descending order rather than ascending. If a single bool is provided,
the value is applied to the sorting of all column names. Otherwise a list of bools with the
same length and order as column_names must be provided.`,name:"reverse"},{anchor:"datasets.Dataset.sort.kind",description:`<strong>kind</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pandas algorithm for sorting selected in <code>{quicksort, mergesort, heapsort, stable}</code>,
The default is <code>quicksort</code>. Note that both <code>stable</code> and <code>mergesort</code> use <code>timsort</code> under the covers and, in general,
the actual implementation will vary with data type. The <code>mergesort</code> option is retained for backwards compatibility.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						<p class="font-medium">Deprecated in 2.8.0</p>
						
<p><code>kind</code> was deprecated in version 2.10.0 and will be removed in 3.0.0.</p>

					</div>`,name:"kind"},{anchor:"datasets.Dataset.sort.null_placement",description:`<strong>null_placement</strong> (<code>str</code>, defaults to <code>at_end</code>) &#x2014;
Put <code>None</code> values at the beginning if <code>at_start</code> or <code>first</code> or at the end if <code>at_end</code> or <code>last</code></p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 1.14.2</p>
						
					</div>`,name:"null_placement"},{anchor:"datasets.Dataset.sort.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep the sorted indices in memory instead of writing it to a cache file.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.sort.load_from_cache_file",description:`<strong>load_from_cache_file</strong> (<code>Optional[bool]</code>, defaults to <code>True</code> if caching is enabled) &#x2014;
If a cache file storing the sorted indices
can be identified, use it instead of recomputing.`,name:"load_from_cache_file"},{anchor:"datasets.Dataset.sort.indices_cache_file_name",description:`<strong>indices_cache_file_name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Provide the name of a path for the cache file. It is used to store the
sorted indices instead of the automatically generated cache file name.`,name:"indices_cache_file_name"},{anchor:"datasets.Dataset.sort.writer_batch_size",description:`<strong>writer_batch_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Number of rows per write operation for the cache file writer.
Higher value gives smaller cache files, lower value consume less temporary memory.`,name:"writer_batch_size"},{anchor:"datasets.Dataset.sort.new_fingerprint",description:`<strong>new_fingerprint</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The new fingerprint of the dataset after transform.
If <code>None</code>, the new fingerprint is computed using a hash of the previous fingerprint, and the transform arguments`,name:"new_fingerprint"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L4128"}}),zr=new I({props:{anchor:"datasets.Dataset.sort.example",$$slots:{default:[pR]},$$scope:{ctx:w}}}),Zd=new k({props:{name:"shuffle",anchor:"datasets.Dataset.shuffle",parameters:[{name:"seed",val:": Optional = None"},{name:"generator",val:": Optional = None"},{name:"keep_in_memory",val:": bool = False"},{name:"load_from_cache_file",val:": Optional = None"},{name:"indices_cache_file_name",val:": Optional = None"},{name:"writer_batch_size",val:": Optional = 1000"},{name:"new_fingerprint",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.shuffle.seed",description:`<strong>seed</strong> (<code>int</code>, <em>optional</em>) &#x2014;
A seed to initialize the default BitGenerator if <code>generator=None</code>.
If <code>None</code>, then fresh, unpredictable entropy will be pulled from the OS.
If an <code>int</code> or <code>array_like[ints]</code> is passed, then it will be passed to SeedSequence to derive the initial BitGenerator state.`,name:"seed"},{anchor:"datasets.Dataset.shuffle.generator",description:`<strong>generator</strong> (<code>numpy.random.Generator</code>, <em>optional</em>) &#x2014;
Numpy random Generator to use to compute the permutation of the dataset rows.
If <code>generator=None</code> (default), uses <code>np.random.default_rng</code> (the default BitGenerator (PCG64) of NumPy).`,name:"generator"},{anchor:"datasets.Dataset.shuffle.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, default <code>False</code>) &#x2014;
Keep the shuffled indices in memory instead of writing it to a cache file.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.shuffle.load_from_cache_file",description:`<strong>load_from_cache_file</strong> (<code>Optional[bool]</code>, defaults to <code>True</code> if caching is enabled) &#x2014;
If a cache file storing the shuffled indices
can be identified, use it instead of recomputing.`,name:"load_from_cache_file"},{anchor:"datasets.Dataset.shuffle.indices_cache_file_name",description:`<strong>indices_cache_file_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Provide the name of a path for the cache file. It is used to store the
shuffled indices instead of the automatically generated cache file name.`,name:"indices_cache_file_name"},{anchor:"datasets.Dataset.shuffle.writer_batch_size",description:`<strong>writer_batch_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Number of rows per write operation for the cache file writer.
This value is a good trade-off between memory usage during the processing, and processing speed.
Higher value makes the processing do fewer lookups, lower value consume less temporary memory while running <code>map</code>.`,name:"writer_batch_size"},{anchor:"datasets.Dataset.shuffle.new_fingerprint",description:`<strong>new_fingerprint</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The new fingerprint of the dataset after transform.
If <code>None</code>, the new fingerprint is computed using a hash of the previous fingerprint, and the transform arguments.`,name:"new_fingerprint"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L4273"}}),Gr=new I({props:{anchor:"datasets.Dataset.shuffle.example",$$slots:{default:[mR]},$$scope:{ctx:w}}}),Nr=new I({props:{anchor:"datasets.Dataset.shuffle.example-2",$$slots:{default:[hR]},$$scope:{ctx:w}}}),Xr=new I({props:{anchor:"datasets.Dataset.shuffle.example-3",$$slots:{default:[gR]},$$scope:{ctx:w}}}),Fd=new k({props:{name:"skip",anchor:"datasets.Dataset.skip",parameters:[{name:"n",val:": int"}],parametersDescription:[{anchor:"datasets.Dataset.skip.n",description:`<strong>n</strong> (<code>int</code>) &#x2014;
Number of elements to skip.`,name:"n"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L4075"}}),Vr=new I({props:{anchor:"datasets.Dataset.skip.example",$$slots:{default:[uR]},$$scope:{ctx:w}}}),Rd=new k({props:{name:"take",anchor:"datasets.Dataset.take",parameters:[{name:"n",val:": int"}],parametersDescription:[{anchor:"datasets.Dataset.take.n",description:`<strong>n</strong> (<code>int</code>) &#x2014;
Number of elements to take.`,name:"n"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L4105"}}),qr=new I({props:{anchor:"datasets.Dataset.take.example",$$slots:{default:[fR]},$$scope:{ctx:w}}}),zd=new k({props:{name:"train_test_split",anchor:"datasets.Dataset.train_test_split",parameters:[{name:"test_size",val:": Union = None"},{name:"train_size",val:": Union = None"},{name:"shuffle",val:": bool = True"},{name:"stratify_by_column",val:": Optional = None"},{name:"seed",val:": Optional = None"},{name:"generator",val:": Optional = None"},{name:"keep_in_memory",val:": bool = False"},{name:"load_from_cache_file",val:": Optional = None"},{name:"train_indices_cache_file_name",val:": Optional = None"},{name:"test_indices_cache_file_name",val:": Optional = None"},{name:"writer_batch_size",val:": Optional = 1000"},{name:"train_new_fingerprint",val:": Optional = None"},{name:"test_new_fingerprint",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.train_test_split.test_size",description:`<strong>test_size</strong> (<code>numpy.random.Generator</code>, <em>optional</em>) &#x2014;
Size of the test split
If <code>float</code>, should be between <code>0.0</code> and <code>1.0</code> and represent the proportion of the dataset to include in the test split.
If <code>int</code>, represents the absolute number of test samples.
If <code>None</code>, the value is set to the complement of the train size.
If <code>train_size</code> is also <code>None</code>, it will be set to <code>0.25</code>.`,name:"test_size"},{anchor:"datasets.Dataset.train_test_split.train_size",description:`<strong>train_size</strong> (<code>numpy.random.Generator</code>, <em>optional</em>) &#x2014;
Size of the train split
If <code>float</code>, should be between <code>0.0</code> and <code>1.0</code> and represent the proportion of the dataset to include in the train split.
If <code>int</code>, represents the absolute number of train samples.
If <code>None</code>, the value is automatically set to the complement of the test size.`,name:"train_size"},{anchor:"datasets.Dataset.train_test_split.shuffle",description:`<strong>shuffle</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to shuffle the data before splitting.`,name:"shuffle"},{anchor:"datasets.Dataset.train_test_split.stratify_by_column",description:`<strong>stratify_by_column</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The column name of labels to be used to perform stratified split of data.`,name:"stratify_by_column"},{anchor:"datasets.Dataset.train_test_split.seed",description:`<strong>seed</strong> (<code>int</code>, <em>optional</em>) &#x2014;
A seed to initialize the default BitGenerator if <code>generator=None</code>.
If <code>None</code>, then fresh, unpredictable entropy will be pulled from the OS.
If an <code>int</code> or <code>array_like[ints]</code> is passed, then it will be passed to SeedSequence to derive the initial BitGenerator state.`,name:"seed"},{anchor:"datasets.Dataset.train_test_split.generator",description:`<strong>generator</strong> (<code>numpy.random.Generator</code>, <em>optional</em>) &#x2014;
Numpy random Generator to use to compute the permutation of the dataset rows.
If <code>generator=None</code> (default), uses <code>np.random.default_rng</code> (the default BitGenerator (PCG64) of NumPy).`,name:"generator"},{anchor:"datasets.Dataset.train_test_split.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep the splits indices in memory instead of writing it to a cache file.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.train_test_split.load_from_cache_file",description:`<strong>load_from_cache_file</strong> (<code>Optional[bool]</code>, defaults to <code>True</code> if caching is enabled) &#x2014;
If a cache file storing the splits indices
can be identified, use it instead of recomputing.`,name:"load_from_cache_file"},{anchor:"datasets.Dataset.train_test_split.train_cache_file_name",description:`<strong>train_cache_file_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Provide the name of a path for the cache file. It is used to store the
train split indices instead of the automatically generated cache file name.`,name:"train_cache_file_name"},{anchor:"datasets.Dataset.train_test_split.test_cache_file_name",description:`<strong>test_cache_file_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Provide the name of a path for the cache file. It is used to store the
test split indices instead of the automatically generated cache file name.`,name:"test_cache_file_name"},{anchor:"datasets.Dataset.train_test_split.writer_batch_size",description:`<strong>writer_batch_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Number of rows per write operation for the cache file writer.
This value is a good trade-off between memory usage during the processing, and processing speed.
Higher value makes the processing do fewer lookups, lower value consume less temporary memory while running <code>map</code>.`,name:"writer_batch_size"},{anchor:"datasets.Dataset.train_test_split.train_new_fingerprint",description:`<strong>train_new_fingerprint</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The new fingerprint of the train set after transform.
If <code>None</code>, the new fingerprint is computed using a hash of the previous fingerprint, and the transform arguments`,name:"train_new_fingerprint"},{anchor:"datasets.Dataset.train_test_split.test_new_fingerprint",description:`<strong>test_new_fingerprint</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The new fingerprint of the test set after transform.
If <code>None</code>, the new fingerprint is computed using a hash of the previous fingerprint, and the transform arguments`,name:"test_new_fingerprint"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L4405"}}),Wr=new I({props:{anchor:"datasets.Dataset.train_test_split.example",$$slots:{default:[bR]},$$scope:{ctx:w}}}),Gd=new k({props:{name:"shard",anchor:"datasets.Dataset.shard",parameters:[{name:"num_shards",val:": int"},{name:"index",val:": int"},{name:"contiguous",val:": bool = False"},{name:"keep_in_memory",val:": bool = False"},{name:"indices_cache_file_name",val:": Optional = None"},{name:"writer_batch_size",val:": Optional = 1000"}],parametersDescription:[{anchor:"datasets.Dataset.shard.num_shards",description:`<strong>num_shards</strong> (<code>int</code>) &#x2014;
How many shards to split the dataset into.`,name:"num_shards"},{anchor:"datasets.Dataset.shard.index",description:`<strong>index</strong> (<code>int</code>) &#x2014;
Which shard to select and return.
contiguous &#x2014; (<code>bool</code>, defaults to <code>False</code>):
Whether to select contiguous blocks of indices for shards.`,name:"index"},{anchor:"datasets.Dataset.shard.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep the dataset in memory instead of writing it to a cache file.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.shard.indices_cache_file_name",description:`<strong>indices_cache_file_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Provide the name of a path for the cache file. It is used to store the
indices of each shard instead of the automatically generated cache file name.`,name:"indices_cache_file_name"},{anchor:"datasets.Dataset.shard.writer_batch_size",description:`<strong>writer_batch_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Number of rows per write operation for the cache file writer.
This value is a good trade-off between memory usage during the processing, and processing speed.
Higher value makes the processing do fewer lookups, lower value consume less temporary memory while running <code>map</code>.`,name:"writer_batch_size"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L4688"}}),Br=new I({props:{anchor:"datasets.Dataset.shard.example",$$slots:{default:[_R]},$$scope:{ctx:w}}}),Nd=new k({props:{name:"to_tf_dataset",anchor:"datasets.Dataset.to_tf_dataset",parameters:[{name:"batch_size",val:": Optional = None"},{name:"columns",val:": Union = None"},{name:"shuffle",val:": bool = False"},{name:"collate_fn",val:": Optional = None"},{name:"drop_remainder",val:": bool = False"},{name:"collate_fn_args",val:": Optional = None"},{name:"label_cols",val:": Union = None"},{name:"prefetch",val:": bool = True"},{name:"num_workers",val:": int = 0"},{name:"num_test_batches",val:": int = 20"}],parametersDescription:[{anchor:"datasets.Dataset.to_tf_dataset.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Size of batches to load from the dataset. Defaults to <code>None</code>, which implies that the dataset won&#x2019;t be
batched, but the returned dataset can be batched later with <code>tf_dataset.batch(batch_size)</code>.`,name:"batch_size"},{anchor:"datasets.Dataset.to_tf_dataset.columns",description:`<strong>columns</strong> (<code>List[str]</code> or <code>str</code>, <em>optional</em>) &#x2014;
Dataset column(s) to load in the <code>tf.data.Dataset</code>.
Column names that are created by the <code>collate_fn</code> and that do not exist in the original dataset can be used.`,name:"columns"},{anchor:"datasets.Dataset.to_tf_dataset.shuffle(bool,",description:`<strong>shuffle(<code>bool</code>,</strong> defaults to <code>False</code>) &#x2014;
Shuffle the dataset order when loading. Recommended <code>True</code> for training, <code>False</code> for
validation/evaluation.`,name:"shuffle(bool,"},{anchor:"datasets.Dataset.to_tf_dataset.drop_remainder(bool,",description:`<strong>drop_remainder(<code>bool</code>,</strong> defaults to <code>False</code>) &#x2014;
Drop the last incomplete batch when loading. Ensures
that all batches yielded by the dataset will have the same length on the batch dimension.`,name:"drop_remainder(bool,"},{anchor:"datasets.Dataset.to_tf_dataset.collate_fn(Callable,",description:`<strong>collate_fn(<code>Callable</code>,</strong> <em>optional</em>) &#x2014;
A function or callable object (such as a <code>DataCollator</code>) that will collate
lists of samples into a batch.`,name:"collate_fn(Callable,"},{anchor:"datasets.Dataset.to_tf_dataset.collate_fn_args",description:`<strong>collate_fn_args</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
An optional <code>dict</code> of keyword arguments to be passed to the
<code>collate_fn</code>.`,name:"collate_fn_args"},{anchor:"datasets.Dataset.to_tf_dataset.label_cols",description:`<strong>label_cols</strong> (<code>List[str]</code> or <code>str</code>, defaults to <code>None</code>) &#x2014;
Dataset column(s) to load as labels.
Note that many models compute loss internally rather than letting Keras do it, in which case
passing the labels here is optional, as long as they&#x2019;re in the input <code>columns</code>.`,name:"label_cols"},{anchor:"datasets.Dataset.to_tf_dataset.prefetch",description:`<strong>prefetch</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to run the dataloader in a separate thread and maintain
a small buffer of batches for training. Improves performance by allowing data to be loaded in the
background while the model is training.`,name:"prefetch"},{anchor:"datasets.Dataset.to_tf_dataset.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, defaults to <code>0</code>) &#x2014;
Number of workers to use for loading the dataset. Only supported on Python versions &gt;= 3.8.`,name:"num_workers"},{anchor:"datasets.Dataset.to_tf_dataset.num_test_batches",description:`<strong>num_test_batches</strong> (<code>int</code>, defaults to <code>20</code>) &#x2014;
Number of batches to use to infer the output signature of the dataset.
The higher this number, the more accurate the signature will be, but the longer it will take to
create the dataset.`,name:"num_test_batches"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L336",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>tf.data.Dataset</code></p>
`}}),Qr=new I({props:{anchor:"datasets.Dataset.to_tf_dataset.example",$$slots:{default:[xR]},$$scope:{ctx:w}}}),Xd=new k({props:{name:"push_to_hub",anchor:"datasets.Dataset.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"config_name",val:": str = 'default'"},{name:"set_default",val:": Optional = None"},{name:"split",val:": Optional = None"},{name:"data_dir",val:": Optional = None"},{name:"commit_message",val:": Optional = None"},{name:"commit_description",val:": Optional = None"},{name:"private",val:": Optional = False"},{name:"token",val:": Optional = None"},{name:"revision",val:": Optional = None"},{name:"branch",val:" = 'deprecated'"},{name:"create_pr",val:": Optional = False"},{name:"max_shard_size",val:": Union = None"},{name:"num_shards",val:": Optional = None"},{name:"embed_external_files",val:": bool = True"}],parametersDescription:[{anchor:"datasets.Dataset.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The ID of the repository to push to in the following format: <code>&lt;user&gt;/&lt;dataset_name&gt;</code> or
<code>&lt;org&gt;/&lt;dataset_name&gt;</code>. Also accepts <code>&lt;dataset_name&gt;</code>, which will default to the namespace
of the logged-in user.`,name:"repo_id"},{anchor:"datasets.Dataset.push_to_hub.config_name",description:`<strong>config_name</strong> (<code>str</code>, defaults to &#x201C;default&#x201D;) &#x2014;
The configuration name (or subset) of a dataset. Defaults to &#x201C;default&#x201D;.`,name:"config_name"},{anchor:"datasets.Dataset.push_to_hub.set_default",description:`<strong>set_default</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to set this configuration as the default one. Otherwise, the default configuration is the one
named &#x201C;default&#x201D;.`,name:"set_default"},{anchor:"datasets.Dataset.push_to_hub.split",description:`<strong>split</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the split that will be given to that dataset. Defaults to <code>self.split</code>.`,name:"split"},{anchor:"datasets.Dataset.push_to_hub.data_dir",description:`<strong>data_dir</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Directory name that will contain the uploaded data files. Defaults to the <code>config_name</code> if different
from &#x201C;default&#x201D;, else &#x201C;data&#x201D;.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.17.0</p>
						
					</div>`,name:"data_dir"},{anchor:"datasets.Dataset.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload dataset&quot;</code>.`,name:"commit_message"},{anchor:"datasets.Dataset.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Description of the commit that will be created.
Additionally, description of the PR if a PR is created (<code>create_pr</code> is True).</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.16.0</p>
						
					</div>`,name:"commit_description"},{anchor:"datasets.Dataset.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the dataset repository should be set to private or not. Only affects repository creation:
a repository that already exists will not be affected by that parameter.`,name:"private"},{anchor:"datasets.Dataset.push_to_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional authentication token for the Hugging Face Hub. If no token is passed, will default
to the token saved locally when logging in with <code>huggingface-cli login</code>. Will raise an error
if no token is passed and the user is not logged-in.`,name:"token"},{anchor:"datasets.Dataset.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Branch to push the uploaded files to. Defaults to the <code>&quot;main&quot;</code> branch.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.15.0</p>
						
					</div>`,name:"revision"},{anchor:"datasets.Dataset.push_to_hub.branch",description:`<strong>branch</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git branch on which to push the dataset. This defaults to the default branch as specified
in your repository, which defaults to <code>&quot;main&quot;</code>.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						<p class="font-medium">Deprecated in 2.15.0</p>
						
<p><code>branch</code> was deprecated in favor of <code>revision</code> in version 2.15.0 and will be removed in 3.0.0.</p>

					</div>`,name:"branch"},{anchor:"datasets.Dataset.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to create a PR with the uploaded files or directly commit.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.15.0</p>
						
					</div>`,name:"create_pr"},{anchor:"datasets.Dataset.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;500MB&quot;</code>) &#x2014;
The maximum size of the dataset shards to be uploaded to the hub. If expressed as a string, needs to be digits followed by
a unit (like <code>&quot;5MB&quot;</code>).`,name:"max_shard_size"},{anchor:"datasets.Dataset.push_to_hub.num_shards",description:`<strong>num_shards</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of shards to write. By default, the number of shards depends on <code>max_shard_size</code>.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.8.0</p>
						
					</div>`,name:"num_shards"},{anchor:"datasets.Dataset.push_to_hub.embed_external_files",description:`<strong>embed_external_files</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to embed file bytes in the shards.
In particular, this will do the following before the push for the fields of type:</p>
<ul>
<li><a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Audio">Audio</a> and <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Image">Image</a>: remove local path information and embed file content in the Parquet files.</li>
</ul>`,name:"embed_external_files"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L5471",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>huggingface_hub.CommitInfo</p>
`}}),Er=new I({props:{anchor:"datasets.Dataset.push_to_hub.example",$$slots:{default:[$R]},$$scope:{ctx:w}}}),Hr=new I({props:{anchor:"datasets.Dataset.push_to_hub.example-2",$$slots:{default:[yR]},$$scope:{ctx:w}}}),Lr=new I({props:{anchor:"datasets.Dataset.push_to_hub.example-3",$$slots:{default:[jR]},$$scope:{ctx:w}}}),Vd=new k({props:{name:"save_to_disk",anchor:"datasets.Dataset.save_to_disk",parameters:[{name:"dataset_path",val:": Union"},{name:"fs",val:" = 'deprecated'"},{name:"max_shard_size",val:": Union = None"},{name:"num_shards",val:": Optional = None"},{name:"num_proc",val:": Optional = None"},{name:"storage_options",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.save_to_disk.dataset_path",description:`<strong>dataset_path</strong> (<code>str</code>) &#x2014;
Path (e.g. <code>dataset/train</code>) or remote URI (e.g. <code>s3://my-bucket/dataset/train</code>)
of the dataset directory where the dataset will be saved to.`,name:"dataset_path"},{anchor:"datasets.Dataset.save_to_disk.fs",description:`<strong>fs</strong> (<code>fsspec.spec.AbstractFileSystem</code>, <em>optional</em>) &#x2014;
Instance of the remote filesystem where the dataset will be saved to.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						<p class="font-medium">Deprecated in 2.8.0</p>
						
<p><code>fs</code> was deprecated in version 2.8.0 and will be removed in 3.0.0.
Please use <code>storage_options</code> instead, e.g. <code>storage_options=fs.storage_options</code></p>

					</div>`,name:"fs"},{anchor:"datasets.Dataset.save_to_disk.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;500MB&quot;</code>) &#x2014;
The maximum size of the dataset shards to be uploaded to the hub. If expressed as a string, needs to be digits followed by a unit
(like <code>&quot;50MB&quot;</code>).`,name:"max_shard_size"},{anchor:"datasets.Dataset.save_to_disk.num_shards",description:`<strong>num_shards</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of shards to write. By default the number of shards depends on <code>max_shard_size</code> and <code>num_proc</code>.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.8.0</p>
						
					</div>`,name:"num_shards"},{anchor:"datasets.Dataset.save_to_disk.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of processes when downloading and generating the dataset locally.
Multiprocessing is disabled by default.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.8.0</p>
						
					</div>`,name:"num_proc"},{anchor:"datasets.Dataset.save_to_disk.storage_options",description:`<strong>storage_options</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Key/value pairs to be passed on to the file-system backend, if any.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.8.0</p>
						
					</div>`,name:"storage_options"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1439"}}),Yr=new I({props:{anchor:"datasets.Dataset.save_to_disk.example",$$slots:{default:[wR]},$$scope:{ctx:w}}}),qd=new k({props:{name:"load_from_disk",anchor:"datasets.Dataset.load_from_disk",parameters:[{name:"dataset_path",val:": str"},{name:"fs",val:" = 'deprecated'"},{name:"keep_in_memory",val:": Optional = None"},{name:"storage_options",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.load_from_disk.dataset_path",description:`<strong>dataset_path</strong> (<code>str</code>) &#x2014;
Path (e.g. <code>&quot;dataset/train&quot;</code>) or remote URI (e.g. <code>&quot;s3//my-bucket/dataset/train&quot;</code>)
of the dataset directory where the dataset will be loaded from.`,name:"dataset_path"},{anchor:"datasets.Dataset.load_from_disk.fs",description:`<strong>fs</strong> (<code>fsspec.spec.AbstractFileSystem</code>, <em>optional</em>) &#x2014;
Instance of the remote filesystem where the dataset will be saved to.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						<p class="font-medium">Deprecated in 2.8.0</p>
						
<p><code>fs</code> was deprecated in version 2.8.0 and will be removed in 3.0.0.
Please use <code>storage_options</code> instead, e.g. <code>storage_options=fs.storage_options</code></p>

					</div>`,name:"fs"},{anchor:"datasets.Dataset.load_from_disk.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>None</code>) &#x2014;
Whether to copy the dataset in-memory. If <code>None</code>, the
dataset will not be copied in-memory unless explicitly enabled by setting
<code>datasets.config.IN_MEMORY_MAX_SIZE</code> to nonzero. See more details in the
<a href="../cache#improve-performance">improve performance</a> section.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.load_from_disk.storage_options",description:`<strong>storage_options</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Key/value pairs to be passed on to the file-system backend, if any.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.8.0</p>
						
					</div>`,name:"storage_options"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1655",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li>If <code>dataset_path</code> is a path of a dataset directory, the dataset requested.</li>
<li>If <code>dataset_path</code> is a path of a dataset dict directory, a <code>datasets.DatasetDict</code> with each split.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a> or <a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),Sr=new I({props:{anchor:"datasets.Dataset.load_from_disk.example",$$slots:{default:[vR]},$$scope:{ctx:w}}}),Wd=new k({props:{name:"flatten_indices",anchor:"datasets.Dataset.flatten_indices",parameters:[{name:"keep_in_memory",val:": bool = False"},{name:"cache_file_name",val:": Optional = None"},{name:"writer_batch_size",val:": Optional = 1000"},{name:"features",val:": Optional = None"},{name:"disable_nullable",val:": bool = False"},{name:"num_proc",val:": Optional = None"},{name:"new_fingerprint",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.flatten_indices.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep the dataset in memory instead of writing it to a cache file.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.flatten_indices.cache_file_name",description:`<strong>cache_file_name</strong> (<code>str</code>, <em>optional</em>, default <code>None</code>) &#x2014;
Provide the name of a path for the cache file. It is used to store the
results of the computation instead of the automatically generated cache file name.`,name:"cache_file_name"},{anchor:"datasets.Dataset.flatten_indices.writer_batch_size",description:`<strong>writer_batch_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Number of rows per write operation for the cache file writer.
This value is a good trade-off between memory usage during the processing, and processing speed.
Higher value makes the processing do fewer lookups, lower value consume less temporary memory while running <code>map</code>.`,name:"writer_batch_size"},{anchor:"datasets.Dataset.flatten_indices.features",description:`<strong>features</strong> (<code>Optional[datasets.Features]</code>, defaults to <code>None</code>) &#x2014;
Use a specific <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a> to store the cache file
instead of the automatically generated one.`,name:"features"},{anchor:"datasets.Dataset.flatten_indices.disable_nullable",description:`<strong>disable_nullable</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Allow null values in the table.`,name:"disable_nullable"},{anchor:"datasets.Dataset.flatten_indices.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, optional, default <code>None</code>) &#x2014;
Max number of processes when generating cache. Already cached shards are loaded sequentially`,name:"num_proc"},{anchor:"datasets.Dataset.flatten_indices.new_fingerprint",description:`<strong>new_fingerprint</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The new fingerprint of the dataset after transform.
If <code>None</code>, the new fingerprint is computed using a hash of the previous fingerprint, and the transform arguments`,name:"new_fingerprint"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L3746"}}),Bd=new k({props:{name:"to_csv",anchor:"datasets.Dataset.to_csv",parameters:[{name:"path_or_buf",val:": Union"},{name:"batch_size",val:": Optional = None"},{name:"num_proc",val:": Optional = None"},{name:"storage_options",val:": Optional = None"},{name:"**to_csv_kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.to_csv.path_or_buf",description:`<strong>path_or_buf</strong> (<code>PathLike</code> or <code>FileOrBuffer</code>) &#x2014;
Either a path to a file (e.g. <code>file.csv</code>), a remote URI (e.g. <code>hf://datasets/username/my_dataset_name/data.csv</code>),
or a BinaryIO, where the dataset will be saved to in the specified format.`,name:"path_or_buf"},{anchor:"datasets.Dataset.to_csv.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Size of the batch to load in memory and write at once.
Defaults to <code>datasets.config.DEFAULT_MAX_BATCH_SIZE</code>.`,name:"batch_size"},{anchor:"datasets.Dataset.to_csv.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of processes for multiprocessing. By default it doesn&#x2019;t
use multiprocessing. <code>batch_size</code> in this case defaults to
<code>datasets.config.DEFAULT_MAX_BATCH_SIZE</code> but feel free to make it 5x or 10x of the default
value if you have sufficient compute power.`,name:"num_proc"},{anchor:"datasets.Dataset.to_csv.storage_options",description:`<strong>storage_options</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Key/value pairs to be passed on to the file-system backend, if any.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.19.0</p>
						
					</div>`,name:"storage_options"},{anchor:"datasets.Dataset.to_csv.*to_csv_kwargs",description:`*<strong>*to_csv_kwargs</strong> (additional keyword arguments) &#x2014;
Parameters to pass to pandas&#x2019;s <a href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_json.html" rel="nofollow"><code>pandas.DataFrame.to_csv</code></a>.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Changed in 2.10.0</p>
						
<p>Now, <code>index</code> defaults to <code>False</code> if not specified.</p>
<p>If you would like to write the index, pass <code>index=True</code> and also set a name for the index column by
passing <code>index_label</code>.</p>

					</div>`,name:"*to_csv_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L4854",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The number of characters or bytes written.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>int</code></p>
`}}),Pr=new I({props:{anchor:"datasets.Dataset.to_csv.example",$$slots:{default:[MR]},$$scope:{ctx:w}}}),Qd=new k({props:{name:"to_pandas",anchor:"datasets.Dataset.to_pandas",parameters:[{name:"batch_size",val:": Optional = None"},{name:"batched",val:": bool = False"}],parametersDescription:[{anchor:"datasets.Dataset.to_pandas.batched",description:`<strong>batched</strong> (<code>bool</code>) &#x2014;
Set to <code>True</code> to return a generator that yields the dataset as batches
of <code>batch_size</code> rows. Defaults to <code>False</code> (returns the whole datasets once).`,name:"batched"},{anchor:"datasets.Dataset.to_pandas.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The size (number of rows) of the batches if <code>batched</code> is <code>True</code>.
Defaults to <code>datasets.config.DEFAULT_MAX_BATCH_SIZE</code>.`,name:"batch_size"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L5044",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>pandas.DataFrame</code> or <code>Iterator[pandas.DataFrame]</code></p>
`}}),Kr=new I({props:{anchor:"datasets.Dataset.to_pandas.example",$$slots:{default:[kR]},$$scope:{ctx:w}}}),Ed=new k({props:{name:"to_dict",anchor:"datasets.Dataset.to_dict",parameters:[{name:"batch_size",val:": Optional = None"},{name:"batched",val:" = 'deprecated'"}],parametersDescription:[{anchor:"datasets.Dataset.to_dict.batched",description:`<strong>batched</strong> (<code>bool</code>) &#x2014;
Set to <code>True</code> to return a generator that yields the dataset as batches
of <code>batch_size</code> rows. Defaults to <code>False</code> (returns the whole datasets once).</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						<p class="font-medium">Deprecated in 2.11.0</p>
						
<p>Use <code>.iter(batch_size=batch_size)</code> followed by <code>.to_dict()</code> on the individual batches instead.</p>

					</div>`,name:"batched"},{anchor:"datasets.Dataset.to_dict.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>) &#x2014; The size (number of rows) of the batches if <code>batched</code> is <code>True</code>.
Defaults to <code>datasets.config.DEFAULT_MAX_BATCH_SIZE</code>.`,name:"batch_size"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L4913",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code> or <code>Iterator[dict]</code></p>
`}}),Or=new I({props:{anchor:"datasets.Dataset.to_dict.example",$$slots:{default:[JR]},$$scope:{ctx:w}}}),Hd=new k({props:{name:"to_json",anchor:"datasets.Dataset.to_json",parameters:[{name:"path_or_buf",val:": Union"},{name:"batch_size",val:": Optional = None"},{name:"num_proc",val:": Optional = None"},{name:"storage_options",val:": Optional = None"},{name:"**to_json_kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.to_json.path_or_buf",description:`<strong>path_or_buf</strong> (<code>PathLike</code> or <code>FileOrBuffer</code>) &#x2014;
Either a path to a file (e.g. <code>file.json</code>), a remote URI (e.g. <code>hf://datasets/username/my_dataset_name/data.json</code>),
or a BinaryIO, where the dataset will be saved to in the specified format.`,name:"path_or_buf"},{anchor:"datasets.Dataset.to_json.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Size of the batch to load in memory and write at once.
Defaults to <code>datasets.config.DEFAULT_MAX_BATCH_SIZE</code>.`,name:"batch_size"},{anchor:"datasets.Dataset.to_json.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of processes for multiprocessing. By default, it doesn&#x2019;t
use multiprocessing. <code>batch_size</code> in this case defaults to
<code>datasets.config.DEFAULT_MAX_BATCH_SIZE</code> but feel free to make it 5x or 10x of the default
value if you have sufficient compute power.`,name:"num_proc"},{anchor:"datasets.Dataset.to_json.storage_options",description:`<strong>storage_options</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Key/value pairs to be passed on to the file-system backend, if any.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.19.0</p>
						
					</div>`,name:"storage_options"},{anchor:"datasets.Dataset.to_json.*to_json_kwargs",description:`*<strong>*to_json_kwargs</strong> (additional keyword arguments) &#x2014;
Parameters to pass to pandas&#x2019;s <a href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_json.html" rel="nofollow"><code>pandas.DataFrame.to_json</code></a>.
Default arguments are <code>lines=True</code> and \`orient=&#x201C;records&#x201D;.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Changed in 2.11.0</p>
						
<p>The parameter <code>index</code> defaults to <code>False</code> if <code>orient</code> is <code>&quot;split&quot;</code> or <code>&quot;table&quot;</code>.</p>
<p>If you would like to write the index, pass <code>index=True</code>.</p>

					</div>`,name:"*to_json_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L4982",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The number of characters or bytes written.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>int</code></p>
`}}),eo=new I({props:{anchor:"datasets.Dataset.to_json.example",$$slots:{default:[TR]},$$scope:{ctx:w}}}),Ld=new k({props:{name:"to_parquet",anchor:"datasets.Dataset.to_parquet",parameters:[{name:"path_or_buf",val:": Union"},{name:"batch_size",val:": Optional = None"},{name:"storage_options",val:": Optional = None"},{name:"**parquet_writer_kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.to_parquet.path_or_buf",description:`<strong>path_or_buf</strong> (<code>PathLike</code> or <code>FileOrBuffer</code>) &#x2014;
Either a path to a file (e.g. <code>file.parquet</code>), a remote URI (e.g. <code>hf://datasets/username/my_dataset_name/data.parquet</code>),
or a BinaryIO, where the dataset will be saved to in the specified format.`,name:"path_or_buf"},{anchor:"datasets.Dataset.to_parquet.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Size of the batch to load in memory and write at once.
Defaults to <code>datasets.config.DEFAULT_MAX_BATCH_SIZE</code>.`,name:"batch_size"},{anchor:"datasets.Dataset.to_parquet.storage_options",description:`<strong>storage_options</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Key/value pairs to be passed on to the file-system backend, if any.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.19.0</p>
						
					</div>`,name:"storage_options"},{anchor:"datasets.Dataset.to_parquet.*parquet_writer_kwargs",description:`*<strong>*parquet_writer_kwargs</strong> (additional keyword arguments) &#x2014;
Parameters to pass to PyArrow&#x2019;s <code>pyarrow.parquet.ParquetWriter</code>.`,name:"*parquet_writer_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L5143",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The number of characters or bytes written.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>int</code></p>
`}}),to=new I({props:{anchor:"datasets.Dataset.to_parquet.example",$$slots:{default:[DR]},$$scope:{ctx:w}}}),Yd=new k({props:{name:"to_sql",anchor:"datasets.Dataset.to_sql",parameters:[{name:"name",val:": str"},{name:"con",val:": Union"},{name:"batch_size",val:": Optional = None"},{name:"**sql_writer_kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.to_sql.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
Name of SQL table.`,name:"name"},{anchor:"datasets.Dataset.to_sql.con",description:`<strong>con</strong> (<code>str</code> or <code>sqlite3.Connection</code> or <code>sqlalchemy.engine.Connection</code> or <code>sqlalchemy.engine.Connection</code>) &#x2014;
A <a href="https://docs.sqlalchemy.org/en/13/core/engines.html#database-urls" rel="nofollow">URI string</a> or a SQLite3/SQLAlchemy connection object used to write to a database.`,name:"con"},{anchor:"datasets.Dataset.to_sql.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Size of the batch to load in memory and write at once.
Defaults to <code>datasets.config.DEFAULT_MAX_BATCH_SIZE</code>.`,name:"batch_size"},{anchor:"datasets.Dataset.to_sql.*sql_writer_kwargs",description:`*<strong>*sql_writer_kwargs</strong> (additional keyword arguments) &#x2014;
Parameters to pass to pandas&#x2019;s <a href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_sql.html" rel="nofollow"><code>pandas.DataFrame.to_sql</code></a>.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Changed in 2.11.0</p>
						
<p>Now, <code>index</code> defaults to <code>False</code> if not specified.</p>
<p>If you would like to write the index, pass <code>index=True</code> and also set a name for the index column by
passing <code>index_label</code>.</p>

					</div>`,name:"*sql_writer_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L5182",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The number of records written.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>int</code></p>
`}}),so=new I({props:{anchor:"datasets.Dataset.to_sql.example",$$slots:{default:[IR]},$$scope:{ctx:w}}}),Sd=new k({props:{name:"to_iterable_dataset",anchor:"datasets.Dataset.to_iterable_dataset",parameters:[{name:"num_shards",val:": Optional = 1"}],parametersDescription:[{anchor:"datasets.Dataset.to_iterable_dataset.num_shards",description:`<strong>num_shards</strong> (<code>int</code>, default to <code>1</code>) &#x2014;
Number of shards to define when instantiating the iterable dataset. This is especially useful for big datasets to be able to shuffle properly,
and also to enable fast parallel loading using a PyTorch DataLoader or in distributed setups for example.
Shards are defined using <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.shard">datasets.Dataset.shard()</a>: it simply slices the data without writing anything on disk.`,name:"num_shards"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L5274",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset"
>datasets.IterableDataset</a></p>
`}}),ao=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example",$$slots:{default:[CR]},$$scope:{ctx:w}}}),no=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-2",$$slots:{default:[UR]},$$scope:{ctx:w}}}),ro=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-3",$$slots:{default:[ZR]},$$scope:{ctx:w}}}),oo=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-4",$$slots:{default:[FR]},$$scope:{ctx:w}}}),lo=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-5",$$slots:{default:[RR]},$$scope:{ctx:w}}}),co=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-6",$$slots:{default:[zR]},$$scope:{ctx:w}}}),io=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-7",$$slots:{default:[GR]},$$scope:{ctx:w}}}),Ad=new k({props:{name:"add_faiss_index",anchor:"datasets.Dataset.add_faiss_index",parameters:[{name:"column",val:": str"},{name:"index_name",val:": Optional = None"},{name:"device",val:": Optional = None"},{name:"string_factory",val:": Optional = None"},{name:"metric_type",val:": Optional = None"},{name:"custom_index",val:": Optional = None"},{name:"batch_size",val:": int = 1000"},{name:"train_size",val:": Optional = None"},{name:"faiss_verbose",val:": bool = False"},{name:"dtype",val:" = <class 'numpy.float32'>"}],parametersDescription:[{anchor:"datasets.Dataset.add_faiss_index.column",description:`<strong>column</strong> (<code>str</code>) &#x2014;
The column of the vectors to add to the index.`,name:"column"},{anchor:"datasets.Dataset.add_faiss_index.index_name",description:`<strong>index_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The <code>index_name</code>/identifier of the index.
This is the <code>index_name</code> that is used to call <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.get_nearest_examples">get_nearest_examples()</a> or <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.search">search()</a>.
By default it corresponds to <code>column</code>.`,name:"index_name"},{anchor:"datasets.Dataset.add_faiss_index.device",description:`<strong>device</strong> (<code>Union[int, List[int]]</code>, <em>optional</em>) &#x2014;
If positive integer, this is the index of the GPU to use. If negative integer, use all GPUs.
If a list of positive integers is passed in, run only on those GPUs. By default it uses the CPU.`,name:"device"},{anchor:"datasets.Dataset.add_faiss_index.string_factory",description:`<strong>string_factory</strong> (<code>str</code>, <em>optional</em>) &#x2014;
This is passed to the index factory of Faiss to create the index.
Default index class is <code>IndexFlat</code>.`,name:"string_factory"},{anchor:"datasets.Dataset.add_faiss_index.metric_type",description:`<strong>metric_type</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Type of metric. Ex: <code>faiss.METRIC_INNER_PRODUCT</code> or <code>faiss.METRIC_L2</code>.`,name:"metric_type"},{anchor:"datasets.Dataset.add_faiss_index.custom_index",description:`<strong>custom_index</strong> (<code>faiss.Index</code>, <em>optional</em>) &#x2014;
Custom Faiss index that you already have instantiated and configured for your needs.`,name:"custom_index"},{anchor:"datasets.Dataset.add_faiss_index.batch_size",description:`<strong>batch_size</strong> (<code>int</code>) &#x2014;
Size of the batch to use while adding vectors to the <code>FaissIndex</code>. Default value is <code>1000</code>.<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.4.0</p>
						
					</div>`,name:"batch_size"},{anchor:"datasets.Dataset.add_faiss_index.train_size",description:`<strong>train_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If the index needs a training step, specifies how many vectors will be used to train the index.`,name:"train_size"},{anchor:"datasets.Dataset.add_faiss_index.faiss_verbose",description:`<strong>faiss_verbose</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Enable the verbosity of the Faiss index.`,name:"faiss_verbose"},{anchor:"datasets.Dataset.add_faiss_index.dtype",description:`<strong>dtype</strong> (<code>data-type</code>) &#x2014;
The dtype of the numpy arrays that are indexed.
Default is <code>np.float32</code>.`,name:"dtype"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L5869"}}),po=new I({props:{anchor:"datasets.Dataset.add_faiss_index.example",$$slots:{default:[NR]},$$scope:{ctx:w}}}),Pd=new k({props:{name:"add_faiss_index_from_external_arrays",anchor:"datasets.Dataset.add_faiss_index_from_external_arrays",parameters:[{name:"external_arrays",val:": array"},{name:"index_name",val:": str"},{name:"device",val:": Optional = None"},{name:"string_factory",val:": Optional = None"},{name:"metric_type",val:": Optional = None"},{name:"custom_index",val:": Optional = None"},{name:"batch_size",val:": int = 1000"},{name:"train_size",val:": Optional = None"},{name:"faiss_verbose",val:": bool = False"},{name:"dtype",val:" = <class 'numpy.float32'>"}],parametersDescription:[{anchor:"datasets.Dataset.add_faiss_index_from_external_arrays.external_arrays",description:`<strong>external_arrays</strong> (<code>np.array</code>) &#x2014;
If you want to use arrays from outside the lib for the index, you can set <code>external_arrays</code>.
It will use <code>external_arrays</code> to create the Faiss index instead of the arrays in the given <code>column</code>.`,name:"external_arrays"},{anchor:"datasets.Dataset.add_faiss_index_from_external_arrays.index_name",description:`<strong>index_name</strong> (<code>str</code>) &#x2014;
The <code>index_name</code>/identifier of the index.
This is the <code>index_name</code> that is used to call <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.get_nearest_examples">get_nearest_examples()</a> or <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.search">search()</a>.`,name:"index_name"},{anchor:"datasets.Dataset.add_faiss_index_from_external_arrays.device",description:`<strong>device</strong> (Optional <code>Union[int, List[int]]</code>, <em>optional</em>) &#x2014;
If positive integer, this is the index of the GPU to use. If negative integer, use all GPUs.
If a list of positive integers is passed in, run only on those GPUs. By default it uses the CPU.`,name:"device"},{anchor:"datasets.Dataset.add_faiss_index_from_external_arrays.string_factory",description:`<strong>string_factory</strong> (<code>str</code>, <em>optional</em>) &#x2014;
This is passed to the index factory of Faiss to create the index.
Default index class is <code>IndexFlat</code>.`,name:"string_factory"},{anchor:"datasets.Dataset.add_faiss_index_from_external_arrays.metric_type",description:`<strong>metric_type</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Type of metric. Ex: <code>faiss.faiss.METRIC_INNER_PRODUCT</code> or <code>faiss.METRIC_L2</code>.`,name:"metric_type"},{anchor:"datasets.Dataset.add_faiss_index_from_external_arrays.custom_index",description:`<strong>custom_index</strong> (<code>faiss.Index</code>, <em>optional</em>) &#x2014;
Custom Faiss index that you already have instantiated and configured for your needs.`,name:"custom_index"},{anchor:"datasets.Dataset.add_faiss_index_from_external_arrays.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Size of the batch to use while adding vectors to the FaissIndex. Default value is 1000.<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.4.0</p>
						
					</div>`,name:"batch_size"},{anchor:"datasets.Dataset.add_faiss_index_from_external_arrays.train_size",description:`<strong>train_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If the index needs a training step, specifies how many vectors will be used to train the index.`,name:"train_size"},{anchor:"datasets.Dataset.add_faiss_index_from_external_arrays.faiss_verbose",description:`<strong>faiss_verbose</strong> (<code>bool</code>, defaults to False) &#x2014;
Enable the verbosity of the Faiss index.`,name:"faiss_verbose"},{anchor:"datasets.Dataset.add_faiss_index_from_external_arrays.dtype",description:`<strong>dtype</strong> (<code>numpy.dtype</code>) &#x2014;
The dtype of the numpy arrays that are indexed. Default is np.float32.`,name:"dtype"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L5949"}}),Kd=new k({props:{name:"save_faiss_index",anchor:"datasets.Dataset.save_faiss_index",parameters:[{name:"index_name",val:": str"},{name:"file",val:": Union"},{name:"storage_options",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.save_faiss_index.index_name",description:"<strong>index_name</strong> (<code>str</code>) &#x2014; The index_name/identifier of the index. This is the index_name that is used to call <code>.get_nearest</code> or <code>.search</code>.",name:"index_name"},{anchor:"datasets.Dataset.save_faiss_index.file",description:"<strong>file</strong> (<code>str</code>) &#x2014; The path to the serialized faiss index on disk or remote URI (e.g. <code>&quot;s3://my-bucket/index.faiss&quot;</code>).",name:"file"},{anchor:"datasets.Dataset.save_faiss_index.storage_options",description:`<strong>storage_options</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Key/value pairs to be passed on to the file-system backend, if any.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.11.0</p>
						
					</div>`,name:"storage_options"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/search.py#L535"}}),Od=new k({props:{name:"load_faiss_index",anchor:"datasets.Dataset.load_faiss_index",parameters:[{name:"index_name",val:": str"},{name:"file",val:": Union"},{name:"device",val:": Union = None"},{name:"storage_options",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.load_faiss_index.index_name",description:`<strong>index_name</strong> (<code>str</code>) &#x2014; The index_name/identifier of the index. This is the index_name that is used to
call <code>.get_nearest</code> or <code>.search</code>.`,name:"index_name"},{anchor:"datasets.Dataset.load_faiss_index.file",description:"<strong>file</strong> (<code>str</code>) &#x2014; The path to the serialized faiss index on disk or remote URI (e.g. <code>&quot;s3://my-bucket/index.faiss&quot;</code>).",name:"file"},{anchor:"datasets.Dataset.load_faiss_index.device",description:`<strong>device</strong> (Optional <code>Union[int, List[int]]</code>) &#x2014; If positive integer, this is the index of the GPU to use. If negative integer, use all GPUs.
If a list of positive integers is passed in, run only on those GPUs. By default it uses the CPU.`,name:"device"},{anchor:"datasets.Dataset.load_faiss_index.storage_options",description:`<strong>storage_options</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Key/value pairs to be passed on to the file-system backend, if any.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.11.0</p>
						
					</div>`,name:"storage_options"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/search.py#L553"}}),ei=new k({props:{name:"add_elasticsearch_index",anchor:"datasets.Dataset.add_elasticsearch_index",parameters:[{name:"column",val:": str"},{name:"index_name",val:": Optional = None"},{name:"host",val:": Optional = None"},{name:"port",val:": Optional = None"},{name:"es_client",val:": Optional = None"},{name:"es_index_name",val:": Optional = None"},{name:"es_index_config",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.add_elasticsearch_index.column",description:`<strong>column</strong> (<code>str</code>) &#x2014;
The column of the documents to add to the index.`,name:"column"},{anchor:"datasets.Dataset.add_elasticsearch_index.index_name",description:`<strong>index_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The <code>index_name</code>/identifier of the index.
This is the index name that is used to call <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.get_nearest_examples">get_nearest_examples()</a> or <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.search">search()</a>.
By default it corresponds to <code>column</code>.`,name:"index_name"},{anchor:"datasets.Dataset.add_elasticsearch_index.host",description:`<strong>host</strong> (<code>str</code>, <em>optional</em>, defaults to <code>localhost</code>) &#x2014;
Host of where ElasticSearch is running.`,name:"host"},{anchor:"datasets.Dataset.add_elasticsearch_index.port",description:`<strong>port</strong> (<code>str</code>, <em>optional</em>, defaults to <code>9200</code>) &#x2014;
Port of where ElasticSearch is running.`,name:"port"},{anchor:"datasets.Dataset.add_elasticsearch_index.es_client",description:`<strong>es_client</strong> (<code>elasticsearch.Elasticsearch</code>, <em>optional</em>) &#x2014;
The elasticsearch client used to create the index if host and port are <code>None</code>.`,name:"es_client"},{anchor:"datasets.Dataset.add_elasticsearch_index.es_index_name",description:`<strong>es_index_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The elasticsearch index name used to create the index.`,name:"es_index_name"},{anchor:"datasets.Dataset.add_elasticsearch_index.es_index_config",description:`<strong>es_index_config</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
The configuration of the elasticsearch index.
Default config is:`,name:"es_index_config"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L6008"}}),ho=new I({props:{anchor:"datasets.Dataset.add_elasticsearch_index.example",$$slots:{default:[XR]},$$scope:{ctx:w}}}),ti=new k({props:{name:"load_elasticsearch_index",anchor:"datasets.Dataset.load_elasticsearch_index",parameters:[{name:"index_name",val:": str"},{name:"es_index_name",val:": str"},{name:"host",val:": Optional = None"},{name:"port",val:": Optional = None"},{name:"es_client",val:": Optional = None"},{name:"es_index_config",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Dataset.load_elasticsearch_index.index_name",description:`<strong>index_name</strong> (<code>str</code>) &#x2014;
The <code>index_name</code>/identifier of the index. This is the index name that is used to call <code>get_nearest</code> or <code>search</code>.`,name:"index_name"},{anchor:"datasets.Dataset.load_elasticsearch_index.es_index_name",description:`<strong>es_index_name</strong> (<code>str</code>) &#x2014;
The name of elasticsearch index to load.`,name:"es_index_name"},{anchor:"datasets.Dataset.load_elasticsearch_index.host",description:`<strong>host</strong> (<code>str</code>, <em>optional</em>, defaults to <code>localhost</code>) &#x2014;
Host of where ElasticSearch is running.`,name:"host"},{anchor:"datasets.Dataset.load_elasticsearch_index.port",description:`<strong>port</strong> (<code>str</code>, <em>optional</em>, defaults to <code>9200</code>) &#x2014;
Port of where ElasticSearch is running.`,name:"port"},{anchor:"datasets.Dataset.load_elasticsearch_index.es_client",description:`<strong>es_client</strong> (<code>elasticsearch.Elasticsearch</code>, <em>optional</em>) &#x2014;
The elasticsearch client used to create the index if host and port are <code>None</code>.`,name:"es_client"},{anchor:"datasets.Dataset.load_elasticsearch_index.es_index_config",description:`<strong>es_index_config</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
The configuration of the elasticsearch index.
Default config is:`,name:"es_index_config"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/search.py#L637"}}),si=new k({props:{name:"list_indexes",anchor:"datasets.Dataset.list_indexes",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/search.py#L438"}}),ai=new k({props:{name:"get_index",anchor:"datasets.Dataset.get_index",parameters:[{name:"index_name",val:": str"}],parametersDescription:[{anchor:"datasets.Dataset.get_index.index_name",description:"<strong>index_name</strong> (<code>str</code>) &#x2014; Index name.",name:"index_name"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/search.py#L442",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>BaseIndex</code></p>
`}}),ni=new k({props:{name:"drop_index",anchor:"datasets.Dataset.drop_index",parameters:[{name:"index_name",val:": str"}],parametersDescription:[{anchor:"datasets.Dataset.drop_index.index_name",description:`<strong>index_name</strong> (<code>str</code>) &#x2014;
The <code>index_name</code>/identifier of the index.`,name:"index_name"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/search.py#L684"}}),ri=new k({props:{name:"search",anchor:"datasets.Dataset.search",parameters:[{name:"index_name",val:": str"},{name:"query",val:": Union"},{name:"k",val:": int = 10"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.search.index_name",description:`<strong>index_name</strong> (<code>str</code>) &#x2014;
The name/identifier of the index.`,name:"index_name"},{anchor:"datasets.Dataset.search.query",description:`<strong>query</strong> (<code>Union[str, np.ndarray]</code>) &#x2014;
The query as a string if <code>index_name</code> is a text index or as a numpy array if <code>index_name</code> is a vector index.`,name:"query"},{anchor:"datasets.Dataset.search.k",description:`<strong>k</strong> (<code>int</code>) &#x2014;
The number of examples to retrieve.`,name:"k"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/search.py#L693",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A tuple of <code>(scores, indices)</code> where:</p>
<ul>
<li><strong>scores</strong> (<code>List[List[float]</code>): the retrieval scores from either FAISS (<code>IndexFlatL2</code> by default) or ElasticSearch of the retrieved examples</li>
<li><strong>indices</strong> (<code>List[List[int]]</code>): the indices of the retrieved examples</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>(scores, indices)</code></p>
`}}),oi=new k({props:{name:"search_batch",anchor:"datasets.Dataset.search_batch",parameters:[{name:"index_name",val:": str"},{name:"queries",val:": Union"},{name:"k",val:": int = 10"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.search_batch.index_name",description:`<strong>index_name</strong> (<code>str</code>) &#x2014;
The <code>index_name</code>/identifier of the index.`,name:"index_name"},{anchor:"datasets.Dataset.search_batch.queries",description:`<strong>queries</strong> (<code>Union[List[str], np.ndarray]</code>) &#x2014;
The queries as a list of strings if <code>index_name</code> is a text index or as a numpy array if <code>index_name</code> is a vector index.`,name:"queries"},{anchor:"datasets.Dataset.search_batch.k",description:`<strong>k</strong> (<code>int</code>) &#x2014;
The number of examples to retrieve per query.`,name:"k"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/search.py#L713",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A tuple of <code>(total_scores, total_indices)</code> where:</p>
<ul>
<li><strong>total_scores</strong> (<code>List[List[float]</code>): the retrieval scores from either FAISS (<code>IndexFlatL2</code> by default) or ElasticSearch of the retrieved examples per query</li>
<li><strong>total_indices</strong> (<code>List[List[int]]</code>): the indices of the retrieved examples per query</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>(total_scores, total_indices)</code></p>
`}}),li=new k({props:{name:"get_nearest_examples",anchor:"datasets.Dataset.get_nearest_examples",parameters:[{name:"index_name",val:": str"},{name:"query",val:": Union"},{name:"k",val:": int = 10"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.get_nearest_examples.index_name",description:`<strong>index_name</strong> (<code>str</code>) &#x2014;
The index_name/identifier of the index.`,name:"index_name"},{anchor:"datasets.Dataset.get_nearest_examples.query",description:`<strong>query</strong> (<code>Union[str, np.ndarray]</code>) &#x2014;
The query as a string if <code>index_name</code> is a text index or as a numpy array if <code>index_name</code> is a vector index.`,name:"query"},{anchor:"datasets.Dataset.get_nearest_examples.k",description:`<strong>k</strong> (<code>int</code>) &#x2014;
The number of examples to retrieve.`,name:"k"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/search.py#L735",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A tuple of <code>(scores, examples)</code> where:</p>
<ul>
<li><strong>scores</strong> (<code>List[float]</code>): the retrieval scores from either FAISS (<code>IndexFlatL2</code> by default) or ElasticSearch of the retrieved examples</li>
<li><strong>examples</strong> (<code>dict</code>): the retrieved examples</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>(scores, examples)</code></p>
`}}),ci=new k({props:{name:"get_nearest_examples_batch",anchor:"datasets.Dataset.get_nearest_examples_batch",parameters:[{name:"index_name",val:": str"},{name:"queries",val:": Union"},{name:"k",val:": int = 10"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.get_nearest_examples_batch.index_name",description:`<strong>index_name</strong> (<code>str</code>) &#x2014;
The <code>index_name</code>/identifier of the index.`,name:"index_name"},{anchor:"datasets.Dataset.get_nearest_examples_batch.queries",description:`<strong>queries</strong> (<code>Union[List[str], np.ndarray]</code>) &#x2014;
The queries as a list of strings if <code>index_name</code> is a text index or as a numpy array if <code>index_name</code> is a vector index.`,name:"queries"},{anchor:"datasets.Dataset.get_nearest_examples_batch.k",description:`<strong>k</strong> (<code>int</code>) &#x2014;
The number of examples to retrieve per query.`,name:"k"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/search.py#L759",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A tuple of <code>(total_scores, total_examples)</code> where:</p>
<ul>
<li><strong>total_scores</strong> (<code>List[List[float]</code>): the retrieval scores from either FAISS (<code>IndexFlatL2</code> by default) or ElasticSearch of the retrieved examples per query</li>
<li><strong>total_examples</strong> (<code>List[dict]</code>): the retrieved examples per query</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>(total_scores, total_examples)</code></p>
`}}),di=new k({props:{name:"info",anchor:"datasets.Dataset.info",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L168"}}),ii=new k({props:{name:"split",anchor:"datasets.Dataset.split",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L173"}}),pi=new k({props:{name:"builder_name",anchor:"datasets.Dataset.builder_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L178"}}),mi=new k({props:{name:"citation",anchor:"datasets.Dataset.citation",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L182"}}),hi=new k({props:{name:"config_name",anchor:"datasets.Dataset.config_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L186"}}),gi=new k({props:{name:"dataset_size",anchor:"datasets.Dataset.dataset_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L190"}}),ui=new k({props:{name:"description",anchor:"datasets.Dataset.description",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L194"}}),fi=new k({props:{name:"download_checksums",anchor:"datasets.Dataset.download_checksums",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L198"}}),bi=new k({props:{name:"download_size",anchor:"datasets.Dataset.download_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L202"}}),_i=new k({props:{name:"features",anchor:"datasets.Dataset.features",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L744"}}),xi=new k({props:{name:"homepage",anchor:"datasets.Dataset.homepage",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L210"}}),$i=new k({props:{name:"license",anchor:"datasets.Dataset.license",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L214"}}),yi=new k({props:{name:"size_in_bytes",anchor:"datasets.Dataset.size_in_bytes",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L218"}}),ji=new k({props:{name:"supervised_keys",anchor:"datasets.Dataset.supervised_keys",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L222"}}),wi=new k({props:{name:"version",anchor:"datasets.Dataset.version",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L230"}}),vi=new k({props:{name:"from_csv",anchor:"datasets.Dataset.from_csv",parameters:[{name:"path_or_paths",val:": Union"},{name:"split",val:": Optional = None"},{name:"features",val:": Optional = None"},{name:"cache_dir",val:": str = None"},{name:"keep_in_memory",val:": bool = False"},{name:"num_proc",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.from_csv.path_or_paths",description:`<strong>path_or_paths</strong> (<code>path-like</code> or list of <code>path-like</code>) &#x2014;
Path(s) of the CSV file(s).`,name:"path_or_paths"},{anchor:"datasets.Dataset.from_csv.split",description:`<strong>split</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/builder_classes#datasets.NamedSplit">NamedSplit</a>, <em>optional</em>) &#x2014;
Split name to be assigned to the dataset.`,name:"split"},{anchor:"datasets.Dataset.from_csv.features",description:`<strong>features</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>, <em>optional</em>) &#x2014;
Dataset features.`,name:"features"},{anchor:"datasets.Dataset.from_csv.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;~/.cache/huggingface/datasets&quot;</code>) &#x2014;
Directory to cache data.`,name:"cache_dir"},{anchor:"datasets.Dataset.from_csv.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to copy the data in-memory.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.from_csv.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Number of processes when downloading and generating the dataset locally.
This is helpful if the dataset is made of multiple files. Multiprocessing is disabled by default.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.8.0</p>
						
					</div>`,name:"num_proc"},{anchor:"datasets.Dataset.from_csv.*kwargs",description:`*<strong>*kwargs</strong> (additional keyword arguments) &#x2014;
Keyword arguments to be passed to <code>pandas.read_csv</code>.`,name:"*kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1010",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),vo=new I({props:{anchor:"datasets.Dataset.from_csv.example",$$slots:{default:[VR]},$$scope:{ctx:w}}}),Mi=new k({props:{name:"from_json",anchor:"datasets.Dataset.from_json",parameters:[{name:"path_or_paths",val:": Union"},{name:"split",val:": Optional = None"},{name:"features",val:": Optional = None"},{name:"cache_dir",val:": str = None"},{name:"keep_in_memory",val:": bool = False"},{name:"field",val:": Optional = None"},{name:"num_proc",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.from_json.path_or_paths",description:`<strong>path_or_paths</strong> (<code>path-like</code> or list of <code>path-like</code>) &#x2014;
Path(s) of the JSON or JSON Lines file(s).`,name:"path_or_paths"},{anchor:"datasets.Dataset.from_json.split",description:`<strong>split</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/builder_classes#datasets.NamedSplit">NamedSplit</a>, <em>optional</em>) &#x2014;
Split name to be assigned to the dataset.`,name:"split"},{anchor:"datasets.Dataset.from_json.features",description:`<strong>features</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>, <em>optional</em>) &#x2014;
Dataset features.`,name:"features"},{anchor:"datasets.Dataset.from_json.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;~/.cache/huggingface/datasets&quot;</code>) &#x2014;
Directory to cache data.`,name:"cache_dir"},{anchor:"datasets.Dataset.from_json.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to copy the data in-memory.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.from_json.field",description:`<strong>field</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Field name of the JSON file where the dataset is contained in.`,name:"field"},{anchor:"datasets.Dataset.from_json.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, <em>optional</em> defaults to <code>None</code>) &#x2014;
Number of processes when downloading and generating the dataset locally.
This is helpful if the dataset is made of multiple files. Multiprocessing is disabled by default.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.8.0</p>
						
					</div>`,name:"num_proc"},{anchor:"datasets.Dataset.from_json.*kwargs",description:`*<strong>*kwargs</strong> (additional keyword arguments) &#x2014;
Keyword arguments to be passed to <code>JsonConfig</code>.`,name:"*kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1132",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),Mo=new I({props:{anchor:"datasets.Dataset.from_json.example",$$slots:{default:[qR]},$$scope:{ctx:w}}}),ki=new k({props:{name:"from_parquet",anchor:"datasets.Dataset.from_parquet",parameters:[{name:"path_or_paths",val:": Union"},{name:"split",val:": Optional = None"},{name:"features",val:": Optional = None"},{name:"cache_dir",val:": str = None"},{name:"keep_in_memory",val:": bool = False"},{name:"columns",val:": Optional = None"},{name:"num_proc",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.from_parquet.path_or_paths",description:`<strong>path_or_paths</strong> (<code>path-like</code> or list of <code>path-like</code>) &#x2014;
Path(s) of the Parquet file(s).`,name:"path_or_paths"},{anchor:"datasets.Dataset.from_parquet.split",description:`<strong>split</strong> (<code>NamedSplit</code>, <em>optional</em>) &#x2014;
Split name to be assigned to the dataset.`,name:"split"},{anchor:"datasets.Dataset.from_parquet.features",description:`<strong>features</strong> (<code>Features</code>, <em>optional</em>) &#x2014;
Dataset features.`,name:"features"},{anchor:"datasets.Dataset.from_parquet.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;~/.cache/huggingface/datasets&quot;</code>) &#x2014;
Directory to cache data.`,name:"cache_dir"},{anchor:"datasets.Dataset.from_parquet.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to copy the data in-memory.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.from_parquet.columns",description:`<strong>columns</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
If not <code>None</code>, only these columns will be read from the file.
A column name may be a prefix of a nested field, e.g. &#x2018;a&#x2019; will select
&#x2018;a.b&#x2019;, &#x2018;a.c&#x2019;, and &#x2018;a.d.e&#x2019;.`,name:"columns"},{anchor:"datasets.Dataset.from_parquet.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Number of processes when downloading and generating the dataset locally.
This is helpful if the dataset is made of multiple files. Multiprocessing is disabled by default.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.8.0</p>
						
					</div>`,name:"num_proc"},{anchor:"datasets.Dataset.from_parquet.*kwargs",description:`*<strong>*kwargs</strong> (additional keyword arguments) &#x2014;
Keyword arguments to be passed to <code>ParquetConfig</code>.`,name:"*kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1189",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),ko=new I({props:{anchor:"datasets.Dataset.from_parquet.example",$$slots:{default:[WR]},$$scope:{ctx:w}}}),Ji=new k({props:{name:"from_text",anchor:"datasets.Dataset.from_text",parameters:[{name:"path_or_paths",val:": Union"},{name:"split",val:": Optional = None"},{name:"features",val:": Optional = None"},{name:"cache_dir",val:": str = None"},{name:"keep_in_memory",val:": bool = False"},{name:"num_proc",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.from_text.path_or_paths",description:`<strong>path_or_paths</strong> (<code>path-like</code> or list of <code>path-like</code>) &#x2014;
Path(s) of the text file(s).`,name:"path_or_paths"},{anchor:"datasets.Dataset.from_text.split",description:`<strong>split</strong> (<code>NamedSplit</code>, <em>optional</em>) &#x2014;
Split name to be assigned to the dataset.`,name:"split"},{anchor:"datasets.Dataset.from_text.features",description:`<strong>features</strong> (<code>Features</code>, <em>optional</em>) &#x2014;
Dataset features.`,name:"features"},{anchor:"datasets.Dataset.from_text.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;~/.cache/huggingface/datasets&quot;</code>) &#x2014;
Directory to cache data.`,name:"cache_dir"},{anchor:"datasets.Dataset.from_text.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to copy the data in-memory.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.from_text.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Number of processes when downloading and generating the dataset locally.
This is helpful if the dataset is made of multiple files. Multiprocessing is disabled by default.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.8.0</p>
						
					</div>`,name:"num_proc"},{anchor:"datasets.Dataset.from_text.*kwargs",description:`*<strong>*kwargs</strong> (additional keyword arguments) &#x2014;
Keyword arguments to be passed to <code>TextConfig</code>.`,name:"*kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1248",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),Jo=new I({props:{anchor:"datasets.Dataset.from_text.example",$$slots:{default:[BR]},$$scope:{ctx:w}}}),Ti=new k({props:{name:"from_sql",anchor:"datasets.Dataset.from_sql",parameters:[{name:"sql",val:": Union"},{name:"con",val:": Union"},{name:"features",val:": Optional = None"},{name:"cache_dir",val:": str = None"},{name:"keep_in_memory",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.Dataset.from_sql.sql",description:`<strong>sql</strong> (<code>str</code> or <code>sqlalchemy.sql.Selectable</code>) &#x2014;
SQL query to be executed or a table name.`,name:"sql"},{anchor:"datasets.Dataset.from_sql.con",description:`<strong>con</strong> (<code>str</code> or <code>sqlite3.Connection</code> or <code>sqlalchemy.engine.Connection</code> or <code>sqlalchemy.engine.Connection</code>) &#x2014;
A <a href="https://docs.sqlalchemy.org/en/13/core/engines.html#database-urls" rel="nofollow">URI string</a> used to instantiate a database connection or a SQLite3/SQLAlchemy connection object.`,name:"con"},{anchor:"datasets.Dataset.from_sql.features",description:`<strong>features</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>, <em>optional</em>) &#x2014;
Dataset features.`,name:"features"},{anchor:"datasets.Dataset.from_sql.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;~/.cache/huggingface/datasets&quot;</code>) &#x2014;
Directory to cache data.`,name:"cache_dir"},{anchor:"datasets.Dataset.from_sql.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to copy the data in-memory.`,name:"keep_in_memory"},{anchor:"datasets.Dataset.from_sql.*kwargs",description:`*<strong>*kwargs</strong> (additional keyword arguments) &#x2014;
Keyword arguments to be passed to <code>SqlConfig</code>.`,name:"*kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L1363",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),To=new I({props:{anchor:"datasets.Dataset.from_sql.example",$$slots:{default:[QR]},$$scope:{ctx:w}}}),Do=new nC({props:{$$slots:{default:[ER]},$$scope:{ctx:w}}}),Di=new k({props:{name:"prepare_for_task",anchor:"datasets.Dataset.prepare_for_task",parameters:[{name:"task",val:": Union"},{name:"id",val:": int = 0"}],parametersDescription:[{anchor:"datasets.Dataset.prepare_for_task.task",description:`<strong>task</strong> (<code>Union[str, TaskTemplate]</code>) &#x2014;
The task to prepare the dataset for during training and evaluation. If <code>str</code>, supported tasks include:</p>
<ul>
<li><code>&quot;text-classification&quot;</code></li>
<li><code>&quot;question-answering&quot;</code></li>
</ul>
<p>If <code>TaskTemplate</code>, must be one of the task templates in <a href="./task_templates"><code>datasets.tasks</code></a>.`,name:"task"},{anchor:"datasets.Dataset.prepare_for_task.id",description:`<strong>id</strong> (<code>int</code>, defaults to <code>0</code>) &#x2014;
The id required to unambiguously identify the task template when multiple task templates of the same type are supported.`,name:"id"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L2785"}}),Ii=new k({props:{name:"align_labels_with_mapping",anchor:"datasets.Dataset.align_labels_with_mapping",parameters:[{name:"label2id",val:": Dict"},{name:"label_column",val:": str"}],parametersDescription:[{anchor:"datasets.Dataset.align_labels_with_mapping.label2id",description:`<strong>label2id</strong> (<code>dict</code>) &#x2014;
The label name to ID mapping to align the dataset with.`,name:"label2id"},{anchor:"datasets.Dataset.align_labels_with_mapping.label_column",description:`<strong>label_column</strong> (<code>str</code>) &#x2014;
The column name of labels to align on.`,name:"label_column"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L6130"}}),Io=new I({props:{anchor:"datasets.Dataset.align_labels_with_mapping.example",$$slots:{default:[HR]},$$scope:{ctx:w}}}),Ci=new k({props:{name:"datasets.concatenate_datasets",anchor:"datasets.concatenate_datasets",parameters:[{name:"dsets",val:": List"},{name:"info",val:": Optional = None"},{name:"split",val:": Optional = None"},{name:"axis",val:": int = 0"}],parametersDescription:[{anchor:"datasets.concatenate_datasets.dsets",description:`<strong>dsets</strong> (<code>List[datasets.Dataset]</code>) &#x2014;
List of Datasets to concatenate.`,name:"dsets"},{anchor:"datasets.concatenate_datasets.info",description:`<strong>info</strong> (<code>DatasetInfo</code>, <em>optional</em>) &#x2014;
Dataset information, like description, citation, etc.`,name:"info"},{anchor:"datasets.concatenate_datasets.split",description:`<strong>split</strong> (<code>NamedSplit</code>, <em>optional</em>) &#x2014;
Name of the dataset split.`,name:"split"},{anchor:"datasets.concatenate_datasets.axis",description:`<strong>axis</strong> (<code>{0, 1}</code>, defaults to <code>0</code>) &#x2014;
Axis to concatenate over, where <code>0</code> means over rows (vertically) and <code>1</code> means over columns
(horizontally).</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 1.6.0</p>
						
					</div>`,name:"axis"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/combine.py#L158"}}),Co=new I({props:{anchor:"datasets.concatenate_datasets.example",$$slots:{default:[LR]},$$scope:{ctx:w}}}),Ui=new k({props:{name:"datasets.interleave_datasets",anchor:"datasets.interleave_datasets",parameters:[{name:"datasets",val:": List"},{name:"probabilities",val:": Optional = None"},{name:"seed",val:": Optional = None"},{name:"info",val:": Optional = None"},{name:"split",val:": Optional = None"},{name:"stopping_strategy",val:": Literal = 'first_exhausted'"}],parametersDescription:[{anchor:"datasets.interleave_datasets.datasets",description:`<strong>datasets</strong> (<code>List[Dataset]</code> or <code>List[IterableDataset]</code>) &#x2014;
List of datasets to interleave.`,name:"datasets"},{anchor:"datasets.interleave_datasets.probabilities",description:`<strong>probabilities</strong> (<code>List[float]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If specified, the new dataset is constructed by sampling
examples from one source at a time according to these probabilities.`,name:"probabilities"},{anchor:"datasets.interleave_datasets.seed",description:`<strong>seed</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The random seed used to choose a source for each example.`,name:"seed"},{anchor:"datasets.interleave_datasets.info",description:`<strong>info</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetInfo">DatasetInfo</a>, <em>optional</em>) &#x2014;
Dataset information, like description, citation, etc.<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.4.0</p>
						
					</div>`,name:"info"},{anchor:"datasets.interleave_datasets.split",description:`<strong>split</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/builder_classes#datasets.NamedSplit">NamedSplit</a>, <em>optional</em>) &#x2014;
Name of the dataset split.<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.4.0</p>
						
					</div>`,name:"split"},{anchor:"datasets.interleave_datasets.stopping_strategy",description:`<strong>stopping_strategy</strong> (<code>str</code>, defaults to <code>first_exhausted</code>) &#x2014;
Two strategies are proposed right now, <code>first_exhausted</code> and <code>all_exhausted</code>.
By default, <code>first_exhausted</code> is an undersampling strategy, i.e the dataset construction is stopped as soon as one dataset has ran out of samples.
If the strategy is <code>all_exhausted</code>,  we use an oversampling strategy, i.e the dataset construction is stopped as soon as every samples of every dataset has been added at least once.
Note that if the strategy is <code>all_exhausted</code>, the interleaved dataset size can get enormous:<ul>
<li>with no probabilities, the resulting dataset will have <code>max_length_datasets*nb_dataset</code> samples.</li>
<li>with given probabilities, the resulting dataset will have more samples if some datasets have really low probability of visiting.</li>
</ul>`,name:"stopping_strategy"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/combine.py#L18",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Return type depends on the input <code>datasets</code>
parameter. <code>Dataset</code> if the input is a list of <code>Dataset</code>, <code>IterableDataset</code> if the input is a list of
<code>IterableDataset</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a> or <a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset"
>IterableDataset</a></p>
`}}),Uo=new I({props:{anchor:"datasets.interleave_datasets.example",$$slots:{default:[YR]},$$scope:{ctx:w}}}),Zi=new k({props:{name:"datasets.distributed.split_dataset_by_node",anchor:"datasets.distributed.split_dataset_by_node",parameters:[{name:"dataset",val:": DatasetType"},{name:"rank",val:": int"},{name:"world_size",val:": int"}],parametersDescription:[{anchor:"datasets.distributed.split_dataset_by_node.dataset",description:`<strong>dataset</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset">Dataset</a> or <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a>) &#x2014;
The dataset to split by node.`,name:"dataset"},{anchor:"datasets.distributed.split_dataset_by_node.rank",description:`<strong>rank</strong> (<code>int</code>) &#x2014;
Rank of the current node.`,name:"rank"},{anchor:"datasets.distributed.split_dataset_by_node.world_size",description:`<strong>world_size</strong> (<code>int</code>) &#x2014;
Total number of nodes.`,name:"world_size"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/distributed.py#L10",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The dataset to be used on the node at rank <code>rank</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a> or <a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDataset"
>IterableDataset</a></p>
`}}),Fi=new k({props:{name:"datasets.enable_caching",anchor:"datasets.enable_caching",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/fingerprint.py#L95"}}),Ri=new k({props:{name:"datasets.disable_caching",anchor:"datasets.disable_caching",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/fingerprint.py#L116"}}),zi=new k({props:{name:"datasets.is_caching_enabled",anchor:"datasets.is_caching_enabled",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/fingerprint.py#L161"}}),Gi=new Kt({props:{title:"DatasetDict",local:"datasets.DatasetDict",headingTag:"h2"}}),Xi=new k({props:{name:"class datasets.DatasetDict",anchor:"datasets.DatasetDict",parameters:"",source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L46"}}),Vi=new k({props:{name:"data",anchor:"datasets.DatasetDict.data",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L87"}}),Zo=new I({props:{anchor:"datasets.DatasetDict.data.example",$$slots:{default:[SR]},$$scope:{ctx:w}}}),qi=new k({props:{name:"cache_files",anchor:"datasets.DatasetDict.cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L102"}}),Fo=new I({props:{anchor:"datasets.DatasetDict.cache_files.example",$$slots:{default:[AR]},$$scope:{ctx:w}}}),Wi=new k({props:{name:"num_columns",anchor:"datasets.DatasetDict.num_columns",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L120"}}),Ro=new I({props:{anchor:"datasets.DatasetDict.num_columns.example",$$slots:{default:[PR]},$$scope:{ctx:w}}}),Bi=new k({props:{name:"num_rows",anchor:"datasets.DatasetDict.num_rows",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L136"}}),zo=new I({props:{anchor:"datasets.DatasetDict.num_rows.example",$$slots:{default:[KR]},$$scope:{ctx:w}}}),Qi=new k({props:{name:"column_names",anchor:"datasets.DatasetDict.column_names",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L152"}}),Go=new I({props:{anchor:"datasets.DatasetDict.column_names.example",$$slots:{default:[OR]},$$scope:{ctx:w}}}),Ei=new k({props:{name:"shape",anchor:"datasets.DatasetDict.shape",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L170"}}),No=new I({props:{anchor:"datasets.DatasetDict.shape.example",$$slots:{default:[e5]},$$scope:{ctx:w}}}),Hi=new k({props:{name:"unique",anchor:"datasets.DatasetDict.unique",parameters:[{name:"column",val:": str"}],parametersDescription:[{anchor:"datasets.DatasetDict.unique.column",description:`<strong>column</strong> (<code>str</code>) &#x2014;
column name (list all the column names with <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict.column_names">column_names</a>)`,name:"column"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L218",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Dictionary of unique elements in the given column.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Dict[<code>str</code>, <code>list</code>]</p>
`}}),Xo=new I({props:{anchor:"datasets.DatasetDict.unique.example",$$slots:{default:[t5]},$$scope:{ctx:w}}}),Li=new k({props:{name:"cleanup_cache_files",anchor:"datasets.DatasetDict.cleanup_cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L242",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict</code> with the number of removed files for each split</p>
`}}),Vo=new I({props:{anchor:"datasets.DatasetDict.cleanup_cache_files.example",$$slots:{default:[s5]},$$scope:{ctx:w}}}),Yi=new k({props:{name:"map",anchor:"datasets.DatasetDict.map",parameters:[{name:"function",val:": Optional = None"},{name:"with_indices",val:": bool = False"},{name:"with_rank",val:": bool = False"},{name:"input_columns",val:": Union = None"},{name:"batched",val:": bool = False"},{name:"batch_size",val:": Optional = 1000"},{name:"drop_last_batch",val:": bool = False"},{name:"remove_columns",val:": Union = None"},{name:"keep_in_memory",val:": bool = False"},{name:"load_from_cache_file",val:": Optional = None"},{name:"cache_file_names",val:": Optional = None"},{name:"writer_batch_size",val:": Optional = 1000"},{name:"features",val:": Optional = None"},{name:"disable_nullable",val:": bool = False"},{name:"fn_kwargs",val:": Optional = None"},{name:"num_proc",val:": Optional = None"},{name:"desc",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.DatasetDict.map.function",description:`<strong>function</strong> (<code>callable</code>) &#x2014; with one of the following signature:</p>
<ul>
<li><code>function(example: Dict[str, Any]) -&gt; Dict[str, Any]</code> if <code>batched=False</code> and <code>with_indices=False</code></li>
<li><code>function(example: Dict[str, Any], indices: int) -&gt; Dict[str, Any]</code> if <code>batched=False</code> and <code>with_indices=True</code></li>
<li><code>function(batch: Dict[str, List]) -&gt; Dict[str, List]</code> if <code>batched=True</code> and <code>with_indices=False</code></li>
<li><code>function(batch: Dict[str, List], indices: List[int]) -&gt; Dict[str, List]</code> if <code>batched=True</code> and <code>with_indices=True</code></li>
</ul>
<p>For advanced usage, the function can also return a <code>pyarrow.Table</code>.
Moreover if your function returns nothing (<code>None</code>), then <code>map</code> will run your function and return the dataset unchanged.`,name:"function"},{anchor:"datasets.DatasetDict.map.with_indices",description:`<strong>with_indices</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide example indices to <code>function</code>. Note that in this case the signature of <code>function</code> should be <code>def function(example, idx): ...</code>.`,name:"with_indices"},{anchor:"datasets.DatasetDict.map.with_rank",description:`<strong>with_rank</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide process rank to <code>function</code>. Note that in this case the
signature of <code>function</code> should be <code>def function(example[, idx], rank): ...</code>.`,name:"with_rank"},{anchor:"datasets.DatasetDict.map.input_columns",description:`<strong>input_columns</strong> (<code>[Union[str, List[str]]]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The columns to be passed into <code>function</code> as
positional arguments. If <code>None</code>, a dict mapping to all formatted columns is passed as one argument.`,name:"input_columns"},{anchor:"datasets.DatasetDict.map.batched",description:`<strong>batched</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide batch of examples to <code>function</code>.`,name:"batched"},{anchor:"datasets.DatasetDict.map.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>1000</code>) &#x2014;
Number of examples per batch provided to <code>function</code> if <code>batched=True</code>,
<code>batch_size &lt;= 0</code> or <code>batch_size == None</code> then provide the full dataset as a single batch to <code>function</code>.`,name:"batch_size"},{anchor:"datasets.DatasetDict.map.drop_last_batch",description:`<strong>drop_last_batch</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether a last batch smaller than the batch_size should be
dropped instead of being processed by the function.`,name:"drop_last_batch"},{anchor:"datasets.DatasetDict.map.remove_columns",description:`<strong>remove_columns</strong> (<code>[Union[str, List[str]]]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Remove a selection of columns while doing the mapping.
Columns will be removed before updating the examples with the output of <code>function</code>, i.e. if <code>function</code> is adding
columns with names in <code>remove_columns</code>, these columns will be kept.`,name:"remove_columns"},{anchor:"datasets.DatasetDict.map.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep the dataset in memory instead of writing it to a cache file.`,name:"keep_in_memory"},{anchor:"datasets.DatasetDict.map.load_from_cache_file",description:`<strong>load_from_cache_file</strong> (<code>Optional[bool]</code>, defaults to <code>True</code> if caching is enabled) &#x2014;
If a cache file storing the current computation from <code>function</code>
can be identified, use it instead of recomputing.`,name:"load_from_cache_file"},{anchor:"datasets.DatasetDict.map.cache_file_names",description:`<strong>cache_file_names</strong> (<code>[Dict[str, str]]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Provide the name of a path for the cache file. It is used to store the
results of the computation instead of the automatically generated cache file name.
You have to provide one <code>cache_file_name</code> per dataset in the dataset dictionary.`,name:"cache_file_names"},{anchor:"datasets.DatasetDict.map.writer_batch_size",description:`<strong>writer_batch_size</strong> (<code>int</code>, default <code>1000</code>) &#x2014;
Number of rows per write operation for the cache file writer.
This value is a good trade-off between memory usage during the processing, and processing speed.
Higher value makes the processing do fewer lookups, lower value consume less temporary memory while running <code>map</code>.`,name:"writer_batch_size"},{anchor:"datasets.DatasetDict.map.features",description:`<strong>features</strong> (<code>[datasets.Features]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Use a specific <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a> to store the cache file
instead of the automatically generated one.`,name:"features"},{anchor:"datasets.DatasetDict.map.disable_nullable",description:`<strong>disable_nullable</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Disallow null values in the table.`,name:"disable_nullable"},{anchor:"datasets.DatasetDict.map.fn_kwargs",description:`<strong>fn_kwargs</strong> (<code>Dict</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Keyword arguments to be passed to <code>function</code>`,name:"fn_kwargs"},{anchor:"datasets.DatasetDict.map.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Number of processes for multiprocessing. By default it doesn&#x2019;t
use multiprocessing.`,name:"num_proc"},{anchor:"datasets.DatasetDict.map.desc",description:`<strong>desc</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Meaningful description to be displayed alongside with the progress bar while mapping examples.`,name:"desc"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L765"}}),qo=new I({props:{anchor:"datasets.DatasetDict.map.example",$$slots:{default:[a5]},$$scope:{ctx:w}}}),Si=new k({props:{name:"filter",anchor:"datasets.DatasetDict.filter",parameters:[{name:"function",val:": Optional = None"},{name:"with_indices",val:": bool = False"},{name:"with_rank",val:": bool = False"},{name:"input_columns",val:": Union = None"},{name:"batched",val:": bool = False"},{name:"batch_size",val:": Optional = 1000"},{name:"keep_in_memory",val:": bool = False"},{name:"load_from_cache_file",val:": Optional = None"},{name:"cache_file_names",val:": Optional = None"},{name:"writer_batch_size",val:": Optional = 1000"},{name:"fn_kwargs",val:": Optional = None"},{name:"num_proc",val:": Optional = None"},{name:"desc",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.DatasetDict.filter.function",description:`<strong>function</strong> (<code>Callable</code>) &#x2014; Callable with one of the following signatures:</p>
<ul>
<li><code>function(example: Dict[str, Any]) -&gt; bool</code> if <code>batched=False</code> and <code>with_indices=False</code> and <code>with_rank=False</code></li>
<li><code>function(example: Dict[str, Any], *extra_args) -&gt; bool</code> if <code>batched=False</code> and <code>with_indices=True</code> and/or <code>with_rank=True</code> (one extra arg for each)</li>
<li><code>function(batch: Dict[str, List]) -&gt; List[bool]</code> if <code>batched=True</code> and <code>with_indices=False</code> and <code>with_rank=False</code></li>
<li><code>function(batch: Dict[str, List], *extra_args) -&gt; List[bool]</code> if <code>batched=True</code> and <code>with_indices=True</code> and/or <code>with_rank=True</code> (one extra arg for each)</li>
</ul>
<p>If no function is provided, defaults to an always <code>True</code> function: <code>lambda x: True</code>.`,name:"function"},{anchor:"datasets.DatasetDict.filter.with_indices",description:`<strong>with_indices</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide example indices to <code>function</code>. Note that in this case the
signature of <code>function</code> should be <code>def function(example, idx[, rank]): ...</code>.`,name:"with_indices"},{anchor:"datasets.DatasetDict.filter.with_rank",description:`<strong>with_rank</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide process rank to <code>function</code>. Note that in this case the
signature of <code>function</code> should be <code>def function(example[, idx], rank): ...</code>.`,name:"with_rank"},{anchor:"datasets.DatasetDict.filter.input_columns",description:`<strong>input_columns</strong> (<code>[Union[str, List[str]]]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The columns to be passed into <code>function</code> as
positional arguments. If <code>None</code>, a dict mapping to all formatted columns is passed as one argument.`,name:"input_columns"},{anchor:"datasets.DatasetDict.filter.batched",description:`<strong>batched</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide batch of examples to <code>function</code>.`,name:"batched"},{anchor:"datasets.DatasetDict.filter.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>1000</code>) &#x2014;
Number of examples per batch provided to <code>function</code> if <code>batched=True</code>
<code>batch_size &lt;= 0</code> or <code>batch_size == None</code> then provide the full dataset as a single batch to <code>function</code>.`,name:"batch_size"},{anchor:"datasets.DatasetDict.filter.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep the dataset in memory instead of writing it to a cache file.`,name:"keep_in_memory"},{anchor:"datasets.DatasetDict.filter.load_from_cache_file",description:`<strong>load_from_cache_file</strong> (<code>Optional[bool]</code>, defaults to <code>True</code> if caching is enabled) &#x2014;
If a cache file storing the current computation from <code>function</code>
can be identified, use it instead of recomputing.`,name:"load_from_cache_file"},{anchor:"datasets.DatasetDict.filter.cache_file_names",description:`<strong>cache_file_names</strong> (<code>[Dict[str, str]]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Provide the name of a path for the cache file. It is used to store the
results of the computation instead of the automatically generated cache file name.
You have to provide one <code>cache_file_name</code> per dataset in the dataset dictionary.`,name:"cache_file_names"},{anchor:"datasets.DatasetDict.filter.writer_batch_size",description:`<strong>writer_batch_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Number of rows per write operation for the cache file writer.
This value is a good trade-off between memory usage during the processing, and processing speed.
Higher value makes the processing do fewer lookups, lower value consume less temporary memory while running <code>map</code>.`,name:"writer_batch_size"},{anchor:"datasets.DatasetDict.filter.fn_kwargs",description:`<strong>fn_kwargs</strong> (<code>Dict</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Keyword arguments to be passed to <code>function</code>`,name:"fn_kwargs"},{anchor:"datasets.DatasetDict.filter.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Number of processes for multiprocessing. By default it doesn&#x2019;t
use multiprocessing.`,name:"num_proc"},{anchor:"datasets.DatasetDict.filter.desc",description:`<strong>desc</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Meaningful description to be displayed alongside with the progress bar while filtering examples.`,name:"desc"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L893"}}),Wo=new I({props:{anchor:"datasets.DatasetDict.filter.example",$$slots:{default:[n5]},$$scope:{ctx:w}}}),Ai=new k({props:{name:"sort",anchor:"datasets.DatasetDict.sort",parameters:[{name:"column_names",val:": Union"},{name:"reverse",val:": Union = False"},{name:"kind",val:" = 'deprecated'"},{name:"null_placement",val:": str = 'at_end'"},{name:"keep_in_memory",val:": bool = False"},{name:"load_from_cache_file",val:": Optional = None"},{name:"indices_cache_file_names",val:": Optional = None"},{name:"writer_batch_size",val:": Optional = 1000"}],parametersDescription:[{anchor:"datasets.DatasetDict.sort.column_names",description:`<strong>column_names</strong> (<code>Union[str, Sequence[str]]</code>) &#x2014;
Column name(s) to sort by.`,name:"column_names"},{anchor:"datasets.DatasetDict.sort.reverse",description:`<strong>reverse</strong> (<code>Union[bool, Sequence[bool]]</code>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, sort by descending order rather than ascending. If a single bool is provided,
the value is applied to the sorting of all column names. Otherwise a list of bools with the
same length and order as column_names must be provided.`,name:"reverse"},{anchor:"datasets.DatasetDict.sort.kind",description:`<strong>kind</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pandas algorithm for sorting selected in <code>{quicksort, mergesort, heapsort, stable}</code>,
The default is <code>quicksort</code>. Note that both <code>stable</code> and <code>mergesort</code> use timsort under the covers and, in general,
the actual implementation will vary with data type. The <code>mergesort</code> option is retained for backwards compatibility.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						<p class="font-medium">Deprecated in 2.8.0</p>
						
<p><code>kind</code> was deprecated in version 2.10.0 and will be removed in 3.0.0.</p>

					</div>`,name:"kind"},{anchor:"datasets.DatasetDict.sort.null_placement",description:`<strong>null_placement</strong> (<code>str</code>, defaults to <code>at_end</code>) &#x2014;
Put <code>None</code> values at the beginning if <code>at_start</code> or <code>first</code> or at the end if <code>at_end</code> or <code>last</code>`,name:"null_placement"},{anchor:"datasets.DatasetDict.sort.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep the sorted indices in memory instead of writing it to a cache file.`,name:"keep_in_memory"},{anchor:"datasets.DatasetDict.sort.load_from_cache_file",description:`<strong>load_from_cache_file</strong> (<code>Optional[bool]</code>, defaults to <code>True</code> if caching is enabled) &#x2014;
If a cache file storing the sorted indices
can be identified, use it instead of recomputing.`,name:"load_from_cache_file"},{anchor:"datasets.DatasetDict.sort.indices_cache_file_names",description:`<strong>indices_cache_file_names</strong> (<code>[Dict[str, str]]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Provide the name of a path for the cache file. It is used to store the
indices mapping instead of the automatically generated cache file name.
You have to provide one <code>cache_file_name</code> per dataset in the dataset dictionary.`,name:"indices_cache_file_names"},{anchor:"datasets.DatasetDict.sort.writer_batch_size",description:`<strong>writer_batch_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Number of rows per write operation for the cache file writer.
Higher value gives smaller cache files, lower value consume less temporary memory.`,name:"writer_batch_size"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L1055"}}),Bo=new I({props:{anchor:"datasets.DatasetDict.sort.example",$$slots:{default:[r5]},$$scope:{ctx:w}}}),Pi=new k({props:{name:"shuffle",anchor:"datasets.DatasetDict.shuffle",parameters:[{name:"seeds",val:": Union = None"},{name:"seed",val:": Optional = None"},{name:"generators",val:": Optional = None"},{name:"keep_in_memory",val:": bool = False"},{name:"load_from_cache_file",val:": Optional = None"},{name:"indices_cache_file_names",val:": Optional = None"},{name:"writer_batch_size",val:": Optional = 1000"}],parametersDescription:[{anchor:"datasets.DatasetDict.shuffle.seeds",description:`<strong>seeds</strong> (<code>Dict[str, int]</code> or <code>int</code>, <em>optional</em>) &#x2014;
A seed to initialize the default BitGenerator if <code>generator=None</code>.
If <code>None</code>, then fresh, unpredictable entropy will be pulled from the OS.
If an <code>int</code> or <code>array_like[ints]</code> is passed, then it will be passed to SeedSequence to derive the initial BitGenerator state.
You can provide one <code>seed</code> per dataset in the dataset dictionary.`,name:"seeds"},{anchor:"datasets.DatasetDict.shuffle.seed",description:`<strong>seed</strong> (<code>int</code>, <em>optional</em>) &#x2014;
A seed to initialize the default BitGenerator if <code>generator=None</code>. Alias for seeds (a <code>ValueError</code> is raised if both are provided).`,name:"seed"},{anchor:"datasets.DatasetDict.shuffle.generators",description:`<strong>generators</strong> (<code>Dict[str, *optional*, np.random.Generator]</code>) &#x2014;
Numpy random Generator to use to compute the permutation of the dataset rows.
If <code>generator=None</code> (default), uses <code>np.random.default_rng</code> (the default BitGenerator (PCG64) of NumPy).
You have to provide one <code>generator</code> per dataset in the dataset dictionary.`,name:"generators"},{anchor:"datasets.DatasetDict.shuffle.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep the dataset in memory instead of writing it to a cache file.`,name:"keep_in_memory"},{anchor:"datasets.DatasetDict.shuffle.load_from_cache_file",description:`<strong>load_from_cache_file</strong> (<code>Optional[bool]</code>, defaults to <code>True</code> if caching is enabled) &#x2014;
If a cache file storing the current computation from <code>function</code>
can be identified, use it instead of recomputing.`,name:"load_from_cache_file"},{anchor:"datasets.DatasetDict.shuffle.indices_cache_file_names",description:`<strong>indices_cache_file_names</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
Provide the name of a path for the cache file. It is used to store the
indices mappings instead of the automatically generated cache file name.
You have to provide one <code>cache_file_name</code> per dataset in the dataset dictionary.`,name:"indices_cache_file_names"},{anchor:"datasets.DatasetDict.shuffle.writer_batch_size",description:`<strong>writer_batch_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Number of rows per write operation for the cache file writer.
This value is a good trade-off between memory usage during the processing, and processing speed.
Higher value makes the processing do fewer lookups, lower value consume less temporary memory while running <code>map</code>.`,name:"writer_batch_size"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L1133"}}),Qo=new I({props:{anchor:"datasets.DatasetDict.shuffle.example",$$slots:{default:[o5]},$$scope:{ctx:w}}}),Ki=new k({props:{name:"set_format",anchor:"datasets.DatasetDict.set_format",parameters:[{name:"type",val:": Optional = None"},{name:"columns",val:": Optional = None"},{name:"output_all_columns",val:": bool = False"},{name:"**format_kwargs",val:""}],parametersDescription:[{anchor:"datasets.DatasetDict.set_format.type",description:`<strong>type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Output type selected in <code>[None, &apos;numpy&apos;, &apos;torch&apos;, &apos;tensorflow&apos;, &apos;pandas&apos;, &apos;arrow&apos;, &apos;jax&apos;]</code>.
<code>None</code> means <code>__getitem__</code> returns python objects (default).`,name:"type"},{anchor:"datasets.DatasetDict.set_format.columns",description:`<strong>columns</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
Columns to format in the output.
<code>None</code> means <code>__getitem__</code> returns all columns (default).`,name:"columns"},{anchor:"datasets.DatasetDict.set_format.output_all_columns",description:`<strong>output_all_columns</strong> (<code>bool</code>, defaults to False) &#x2014;
Keep un-formatted columns as well in the output (as python objects),`,name:"output_all_columns"},{anchor:"datasets.DatasetDict.set_format.*format_kwargs",description:`*<strong>*format_kwargs</strong> (additional keyword arguments) &#x2014;
Keywords arguments passed to the convert function like <code>np.array</code>, <code>torch.tensor</code> or <code>tensorflow.ragged.constant</code>.`,name:"*format_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L557"}}),Eo=new I({props:{anchor:"datasets.DatasetDict.set_format.example",$$slots:{default:[l5]},$$scope:{ctx:w}}}),Oi=new k({props:{name:"reset_format",anchor:"datasets.DatasetDict.reset_format",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L603"}}),Ho=new I({props:{anchor:"datasets.DatasetDict.reset_format.example",$$slots:{default:[c5]},$$scope:{ctx:w}}}),ep=new k({props:{name:"formatted_as",anchor:"datasets.DatasetDict.formatted_as",parameters:[{name:"type",val:": Optional = None"},{name:"columns",val:": Optional = None"},{name:"output_all_columns",val:": bool = False"},{name:"**format_kwargs",val:""}],parametersDescription:[{anchor:"datasets.DatasetDict.formatted_as.type",description:`<strong>type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Output type selected in <code>[None, &apos;numpy&apos;, &apos;torch&apos;, &apos;tensorflow&apos;, &apos;pandas&apos;, &apos;arrow&apos;, &apos;jax&apos;]</code>.
<code>None</code> means <code>__getitem__</code> returns python objects (default).`,name:"type"},{anchor:"datasets.DatasetDict.formatted_as.columns",description:`<strong>columns</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
Columns to format in the output.
<code>None</code> means <code>__getitem__</code> returns all columns (default).`,name:"columns"},{anchor:"datasets.DatasetDict.formatted_as.output_all_columns",description:`<strong>output_all_columns</strong> (<code>bool</code>, defaults to False) &#x2014;
Keep un-formatted columns as well in the output (as python objects).`,name:"output_all_columns"},{anchor:"datasets.DatasetDict.formatted_as.*format_kwargs",description:`*<strong>*format_kwargs</strong> (additional keyword arguments) &#x2014;
Keywords arguments passed to the convert function like <code>np.array</code>, <code>torch.tensor</code> or <code>tensorflow.ragged.constant</code>.`,name:"*format_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L520"}}),tp=new k({props:{name:"with_format",anchor:"datasets.DatasetDict.with_format",parameters:[{name:"type",val:": Optional = None"},{name:"columns",val:": Optional = None"},{name:"output_all_columns",val:": bool = False"},{name:"**format_kwargs",val:""}],parametersDescription:[{anchor:"datasets.DatasetDict.with_format.type",description:`<strong>type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Output type selected in <code>[None, &apos;numpy&apos;, &apos;torch&apos;, &apos;tensorflow&apos;, &apos;pandas&apos;, &apos;arrow&apos;, &apos;jax&apos;]</code>.
<code>None</code> means <code>__getitem__</code> returns python objects (default).`,name:"type"},{anchor:"datasets.DatasetDict.with_format.columns",description:`<strong>columns</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
Columns to format in the output.
<code>None</code> means <code>__getitem__</code> returns all columns (default).`,name:"columns"},{anchor:"datasets.DatasetDict.with_format.output_all_columns",description:`<strong>output_all_columns</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Keep un-formatted columns as well in the output (as python objects).`,name:"output_all_columns"},{anchor:"datasets.DatasetDict.with_format.*format_kwargs",description:`*<strong>*format_kwargs</strong> (additional keyword arguments) &#x2014;
Keywords arguments passed to the convert function like <code>np.array</code>, <code>torch.tensor</code> or <code>tensorflow.ragged.constant</code>.`,name:"*format_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L659"}}),Yo=new I({props:{anchor:"datasets.DatasetDict.with_format.example",$$slots:{default:[d5]},$$scope:{ctx:w}}}),sp=new k({props:{name:"with_transform",anchor:"datasets.DatasetDict.with_transform",parameters:[{name:"transform",val:": Optional"},{name:"columns",val:": Optional = None"},{name:"output_all_columns",val:": bool = False"}],parametersDescription:[{anchor:"datasets.DatasetDict.with_transform.transform",description:`<strong>transform</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
User-defined formatting transform, replaces the format defined by <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.set_format">set_format()</a>.
A formatting function is a callable that takes a batch (as a dict) as input and returns a batch.
This function is applied right before returning the objects in <code>__getitem__</code>.`,name:"transform"},{anchor:"datasets.DatasetDict.with_transform.columns",description:`<strong>columns</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
Columns to format in the output.
If specified, then the input batch of the transform only contains those columns.`,name:"columns"},{anchor:"datasets.DatasetDict.with_transform.output_all_columns",description:`<strong>output_all_columns</strong> (<code>bool</code>, defaults to False) &#x2014;
Keep un-formatted columns as well in the output (as python objects).
If set to <code>True</code>, then the other un-formatted columns are kept with the output of the transform.`,name:"output_all_columns"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L711"}}),So=new I({props:{anchor:"datasets.DatasetDict.with_transform.example",$$slots:{default:[i5]},$$scope:{ctx:w}}}),ap=new k({props:{name:"flatten",anchor:"datasets.DatasetDict.flatten",parameters:[{name:"max_depth",val:" = 16"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L186"}}),Ao=new I({props:{anchor:"datasets.DatasetDict.flatten.example",$$slots:{default:[p5]},$$scope:{ctx:w}}}),np=new k({props:{name:"cast",anchor:"datasets.DatasetDict.cast",parameters:[{name:"features",val:": Features"}],parametersDescription:[{anchor:"datasets.DatasetDict.cast.features",description:`<strong>features</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>) &#x2014;
New features to cast the dataset to.
The name and order of the fields in the features must match the current column names.
The type of the data must also be convertible from one type to the other.
For non-trivial conversion, e.g. <code>string</code> &lt;-&gt; <code>ClassLabel</code> you should use <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict.map">map()</a> to update the dataset.`,name:"features"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L266"}}),Po=new I({props:{anchor:"datasets.DatasetDict.cast.example",$$slots:{default:[m5]},$$scope:{ctx:w}}}),rp=new k({props:{name:"cast_column",anchor:"datasets.DatasetDict.cast_column",parameters:[{name:"column",val:": str"},{name:"feature",val:""}],parametersDescription:[{anchor:"datasets.DatasetDict.cast_column.column",description:`<strong>column</strong> (<code>str</code>) &#x2014;
Column name.`,name:"column"},{anchor:"datasets.DatasetDict.cast_column.feature",description:`<strong>feature</strong> (<code>Feature</code>) &#x2014;
Target feature.`,name:"feature"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L298",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),Ko=new I({props:{anchor:"datasets.DatasetDict.cast_column.example",$$slots:{default:[h5]},$$scope:{ctx:w}}}),op=new k({props:{name:"remove_columns",anchor:"datasets.DatasetDict.remove_columns",parameters:[{name:"column_names",val:": Union"}],parametersDescription:[{anchor:"datasets.DatasetDict.remove_columns.column_names",description:`<strong>column_names</strong> (<code>Union[str, List[str]]</code>) &#x2014;
Name of the column(s) to remove.`,name:"column_names"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L327",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset object without the columns to remove.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),Oo=new I({props:{anchor:"datasets.DatasetDict.remove_columns.example",$$slots:{default:[g5]},$$scope:{ctx:w}}}),lp=new k({props:{name:"rename_column",anchor:"datasets.DatasetDict.rename_column",parameters:[{name:"original_column_name",val:": str"},{name:"new_column_name",val:": str"}],parametersDescription:[{anchor:"datasets.DatasetDict.rename_column.original_column_name",description:`<strong>original_column_name</strong> (<code>str</code>) &#x2014;
Name of the column to rename.`,name:"original_column_name"},{anchor:"datasets.DatasetDict.rename_column.new_column_name",description:`<strong>new_column_name</strong> (<code>str</code>) &#x2014;
New name for the column.`,name:"new_column_name"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L369"}}),el=new I({props:{anchor:"datasets.DatasetDict.rename_column.example",$$slots:{default:[u5]},$$scope:{ctx:w}}}),cp=new k({props:{name:"rename_columns",anchor:"datasets.DatasetDict.rename_columns",parameters:[{name:"column_mapping",val:": Dict"}],parametersDescription:[{anchor:"datasets.DatasetDict.rename_columns.column_mapping",description:`<strong>column_mapping</strong> (<code>Dict[str, str]</code>) &#x2014;
A mapping of columns to rename to their new names.`,name:"column_mapping"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L414",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset with renamed columns.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),tl=new I({props:{anchor:"datasets.DatasetDict.rename_columns.example",$$slots:{default:[f5]},$$scope:{ctx:w}}}),dp=new k({props:{name:"select_columns",anchor:"datasets.DatasetDict.select_columns",parameters:[{name:"column_names",val:": Union"}],parametersDescription:[{anchor:"datasets.DatasetDict.select_columns.column_names",description:`<strong>column_names</strong> (<code>Union[str, List[str]]</code>) &#x2014;
Name of the column(s) to keep.`,name:"column_names"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L452"}}),sl=new I({props:{anchor:"datasets.DatasetDict.select_columns.example",$$slots:{default:[b5]},$$scope:{ctx:w}}}),ip=new k({props:{name:"class_encode_column",anchor:"datasets.DatasetDict.class_encode_column",parameters:[{name:"column",val:": str"},{name:"include_nulls",val:": bool = False"}],parametersDescription:[{anchor:"datasets.DatasetDict.class_encode_column.column",description:`<strong>column</strong> (<code>str</code>) &#x2014;
The name of the column to cast.`,name:"column"},{anchor:"datasets.DatasetDict.class_encode_column.include_nulls",description:`<strong>include_nulls</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to include null values in the class labels. If <code>True</code>, the null values will be encoded as the <code>&quot;None&quot;</code> class label.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 1.14.2</p>
						
					</div>`,name:"include_nulls"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L488"}}),al=new I({props:{anchor:"datasets.DatasetDict.class_encode_column.example",$$slots:{default:[_5]},$$scope:{ctx:w}}}),pp=new k({props:{name:"push_to_hub",anchor:"datasets.DatasetDict.push_to_hub",parameters:[{name:"repo_id",val:""},{name:"config_name",val:": str = 'default'"},{name:"set_default",val:": Optional = None"},{name:"data_dir",val:": Optional = None"},{name:"commit_message",val:": Optional = None"},{name:"commit_description",val:": Optional = None"},{name:"private",val:": Optional = False"},{name:"token",val:": Optional = None"},{name:"revision",val:": Optional = None"},{name:"branch",val:" = 'deprecated'"},{name:"create_pr",val:": Optional = False"},{name:"max_shard_size",val:": Union = None"},{name:"num_shards",val:": Optional = None"},{name:"embed_external_files",val:": bool = True"}],parametersDescription:[{anchor:"datasets.DatasetDict.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The ID of the repository to push to in the following format: <code>&lt;user&gt;/&lt;dataset_name&gt;</code> or
<code>&lt;org&gt;/&lt;dataset_name&gt;</code>. Also accepts <code>&lt;dataset_name&gt;</code>, which will default to the namespace
of the logged-in user.`,name:"repo_id"},{anchor:"datasets.DatasetDict.push_to_hub.config_name",description:`<strong>config_name</strong> (<code>str</code>) &#x2014;
Configuration name of a dataset. Defaults to &#x201C;default&#x201D;.`,name:"config_name"},{anchor:"datasets.DatasetDict.push_to_hub.set_default",description:`<strong>set_default</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to set this configuration as the default one. Otherwise, the default configuration is the one
named &#x201C;default&#x201D;.`,name:"set_default"},{anchor:"datasets.DatasetDict.push_to_hub.data_dir",description:`<strong>data_dir</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Directory name that will contain the uploaded data files. Defaults to the <code>config_name</code> if different
from &#x201C;default&#x201D;, else &#x201C;data&#x201D;.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.17.0</p>
						
					</div>`,name:"data_dir"},{anchor:"datasets.DatasetDict.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload dataset&quot;</code>.`,name:"commit_message"},{anchor:"datasets.DatasetDict.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Description of the commit that will be created.
Additionally, description of the PR if a PR is created (<code>create_pr</code> is True).</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.16.0</p>
						
					</div>`,name:"commit_description"},{anchor:"datasets.DatasetDict.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether the dataset repository should be set to private or not. Only affects repository creation:
a repository that already exists will not be affected by that parameter.`,name:"private"},{anchor:"datasets.DatasetDict.push_to_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
An optional authentication token for the Hugging Face Hub. If no token is passed, will default
to the token saved locally when logging in with <code>huggingface-cli login</code>. Will raise an error
if no token is passed and the user is not logged-in.`,name:"token"},{anchor:"datasets.DatasetDict.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Branch to push the uploaded files to. Defaults to the <code>&quot;main&quot;</code> branch.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.15.0</p>
						
					</div>`,name:"revision"},{anchor:"datasets.DatasetDict.push_to_hub.branch",description:`<strong>branch</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git branch on which to push the dataset. This defaults to the default branch as specified
in your repository, which defaults to <code>&quot;main&quot;</code>.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						<p class="font-medium">Deprecated in 2.15.0</p>
						
<p><code>branch</code> was deprecated in favor of <code>revision</code> in version 2.15.0 and will be removed in 3.0.0.</p>

					</div>`,name:"branch"},{anchor:"datasets.DatasetDict.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to create a PR with the uploaded files or directly commit.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.15.0</p>
						
					</div>`,name:"create_pr"},{anchor:"datasets.DatasetDict.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;500MB&quot;</code>) &#x2014;
The maximum size of the dataset shards to be uploaded to the hub. If expressed as a string, needs to be digits followed by a unit
(like <code>&quot;500MB&quot;</code> or <code>&quot;1GB&quot;</code>).`,name:"max_shard_size"},{anchor:"datasets.DatasetDict.push_to_hub.num_shards",description:`<strong>num_shards</strong> (<code>Dict[str, int]</code>, <em>optional</em>) &#x2014;
Number of shards to write. By default, the number of shards depends on <code>max_shard_size</code>.
Use a dictionary to define a different num_shards for each split.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.8.0</p>
						
					</div>`,name:"num_shards"},{anchor:"datasets.DatasetDict.push_to_hub.embed_external_files",description:`<strong>embed_external_files</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to embed file bytes in the shards.
In particular, this will do the following before the push for the fields of type:</p>
<ul>
<li><a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Audio">Audio</a> and <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Image">Image</a> removes local path information and embed file content in the Parquet files.</li>
</ul>`,name:"embed_external_files"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L1565",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>huggingface_hub.CommitInfo</p>
`}}),nl=new I({props:{anchor:"datasets.DatasetDict.push_to_hub.example",$$slots:{default:[x5]},$$scope:{ctx:w}}}),rl=new I({props:{anchor:"datasets.DatasetDict.push_to_hub.example-2",$$slots:{default:[$5]},$$scope:{ctx:w}}}),mp=new k({props:{name:"save_to_disk",anchor:"datasets.DatasetDict.save_to_disk",parameters:[{name:"dataset_dict_path",val:": Union"},{name:"fs",val:" = 'deprecated'"},{name:"max_shard_size",val:": Union = None"},{name:"num_shards",val:": Optional = None"},{name:"num_proc",val:": Optional = None"},{name:"storage_options",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.DatasetDict.save_to_disk.dataset_dict_path",description:`<strong>dataset_dict_path</strong> (<code>str</code>) &#x2014;
Path (e.g. <code>dataset/train</code>) or remote URI
(e.g. <code>s3://my-bucket/dataset/train</code>) of the dataset dict directory where the dataset dict will be
saved to.`,name:"dataset_dict_path"},{anchor:"datasets.DatasetDict.save_to_disk.fs",description:`<strong>fs</strong> (<code>fsspec.spec.AbstractFileSystem</code>, <em>optional</em>) &#x2014;
Instance of the remote filesystem where the dataset will be saved to.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						<p class="font-medium">Deprecated in 2.8.0</p>
						
<p><code>fs</code> was deprecated in version 2.8.0 and will be removed in 3.0.0.
Please use <code>storage_options</code> instead, e.g. <code>storage_options=fs.storage_options</code></p>

					</div>`,name:"fs"},{anchor:"datasets.DatasetDict.save_to_disk.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;500MB&quot;</code>) &#x2014;
The maximum size of the dataset shards to be uploaded to the hub. If expressed as a string, needs to be digits followed by a unit
(like <code>&quot;50MB&quot;</code>).`,name:"max_shard_size"},{anchor:"datasets.DatasetDict.save_to_disk.num_shards",description:`<strong>num_shards</strong> (<code>Dict[str, int]</code>, <em>optional</em>) &#x2014;
Number of shards to write. By default the number of shards depends on <code>max_shard_size</code> and <code>num_proc</code>.
You need to provide the number of shards for each dataset in the dataset dictionary.
Use a dictionary to define a different num_shards for each split.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.8.0</p>
						
					</div>`,name:"num_shards"},{anchor:"datasets.DatasetDict.save_to_disk.num_proc",description:`<strong>num_proc</strong> (<code>int</code>, <em>optional</em>, default <code>None</code>) &#x2014;
Number of processes when downloading and generating the dataset locally.
Multiprocessing is disabled by default.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.8.0</p>
						
					</div>`,name:"num_proc"},{anchor:"datasets.DatasetDict.save_to_disk.storage_options",description:`<strong>storage_options</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Key/value pairs to be passed on to the file-system backend, if any.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.8.0</p>
						
					</div>`,name:"storage_options"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L1216"}}),ol=new I({props:{anchor:"datasets.DatasetDict.save_to_disk.example",$$slots:{default:[y5]},$$scope:{ctx:w}}}),hp=new k({props:{name:"load_from_disk",anchor:"datasets.DatasetDict.load_from_disk",parameters:[{name:"dataset_dict_path",val:": Union"},{name:"fs",val:" = 'deprecated'"},{name:"keep_in_memory",val:": Optional = None"},{name:"storage_options",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.DatasetDict.load_from_disk.dataset_dict_path",description:`<strong>dataset_dict_path</strong> (<code>str</code>) &#x2014;
Path (e.g. <code>&quot;dataset/train&quot;</code>) or remote URI (e.g. <code>&quot;s3//my-bucket/dataset/train&quot;</code>)
of the dataset dict directory where the dataset dict will be loaded from.`,name:"dataset_dict_path"},{anchor:"datasets.DatasetDict.load_from_disk.fs",description:`<strong>fs</strong> (<code>fsspec.spec.AbstractFileSystem</code>, <em>optional</em>) &#x2014;
Instance of the remote filesystem where the dataset will be saved to.</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						<p class="font-medium">Deprecated in 2.8.0</p>
						
<p><code>fs</code> was deprecated in version 2.8.0 and will be removed in 3.0.0.
Please use <code>storage_options</code> instead, e.g. <code>storage_options=fs.storage_options</code></p>

					</div>`,name:"fs"},{anchor:"datasets.DatasetDict.load_from_disk.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>None</code>) &#x2014;
Whether to copy the dataset in-memory. If <code>None</code>, the
dataset will not be copied in-memory unless explicitly enabled by setting
<code>datasets.config.IN_MEMORY_MAX_SIZE</code> to nonzero. See more details in the
<a href="../cache#improve-performance">improve performance</a> section.`,name:"keep_in_memory"},{anchor:"datasets.DatasetDict.load_from_disk.storage_options",description:`<strong>storage_options</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Key/value pairs to be passed on to the file-system backend, if any.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 2.8.0</p>
						
					</div>`,name:"storage_options"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L1306",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),ll=new I({props:{anchor:"datasets.DatasetDict.load_from_disk.example",$$slots:{default:[j5]},$$scope:{ctx:w}}}),gp=new k({props:{name:"from_csv",anchor:"datasets.DatasetDict.from_csv",parameters:[{name:"path_or_paths",val:": Dict"},{name:"features",val:": Optional = None"},{name:"cache_dir",val:": str = None"},{name:"keep_in_memory",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.DatasetDict.from_csv.path_or_paths",description:`<strong>path_or_paths</strong> (<code>dict</code> of path-like) &#x2014;
Path(s) of the CSV file(s).`,name:"path_or_paths"},{anchor:"datasets.DatasetDict.from_csv.features",description:`<strong>features</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>, <em>optional</em>) &#x2014;
Dataset features.`,name:"features"},{anchor:"datasets.DatasetDict.from_csv.cache_dir",description:`<strong>cache_dir</strong> (str, <em>optional</em>, defaults to <code>&quot;~/.cache/huggingface/datasets&quot;</code>) &#x2014;
Directory to cache data.`,name:"cache_dir"},{anchor:"datasets.DatasetDict.from_csv.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to copy the data in-memory.`,name:"keep_in_memory"},{anchor:"datasets.DatasetDict.from_csv.*kwargs",description:`*<strong>*kwargs</strong> (additional keyword arguments) &#x2014;
Keyword arguments to be passed to <code>pandas.read_csv</code>.`,name:"*kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L1383",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),cl=new I({props:{anchor:"datasets.DatasetDict.from_csv.example",$$slots:{default:[w5]},$$scope:{ctx:w}}}),up=new k({props:{name:"from_json",anchor:"datasets.DatasetDict.from_json",parameters:[{name:"path_or_paths",val:": Dict"},{name:"features",val:": Optional = None"},{name:"cache_dir",val:": str = None"},{name:"keep_in_memory",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.DatasetDict.from_json.path_or_paths",description:`<strong>path_or_paths</strong> (<code>path-like</code> or list of <code>path-like</code>) &#x2014;
Path(s) of the JSON Lines file(s).`,name:"path_or_paths"},{anchor:"datasets.DatasetDict.from_json.features",description:`<strong>features</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>, <em>optional</em>) &#x2014;
Dataset features.`,name:"features"},{anchor:"datasets.DatasetDict.from_json.cache_dir",description:`<strong>cache_dir</strong> (str, <em>optional</em>, defaults to <code>&quot;~/.cache/huggingface/datasets&quot;</code>) &#x2014;
Directory to cache data.`,name:"cache_dir"},{anchor:"datasets.DatasetDict.from_json.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to copy the data in-memory.`,name:"keep_in_memory"},{anchor:"datasets.DatasetDict.from_json.*kwargs",description:`*<strong>*kwargs</strong> (additional keyword arguments) &#x2014;
Keyword arguments to be passed to <code>JsonConfig</code>.`,name:"*kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L1422",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),dl=new I({props:{anchor:"datasets.DatasetDict.from_json.example",$$slots:{default:[v5]},$$scope:{ctx:w}}}),fp=new k({props:{name:"from_parquet",anchor:"datasets.DatasetDict.from_parquet",parameters:[{name:"path_or_paths",val:": Dict"},{name:"features",val:": Optional = None"},{name:"cache_dir",val:": str = None"},{name:"keep_in_memory",val:": bool = False"},{name:"columns",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.DatasetDict.from_parquet.path_or_paths",description:`<strong>path_or_paths</strong> (<code>dict</code> of path-like) &#x2014;
Path(s) of the CSV file(s).`,name:"path_or_paths"},{anchor:"datasets.DatasetDict.from_parquet.features",description:`<strong>features</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>, <em>optional</em>) &#x2014;
Dataset features.`,name:"features"},{anchor:"datasets.DatasetDict.from_parquet.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;~/.cache/huggingface/datasets&quot;</code>) &#x2014;
Directory to cache data.`,name:"cache_dir"},{anchor:"datasets.DatasetDict.from_parquet.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to copy the data in-memory.`,name:"keep_in_memory"},{anchor:"datasets.DatasetDict.from_parquet.columns",description:`<strong>columns</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
If not <code>None</code>, only these columns will be read from the file.
A column name may be a prefix of a nested field, e.g. &#x2018;a&#x2019; will select
&#x2018;a.b&#x2019;, &#x2018;a.c&#x2019;, and &#x2018;a.d.e&#x2019;.`,name:"columns"},{anchor:"datasets.DatasetDict.from_parquet.*kwargs",description:`*<strong>*kwargs</strong> (additional keyword arguments) &#x2014;
Keyword arguments to be passed to <code>ParquetConfig</code>.`,name:"*kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L1461",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),il=new I({props:{anchor:"datasets.DatasetDict.from_parquet.example",$$slots:{default:[M5]},$$scope:{ctx:w}}}),bp=new k({props:{name:"from_text",anchor:"datasets.DatasetDict.from_text",parameters:[{name:"path_or_paths",val:": Dict"},{name:"features",val:": Optional = None"},{name:"cache_dir",val:": str = None"},{name:"keep_in_memory",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.DatasetDict.from_text.path_or_paths",description:`<strong>path_or_paths</strong> (<code>dict</code> of path-like) &#x2014;
Path(s) of the text file(s).`,name:"path_or_paths"},{anchor:"datasets.DatasetDict.from_text.features",description:`<strong>features</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>, <em>optional</em>) &#x2014;
Dataset features.`,name:"features"},{anchor:"datasets.DatasetDict.from_text.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;~/.cache/huggingface/datasets&quot;</code>) &#x2014;
Directory to cache data.`,name:"cache_dir"},{anchor:"datasets.DatasetDict.from_text.keep_in_memory",description:`<strong>keep_in_memory</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to copy the data in-memory.`,name:"keep_in_memory"},{anchor:"datasets.DatasetDict.from_text.*kwargs",description:`*<strong>*kwargs</strong> (additional keyword arguments) &#x2014;
Keyword arguments to be passed to <code>TextConfig</code>.`,name:"*kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L1510",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),pl=new I({props:{anchor:"datasets.DatasetDict.from_text.example",$$slots:{default:[k5]},$$scope:{ctx:w}}}),_p=new k({props:{name:"prepare_for_task",anchor:"datasets.DatasetDict.prepare_for_task",parameters:[{name:"task",val:": Union"},{name:"id",val:": int = 0"}],parametersDescription:[{anchor:"datasets.DatasetDict.prepare_for_task.task",description:`<strong>task</strong> (<code>Union[str, TaskTemplate]</code>) &#x2014;
The task to prepare the dataset for during training and evaluation. If <code>str</code>, supported tasks include:</p>
<ul>
<li><code>&quot;text-classification&quot;</code></li>
<li><code>&quot;question-answering&quot;</code></li>
</ul>
<p>If <code>TaskTemplate</code>, must be one of the task templates in <a href="./task_templates"><code>datasets.tasks</code></a>.`,name:"task"},{anchor:"datasets.DatasetDict.prepare_for_task.id",description:`<strong>id</strong> (<code>int</code>, defaults to <code>0</code>) &#x2014;
The id required to unambiguously identify the task template when multiple task templates of the same type are supported.`,name:"id"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L1549"}}),xp=new Kt({props:{title:"IterableDataset",local:"datasets.IterableDataset",headingTag:"h2"}}),yp=new k({props:{name:"class datasets.IterableDataset",anchor:"datasets.IterableDataset",parameters:[{name:"ex_iterable",val:": _BaseExamplesIterable"},{name:"info",val:": Optional = None"},{name:"split",val:": Optional = None"},{name:"formatting",val:": Optional = None"},{name:"shuffling",val:": Optional = None"},{name:"distributed",val:": Optional = None"},{name:"token_per_repo_id",val:": Optional = None"},{name:"format_type",val:" = 'deprecated'"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L1630"}}),jp=new k({props:{name:"from_generator",anchor:"datasets.IterableDataset.from_generator",parameters:[{name:"generator",val:": Callable"},{name:"features",val:": Optional = None"},{name:"gen_kwargs",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.IterableDataset.from_generator.generator",description:`<strong>generator</strong> (<code>Callable</code>) &#x2014;
A generator function that <code>yields</code> examples.`,name:"generator"},{anchor:"datasets.IterableDataset.from_generator.features",description:`<strong>features</strong> (<code>Features</code>, <em>optional</em>) &#x2014;
Dataset features.`,name:"features"},{anchor:"datasets.IterableDataset.from_generator.gen_kwargs(dict,",description:`<strong>gen_kwargs(<code>dict</code>,</strong> <em>optional</em>) &#x2014;
Keyword arguments to be passed to the <code>generator</code> callable.
You can define a sharded iterable dataset by passing the list of shards in <code>gen_kwargs</code>.
This can be used to improve shuffling and when iterating over the dataset with multiple workers.`,name:"gen_kwargs(dict,"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L1997",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>IterableDataset</code></p>
`}}),ml=new I({props:{anchor:"datasets.IterableDataset.from_generator.example",$$slots:{default:[J5]},$$scope:{ctx:w}}}),hl=new I({props:{anchor:"datasets.IterableDataset.from_generator.example-2",$$slots:{default:[T5]},$$scope:{ctx:w}}}),wp=new k({props:{name:"remove_columns",anchor:"datasets.IterableDataset.remove_columns",parameters:[{name:"column_names",val:": Union"}],parametersDescription:[{anchor:"datasets.IterableDataset.remove_columns.column_names",description:`<strong>column_names</strong> (<code>Union[str, List[str]]</code>) &#x2014;
Name of the column(s) to remove.`,name:"column_names"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L2565",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset object without the columns to remove.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>IterableDataset</code></p>
`}}),gl=new I({props:{anchor:"datasets.IterableDataset.remove_columns.example",$$slots:{default:[D5]},$$scope:{ctx:w}}}),vp=new k({props:{name:"select_columns",anchor:"datasets.IterableDataset.select_columns",parameters:[{name:"column_names",val:": Union"}],parametersDescription:[{anchor:"datasets.IterableDataset.select_columns.column_names",description:`<strong>column_names</strong> (<code>Union[str, List[str]]</code>) &#x2014;
Name of the column(s) to select.`,name:"column_names"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L2605",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset object with selected columns.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>IterableDataset</code></p>
`}}),ul=new I({props:{anchor:"datasets.IterableDataset.select_columns.example",$$slots:{default:[I5]},$$scope:{ctx:w}}}),Mp=new k({props:{name:"cast_column",anchor:"datasets.IterableDataset.cast_column",parameters:[{name:"column",val:": str"},{name:"feature",val:": Union"}],parametersDescription:[{anchor:"datasets.IterableDataset.cast_column.column",description:`<strong>column</strong> (<code>str</code>) &#x2014;
Column name.`,name:"column"},{anchor:"datasets.IterableDataset.cast_column.feature",description:`<strong>feature</strong> (<code>Feature</code>) &#x2014;
Target feature.`,name:"feature"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L2661",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>IterableDataset</code></p>
`}}),fl=new I({props:{anchor:"datasets.IterableDataset.cast_column.example",$$slots:{default:[C5]},$$scope:{ctx:w}}}),kp=new k({props:{name:"cast",anchor:"datasets.IterableDataset.cast",parameters:[{name:"features",val:": Features"}],parametersDescription:[{anchor:"datasets.IterableDataset.cast.features",description:`<strong>features</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features">Features</a>) &#x2014;
New features to cast the dataset to.
The name of the fields in the features must match the current column names.
The type of the data must also be convertible from one type to the other.
For non-trivial conversion, e.g. <code>string</code> &lt;-&gt; <code>ClassLabel</code> you should use <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Dataset.map">map()</a> to update the Dataset.`,name:"features"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L2712",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset with casted features.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>IterableDataset</code></p>
`}}),bl=new I({props:{anchor:"datasets.IterableDataset.cast.example",$$slots:{default:[U5]},$$scope:{ctx:w}}}),Jp=new k({props:{name:"__iter__",anchor:"datasets.IterableDataset.__iter__",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L1920"}}),Tp=new k({props:{name:"iter",anchor:"datasets.IterableDataset.iter",parameters:[{name:"batch_size",val:": int"},{name:"drop_last_batch",val:": bool = False"}],parametersDescription:[{anchor:"datasets.IterableDataset.iter.batch_size",description:"<strong>batch_size</strong> (<code>int</code>) &#x2014; size of each batch to yield.",name:"batch_size"},{anchor:"datasets.IterableDataset.iter.drop_last_batch",description:`<strong>drop_last_batch</strong> (<code>bool</code>, default <em>False</em>) &#x2014; Whether a last batch smaller than the batch_size should be
dropped`,name:"drop_last_batch"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L1957"}}),Dp=new k({props:{name:"map",anchor:"datasets.IterableDataset.map",parameters:[{name:"function",val:": Optional = None"},{name:"with_indices",val:": bool = False"},{name:"input_columns",val:": Union = None"},{name:"batched",val:": bool = False"},{name:"batch_size",val:": Optional = 1000"},{name:"drop_last_batch",val:": bool = False"},{name:"remove_columns",val:": Union = None"},{name:"features",val:": Optional = None"},{name:"fn_kwargs",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.IterableDataset.map.function",description:`<strong>function</strong> (<code>Callable</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Function applied on-the-fly on the examples when you iterate on the dataset.
It must have one of the following signatures:</p>
<ul>
<li><code>function(example: Dict[str, Any]) -&gt; Dict[str, Any]</code> if <code>batched=False</code> and <code>with_indices=False</code></li>
<li><code>function(example: Dict[str, Any], idx: int) -&gt; Dict[str, Any]</code> if <code>batched=False</code> and <code>with_indices=True</code></li>
<li><code>function(batch: Dict[str, List]) -&gt; Dict[str, List]</code> if <code>batched=True</code> and <code>with_indices=False</code></li>
<li><code>function(batch: Dict[str, List], indices: List[int]) -&gt; Dict[str, List]</code> if <code>batched=True</code> and <code>with_indices=True</code></li>
</ul>
<p>For advanced usage, the function can also return a <code>pyarrow.Table</code>.
Moreover if your function returns nothing (<code>None</code>), then <code>map</code> will run your function and return the dataset unchanged.
If no function is provided, default to identity function: <code>lambda x: x</code>.`,name:"function"},{anchor:"datasets.IterableDataset.map.with_indices",description:`<strong>with_indices</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide example indices to <code>function</code>. Note that in this case the signature of <code>function</code> should be <code>def function(example, idx[, rank]): ...</code>.`,name:"with_indices"},{anchor:"datasets.IterableDataset.map.input_columns",description:`<strong>input_columns</strong> (<code>Optional[Union[str, List[str]]]</code>, defaults to <code>None</code>) &#x2014;
The columns to be passed into <code>function</code>
as positional arguments. If <code>None</code>, a dict mapping to all formatted columns is passed as one argument.`,name:"input_columns"},{anchor:"datasets.IterableDataset.map.batched",description:`<strong>batched</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide batch of examples to <code>function</code>.`,name:"batched"},{anchor:"datasets.IterableDataset.map.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>1000</code>) &#x2014;
Number of examples per batch provided to <code>function</code> if <code>batched=True</code>.
<code>batch_size &lt;= 0</code> or <code>batch_size == None</code> then provide the full dataset as a single batch to <code>function</code>.`,name:"batch_size"},{anchor:"datasets.IterableDataset.map.drop_last_batch",description:`<strong>drop_last_batch</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether a last batch smaller than the batch_size should be
dropped instead of being processed by the function.`,name:"drop_last_batch"},{anchor:"datasets.IterableDataset.map.remove_columns",description:`<strong>remove_columns</strong> (<code>[List[str]]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Remove a selection of columns while doing the mapping.
Columns will be removed before updating the examples with the output of <code>function</code>, i.e. if <code>function</code> is adding
columns with names in <code>remove_columns</code>, these columns will be kept.`,name:"remove_columns"},{anchor:"datasets.IterableDataset.map.features",description:`<strong>features</strong> (<code>[Features]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Feature types of the resulting dataset.`,name:"features"},{anchor:"datasets.IterableDataset.map.fn_kwargs",description:`<strong>fn_kwargs</strong> (<code>Dict</code>, <em>optional</em>, default <code>None</code>) &#x2014;
Keyword arguments to be passed to <code>function</code>.`,name:"fn_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L2138"}}),xl=new I({props:{anchor:"datasets.IterableDataset.map.example",$$slots:{default:[Z5]},$$scope:{ctx:w}}}),Ip=new k({props:{name:"rename_column",anchor:"datasets.IterableDataset.rename_column",parameters:[{name:"original_column_name",val:": str"},{name:"new_column_name",val:": str"}],parametersDescription:[{anchor:"datasets.IterableDataset.rename_column.original_column_name",description:`<strong>original_column_name</strong> (<code>str</code>) &#x2014;
Name of the column to rename.`,name:"original_column_name"},{anchor:"datasets.IterableDataset.rename_column.new_column_name",description:`<strong>new_column_name</strong> (<code>str</code>) &#x2014;
New name for the column.`,name:"new_column_name"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L2505",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset with a renamed column.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>IterableDataset</code></p>
`}}),$l=new I({props:{anchor:"datasets.IterableDataset.rename_column.example",$$slots:{default:[F5]},$$scope:{ctx:w}}}),Cp=new k({props:{name:"filter",anchor:"datasets.IterableDataset.filter",parameters:[{name:"function",val:": Optional = None"},{name:"with_indices",val:" = False"},{name:"input_columns",val:": Union = None"},{name:"batched",val:": bool = False"},{name:"batch_size",val:": Optional = 1000"},{name:"fn_kwargs",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.IterableDataset.filter.function",description:`<strong>function</strong> (<code>Callable</code>) &#x2014;
Callable with one of the following signatures:</p>
<ul>
<li><code>function(example: Dict[str, Any]) -&gt; bool</code> if <code>with_indices=False, batched=False</code></li>
<li><code>function(example: Dict[str, Any], indices: int) -&gt; bool</code> if <code>with_indices=True, batched=False</code></li>
<li><code>function(example: Dict[str, List]) -&gt; List[bool]</code> if <code>with_indices=False, batched=True</code></li>
<li><code>function(example: Dict[str, List], indices: List[int]) -&gt; List[bool]</code> if <code>with_indices=True, batched=True</code></li>
</ul>
<p>If no function is provided, defaults to an always True function: <code>lambda x: True</code>.`,name:"function"},{anchor:"datasets.IterableDataset.filter.with_indices",description:`<strong>with_indices</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide example indices to <code>function</code>. Note that in this case the signature of <code>function</code> should be <code>def function(example, idx): ...</code>.`,name:"with_indices"},{anchor:"datasets.IterableDataset.filter.input_columns",description:`<strong>input_columns</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The columns to be passed into <code>function</code> as
positional arguments. If <code>None</code>, a dict mapping to all formatted columns is passed as one argument.`,name:"input_columns"},{anchor:"datasets.IterableDataset.filter.batched",description:`<strong>batched</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide batch of examples to <code>function</code>.`,name:"batched"},{anchor:"datasets.IterableDataset.filter.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, default <code>1000</code>) &#x2014;
Number of examples per batch provided to <code>function</code> if <code>batched=True</code>.`,name:"batch_size"},{anchor:"datasets.IterableDataset.filter.fn_kwargs",description:`<strong>fn_kwargs</strong> (<code>Dict</code>, <em>optional</em>, default <code>None</code>) &#x2014;
Keyword arguments to be passed to <code>function</code>.`,name:"fn_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L2259"}}),yl=new I({props:{anchor:"datasets.IterableDataset.filter.example",$$slots:{default:[R5]},$$scope:{ctx:w}}}),Up=new k({props:{name:"shuffle",anchor:"datasets.IterableDataset.shuffle",parameters:[{name:"seed",val:" = None"},{name:"generator",val:": Optional = None"},{name:"buffer_size",val:": int = 1000"}],parametersDescription:[{anchor:"datasets.IterableDataset.shuffle.seed",description:`<strong>seed</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Random seed that will be used to shuffle the dataset.
It is used to sample from the shuffle buffer and also to shuffle the data shards.`,name:"seed"},{anchor:"datasets.IterableDataset.shuffle.generator",description:`<strong>generator</strong> (<code>numpy.random.Generator</code>, <em>optional</em>) &#x2014;
Numpy random Generator to use to compute the permutation of the dataset rows.
If <code>generator=None</code> (default), uses <code>np.random.default_rng</code> (the default BitGenerator (PCG64) of NumPy).`,name:"generator"},{anchor:"datasets.IterableDataset.shuffle.buffer_size",description:`<strong>buffer_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Size of the buffer.`,name:"buffer_size"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L2337"}}),jl=new I({props:{anchor:"datasets.IterableDataset.shuffle.example",$$slots:{default:[z5]},$$scope:{ctx:w}}}),Zp=new k({props:{name:"skip",anchor:"datasets.IterableDataset.skip",parameters:[{name:"n",val:": int"}],parametersDescription:[{anchor:"datasets.IterableDataset.skip.n",description:`<strong>n</strong> (<code>int</code>) &#x2014;
Number of elements to skip.`,name:"n"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L2407"}}),wl=new I({props:{anchor:"datasets.IterableDataset.skip.example",$$slots:{default:[G5]},$$scope:{ctx:w}}}),Fp=new k({props:{name:"take",anchor:"datasets.IterableDataset.take",parameters:[{name:"n",val:": int"}],parametersDescription:[{anchor:"datasets.IterableDataset.take.n",description:`<strong>n</strong> (<code>int</code>) &#x2014;
Number of elements to take.`,name:"n"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L2446"}}),vl=new I({props:{anchor:"datasets.IterableDataset.take.example",$$slots:{default:[N5]},$$scope:{ctx:w}}}),Rp=new k({props:{name:"load_state_dict",anchor:"datasets.IterableDataset.load_state_dict",parameters:[{name:"state_dict",val:": dict"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L1722"}}),Ml=new I({props:{anchor:"datasets.IterableDataset.load_state_dict.example",$$slots:{default:[X5]},$$scope:{ctx:w}}}),kl=new I({props:{anchor:"datasets.IterableDataset.load_state_dict.example-2",$$slots:{default:[V5]},$$scope:{ctx:w}}}),Jl=new I({props:{anchor:"datasets.IterableDataset.load_state_dict.example-3",$$slots:{default:[q5]},$$scope:{ctx:w}}}),zp=new k({props:{name:"state_dict",anchor:"datasets.IterableDataset.state_dict",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/iterable_dataset.py#L1669",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),Tl=new I({props:{anchor:"datasets.IterableDataset.state_dict.example",$$slots:{default:[W5]},$$scope:{ctx:w}}}),Dl=new I({props:{anchor:"datasets.IterableDataset.state_dict.example-2",$$slots:{default:[B5]},$$scope:{ctx:w}}}),Il=new I({props:{anchor:"datasets.IterableDataset.state_dict.example-3",$$slots:{default:[Q5]},$$scope:{ctx:w}}}),Gp=new k({props:{name:"info",anchor:"datasets.IterableDataset.info",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L168"}}),Np=new k({props:{name:"split",anchor:"datasets.IterableDataset.split",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L173"}}),Xp=new k({props:{name:"builder_name",anchor:"datasets.IterableDataset.builder_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L178"}}),Vp=new k({props:{name:"citation",anchor:"datasets.IterableDataset.citation",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L182"}}),qp=new k({props:{name:"config_name",anchor:"datasets.IterableDataset.config_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L186"}}),Wp=new k({props:{name:"dataset_size",anchor:"datasets.IterableDataset.dataset_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L190"}}),Bp=new k({props:{name:"description",anchor:"datasets.IterableDataset.description",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L194"}}),Qp=new k({props:{name:"download_checksums",anchor:"datasets.IterableDataset.download_checksums",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L198"}}),Ep=new k({props:{name:"download_size",anchor:"datasets.IterableDataset.download_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L202"}}),Hp=new k({props:{name:"features",anchor:"datasets.IterableDataset.features",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L206"}}),Lp=new k({props:{name:"homepage",anchor:"datasets.IterableDataset.homepage",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L210"}}),Yp=new k({props:{name:"license",anchor:"datasets.IterableDataset.license",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L214"}}),Sp=new k({props:{name:"size_in_bytes",anchor:"datasets.IterableDataset.size_in_bytes",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L218"}}),Ap=new k({props:{name:"supervised_keys",anchor:"datasets.IterableDataset.supervised_keys",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L222"}}),Pp=new k({props:{name:"version",anchor:"datasets.IterableDataset.version",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/arrow_dataset.py#L230"}}),Kp=new Kt({props:{title:"IterableDatasetDict",local:"datasets.IterableDatasetDict",headingTag:"h2"}}),em=new k({props:{name:"class datasets.IterableDatasetDict",anchor:"datasets.IterableDatasetDict",parameters:"",source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L1869"}}),tm=new k({props:{name:"map",anchor:"datasets.IterableDatasetDict.map",parameters:[{name:"function",val:": Optional = None"},{name:"with_indices",val:": bool = False"},{name:"input_columns",val:": Union = None"},{name:"batched",val:": bool = False"},{name:"batch_size",val:": int = 1000"},{name:"drop_last_batch",val:": bool = False"},{name:"remove_columns",val:": Union = None"},{name:"fn_kwargs",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.IterableDatasetDict.map.function",description:`<strong>function</strong> (<code>Callable</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Function applied on-the-fly on the examples when you iterate on the dataset.
It must have one of the following signatures:</p>
<ul>
<li><code>function(example: Dict[str, Any]) -&gt; Dict[str, Any]</code> if <code>batched=False</code> and <code>with_indices=False</code></li>
<li><code>function(example: Dict[str, Any], idx: int) -&gt; Dict[str, Any]</code> if <code>batched=False</code> and <code>with_indices=True</code></li>
<li><code>function(batch: Dict[str, List]) -&gt; Dict[str, List]</code> if <code>batched=True</code> and <code>with_indices=False</code></li>
<li><code>function(batch: Dict[str, List], indices: List[int]) -&gt; Dict[str, List]</code> if <code>batched=True</code> and <code>with_indices=True</code></li>
</ul>
<p>For advanced usage, the function can also return a <code>pyarrow.Table</code>.
Moreover if your function returns nothing (<code>None</code>), then <code>map</code> will run your function and return the dataset unchanged.
If no function is provided, default to identity function: <code>lambda x: x</code>.`,name:"function"},{anchor:"datasets.IterableDatasetDict.map.with_indices",description:`<strong>with_indices</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide example indices to <code>function</code>. Note that in this case the signature of <code>function</code> should be <code>def function(example, idx[, rank]): ...</code>.`,name:"with_indices"},{anchor:"datasets.IterableDatasetDict.map.input_columns",description:`<strong>input_columns</strong> (<code>[Union[str, List[str]]]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The columns to be passed into <code>function</code>
as positional arguments. If <code>None</code>, a dict mapping to all formatted columns is passed as one argument.`,name:"input_columns"},{anchor:"datasets.IterableDatasetDict.map.batched",description:`<strong>batched</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide batch of examples to <code>function</code>.`,name:"batched"},{anchor:"datasets.IterableDatasetDict.map.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>1000</code>) &#x2014;
Number of examples per batch provided to <code>function</code> if <code>batched=True</code>.`,name:"batch_size"},{anchor:"datasets.IterableDatasetDict.map.drop_last_batch",description:`<strong>drop_last_batch</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether a last batch smaller than the <code>batch_size</code> should be
dropped instead of being processed by the function.`,name:"drop_last_batch"},{anchor:"datasets.IterableDatasetDict.map.remove_columns",description:`<strong>remove_columns</strong> (<code>[List[str]]</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Remove a selection of columns while doing the mapping.
Columns will be removed before updating the examples with the output of <code>function</code>, i.e. if <code>function</code> is adding
columns with names in <code>remove_columns</code>, these columns will be kept.`,name:"remove_columns"},{anchor:"datasets.IterableDatasetDict.map.fn_kwargs",description:`<strong>fn_kwargs</strong> (<code>Dict</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Keyword arguments to be passed to <code>function</code>`,name:"fn_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L1904"}}),Zl=new I({props:{anchor:"datasets.IterableDatasetDict.map.example",$$slots:{default:[E5]},$$scope:{ctx:w}}}),sm=new k({props:{name:"filter",anchor:"datasets.IterableDatasetDict.filter",parameters:[{name:"function",val:": Optional = None"},{name:"with_indices",val:" = False"},{name:"input_columns",val:": Union = None"},{name:"batched",val:": bool = False"},{name:"batch_size",val:": Optional = 1000"},{name:"fn_kwargs",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.IterableDatasetDict.filter.function",description:`<strong>function</strong> (<code>Callable</code>) &#x2014;
Callable with one of the following signatures:</p>
<ul>
<li><code>function(example: Dict[str, Any]) -&gt; bool</code> if <code>with_indices=False, batched=False</code></li>
<li><code>function(example: Dict[str, Any], indices: int) -&gt; bool</code> if <code>with_indices=True, batched=False</code></li>
<li><code>function(example: Dict[str, List]) -&gt; List[bool]</code> if <code>with_indices=False, batched=True</code></li>
<li><code>function(example: Dict[str, List], indices: List[int]) -&gt; List[bool]</code> if <code>with_indices=True, batched=True</code></li>
</ul>
<p>If no function is provided, defaults to an always True function: <code>lambda x: True</code>.`,name:"function"},{anchor:"datasets.IterableDatasetDict.filter.with_indices",description:`<strong>with_indices</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide example indices to <code>function</code>. Note that in this case the signature of <code>function</code> should be <code>def function(example, idx): ...</code>.`,name:"with_indices"},{anchor:"datasets.IterableDatasetDict.filter.input_columns",description:`<strong>input_columns</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The columns to be passed into <code>function</code> as
positional arguments. If <code>None</code>, a dict mapping to all formatted columns is passed as one argument.`,name:"input_columns"},{anchor:"datasets.IterableDatasetDict.filter.batched",description:`<strong>batched</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Provide batch of examples to <code>function</code>`,name:"batched"},{anchor:"datasets.IterableDatasetDict.filter.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>1000</code>) &#x2014;
Number of examples per batch provided to <code>function</code> if <code>batched=True</code>.`,name:"batch_size"},{anchor:"datasets.IterableDatasetDict.filter.fn_kwargs",description:`<strong>fn_kwargs</strong> (<code>Dict</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Keyword arguments to be passed to <code>function</code>`,name:"fn_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L1993"}}),Fl=new I({props:{anchor:"datasets.IterableDatasetDict.filter.example",$$slots:{default:[H5]},$$scope:{ctx:w}}}),am=new k({props:{name:"shuffle",anchor:"datasets.IterableDatasetDict.shuffle",parameters:[{name:"seed",val:" = None"},{name:"generator",val:": Optional = None"},{name:"buffer_size",val:": int = 1000"}],parametersDescription:[{anchor:"datasets.IterableDatasetDict.shuffle.seed",description:`<strong>seed</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Random seed that will be used to shuffle the dataset.
It is used to sample from the shuffle buffer and also to shuffle the data shards.`,name:"seed"},{anchor:"datasets.IterableDatasetDict.shuffle.generator",description:`<strong>generator</strong> (<code>numpy.random.Generator</code>, <em>optional</em>) &#x2014;
Numpy random Generator to use to compute the permutation of the dataset rows.
If <code>generator=None</code> (default), uses <code>np.random.default_rng</code> (the default BitGenerator (PCG64) of NumPy).`,name:"generator"},{anchor:"datasets.IterableDatasetDict.shuffle.buffer_size",description:`<strong>buffer_size</strong> (<code>int</code>, defaults to <code>1000</code>) &#x2014;
Size of the buffer.`,name:"buffer_size"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L2056"}}),Rl=new I({props:{anchor:"datasets.IterableDatasetDict.shuffle.example",$$slots:{default:[L5]},$$scope:{ctx:w}}}),nm=new k({props:{name:"with_format",anchor:"datasets.IterableDatasetDict.with_format",parameters:[{name:"type",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.IterableDatasetDict.with_format.type",description:`<strong>type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
If set to &#x201C;torch&#x201D;, the returned dataset
will be a subclass of <code>torch.utils.data.IterableDataset</code> to be used in a <code>DataLoader</code>.`,name:"type"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L1875"}}),zl=new I({props:{anchor:"datasets.IterableDatasetDict.with_format.example",$$slots:{default:[Y5]},$$scope:{ctx:w}}}),rm=new k({props:{name:"cast",anchor:"datasets.IterableDatasetDict.cast",parameters:[{name:"features",val:": Features"}],parametersDescription:[{anchor:"datasets.IterableDatasetDict.cast.features",description:`<strong>features</strong> (<code>Features</code>) &#x2014;
New features to cast the dataset to.
The name of the fields in the features must match the current column names.
The type of the data must also be convertible from one type to the other.
For non-trivial conversion, e.g. <code>string</code> &lt;-&gt; <code>ClassLabel</code> you should use <code>map</code> to update the Dataset.`,name:"features"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L2258",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset with casted features.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Gl=new I({props:{anchor:"datasets.IterableDatasetDict.cast.example",$$slots:{default:[S5]},$$scope:{ctx:w}}}),om=new k({props:{name:"cast_column",anchor:"datasets.IterableDatasetDict.cast_column",parameters:[{name:"column",val:": str"},{name:"feature",val:": Union"}],parametersDescription:[{anchor:"datasets.IterableDatasetDict.cast_column.column",description:`<strong>column</strong> (<code>str</code>) &#x2014;
Column name.`,name:"column"},{anchor:"datasets.IterableDatasetDict.cast_column.feature",description:`<strong>feature</strong> (<code>Feature</code>) &#x2014;
Target feature.`,name:"feature"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L2227",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Nl=new I({props:{anchor:"datasets.IterableDatasetDict.cast_column.example",$$slots:{default:[A5]},$$scope:{ctx:w}}}),lm=new k({props:{name:"remove_columns",anchor:"datasets.IterableDatasetDict.remove_columns",parameters:[{name:"column_names",val:": Union"}],parametersDescription:[{anchor:"datasets.IterableDatasetDict.remove_columns.column_names",description:`<strong>column_names</strong> (<code>Union[str, List[str]]</code>) &#x2014;
Name of the column(s) to remove.`,name:"column_names"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L2175",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset object without the columns to remove.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Xl=new I({props:{anchor:"datasets.IterableDatasetDict.remove_columns.example",$$slots:{default:[P5]},$$scope:{ctx:w}}}),cm=new k({props:{name:"rename_column",anchor:"datasets.IterableDatasetDict.rename_column",parameters:[{name:"original_column_name",val:": str"},{name:"new_column_name",val:": str"}],parametersDescription:[{anchor:"datasets.IterableDatasetDict.rename_column.original_column_name",description:`<strong>original_column_name</strong> (<code>str</code>) &#x2014;
Name of the column to rename.`,name:"original_column_name"},{anchor:"datasets.IterableDatasetDict.rename_column.new_column_name",description:`<strong>new_column_name</strong> (<code>str</code>) &#x2014;
New name for the column.`,name:"new_column_name"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L2114",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset with a renamed column.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Vl=new I({props:{anchor:"datasets.IterableDatasetDict.rename_column.example",$$slots:{default:[K5]},$$scope:{ctx:w}}}),dm=new k({props:{name:"rename_columns",anchor:"datasets.IterableDatasetDict.rename_columns",parameters:[{name:"column_mapping",val:": Dict"}],parametersDescription:[{anchor:"datasets.IterableDatasetDict.rename_columns.column_mapping",description:`<strong>column_mapping</strong> (<code>Dict[str, str]</code>) &#x2014;
A mapping of columns to rename to their new names.`,name:"column_mapping"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L2147",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset with renamed columns</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),ql=new I({props:{anchor:"datasets.IterableDatasetDict.rename_columns.example",$$slots:{default:[O5]},$$scope:{ctx:w}}}),im=new k({props:{name:"select_columns",anchor:"datasets.IterableDatasetDict.select_columns",parameters:[{name:"column_names",val:": Union"}],parametersDescription:[{anchor:"datasets.IterableDatasetDict.select_columns.column_names",description:`<strong>column_names</strong> (<code>Union[str, List[str]]</code>) &#x2014;
Name of the column(s) to keep.`,name:"column_names"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/dataset_dict.py#L2201",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A copy of the dataset object with only selected columns.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Wl=new I({props:{anchor:"datasets.IterableDatasetDict.select_columns.example",$$slots:{default:[ez]},$$scope:{ctx:w}}}),pm=new Kt({props:{title:"Features",local:"datasets.Features",headingTag:"h2"}}),mm=new k({props:{name:"class datasets.Features",anchor:"datasets.Features",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L1625"}}),Bl=new nC({props:{$$slots:{default:[tz]},$$scope:{ctx:w}}}),gm=new k({props:{name:"copy",anchor:"datasets.Features.copy",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L2039",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features"
>Features</a></p>
`}}),Ql=new I({props:{anchor:"datasets.Features.copy.example",$$slots:{default:[sz]},$$scope:{ctx:w}}}),um=new k({props:{name:"decode_batch",anchor:"datasets.Features.decode_batch",parameters:[{name:"batch",val:": dict"},{name:"token_per_repo_id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Features.decode_batch.batch",description:`<strong>batch</strong> (<code>dict[str, list[Any]]</code>) &#x2014;
Dataset batch data.`,name:"batch"},{anchor:"datasets.Features.decode_batch.token_per_repo_id",description:`<strong>token_per_repo_id</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
To access and decode audio or image files from private repositories on the Hub, you can pass
a dictionary repo_id (str) -&gt; token (bool or str)`,name:"token_per_repo_id"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L2012",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict[str, list[Any]]</code></p>
`}}),fm=new k({props:{name:"decode_column",anchor:"datasets.Features.decode_column",parameters:[{name:"column",val:": list"},{name:"column_name",val:": str"}],parametersDescription:[{anchor:"datasets.Features.decode_column.column",description:`<strong>column</strong> (<code>list[Any]</code>) &#x2014;
Dataset column data.`,name:"column"},{anchor:"datasets.Features.decode_column.column_name",description:`<strong>column_name</strong> (<code>str</code>) &#x2014;
Dataset column name.`,name:"column_name"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L1994",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>list[Any]</code></p>
`}}),bm=new k({props:{name:"decode_example",anchor:"datasets.Features.decode_example",parameters:[{name:"example",val:": dict"},{name:"token_per_repo_id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Features.decode_example.example",description:`<strong>example</strong> (<code>dict[str, Any]</code>) &#x2014;
Dataset row data.`,name:"example"},{anchor:"datasets.Features.decode_example.token_per_repo_id",description:`<strong>token_per_repo_id</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
To access and decode audio or image files from private repositories on the Hub, you can pass
a dictionary <code>repo_id (str) -&gt; token (bool or str)</code>.`,name:"token_per_repo_id"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L1971",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict[str, Any]</code></p>
`}}),_m=new k({props:{name:"encode_batch",anchor:"datasets.Features.encode_batch",parameters:[{name:"batch",val:""}],parametersDescription:[{anchor:"datasets.Features.encode_batch.batch",description:`<strong>batch</strong> (<code>dict[str, list[Any]]</code>) &#x2014;
Data in a Dataset batch.`,name:"batch"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L1952",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict[str, list[Any]]</code></p>
`}}),xm=new k({props:{name:"encode_column",anchor:"datasets.Features.encode_column",parameters:[{name:"column",val:""},{name:"column_name",val:": str"}],parametersDescription:[{anchor:"datasets.Features.encode_column.column",description:`<strong>column</strong> (<code>list[Any]</code>) &#x2014;
Data in a Dataset column.`,name:"column"},{anchor:"datasets.Features.encode_column.column_name",description:`<strong>column_name</strong> (<code>str</code>) &#x2014;
Dataset column name.`,name:"column_name"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L1936",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>list[Any]</code></p>
`}}),$m=new k({props:{name:"encode_example",anchor:"datasets.Features.encode_example",parameters:[{name:"example",val:""}],parametersDescription:[{anchor:"datasets.Features.encode_example.example",description:`<strong>example</strong> (<code>dict[str, Any]</code>) &#x2014;
Data in a Dataset row.`,name:"example"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L1922",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict[str, Any]</code></p>
`}}),ym=new k({props:{name:"flatten",anchor:"datasets.Features.flatten",parameters:[{name:"max_depth",val:" = 16"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L2126",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The flattened features.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features"
>Features</a></p>
`}}),Pl=new I({props:{anchor:"datasets.Features.flatten.example",$$slots:{default:[az]},$$scope:{ctx:w}}}),jm=new k({props:{name:"from_arrow_schema",anchor:"datasets.Features.from_arrow_schema",parameters:[{name:"pa_schema",val:": Schema"}],parametersDescription:[{anchor:"datasets.Features.from_arrow_schema.pa_schema",description:`<strong>pa_schema</strong> (<code>pyarrow.Schema</code>) &#x2014;
Arrow Schema.`,name:"pa_schema"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L1700",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.Features"
>Features</a></p>
`}}),wm=new k({props:{name:"from_dict",anchor:"datasets.Features.from_dict",parameters:[{name:"dic",val:""}],parametersDescription:[{anchor:"datasets.Features.from_dict.dic",description:`<strong>dic</strong> (<em>dict[str, Any]</em>) &#x2014;
Python dictionary.`,name:"dic"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L1734",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><em>Features</em></p>
`}}),Kl=new I({props:{anchor:"datasets.Features.from_dict.example",$$slots:{default:[nz]},$$scope:{ctx:w}}}),vm=new k({props:{name:"reorder_fields_as",anchor:"datasets.Features.reorder_fields_as",parameters:[{name:"other",val:": Features"}],parametersDescription:[{anchor:"datasets.Features.reorder_fields_as.other",description:`<strong>other</strong> ([<em>Features</em>]) &#x2014;
The other [<em>Features</em>] to align with.`,name:"other"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L2059",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>[<em>Features</em>]</p>
`}}),Ol=new I({props:{anchor:"datasets.Features.reorder_fields_as.example",$$slots:{default:[rz]},$$scope:{ctx:w}}}),Mm=new k({props:{name:"class datasets.Sequence",anchor:"datasets.Sequence",parameters:[{name:"feature",val:": Any"},{name:"length",val:": int = -1"},{name:"id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Sequence.length",description:`<strong>length</strong> (<code>int</code>) &#x2014;
Length of the sequence.`,name:"length"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L1136"}}),ec=new I({props:{anchor:"datasets.Sequence.example",$$slots:{default:[oz]},$$scope:{ctx:w}}}),km=new k({props:{name:"class datasets.ClassLabel",anchor:"datasets.ClassLabel",parameters:[{name:"num_classes",val:": dataclasses.InitVar[typing.Optional[int]] = None"},{name:"names",val:": List = None"},{name:"names_file",val:": dataclasses.InitVar[typing.Optional[str]] = None"},{name:"id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.ClassLabel.num_classes",description:`<strong>num_classes</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of classes. All labels must be &lt; <code>num_classes</code>.`,name:"num_classes"},{anchor:"datasets.ClassLabel.names",description:`<strong>names</strong> (<code>list</code> of <code>str</code>, <em>optional</em>) &#x2014;
String names for the integer classes.
The order in which the names are provided is kept.`,name:"names"},{anchor:"datasets.ClassLabel.names_file",description:`<strong>names_file</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Path to a file with names for the integer classes, one per line.`,name:"names_file"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L938"}}),tc=new I({props:{anchor:"datasets.ClassLabel.example",$$slots:{default:[lz]},$$scope:{ctx:w}}}),Jm=new k({props:{name:"cast_storage",anchor:"datasets.ClassLabel.cast_storage",parameters:[{name:"storage",val:": Union"}],parametersDescription:[{anchor:"datasets.ClassLabel.cast_storage.storage",description:`<strong>storage</strong> (<code>Union[pa.StringArray, pa.IntegerArray]</code>) &#x2014;
PyArrow array to cast.`,name:"storage"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L1104",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Array in the <code>ClassLabel</code> arrow storage type.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>pa.Int64Array</code></p>
`}}),Tm=new k({props:{name:"int2str",anchor:"datasets.ClassLabel.int2str",parameters:[{name:"values",val:": Union"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L1058"}}),sc=new I({props:{anchor:"datasets.ClassLabel.int2str.example",$$slots:{default:[cz]},$$scope:{ctx:w}}}),Dm=new k({props:{name:"str2int",anchor:"datasets.ClassLabel.str2int",parameters:[{name:"values",val:": Union"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L1013"}}),ac=new I({props:{anchor:"datasets.ClassLabel.str2int.example",$$slots:{default:[dz]},$$scope:{ctx:w}}}),Im=new k({props:{name:"class datasets.Value",anchor:"datasets.Value",parameters:[{name:"dtype",val:": str"},{name:"id",val:": Optional = None"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L460"}}),nc=new I({props:{anchor:"datasets.Value.example",$$slots:{default:[iz]},$$scope:{ctx:w}}}),Cm=new k({props:{name:"class datasets.Translation",anchor:"datasets.Translation",parameters:[{name:"languages",val:": List"},{name:"id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Translation.languages",description:`<strong>languages</strong> (<code>dict</code>) &#x2014;
A dictionary for each example mapping string language codes to string translations.`,name:"languages"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/translation.py#L11"}}),rc=new I({props:{anchor:"datasets.Translation.example",$$slots:{default:[pz]},$$scope:{ctx:w}}}),Um=new k({props:{name:"flatten",anchor:"datasets.Translation.flatten",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/translation.py#L44"}}),Zm=new k({props:{name:"class datasets.TranslationVariableLanguages",anchor:"datasets.TranslationVariableLanguages",parameters:[{name:"languages",val:": Optional = None"},{name:"num_languages",val:": Optional = None"},{name:"id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.TranslationVariableLanguages.languages",description:`<strong>languages</strong> (<code>dict</code>) &#x2014;
A dictionary for each example mapping string language codes to one or more string translations.
The languages present may vary from example to example.`,name:"languages"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/translation.py#L51",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Language codes sorted in ascending order or plain text translations, sorted to align with language codes.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>language</code> or <code>translation</code> (variable-length 1D <code>tf.Tensor</code> of <code>tf.string</code>)</li>
</ul>
`}}),lc=new I({props:{anchor:"datasets.TranslationVariableLanguages.example",$$slots:{default:[mz]},$$scope:{ctx:w}}}),Fm=new k({props:{name:"flatten",anchor:"datasets.TranslationVariableLanguages.flatten",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/translation.py#L122"}}),Rm=new k({props:{name:"class datasets.Array2D",anchor:"datasets.Array2D",parameters:[{name:"shape",val:": tuple"},{name:"dtype",val:": str"},{name:"id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Array2D.shape",description:`<strong>shape</strong> (<code>tuple</code>) &#x2014;
The size of each dimension.`,name:"shape"},{anchor:"datasets.Array2D.dtype",description:`<strong>dtype</strong> (<code>str</code>) &#x2014;
The value of the data type.`,name:"dtype"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L543"}}),dc=new I({props:{anchor:"datasets.Array2D.example",$$slots:{default:[hz]},$$scope:{ctx:w}}}),zm=new k({props:{name:"class datasets.Array3D",anchor:"datasets.Array3D",parameters:[{name:"shape",val:": tuple"},{name:"dtype",val:": str"},{name:"id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Array3D.shape",description:`<strong>shape</strong> (<code>tuple</code>) &#x2014;
The size of each dimension.`,name:"shape"},{anchor:"datasets.Array3D.dtype",description:`<strong>dtype</strong> (<code>str</code>) &#x2014;
The value of the data type.`,name:"dtype"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L568"}}),ic=new I({props:{anchor:"datasets.Array3D.example",$$slots:{default:[gz]},$$scope:{ctx:w}}}),Gm=new k({props:{name:"class datasets.Array4D",anchor:"datasets.Array4D",parameters:[{name:"shape",val:": tuple"},{name:"dtype",val:": str"},{name:"id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Array4D.shape",description:`<strong>shape</strong> (<code>tuple</code>) &#x2014;
The size of each dimension.`,name:"shape"},{anchor:"datasets.Array4D.dtype",description:`<strong>dtype</strong> (<code>str</code>) &#x2014;
The value of the data type.`,name:"dtype"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L593"}}),pc=new I({props:{anchor:"datasets.Array4D.example",$$slots:{default:[uz]},$$scope:{ctx:w}}}),Nm=new k({props:{name:"class datasets.Array5D",anchor:"datasets.Array5D",parameters:[{name:"shape",val:": tuple"},{name:"dtype",val:": str"},{name:"id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Array5D.shape",description:`<strong>shape</strong> (<code>tuple</code>) &#x2014;
The size of each dimension.`,name:"shape"},{anchor:"datasets.Array5D.dtype",description:`<strong>dtype</strong> (<code>str</code>) &#x2014;
The value of the data type.`,name:"dtype"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/features.py#L618"}}),mc=new I({props:{anchor:"datasets.Array5D.example",$$slots:{default:[fz]},$$scope:{ctx:w}}}),Xm=new k({props:{name:"class datasets.Audio",anchor:"datasets.Audio",parameters:[{name:"sampling_rate",val:": Optional = None"},{name:"mono",val:": bool = True"},{name:"decode",val:": bool = True"},{name:"id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Audio.sampling_rate",description:`<strong>sampling_rate</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Target sampling rate. If <code>None</code>, the native sampling rate is used.`,name:"sampling_rate"},{anchor:"datasets.Audio.mono",description:`<strong>mono</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to convert the audio signal to mono by averaging samples across
channels.`,name:"mono"},{anchor:"datasets.Audio.decode",description:`<strong>decode</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to decode the audio data. If <code>False</code>,
returns the underlying dictionary in the format <code>{&quot;path&quot;: audio_path, &quot;bytes&quot;: audio_bytes}</code>.`,name:"decode"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/audio.py#L20"}}),hc=new I({props:{anchor:"datasets.Audio.example",$$slots:{default:[bz]},$$scope:{ctx:w}}}),Vm=new k({props:{name:"cast_storage",anchor:"datasets.Audio.cast_storage",parameters:[{name:"storage",val:": Union"}],parametersDescription:[{anchor:"datasets.Audio.cast_storage.storage",description:`<strong>storage</strong> (<code>Union[pa.StringArray, pa.StructArray]</code>) &#x2014;
PyArrow array to cast.`,name:"storage"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/audio.py#L209",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Array in the Audio arrow storage type, that is
<code>pa.struct(&#123;"bytes": pa.binary(), "path": pa.string()&#125;)</code></p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>pa.StructArray</code></p>
`}}),qm=new k({props:{name:"decode_example",anchor:"datasets.Audio.decode_example",parameters:[{name:"value",val:": dict"},{name:"token_per_repo_id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Audio.decode_example.value",description:`<strong>value</strong> (<code>dict</code>) &#x2014;
A dictionary with keys:</p>
<ul>
<li><code>path</code>: String with relative audio file path.</li>
<li><code>bytes</code>: Bytes of the audio file.</li>
</ul>`,name:"value"},{anchor:"datasets.Audio.decode_example.token_per_repo_id",description:`<strong>token_per_repo_id</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
To access and decode
audio files from private repositories on the Hub, you can pass
a dictionary repo_id (<code>str</code>) -&gt; token (<code>bool</code> or <code>str</code>)`,name:"token_per_repo_id"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/audio.py#L126",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),Wm=new k({props:{name:"embed_storage",anchor:"datasets.Audio.embed_storage",parameters:[{name:"storage",val:": StructArray"}],parametersDescription:[{anchor:"datasets.Audio.embed_storage.storage",description:`<strong>storage</strong> (<code>pa.StructArray</code>) &#x2014;
PyArrow array to embed.`,name:"storage"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/audio.py#L247",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Array in the Audio arrow storage type, that is
<code>pa.struct(&#123;"bytes": pa.binary(), "path": pa.string()&#125;)</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>pa.StructArray</code></p>
`}}),Bm=new k({props:{name:"encode_example",anchor:"datasets.Audio.encode_example",parameters:[{name:"value",val:": Union"}],parametersDescription:[{anchor:"datasets.Audio.encode_example.value",description:`<strong>value</strong> (<code>str</code> or <code>dict</code>) &#x2014;
Data passed as input to Audio feature.`,name:"value"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/audio.py#L77",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),Qm=new k({props:{name:"flatten",anchor:"datasets.Audio.flatten",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/audio.py#L198"}}),Em=new k({props:{name:"class datasets.Image",anchor:"datasets.Image",parameters:[{name:"mode",val:": Optional = None"},{name:"decode",val:": bool = True"},{name:"id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Image.mode",description:`<strong>mode</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The mode to convert the image to. If <code>None</code>, the native mode of the image is used.`,name:"mode"},{anchor:"datasets.Image.decode",description:`<strong>decode</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to decode the image data. If <code>False</code>,
returns the underlying dictionary in the format <code>{&quot;path&quot;: image_path, &quot;bytes&quot;: image_bytes}</code>.`,name:"decode"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/image.py#L45"}}),_c=new I({props:{anchor:"datasets.Image.example",$$slots:{default:[_z]},$$scope:{ctx:w}}}),Hm=new k({props:{name:"cast_storage",anchor:"datasets.Image.cast_storage",parameters:[{name:"storage",val:": Union"}],parametersDescription:[{anchor:"datasets.Image.cast_storage.storage",description:`<strong>storage</strong> (<code>Union[pa.StringArray, pa.StructArray, pa.ListArray]</code>) &#x2014;
PyArrow array to cast.`,name:"storage"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/image.py#L208",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Array in the Image arrow storage type, that is
<code>pa.struct(&#123;"bytes": pa.binary(), "path": pa.string()&#125;)</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>pa.StructArray</code></p>
`}}),Lm=new k({props:{name:"decode_example",anchor:"datasets.Image.decode_example",parameters:[{name:"value",val:": dict"},{name:"token_per_repo_id",val:" = None"}],parametersDescription:[{anchor:"datasets.Image.decode_example.value",description:`<strong>value</strong> (<code>str</code> or <code>dict</code>) &#x2014;
A string with the absolute image file path, a dictionary with
keys:</p>
<ul>
<li><code>path</code>: String with absolute or relative image file path.</li>
<li><code>bytes</code>: The bytes of the image file.</li>
</ul>`,name:"value"},{anchor:"datasets.Image.decode_example.token_per_repo_id",description:`<strong>token_per_repo_id</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
To access and decode
image files from private repositories on the Hub, you can pass
a dictionary repo_id (<code>str</code>) -&gt; token (<code>bool</code> or <code>str</code>).`,name:"token_per_repo_id"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/image.py#L133",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>PIL.Image.Image</code></p>
`}}),Ym=new k({props:{name:"embed_storage",anchor:"datasets.Image.embed_storage",parameters:[{name:"storage",val:": StructArray"}],parametersDescription:[{anchor:"datasets.Image.embed_storage.storage",description:`<strong>storage</strong> (<code>pa.StructArray</code>) &#x2014;
PyArrow array to embed.`,name:"storage"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/image.py#L254",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Array in the Image arrow storage type, that is
<code>pa.struct(&#123;"bytes": pa.binary(), "path": pa.string()&#125;)</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>pa.StructArray</code></p>
`}}),Sm=new k({props:{name:"encode_example",anchor:"datasets.Image.encode_example",parameters:[{name:"value",val:": Union"}],parametersDescription:[{anchor:"datasets.Image.encode_example.value",description:`<strong>value</strong> (<code>str</code>, <code>np.ndarray</code>, <code>PIL.Image.Image</code> or <code>dict</code>) &#x2014;
Data passed as input to Image feature.`,name:"value"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/image.py#L94",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code> with “path” and “bytes” fields</p>
`}}),Am=new k({props:{name:"flatten",anchor:"datasets.Image.flatten",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/features/image.py#L195"}}),Pm=new Kt({props:{title:"MetricInfo",local:"datasets.MetricInfo",headingTag:"h2"}}),Km=new k({props:{name:"class datasets.MetricInfo",anchor:"datasets.MetricInfo",parameters:[{name:"description",val:": str"},{name:"citation",val:": str"},{name:"features",val:": Features"},{name:"inputs_description",val:": str = <factory>"},{name:"homepage",val:": str = <factory>"},{name:"license",val:": str = <factory>"},{name:"codebase_urls",val:": List = <factory>"},{name:"reference_urls",val:": List = <factory>"},{name:"streamable",val:": bool = False"},{name:"format",val:": Optional = None"},{name:"metric_name",val:": Optional = None"},{name:"config_name",val:": Optional = None"},{name:"experiment_id",val:": Optional = None"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/info.py#L511"}}),Om=new k({props:{name:"from_directory",anchor:"datasets.MetricInfo.from_directory",parameters:[{name:"metric_info_dir",val:""}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/info.py#L567"}}),wc=new I({props:{anchor:"datasets.MetricInfo.from_directory.example",$$slots:{default:[xz]},$$scope:{ctx:w}}}),eh=new k({props:{name:"write_to_directory",anchor:"datasets.MetricInfo.write_to_directory",parameters:[{name:"metric_info_dir",val:""},{name:"pretty_print",val:" = False"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/info.py#L547"}}),vc=new I({props:{anchor:"datasets.MetricInfo.write_to_directory.example",$$slots:{default:[$z]},$$scope:{ctx:w}}}),th=new Kt({props:{title:"Metric",local:"datasets.Metric",headingTag:"h2"}}),ah=new k({props:{name:"class datasets.Metric",anchor:"datasets.Metric",parameters:[{name:"config_name",val:": Optional = None"},{name:"keep_in_memory",val:": bool = False"},{name:"cache_dir",val:": Optional = None"},{name:"num_process",val:": int = 1"},{name:"process_id",val:": int = 0"},{name:"seed",val:": Optional = None"},{name:"experiment_id",val:": Optional = None"},{name:"max_concurrent_cache_files",val:": int = 10000"},{name:"timeout",val:": Union = 100"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.Metric.config_name",description:`<strong>config_name</strong> (<code>str</code>) &#x2014; This is used to define a hash specific to a metrics computation script and prevents the metric&#x2019;s data
to be overridden when the metric loading script is modified.`,name:"config_name"},{anchor:"datasets.Metric.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:"datasets.Metric.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:"datasets.Metric.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 metrics in distributed setups (in particular non-additive metrics like F1).`,name:"num_process"},{anchor:"datasets.Metric.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 metrics in distributed setups (in particular non-additive metrics like F1).`,name:"process_id"},{anchor:"datasets.Metric.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/datasets/pr_6981/en/package_reference/main_classes#datasets.Metric.compute">datasets.Metric.compute()</a> is run.',name:"seed"},{anchor:"datasets.Metric.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 metrics in distributed setups (in particular non-additive metrics like F1).`,name:"experiment_id"},{anchor:"datasets.Metric.max_concurrent_cache_files",description:"<strong>max_concurrent_cache_files</strong> (<code>int</code>) &#x2014; Max number of concurrent metrics cache files (default 10000).",name:"max_concurrent_cache_files"},{anchor:"datasets.Metric.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/datasets/blob/r_6981/src/datasets/metric.py#L148"}}),Mc=new JF({props:{version:"2.5.0",$$slots:{default:[yz]},$$scope:{ctx:w}}}),nh=new k({props:{name:"add",anchor:"datasets.Metric.add",parameters:[{name:"prediction",val:" = None"},{name:"reference",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.Metric.add.prediction",description:"<strong>prediction</strong> (list/array/tensor, optional) &#x2014; Predictions.",name:"prediction"},{anchor:"datasets.Metric.add.reference",description:"<strong>reference</strong> (list/array/tensor, optional) &#x2014; References.",name:"reference"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/metric.py#L523"}}),kc=new I({props:{anchor:"datasets.Metric.add.example",$$slots:{default:[jz]},$$scope:{ctx:w}}}),rh=new k({props:{name:"add_batch",anchor:"datasets.Metric.add_batch",parameters:[{name:"predictions",val:" = None"},{name:"references",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.Metric.add_batch.predictions",description:"<strong>predictions</strong> (list/array/tensor, optional) &#x2014; Predictions.",name:"predictions"},{anchor:"datasets.Metric.add_batch.references",description:"<strong>references</strong> (list/array/tensor, optional) &#x2014; References.",name:"references"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/metric.py#L476"}}),Jc=new I({props:{anchor:"datasets.Metric.add_batch.example",$$slots:{default:[wz]},$$scope:{ctx:w}}}),oh=new k({props:{name:"compute",anchor:"datasets.Metric.compute",parameters:[{name:"predictions",val:" = None"},{name:"references",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.Metric.compute.predictions",description:"<strong>predictions</strong> (list/array/tensor, optional) &#x2014; Predictions.",name:"predictions"},{anchor:"datasets.Metric.compute.references",description:"<strong>references</strong> (list/array/tensor, optional) &#x2014; References.",name:"references"},{anchor:"datasets.Metric.compute.*kwargs",description:`*<strong>*kwargs</strong> (optional) &#x2014; Keyword arguments that will be forwarded to the metrics <code>_compute</code>
method (see details in the docstring).`,name:"*kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/metric.py#L405",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>dict or None</p>
<ul>
<li>Dictionary with the metrics if this metric is run on the main process (<code>process_id == 0</code>).</li>
<li>None if the metric is not run on the main process (<code>process_id != 0</code>).</li>
</ul>
`}}),Tc=new I({props:{anchor:"datasets.Metric.compute.example",$$slots:{default:[vz]},$$scope:{ctx:w}}}),lh=new k({props:{name:"download_and_prepare",anchor:"datasets.Metric.download_and_prepare",parameters:[{name:"download_config",val:": Optional = None"},{name:"dl_manager",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Metric.download_and_prepare.download_config",description:'<strong>download_config</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/builder_classes#datasets.DownloadConfig">DownloadConfig</a>, optional) &#x2014; Specific download configuration parameters.',name:"download_config"},{anchor:"datasets.Metric.download_and_prepare.dl_manager",description:'<strong>dl_manager</strong> (<a href="/docs/datasets/pr_6981/en/package_reference/builder_classes#datasets.DownloadManager">DownloadManager</a>, optional) &#x2014; Specific download manager to use.',name:"dl_manager"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/metric.py#L606"}}),ch=new Kt({props:{title:"Filesystems",local:"datasets.filesystems.S3FileSystem",headingTag:"h2"}}),dh=new k({props:{name:"class datasets.filesystems.S3FileSystem",anchor:"datasets.filesystems.S3FileSystem",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"datasets.filesystems.S3FileSystem.anon",description:`<strong>anon</strong> (<code>bool</code>, default to <code>False</code>) &#x2014;
Whether to use anonymous connection (public buckets only). If <code>False</code>, uses the key/secret given,
or boto&#x2019;s credential resolver (client_kwargs, environment, variables, config files, EC2 IAM server, in that order).`,name:"anon"},{anchor:"datasets.filesystems.S3FileSystem.key",description:`<strong>key</strong> (<code>str</code>) &#x2014;
If not anonymous, use this access key ID, if specified.`,name:"key"},{anchor:"datasets.filesystems.S3FileSystem.secret",description:`<strong>secret</strong> (<code>str</code>) &#x2014;
If not anonymous, use this secret access key, if specified.`,name:"secret"},{anchor:"datasets.filesystems.S3FileSystem.token",description:`<strong>token</strong> (<code>str</code>) &#x2014;
If not anonymous, use this security token, if specified.`,name:"token"},{anchor:"datasets.filesystems.S3FileSystem.use_ssl",description:`<strong>use_ssl</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to use SSL in connections to S3; may be faster without, but insecure. If <code>use_ssl</code> is
also set in <code>client_kwargs</code>, the value set in <code>client_kwargs</code> will take priority.`,name:"use_ssl"},{anchor:"datasets.filesystems.S3FileSystem.s3_additional_kwargs",description:`<strong>s3_additional_kwargs</strong> (<code>dict</code>) &#x2014;
Parameters that are used when calling S3 API methods. Typically used for things
like ServerSideEncryption.`,name:"s3_additional_kwargs"},{anchor:"datasets.filesystems.S3FileSystem.client_kwargs",description:`<strong>client_kwargs</strong> (<code>dict</code>) &#x2014;
Parameters for the botocore client.`,name:"client_kwargs"},{anchor:"datasets.filesystems.S3FileSystem.requester_pays",description:`<strong>requester_pays</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether <code>RequesterPays</code> buckets are supported.`,name:"requester_pays"},{anchor:"datasets.filesystems.S3FileSystem.default_block_size",description:`<strong>default_block_size</strong> (<code>int</code>) &#x2014;
If given, the default block size value used for <code>open()</code>, if no specific value is given at all time.
The built-in default is 5MB.`,name:"default_block_size"},{anchor:"datasets.filesystems.S3FileSystem.default_fill_cache",description:`<strong>default_fill_cache</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to use cache filling with open by default. Refer to <code>S3File.open</code>.`,name:"default_fill_cache"},{anchor:"datasets.filesystems.S3FileSystem.default_cache_type",description:`<strong>default_cache_type</strong> (<code>str</code>, defaults to <code>bytes</code>) &#x2014;
If given, the default <code>cache_type</code> value used for <code>open()</code>. Set to <code>none</code> if no
caching is desired. See fsspec&#x2019;s documentation for other available <code>cache_type</code> values.`,name:"default_cache_type"},{anchor:"datasets.filesystems.S3FileSystem.version_aware",description:`<strong>version_aware</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to support bucket versioning. If enable this will require the user to have
the necessary IAM permissions for dealing with versioned objects.`,name:"version_aware"},{anchor:"datasets.filesystems.S3FileSystem.cache_regions",description:`<strong>cache_regions</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to cache bucket regions. Whenever a new bucket is used, it will
first find out which region it belongs to and then use the client for that region.`,name:"cache_regions"},{anchor:"datasets.filesystems.S3FileSystem.asynchronous",description:`<strong>asynchronous</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether this instance is to be used from inside coroutines.`,name:"asynchronous"},{anchor:"datasets.filesystems.S3FileSystem.config_kwargs",description:`<strong>config_kwargs</strong> (<code>dict</code>) &#x2014;
Parameters passed to <code>botocore.client.Config</code>.
**kwargs &#x2014;
Other parameters for core session.`,name:"config_kwargs"},{anchor:"datasets.filesystems.S3FileSystem.session",description:`<strong>session</strong> (<code>aiobotocore.session.AioSession</code>) &#x2014;
Session to be used for all connections. This session will be used inplace of creating
a new session inside S3FileSystem. For example: <code>aiobotocore.session.AioSession(profile=&apos;test_user&apos;)</code>.`,name:"session"},{anchor:"datasets.filesystems.S3FileSystem.skip_instance_cache",description:`<strong>skip_instance_cache</strong> (<code>bool</code>) &#x2014;
Control reuse of instances. Passed on to <code>fsspec</code>.`,name:"skip_instance_cache"},{anchor:"datasets.filesystems.S3FileSystem.use_listings_cache",description:`<strong>use_listings_cache</strong> (<code>bool</code>) &#x2014;
Control reuse of directory listings. Passed on to <code>fsspec</code>.`,name:"use_listings_cache"},{anchor:"datasets.filesystems.S3FileSystem.listings_expiry_time",description:`<strong>listings_expiry_time</strong> (<code>int</code> or <code>float</code>) &#x2014;
Control reuse of directory listings. Passed on to <code>fsspec</code>.`,name:"listings_expiry_time"},{anchor:"datasets.filesystems.S3FileSystem.max_paths",description:"<strong>max_paths</strong> (<code>int</code>) &#x2014; Control reuse of directory listings. Passed on to <code>fsspec</code>.",name:"max_paths"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/filesystems/s3filesystem.py#L6"}}),Ic=new I({props:{anchor:"datasets.filesystems.S3FileSystem.example",$$slots:{default:[Mz]},$$scope:{ctx:w}}}),Cc=new I({props:{anchor:"datasets.filesystems.S3FileSystem.example-2",$$slots:{default:[kz]},$$scope:{ctx:w}}}),Uc=new I({props:{anchor:"datasets.filesystems.S3FileSystem.example-3",$$slots:{default:[Jz]},$$scope:{ctx:w}}}),Zc=new I({props:{anchor:"datasets.filesystems.S3FileSystem.example-4",$$slots:{default:[Tz]},$$scope:{ctx:w}}}),Fc=new I({props:{anchor:"datasets.filesystems.S3FileSystem.example-5",$$slots:{default:[Dz]},$$scope:{ctx:w}}}),ih=new k({props:{name:"datasets.filesystems.extract_path_from_uri",anchor:"datasets.filesystems.extract_path_from_uri",parameters:[{name:"dataset_path",val:": str"}],parametersDescription:[{anchor:"datasets.filesystems.extract_path_from_uri.dataset_path",description:`<strong>dataset_path</strong> (<code>str</code>) &#x2014;
Path (e.g. <code>dataset/train</code>) or remote uri (e.g. <code>s3://my-bucket/dataset/train</code>) of the dataset directory.`,name:"dataset_path"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/filesystems.py#L34"}}),ph=new k({props:{name:"datasets.filesystems.is_remote_filesystem",anchor:"datasets.filesystems.is_remote_filesystem",parameters:[{name:"fs",val:": AbstractFileSystem"}],parametersDescription:[{anchor:"datasets.filesystems.is_remote_filesystem.fs",description:`<strong>fs</strong> (<code>fsspec.spec.AbstractFileSystem</code>) &#x2014;
An abstract super-class for pythonic file-systems, e.g. <code>fsspec.filesystem(&apos;file&apos;)</code> or <a href="/docs/datasets/pr_6981/en/package_reference/main_classes#datasets.filesystems.S3FileSystem">datasets.filesystems.S3FileSystem</a>.`,name:"fs"}],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/filesystems/__init__.py#L50"}}),mh=new Kt({props:{title:"Fingerprint",local:"datasets.fingerprint.Hasher",headingTag:"h2"}}),hh=new k({props:{name:"class datasets.fingerprint.Hasher",anchor:"datasets.fingerprint.Hasher",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_6981/src/datasets/fingerprint.py#L205"}}),gh=new TF({props:{source:"https://github.com/huggingface/datasets/blob/main/docs/source/package_reference/main_classes.mdx"}}),{c(){t=d("meta"),x=r(),l=d("p"),s=r(),u(c.$$.fragment),e=r(),u(m.$$.fragment),Q=r(),q=d("div"),u(Wc.$$.fragment),xy=r(),zh=d("p"),zh.textContent=rC,$y=r(),Gh=d("p"),Gh.innerHTML=oC,yy=r(),Nh=d("p"),Nh.textContent=lC,jy=r(),Me=d("div"),u(Bc.$$.fragment),wy=r(),Xh=d("p"),Xh.innerHTML=cC,vy=r(),Vh=d("p"),Vh.innerHTML=dC,My=r(),qh=d("p"),qh.textContent=iC,ky=r(),u(Kn.$$.fragment),Jy=r(),Ot=d("div"),u(Qc.$$.fragment),Ty=r(),Wh=d("p"),Wh.innerHTML=pC,Dy=r(),u(On.$$.fragment),o2=r(),u(Ec.$$.fragment),l2=r(),Hc=d("p"),Hc.innerHTML=mC,c2=r(),J=d("div"),u(Lc.$$.fragment),Iy=r(),Bh=d("p"),Bh.textContent=hC,Cy=r(),it=d("div"),u(Yc.$$.fragment),Uy=r(),Qh=d("p"),Qh.textContent=gC,Zy=r(),u(Sc.$$.fragment),Fy=r(),u(er.$$.fragment),Ry=r(),pt=d("div"),u(Ac.$$.fragment),zy=r(),Eh=d("p"),Eh.textContent=uC,Gy=r(),u(Pc.$$.fragment),Ny=r(),u(tr.$$.fragment),Xy=r(),sr=d("div"),u(Kc.$$.fragment),Vy=r(),Hh=d("p"),Hh.textContent=fC,qy=r(),ar=d("div"),u(Oc.$$.fragment),Wy=r(),Lh=d("p"),Lh.textContent=bC,By=r(),ke=d("div"),u(ed.$$.fragment),Qy=r(),Yh=d("p"),Yh.innerHTML=_C,Ey=r(),Sh=d("p"),Sh.innerHTML=xC,Hy=r(),Ah=d("p"),Ah.innerHTML=$C,Ly=r(),u(nr.$$.fragment),Yy=r(),rr=d("div"),u(td.$$.fragment),Sy=r(),Ph=d("p"),Ph.innerHTML=yC,Ay=r(),mt=d("div"),u(sd.$$.fragment),Py=r(),Kh=d("p"),Kh.textContent=jC,Ky=r(),u(or.$$.fragment),Oy=r(),u(lr.$$.fragment),e1=r(),es=d("div"),u(ad.$$.fragment),t1=r(),Oh=d("p"),Oh.textContent=wC,s1=r(),u(cr.$$.fragment),a1=r(),ts=d("div"),u(nd.$$.fragment),n1=r(),eg=d("p"),eg.textContent=vC,r1=r(),u(dr.$$.fragment),o1=r(),ss=d("div"),u(rd.$$.fragment),l1=r(),tg=d("p"),tg.textContent=MC,c1=r(),u(ir.$$.fragment),d1=r(),as=d("div"),u(od.$$.fragment),i1=r(),sg=d("p"),sg.innerHTML=kC,p1=r(),u(pr.$$.fragment),m1=r(),ns=d("div"),u(ld.$$.fragment),h1=r(),ag=d("p"),ag.textContent=JC,g1=r(),u(mr.$$.fragment),u1=r(),rs=d("div"),u(cd.$$.fragment),f1=r(),ng=d("p"),ng.textContent=TC,b1=r(),u(hr.$$.fragment),_1=r(),ht=d("div"),u(dd.$$.fragment),x1=r(),rg=d("p"),rg.textContent=DC,$1=r(),og=d("p"),og.textContent=IC,y1=r(),u(gr.$$.fragment),j1=r(),os=d("div"),u(id.$$.fragment),w1=r(),lg=d("p"),lg.textContent=CC,v1=r(),u(ur.$$.fragment),M1=r(),ls=d("div"),u(pd.$$.fragment),k1=r(),cg=d("p"),cg.textContent=UC,J1=r(),u(fr.$$.fragment),T1=r(),cs=d("div"),u(md.$$.fragment),D1=r(),dg=d("p"),dg.textContent=ZC,I1=r(),u(br.$$.fragment),C1=r(),gt=d("div"),u(hd.$$.fragment),U1=r(),ig=d("p"),ig.textContent=FC,Z1=r(),pg=d("p"),pg.innerHTML=RC,F1=r(),u(_r.$$.fragment),R1=r(),ds=d("div"),u(gd.$$.fragment),z1=r(),mg=d("p"),mg.textContent=zC,G1=r(),u(xr.$$.fragment),N1=r(),is=d("div"),u(ud.$$.fragment),X1=r(),hg=d("p"),hg.textContent=GC,V1=r(),u($r.$$.fragment),q1=r(),ps=d("div"),u(fd.$$.fragment),W1=r(),gg=d("p"),gg.textContent=NC,B1=r(),u(yr.$$.fragment),Q1=r(),ms=d("div"),u(bd.$$.fragment),E1=r(),ug=d("p"),ug.innerHTML=XC,H1=r(),u(jr.$$.fragment),L1=r(),hs=d("div"),u(_d.$$.fragment),Y1=r(),fg=d("p"),fg.textContent=VC,S1=r(),u(wr.$$.fragment),A1=r(),gs=d("div"),u(xd.$$.fragment),P1=r(),bg=d("p"),bg.textContent=qC,K1=r(),_g=d("p"),_g.innerHTML=WC,O1=r(),us=d("div"),u($d.$$.fragment),ej=r(),xg=d("p"),xg.innerHTML=BC,tj=r(),$g=d("p"),$g.innerHTML=QC,sj=r(),vr=d("div"),u(yd.$$.fragment),aj=r(),yg=d("p"),yg.innerHTML=EC,nj=r(),Je=d("div"),u(jd.$$.fragment),rj=r(),jg=d("p"),jg.innerHTML=HC,oj=r(),wg=d("p"),wg.innerHTML=LC,lj=r(),u(Mr.$$.fragment),cj=r(),u(kr.$$.fragment),dj=r(),fs=d("div"),u(wd.$$.fragment),ij=r(),vg=d("p"),vg.innerHTML=YC,pj=r(),u(Jr.$$.fragment),mj=r(),ut=d("div"),u(vd.$$.fragment),hj=r(),Mg=d("p"),Mg.innerHTML=SC,gj=r(),kg=d("p"),kg.innerHTML=AC,uj=r(),u(Tr.$$.fragment),fj=r(),Te=d("div"),u(Md.$$.fragment),bj=r(),Jg=d("p"),Jg.innerHTML=PC,_j=r(),Tg=d("p"),Tg.innerHTML=KC,xj=r(),Dg=d("p"),Dg.innerHTML=OC,$j=r(),u(Dr.$$.fragment),yj=r(),De=d("div"),u(kd.$$.fragment),jj=r(),Ig=d("p"),Ig.innerHTML=eU,wj=r(),Cg=d("p"),Cg.innerHTML=tU,vj=r(),Ug=d("p"),Ug.innerHTML=sU,Mj=r(),u(Ir.$$.fragment),kj=r(),Cr=d("div"),u(Jd.$$.fragment),Jj=r(),Zg=d("p"),Zg.textContent=aU,Tj=r(),ft=d("div"),u(Td.$$.fragment),Dj=r(),Fg=d("p"),Fg.textContent=nU,Ij=r(),Rg=d("p"),Rg.textContent=rU,Cj=r(),u(Ur.$$.fragment),Uj=r(),Ie=d("div"),u(Dd.$$.fragment),Zj=r(),zg=d("p"),zg.textContent=oU,Fj=r(),Gg=d("p"),Gg.innerHTML=lU,Rj=r(),Ng=d("ul"),Ng.innerHTML=cU,zj=r(),u(Zr.$$.fragment),Gj=r(),bs=d("div"),u(Id.$$.fragment),Nj=r(),Xg=d("p"),Xg.textContent=dU,Xj=r(),u(Fr.$$.fragment),Vj=r(),_s=d("div"),u(Cd.$$.fragment),qj=r(),Vg=d("p"),Vg.textContent=iU,Wj=r(),u(Rr.$$.fragment),Bj=r(),xs=d("div"),u(Ud.$$.fragment),Qj=r(),qg=d("p"),qg.textContent=pU,Ej=r(),u(zr.$$.fragment),Hj=r(),P=d("div"),u(Zd.$$.fragment),Lj=r(),Wg=d("p"),Wg.textContent=mU,Yj=r(),Bg=d("p"),Bg.textContent=hU,Sj=r(),Qg=d("p"),Qg.innerHTML=gU,Aj=r(),u(Gr.$$.fragment),Pj=r(),Eg=d("p"),Eg.innerHTML=uU,Kj=r(),u(Nr.$$.fragment),Oj=r(),u(Xr.$$.fragment),e0=r(),$s=d("div"),u(Fd.$$.fragment),t0=r(),Hg=d("p"),Hg.innerHTML=fU,s0=r(),u(Vr.$$.fragment),a0=r(),ys=d("div"),u(Rd.$$.fragment),n0=r(),Lg=d("p"),Lg.innerHTML=bU,r0=r(),u(qr.$$.fragment),o0=r(),bt=d("div"),u(zd.$$.fragment),l0=r(),Yg=d("p"),Yg.innerHTML=_U,c0=r(),Sg=d("p"),Sg.innerHTML=xU,d0=r(),u(Wr.$$.fragment),i0=r(),ie=d("div"),u(Gd.$$.fragment),p0=r(),Ag=d("p"),Ag.innerHTML=$U,m0=r(),Pg=d("p"),Pg.innerHTML=yU,h0=r(),Kg=d("p"),Kg.innerHTML=jU,g0=r(),Og=d("p"),Og.innerHTML=wU,u0=r(),u(Br.$$.fragment),f0=r(),js=d("div"),u(Nd.$$.fragment),b0=r(),eu=d("p"),eu.innerHTML=vU,_0=r(),u(Qr.$$.fragment),x0=r(),pe=d("div"),u(Xd.$$.fragment),$0=r(),tu=d("p"),tu.textContent=MU,y0=r(),su=d("p"),su.innerHTML=kU,j0=r(),u(Er.$$.fragment),w0=r(),u(Hr.$$.fragment),v0=r(),u(Lr.$$.fragment),M0=r(),Ce=d("div"),u(Vd.$$.fragment),k0=r(),au=d("p"),au.innerHTML=JU,J0=r(),nu=d("p"),nu.innerHTML=TU,T0=r(),ru=d("p"),ru.textContent=DU,D0=r(),u(Yr.$$.fragment),I0=r(),ws=d("div"),u(qd.$$.fragment),C0=r(),ou=d("p"),ou.innerHTML=IU,U0=r(),u(Sr.$$.fragment),Z0=r(),Ar=d("div"),u(Wd.$$.fragment),F0=r(),lu=d("p"),lu.textContent=CU,R0=r(),vs=d("div"),u(Bd.$$.fragment),z0=r(),cu=d("p"),cu.textContent=UU,G0=r(),u(Pr.$$.fragment),N0=r(),Ms=d("div"),u(Qd.$$.fragment),X0=r(),du=d("p"),du.innerHTML=ZU,V0=r(),u(Kr.$$.fragment),q0=r(),ks=d("div"),u(Ed.$$.fragment),W0=r(),iu=d("p"),iu.textContent=FU,B0=r(),u(Or.$$.fragment),Q0=r(),_t=d("div"),u(Hd.$$.fragment),E0=r(),pu=d("p"),pu.textContent=RU,H0=r(),mu=d("p"),mu.innerHTML=zU,L0=r(),u(eo.$$.fragment),Y0=r(),Js=d("div"),u(Ld.$$.fragment),S0=r(),hu=d("p"),hu.textContent=GU,A0=r(),u(to.$$.fragment),P0=r(),Ts=d("div"),u(Yd.$$.fragment),K0=r(),gu=d("p"),gu.textContent=NU,O0=r(),u(so.$$.fragment),ew=r(),G=d("div"),u(Sd.$$.fragment),tw=r(),uu=d("p"),uu.innerHTML=XU,sw=r(),fu=d("p"),fu.textContent=VU,aw=r(),bu=d("p"),bu.innerHTML=qU,nw=r(),_u=d("p"),_u.innerHTML=WU,rw=r(),xu=d("p"),xu.textContent=BU,ow=r(),u(ao.$$.fragment),lw=r(),u(no.$$.fragment),cw=r(),u(ro.$$.fragment),dw=r(),u(oo.$$.fragment),iw=r(),u(lo.$$.fragment),pw=r(),$u=d("p"),$u.textContent=QU,mw=r(),u(co.$$.fragment),hw=r(),u(io.$$.fragment),gw=sC("\nFeel free to also use `IterableDataset.set_epoch()` when using a PyTorch DataLoader or in distributed setups."),uw=r(),xt=d("div"),u(Ad.$$.fragment),fw=r(),yu=d("p"),yu.innerHTML=EU,bw=r(),ju=d("ul"),ju.innerHTML=HU,_w=r(),u(po.$$.fragment),xw=r(),Ds=d("div"),u(Pd.$$.fragment),$w=r(),wu=d("p"),wu.innerHTML=LU,yw=r(),vu=d("ul"),vu.innerHTML=YU,jw=r(),mo=d("div"),u(Kd.$$.fragment),ww=r(),Mu=d("p"),Mu.textContent=SU,vw=r(),Is=d("div"),u(Od.$$.fragment),Mw=r(),ku=d("p"),ku.textContent=AU,kw=r(),Ju=d("p"),Ju.innerHTML=PU,Jw=r(),Cs=d("div"),u(ei.$$.fragment),Tw=r(),Tu=d("p"),Tu.textContent=KU,Dw=r(),u(ho.$$.fragment),Iw=r(),go=d("div"),u(ti.$$.fragment),Cw=r(),Du=d("p"),Du.textContent=OU,Uw=r(),uo=d("div"),u(si.$$.fragment),Zw=r(),Iu=d("p"),Iu.innerHTML=eZ,Fw=r(),fo=d("div"),u(ai.$$.fragment),Rw=r(),Cu=d("p"),Cu.innerHTML=tZ,zw=r(),bo=d("div"),u(ni.$$.fragment),Gw=r(),Uu=d("p"),Uu.textContent=sZ,Nw=r(),_o=d("div"),u(ri.$$.fragment),Xw=r(),Zu=d("p"),Zu.textContent=aZ,Vw=r(),xo=d("div"),u(oi.$$.fragment),qw=r(),Fu=d("p"),Fu.textContent=nZ,Ww=r(),$o=d("div"),u(li.$$.fragment),Bw=r(),Ru=d("p"),Ru.textContent=rZ,Qw=r(),yo=d("div"),u(ci.$$.fragment),Ew=r(),zu=d("p"),zu.textContent=oZ,Hw=r(),jo=d("div"),u(di.$$.fragment),Lw=r(),Gu=d("p"),Gu.innerHTML=lZ,Yw=r(),wo=d("div"),u(ii.$$.fragment),Sw=r(),Nu=d("p"),Nu.innerHTML=cZ,Aw=r(),Xu=d("div"),u(pi.$$.fragment),Pw=r(),Vu=d("div"),u(mi.$$.fragment),Kw=r(),qu=d("div"),u(hi.$$.fragment),Ow=r(),Wu=d("div"),u(gi.$$.fragment),ev=r(),Bu=d("div"),u(ui.$$.fragment),tv=r(),Qu=d("div"),u(fi.$$.fragment),sv=r(),Eu=d("div"),u(bi.$$.fragment),av=r(),Hu=d("div"),u(_i.$$.fragment),nv=r(),Lu=d("div"),u(xi.$$.fragment),rv=r(),Yu=d("div"),u($i.$$.fragment),ov=r(),Su=d("div"),u(yi.$$.fragment),lv=r(),Au=d("div"),u(ji.$$.fragment),cv=r(),Pu=d("div"),u(wi.$$.fragment),dv=r(),Us=d("div"),u(vi.$$.fragment),iv=r(),Ku=d("p"),Ku.textContent=dZ,pv=r(),u(vo.$$.fragment),mv=r(),Zs=d("div"),u(Mi.$$.fragment),hv=r(),Ou=d("p"),Ou.textContent=iZ,gv=r(),u(Mo.$$.fragment),uv=r(),Fs=d("div"),u(ki.$$.fragment),fv=r(),ef=d("p"),ef.textContent=pZ,bv=r(),u(ko.$$.fragment),_v=r(),Rs=d("div"),u(Ji.$$.fragment),xv=r(),tf=d("p"),tf.textContent=mZ,$v=r(),u(Jo.$$.fragment),yv=r(),$t=d("div"),u(Ti.$$.fragment),jv=r(),sf=d("p"),sf.textContent=hZ,wv=r(),u(To.$$.fragment),vv=r(),u(Do.$$.fragment),Mv=r(),zs=d("div"),u(Di.$$.fragment),kv=r(),af=d("p"),af.innerHTML=gZ,Jv=r(),nf=d("p"),nf.innerHTML=uZ,Tv=r(),Gs=d("div"),u(Ii.$$.fragment),Dv=r(),rf=d("p"),rf.innerHTML=fZ,Iv=r(),u(Io.$$.fragment),d2=r(),Ct=d("div"),u(Ci.$$.fragment),Cv=r(),of=d("p"),of.innerHTML=bZ,Uv=r(),u(Co.$$.fragment),i2=r(),L=d("div"),u(Ui.$$.fragment),Zv=r(),lf=d("p"),lf.textContent=_Z,Fv=r(),cf=d("p"),cf.innerHTML=xZ,Rv=r(),df=d("ul"),df.innerHTML=$Z,zv=r(),pf=d("p"),pf.innerHTML=yZ,Gv=r(),mf=d("p"),mf.textContent=jZ,Nv=r(),hf=d("p"),hf.textContent=wZ,Xv=r(),gf=d("p"),gf.textContent=vZ,Vv=r(),u(Uo.$$.fragment),p2=r(),oe=d("div"),u(Zi.$$.fragment),qv=r(),uf=d("p"),uf.innerHTML=MZ,Wv=r(),ff=d("p"),ff.textContent=kZ,Bv=r(),bf=d("p"),bf.textContent=JZ,Qv=r(),_f=d("p"),_f.textContent=TZ,Ev=r(),xf=d("p"),xf.innerHTML=DZ,m2=r(),fe=d("div"),u(Fi.$$.fragment),Hv=r(),$f=d("p"),$f.textContent=IZ,Lv=r(),yf=d("p"),yf.textContent=CZ,Yv=r(),jf=d("p"),jf.textContent=UZ,Sv=r(),wf=d("ul"),wf.innerHTML=ZZ,h2=r(),be=d("div"),u(Ri.$$.fragment),Av=r(),vf=d("p"),vf.textContent=FZ,Pv=r(),Mf=d("p"),Mf.textContent=RZ,Kv=r(),kf=d("p"),kf.textContent=zZ,Ov=r(),Jf=d("ul"),Jf.innerHTML=GZ,g2=r(),_e=d("div"),u(zi.$$.fragment),eM=r(),Tf=d("p"),Tf.textContent=NZ,tM=r(),Df=d("p"),Df.textContent=XZ,sM=r(),If=d("p"),If.textContent=VZ,aM=r(),Cf=d("ul"),Cf.innerHTML=qZ,u2=r(),u(Gi.$$.fragment),f2=r(),Ni=d("p"),Ni.innerHTML=WZ,b2=r(),U=d("div"),u(Xi.$$.fragment),nM=r(),Uf=d("p"),Uf.textContent=BZ,rM=r(),Ns=d("div"),u(Vi.$$.fragment),oM=r(),Zf=d("p"),Zf.textContent=QZ,lM=r(),u(Zo.$$.fragment),cM=r(),Xs=d("div"),u(qi.$$.fragment),dM=r(),Ff=d("p"),Ff.textContent=EZ,iM=r(),u(Fo.$$.fragment),pM=r(),Vs=d("div"),u(Wi.$$.fragment),mM=r(),Rf=d("p"),Rf.textContent=HZ,hM=r(),u(Ro.$$.fragment),gM=r(),qs=d("div"),u(Bi.$$.fragment),uM=r(),zf=d("p"),zf.textContent=LZ,fM=r(),u(zo.$$.fragment),bM=r(),Ws=d("div"),u(Qi.$$.fragment),_M=r(),Gf=d("p"),Gf.textContent=YZ,xM=r(),u(Go.$$.fragment),$M=r(),Bs=d("div"),u(Ei.$$.fragment),yM=r(),Nf=d("p"),Nf.textContent=SZ,jM=r(),u(No.$$.fragment),wM=r(),yt=d("div"),u(Hi.$$.fragment),vM=r(),Xf=d("p"),Xf.textContent=AZ,MM=r(),Vf=d("p"),Vf.textContent=PZ,kM=r(),u(Xo.$$.fragment),JM=r(),Qs=d("div"),u(Li.$$.fragment),TM=r(),qf=d("p"),qf.textContent=KZ,DM=r(),u(Vo.$$.fragment),IM=r(),Es=d("div"),u(Yi.$$.fragment),CM=r(),Wf=d("p"),Wf.textContent=OZ,UM=r(),u(qo.$$.fragment),ZM=r(),Hs=d("div"),u(Si.$$.fragment),FM=r(),Bf=d("p"),Bf.textContent=e9,RM=r(),u(Wo.$$.fragment),zM=r(),Ls=d("div"),u(Ai.$$.fragment),GM=r(),Qf=d("p"),Qf.textContent=t9,NM=r(),u(Bo.$$.fragment),XM=r(),Ue=d("div"),u(Pi.$$.fragment),VM=r(),Ef=d("p"),Ef.textContent=s9,qM=r(),Hf=d("p"),Hf.textContent=a9,WM=r(),Lf=d("p"),Lf.textContent=n9,BM=r(),u(Qo.$$.fragment),QM=r(),Ze=d("div"),u(Ki.$$.fragment),EM=r(),Yf=d("p"),Yf.innerHTML=r9,HM=r(),Sf=d("p"),Sf.innerHTML=o9,LM=r(),Af=d("p"),Af.innerHTML=l9,YM=r(),u(Eo.$$.fragment),SM=r(),jt=d("div"),u(Oi.$$.fragment),AM=r(),Pf=d("p"),Pf.innerHTML=c9,PM=r(),Kf=d("p"),Kf.innerHTML=d9,KM=r(),u(Ho.$$.fragment),OM=r(),Lo=d("div"),u(ep.$$.fragment),ek=r(),Of=d("p"),Of.innerHTML=i9,tk=r(),Fe=d("div"),u(tp.$$.fragment),sk=r(),eb=d("p"),eb.innerHTML=p9,ak=r(),tb=d("p"),tb.innerHTML=m9,nk=r(),sb=d("p"),sb.innerHTML=h9,rk=r(),u(Yo.$$.fragment),ok=r(),Re=d("div"),u(sp.$$.fragment),lk=r(),ab=d("p"),ab.innerHTML=g9,ck=r(),nb=d("p"),nb.innerHTML=u9,dk=r(),rb=d("p"),rb.innerHTML=f9,ik=r(),u(So.$$.fragment),pk=r(),Ys=d("div"),u(ap.$$.fragment),mk=r(),ob=d("p"),ob.textContent=b9,hk=r(),u(Ao.$$.fragment),gk=r(),Ss=d("div"),u(np.$$.fragment),uk=r(),lb=d("p"),lb.textContent=_9,fk=r(),u(Po.$$.fragment),bk=r(),As=d("div"),u(rp.$$.fragment),_k=r(),cb=d("p"),cb.textContent=x9,xk=r(),u(Ko.$$.fragment),$k=r(),ze=d("div"),u(op.$$.fragment),yk=r(),db=d("p"),db.textContent=$9,jk=r(),ib=d("p"),ib.textContent=y9,wk=r(),pb=d("p"),pb.innerHTML=j9,vk=r(),u(Oo.$$.fragment),Mk=r(),Ge=d("div"),u(lp.$$.fragment),kk=r(),mb=d("p"),mb.textContent=w9,Jk=r(),hb=d("p"),hb.innerHTML=v9,Tk=r(),gb=d("ul"),gb.innerHTML=M9,Dk=r(),u(el.$$.fragment),Ik=r(),Ps=d("div"),u(cp.$$.fragment),Ck=r(),ub=d("p"),ub.textContent=k9,Uk=r(),u(tl.$$.fragment),Zk=r(),wt=d("div"),u(dp.$$.fragment),Fk=r(),fb=d("p"),fb.textContent=J9,Rk=r(),bb=d("p"),bb.textContent=T9,zk=r(),u(sl.$$.fragment),Gk=r(),Ks=d("div"),u(ip.$$.fragment),Nk=r(),_b=d("p"),_b.innerHTML=D9,Xk=r(),u(al.$$.fragment),Vk=r(),me=d("div"),u(pp.$$.fragment),qk=r(),xb=d("p"),xb.innerHTML=I9,Wk=r(),$b=d("p"),$b.textContent=C9,Bk=r(),yb=d("p"),yb.innerHTML=U9,Qk=r(),u(nl.$$.fragment),Ek=r(),u(rl.$$.fragment),Hk=r(),Ne=d("div"),u(mp.$$.fragment),Lk=r(),jb=d("p"),jb.innerHTML=Z9,Yk=r(),wb=d("p"),wb.innerHTML=F9,Sk=r(),vb=d("p"),vb.textContent=R9,Ak=r(),u(ol.$$.fragment),Pk=r(),Os=d("div"),u(hp.$$.fragment),Kk=r(),Mb=d("p"),Mb.innerHTML=z9,Ok=r(),u(ll.$$.fragment),eJ=r(),ea=d("div"),u(gp.$$.fragment),tJ=r(),kb=d("p"),kb.innerHTML=G9,sJ=r(),u(cl.$$.fragment),aJ=r(),ta=d("div"),u(up.$$.fragment),nJ=r(),Jb=d("p"),Jb.innerHTML=N9,rJ=r(),u(dl.$$.fragment),oJ=r(),sa=d("div"),u(fp.$$.fragment),lJ=r(),Tb=d("p"),Tb.innerHTML=X9,cJ=r(),u(il.$$.fragment),dJ=r(),aa=d("div"),u(bp.$$.fragment),iJ=r(),Db=d("p"),Db.innerHTML=V9,pJ=r(),u(pl.$$.fragment),mJ=r(),na=d("div"),u(_p.$$.fragment),hJ=r(),Ib=d("p"),Ib.innerHTML=q9,gJ=r(),Cb=d("p"),Cb.innerHTML=W9,_2=r(),Ub=d("a"),x2=r(),u(xp.$$.fragment),$2=r(),$p=d("p"),$p.innerHTML=B9,y2=r(),F=d("div"),u(yp.$$.fragment),uJ=r(),Zb=d("p"),Zb.textContent=Q9,fJ=r(),vt=d("div"),u(jp.$$.fragment),bJ=r(),Fb=d("p"),Fb.textContent=E9,_J=r(),u(ml.$$.fragment),xJ=r(),u(hl.$$.fragment),$J=r(),ra=d("div"),u(wp.$$.fragment),yJ=r(),Rb=d("p"),Rb.textContent=H9,jJ=r(),u(gl.$$.fragment),wJ=r(),oa=d("div"),u(vp.$$.fragment),vJ=r(),zb=d("p"),zb.textContent=L9,MJ=r(),u(ul.$$.fragment),kJ=r(),la=d("div"),u(Mp.$$.fragment),JJ=r(),Gb=d("p"),Gb.textContent=Y9,TJ=r(),u(fl.$$.fragment),DJ=r(),ca=d("div"),u(kp.$$.fragment),IJ=r(),Nb=d("p"),Nb.textContent=S9,CJ=r(),u(bl.$$.fragment),UJ=r(),Xb=d("div"),u(Jp.$$.fragment),ZJ=r(),_l=d("div"),u(Tp.$$.fragment),FJ=r(),Vb=d("p"),Vb.innerHTML=A9,RJ=r(),Xe=d("div"),u(Dp.$$.fragment),zJ=r(),qb=d("p"),qb.textContent=P9,GJ=r(),Wb=d("p"),Wb.innerHTML=K9,NJ=r(),Bb=d("ul"),Bb.innerHTML=O9,XJ=r(),u(xl.$$.fragment),VJ=r(),da=d("div"),u(Ip.$$.fragment),qJ=r(),Qb=d("p"),Qb.textContent=e4,WJ=r(),u($l.$$.fragment),BJ=r(),ia=d("div"),u(Cp.$$.fragment),QJ=r(),Eb=d("p"),Eb.textContent=t4,EJ=r(),u(yl.$$.fragment),HJ=r(),he=d("div"),u(Up.$$.fragment),LJ=r(),Hb=d("p"),Hb.textContent=s4,YJ=r(),Lb=d("p"),Lb.innerHTML=a4,SJ=r(),Yb=d("p"),Yb.innerHTML=n4,AJ=r(),Sb=d("p"),Sb.innerHTML=r4,PJ=r(),u(jl.$$.fragment),KJ=r(),pa=d("div"),u(Zp.$$.fragment),OJ=r(),Ab=d("p"),Ab.innerHTML=o4,eT=r(),u(wl.$$.fragment),tT=r(),ma=d("div"),u(Fp.$$.fragment),sT=r(),Pb=d("p"),Pb.innerHTML=l4,aT=r(),u(vl.$$.fragment),nT=r(),ae=d("div"),u(Rp.$$.fragment),rT=r(),Kb=d("p"),Kb.textContent=c4,oT=r(),Ob=d("p"),Ob.textContent=d4,lT=r(),e_=d("ol"),e_.innerHTML=i4,cT=r(),u(Ml.$$.fragment),dT=r(),u(kl.$$.fragment),iT=r(),u(Jl.$$.fragment),pT=r(),ne=d("div"),u(zp.$$.fragment),mT=r(),t_=d("p"),t_.textContent=p4,hT=r(),s_=d("p"),s_.textContent=m4,gT=r(),a_=d("ol"),a_.innerHTML=h4,uT=r(),u(Tl.$$.fragment),fT=r(),u(Dl.$$.fragment),bT=r(),u(Il.$$.fragment),_T=r(),Cl=d("div"),u(Gp.$$.fragment),xT=r(),n_=d("p"),n_.innerHTML=g4,$T=r(),Ul=d("div"),u(Np.$$.fragment),yT=r(),r_=d("p"),r_.innerHTML=u4,jT=r(),o_=d("div"),u(Xp.$$.fragment),wT=r(),l_=d("div"),u(Vp.$$.fragment),vT=r(),c_=d("div"),u(qp.$$.fragment),MT=r(),d_=d("div"),u(Wp.$$.fragment),kT=r(),i_=d("div"),u(Bp.$$.fragment),JT=r(),p_=d("div"),u(Qp.$$.fragment),TT=r(),m_=d("div"),u(Ep.$$.fragment),DT=r(),h_=d("div"),u(Hp.$$.fragment),IT=r(),g_=d("div"),u(Lp.$$.fragment),CT=r(),u_=d("div"),u(Yp.$$.fragment),UT=r(),f_=d("div"),u(Sp.$$.fragment),ZT=r(),b_=d("div"),u(Ap.$$.fragment),FT=r(),__=d("div"),u(Pp.$$.fragment),j2=r(),u(Kp.$$.fragment),w2=r(),Op=d("p"),Op.innerHTML=f4,v2=r(),B=d("div"),u(em.$$.fragment),RT=r(),Ve=d("div"),u(tm.$$.fragment),zT=r(),x_=d("p"),x_.textContent=b4,GT=r(),$_=d("p"),$_.innerHTML=_4,NT=r(),y_=d("ul"),y_.innerHTML=x4,XT=r(),u(Zl.$$.fragment),VT=r(),ha=d("div"),u(sm.$$.fragment),qT=r(),j_=d("p"),j_.textContent=$4,WT=r(),u(Fl.$$.fragment),BT=r(),ge=d("div"),u(am.$$.fragment),QT=r(),w_=d("p"),w_.textContent=y4,ET=r(),v_=d("p"),v_.textContent=j4,HT=r(),M_=d("p"),M_.innerHTML=w4,LT=r(),k_=d("p"),k_.innerHTML=v4,YT=r(),u(Rl.$$.fragment),ST=r(),ga=d("div"),u(nm.$$.fragment),AT=r(),J_=d("p"),J_.textContent=M4,PT=r(),u(zl.$$.fragment),KT=r(),ua=d("div"),u(rm.$$.fragment),OT=r(),T_=d("p"),T_.textContent=k4,eD=r(),u(Gl.$$.fragment),tD=r(),fa=d("div"),u(om.$$.fragment),sD=r(),D_=d("p"),D_.textContent=J4,aD=r(),u(Nl.$$.fragment),nD=r(),ba=d("div"),u(lm.$$.fragment),rD=r(),I_=d("p"),I_.textContent=T4,oD=r(),u(Xl.$$.fragment),lD=r(),_a=d("div"),u(cm.$$.fragment),cD=r(),C_=d("p"),C_.textContent=D4,dD=r(),u(Vl.$$.fragment),iD=r(),xa=d("div"),u(dm.$$.fragment),pD=r(),U_=d("p"),U_.textContent=I4,mD=r(),u(ql.$$.fragment),hD=r(),$a=d("div"),u(im.$$.fragment),gD=r(),Z_=d("p"),Z_.textContent=C4,uD=r(),u(Wl.$$.fragment),M2=r(),u(pm.$$.fragment),k2=r(),z=d("div"),u(mm.$$.fragment),fD=r(),F_=d("p"),F_.textContent=U4,bD=r(),R_=d("p"),R_.innerHTML=Z4,_D=r(),z_=d("p"),z_.innerHTML=F4,xD=r(),ee=d("ul"),G_=d("li"),G_.innerHTML=R4,$D=r(),N_=d("li"),N_.innerHTML=z4,yD=r(),X_=d("li"),X_.innerHTML=G4,jD=r(),hm=d("li"),V_=d("p"),V_.innerHTML=N4,wD=r(),u(Bl.$$.fragment),vD=r(),q_=d("li"),q_.innerHTML=X4,MD=r(),W_=d("li"),W_.innerHTML=V4,kD=r(),B_=d("li"),B_.innerHTML=q4,JD=r(),Q_=d("li"),Q_.innerHTML=W4,TD=r(),ya=d("div"),u(gm.$$.fragment),DD=r(),E_=d("p"),E_.innerHTML=B4,ID=r(),u(Ql.$$.fragment),CD=r(),El=d("div"),u(um.$$.fragment),UD=r(),H_=d("p"),H_.textContent=Q4,ZD=r(),Hl=d("div"),u(fm.$$.fragment),FD=r(),L_=d("p"),L_.textContent=E4,RD=r(),Ll=d("div"),u(bm.$$.fragment),zD=r(),Y_=d("p"),Y_.textContent=H4,GD=r(),Yl=d("div"),u(_m.$$.fragment),ND=r(),S_=d("p"),S_.textContent=L4,XD=r(),Sl=d("div"),u(xm.$$.fragment),VD=r(),A_=d("p"),A_.textContent=Y4,qD=r(),Al=d("div"),u($m.$$.fragment),WD=r(),P_=d("p"),P_.textContent=S4,BD=r(),Mt=d("div"),u(ym.$$.fragment),QD=r(),K_=d("p"),K_.innerHTML=A4,ED=r(),O_=d("p"),O_.innerHTML=P4,HD=r(),u(Pl.$$.fragment),LD=r(),ja=d("div"),u(jm.$$.fragment),YD=r(),ex=d("p"),ex.innerHTML=K4,SD=r(),tx=d("p"),tx.textContent=O4,AD=r(),qe=d("div"),u(wm.$$.fragment),PD=r(),sx=d("p"),sx.innerHTML=e3,KD=r(),ax=d("p"),ax.innerHTML=t3,OD=r(),nx=d("p"),nx.innerHTML=s3,e7=r(),u(Kl.$$.fragment),t7=r(),kt=d("div"),u(vm.$$.fragment),s7=r(),rx=d("p"),rx.innerHTML=a3,a7=r(),ox=d("p"),ox.textContent=n3,n7=r(),u(Ol.$$.fragment),J2=r(),Ut=d("div"),u(Mm.$$.fragment),r7=r(),lx=d("p"),lx.textContent=r3,o7=r(),u(ec.$$.fragment),T2=r(),Y=d("div"),u(km.$$.fragment),l7=r(),cx=d("p"),cx.textContent=o3,c7=r(),dx=d("p"),dx.innerHTML=l3,d7=r(),ix=d("ul"),ix.innerHTML=c3,i7=r(),px=d("p"),px.textContent=d3,p7=r(),u(tc.$$.fragment),m7=r(),wa=d("div"),u(Jm.$$.fragment),h7=r(),mx=d("p"),mx.innerHTML=i3,g7=r(),hx=d("ul"),hx.innerHTML=p3,u7=r(),Jt=d("div"),u(Tm.$$.fragment),f7=r(),gx=d("p"),gx.innerHTML=m3,b7=r(),ux=d("p"),ux.innerHTML=h3,_7=r(),u(sc.$$.fragment),x7=r(),va=d("div"),u(Dm.$$.fragment),$7=r(),fx=d("p"),fx.innerHTML=g3,y7=r(),u(ac.$$.fragment),D2=r(),Be=d("div"),u(Im.$$.fragment),j7=r(),bx=d("p"),bx.innerHTML=u3,w7=r(),_x=d("ul"),_x.innerHTML=f3,v7=r(),u(nc.$$.fragment),I2=r(),Qe=d("div"),u(Cm.$$.fragment),M7=r(),xx=d("p"),xx.innerHTML=b3,k7=r(),u(rc.$$.fragment),J7=r(),oc=d("div"),u(Um.$$.fragment),T7=r(),$x=d("p"),$x.textContent=_3,C2=r(),Ee=d("div"),u(Zm.$$.fragment),D7=r(),yx=d("p"),yx.innerHTML=x3,I7=r(),u(lc.$$.fragment),C7=r(),cc=d("div"),u(Fm.$$.fragment),U7=r(),jx=d("p"),jx.textContent=$3,U2=r(),Zt=d("div"),u(Rm.$$.fragment),Z7=r(),wx=d("p"),wx.textContent=y3,F7=r(),u(dc.$$.fragment),Z2=r(),Ft=d("div"),u(zm.$$.fragment),R7=r(),vx=d("p"),vx.textContent=j3,z7=r(),u(ic.$$.fragment),F2=r(),Rt=d("div"),u(Gm.$$.fragment),G7=r(),Mx=d("p"),Mx.textContent=w3,N7=r(),u(pc.$$.fragment),R2=r(),zt=d("div"),u(Nm.$$.fragment),X7=r(),kx=d("p"),kx.textContent=v3,V7=r(),u(mc.$$.fragment),z2=r(),E=d("div"),u(Xm.$$.fragment),q7=r(),Jx=d("p"),Jx.innerHTML=M3,W7=r(),Tx=d("p"),Tx.textContent=k3,B7=r(),Dx=d("ul"),Dx.innerHTML=J3,Q7=r(),u(hc.$$.fragment),E7=r(),Ma=d("div"),u(Vm.$$.fragment),H7=r(),Ix=d("p"),Ix.textContent=T3,L7=r(),Cx=d("ul"),Cx.innerHTML=D3,Y7=r(),gc=d("div"),u(qm.$$.fragment),S7=r(),Ux=d("p"),Ux.textContent=I3,A7=r(),uc=d("div"),u(Wm.$$.fragment),P7=r(),Zx=d("p"),Zx.textContent=C3,K7=r(),fc=d("div"),u(Bm.$$.fragment),O7=r(),Fx=d("p"),Fx.textContent=U3,eI=r(),bc=d("div"),u(Qm.$$.fragment),tI=r(),Rx=d("p"),Rx.textContent=Z3,G2=r(),H=d("div"),u(Em.$$.fragment),sI=r(),zx=d("p"),zx.innerHTML=F3,aI=r(),Gx=d("p"),Gx.textContent=R3,nI=r(),Nx=d("ul"),Nx.innerHTML=z3,rI=r(),u(_c.$$.fragment),oI=r(),ka=d("div"),u(Hm.$$.fragment),lI=r(),Xx=d("p"),Xx.textContent=G3,cI=r(),Vx=d("ul"),Vx.innerHTML=N3,dI=r(),xc=d("div"),u(Lm.$$.fragment),iI=r(),qx=d("p"),qx.textContent=X3,pI=r(),$c=d("div"),u(Ym.$$.fragment),mI=r(),Wx=d("p"),Wx.textContent=V3,hI=r(),yc=d("div"),u(Sm.$$.fragment),gI=r(),Bx=d("p"),Bx.textContent=q3,uI=r(),jc=d("div"),u(Am.$$.fragment),fI=r(),Qx=d("p"),Qx.textContent=W3,N2=r(),u(Pm.$$.fragment),X2=r(),le=d("div"),u(Km.$$.fragment),bI=r(),Ex=d("p"),Ex.textContent=B3,_I=r(),Hx=d("p"),Hx.innerHTML=Q3,xI=r(),Lx=d("p"),Lx.textContent=E3,$I=r(),Ja=d("div"),u(Om.$$.fragment),yI=r(),Yx=d("p"),Yx.innerHTML=H3,jI=r(),u(wc.$$.fragment),wI=r(),Ta=d("div"),u(eh.$$.fragment),vI=r(),Sx=d("p"),Sx.innerHTML=L3,MI=r(),u(vc.$$.fragment),V2=r(),u(th.$$.fragment),q2=r(),sh=d("p"),sh.innerHTML=Y3,W2=r(),te=d("div"),u(ah.$$.fragment),kI=r(),Ax=d("p"),Ax.textContent=S3,JI=r(),u(Mc.$$.fragment),TI=r(),Da=d("div"),u(nh.$$.fragment),DI=r(),Px=d("p"),Px.textContent=A3,II=r(),u(kc.$$.fragment),CI=r(),Ia=d("div"),u(rh.$$.fragment),UI=r(),Kx=d("p"),Kx.textContent=P3,ZI=r(),u(Jc.$$.fragment),FI=r(),Tt=d("div"),u(oh.$$.fragment),RI=r(),Ox=d("p"),Ox.textContent=K3,zI=r(),e$=d("p"),e$.textContent=O3,GI=r(),u(Tc.$$.fragment),NI=r(),Dc=d("div"),u(lh.$$.fragment),XI=r(),t$=d("p"),t$.textContent=eF,B2=r(),u(ch.$$.fragment),Q2=r(),N=d("div"),u(dh.$$.fragment),VI=r(),s$=d("p"),s$.innerHTML=tF,qI=r(),a$=d("p"),a$.innerHTML=sF,WI=r(),n$=d("p"),n$.textContent=aF,BI=r(),r$=d("p"),r$.textContent=nF,QI=r(),u(Ic.$$.fragment),EI=r(),o$=d("p"),o$.innerHTML=rF,HI=r(),u(Cc.$$.fragment),LI=r(),l$=d("p"),l$.innerHTML=oF,YI=r(),u(Uc.$$.fragment),SI=r(),c$=d("p"),c$.innerHTML=lF,AI=r(),u(Zc.$$.fragment),PI=r(),d$=d("p"),d$.innerHTML=cF,KI=r(),u(Fc.$$.fragment),E2=r(),Za=d("div"),u(ih.$$.fragment),OI=r(),i$=d("p"),i$.innerHTML=dF,H2=r(),Fa=d("div"),u(ph.$$.fragment),eC=r(),p$=d("p"),p$.innerHTML=iF,L2=r(),u(mh.$$.fragment),Y2=r(),Ra=d("div"),u(hh.$$.fragment),tC=r(),m$=d("p"),m$.textContent=pF,S2=r(),u(gh.$$.fragment),A2=r(),z$=d("p"),this.h()},l(n){const y=kF("svelte-u9bgzb",document.head);t=i(y,"META",{name:!0,content:!0}),y.forEach(p),x=o(n),l=i(n,"P",{}),v(l).forEach(p),s=o(n),f(c.$$.fragment,n),e=o(n),f(m.$$.fragment,n),Q=o(n),q=i(n,"DIV",{class:!0});var xe=v(q);f(Wc.$$.fragment,xe),xy=o(xe),zh=i(xe,"P",{"data-svelte-h":!0}),$(zh)!=="svelte-lfwgxi"&&(zh.textContent=rC),$y=o(xe),Gh=i(xe,"P",{"data-svelte-h":!0}),$(Gh)!=="svelte-fg3r3b"&&(Gh.innerHTML=oC),yy=o(xe),Nh=i(xe,"P",{"data-svelte-h":!0}),$(Nh)!=="svelte-1l13wc6"&&(Nh.textContent=lC),jy=o(xe),Me=i(xe,"DIV",{class:!0});var He=v(Me);f(Bc.$$.fragment,He),wy=o(He),Xh=i(He,"P",{"data-svelte-h":!0}),$(Xh)!=="svelte-dvx2kd"&&(Xh.innerHTML=cC),vy=o(He),Vh=i(He,"P",{"data-svelte-h":!0}),$(Vh)!=="svelte-87x3bs"&&(Vh.innerHTML=dC),My=o(He),qh=i(He,"P",{"data-svelte-h":!0}),$(qh)!=="svelte-1wtf7je"&&(qh.textContent=iC),ky=o(He),f(Kn.$$.fragment,He),He.forEach(p),Jy=o(xe),Ot=i(xe,"DIV",{class:!0});var za=v(Ot);f(Qc.$$.fragment,za),Ty=o(za),Wh=i(za,"P",{"data-svelte-h":!0}),$(Wh)!=="svelte-1rpq0vp"&&(Wh.innerHTML=pC),Dy=o(za),f(On.$$.fragment,za),za.forEach(p),xe.forEach(p),o2=o(n),f(Ec.$$.fragment,n),l2=o(n),Hc=i(n,"P",{"data-svelte-h":!0}),$(Hc)!=="svelte-kd58k1"&&(Hc.innerHTML=mC),c2=o(n),J=i(n,"DIV",{class:!0});var T=v(J);f(Lc.$$.fragment,T),Iy=o(T),Bh=i(T,"P",{"data-svelte-h":!0}),$(Bh)!=="svelte-um54g0"&&(Bh.textContent=hC),Cy=o(T),it=i(T,"DIV",{class:!0});var Gt=v(it);f(Yc.$$.fragment,Gt),Uy=o(Gt),Qh=i(Gt,"P",{"data-svelte-h":!0}),$(Qh)!=="svelte-187423a"&&(Qh.textContent=gC),Zy=o(Gt),f(Sc.$$.fragment,Gt),Fy=o(Gt),f(er.$$.fragment,Gt),Gt.forEach(p),Ry=o(T),pt=i(T,"DIV",{class:!0});var Nt=v(pt);f(Ac.$$.fragment,Nt),zy=o(Nt),Eh=i(Nt,"P",{"data-svelte-h":!0}),$(Eh)!=="svelte-1xnmsm1"&&(Eh.textContent=uC),Gy=o(Nt),f(Pc.$$.fragment,Nt),Ny=o(Nt),f(tr.$$.fragment,Nt),Nt.forEach(p),Xy=o(T),sr=i(T,"DIV",{class:!0});var uh=v(sr);f(Kc.$$.fragment,uh),Vy=o(uh),Hh=i(uh,"P",{"data-svelte-h":!0}),$(Hh)!=="svelte-xuyb7u"&&(Hh.textContent=fC),uh.forEach(p),qy=o(T),ar=i(T,"DIV",{class:!0});var fh=v(ar);f(Oc.$$.fragment,fh),Wy=o(fh),Lh=i(fh,"P",{"data-svelte-h":!0}),$(Lh)!=="svelte-1bnh7kq"&&(Lh.textContent=bC),fh.forEach(p),By=o(T),ke=i(T,"DIV",{class:!0});var Le=v(ke);f(ed.$$.fragment,Le),Qy=o(Le),Yh=i(Le,"P",{"data-svelte-h":!0}),$(Yh)!=="svelte-6uglmk"&&(Yh.innerHTML=_C),Ey=o(Le),Sh=i(Le,"P",{"data-svelte-h":!0}),$(Sh)!=="svelte-13069ts"&&(Sh.innerHTML=xC),Hy=o(Le),Ah=i(Le,"P",{"data-svelte-h":!0}),$(Ah)!=="svelte-1eneciw"&&(Ah.innerHTML=$C),Ly=o(Le),f(nr.$$.fragment,Le),Le.forEach(p),Yy=o(T),rr=i(T,"DIV",{class:!0});var bh=v(rr);f(td.$$.fragment,bh),Sy=o(bh),Ph=i(bh,"P",{"data-svelte-h":!0}),$(Ph)!=="svelte-tdt5h6"&&(Ph.innerHTML=yC),bh.forEach(p),Ay=o(T),mt=i(T,"DIV",{class:!0});var Xt=v(mt);f(sd.$$.fragment,Xt),Py=o(Xt),Kh=i(Xt,"P",{"data-svelte-h":!0}),$(Kh)!=="svelte-1a4vwkt"&&(Kh.textContent=jC),Ky=o(Xt),f(or.$$.fragment,Xt),Oy=o(Xt),f(lr.$$.fragment,Xt),Xt.forEach(p),e1=o(T),es=i(T,"DIV",{class:!0});var Ga=v(es);f(ad.$$.fragment,Ga),t1=o(Ga),Oh=i(Ga,"P",{"data-svelte-h":!0}),$(Oh)!=="svelte-1r8czji"&&(Oh.textContent=wC),s1=o(Ga),f(cr.$$.fragment,Ga),Ga.forEach(p),a1=o(T),ts=i(T,"DIV",{class:!0});var Na=v(ts);f(nd.$$.fragment,Na),n1=o(Na),eg=i(Na,"P",{"data-svelte-h":!0}),$(eg)!=="svelte-4a80bw"&&(eg.textContent=vC),r1=o(Na),f(dr.$$.fragment,Na),Na.forEach(p),o1=o(T),ss=i(T,"DIV",{class:!0});var Xa=v(ss);f(rd.$$.fragment,Xa),l1=o(Xa),tg=i(Xa,"P",{"data-svelte-h":!0}),$(tg)!=="svelte-r539m7"&&(tg.textContent=MC),c1=o(Xa),f(ir.$$.fragment,Xa),Xa.forEach(p),d1=o(T),as=i(T,"DIV",{class:!0});var Va=v(as);f(od.$$.fragment,Va),i1=o(Va),sg=i(Va,"P",{"data-svelte-h":!0}),$(sg)!=="svelte-1vkgyzp"&&(sg.innerHTML=kC),p1=o(Va),f(pr.$$.fragment,Va),Va.forEach(p),m1=o(T),ns=i(T,"DIV",{class:!0});var qa=v(ns);f(ld.$$.fragment,qa),h1=o(qa),ag=i(qa,"P",{"data-svelte-h":!0}),$(ag)!=="svelte-1kx2obx"&&(ag.textContent=JC),g1=o(qa),f(mr.$$.fragment,qa),qa.forEach(p),u1=o(T),rs=i(T,"DIV",{class:!0});var Wa=v(rs);f(cd.$$.fragment,Wa),f1=o(Wa),ng=i(Wa,"P",{"data-svelte-h":!0}),$(ng)!=="svelte-184op1i"&&(ng.textContent=TC),b1=o(Wa),f(hr.$$.fragment,Wa),Wa.forEach(p),_1=o(T),ht=i(T,"DIV",{class:!0});var Vt=v(ht);f(dd.$$.fragment,Vt),x1=o(Vt),rg=i(Vt,"P",{"data-svelte-h":!0}),$(rg)!=="svelte-1maq29p"&&(rg.textContent=DC),$1=o(Vt),og=i(Vt,"P",{"data-svelte-h":!0}),$(og)!=="svelte-1sxlc2t"&&(og.textContent=IC),y1=o(Vt),f(gr.$$.fragment,Vt),Vt.forEach(p),j1=o(T),os=i(T,"DIV",{class:!0});var Ba=v(os);f(id.$$.fragment,Ba),w1=o(Ba),lg=i(Ba,"P",{"data-svelte-h":!0}),$(lg)!=="svelte-9kaomc"&&(lg.textContent=CC),v1=o(Ba),f(ur.$$.fragment,Ba),Ba.forEach(p),M1=o(T),ls=i(T,"DIV",{class:!0});var Qa=v(ls);f(pd.$$.fragment,Qa),k1=o(Qa),cg=i(Qa,"P",{"data-svelte-h":!0}),$(cg)!=="svelte-gdaajq"&&(cg.textContent=UC),J1=o(Qa),f(fr.$$.fragment,Qa),Qa.forEach(p),T1=o(T),cs=i(T,"DIV",{class:!0});var Ea=v(cs);f(md.$$.fragment,Ea),D1=o(Ea),dg=i(Ea,"P",{"data-svelte-h":!0}),$(dg)!=="svelte-6q86ko"&&(dg.textContent=ZC),I1=o(Ea),f(br.$$.fragment,Ea),Ea.forEach(p),C1=o(T),gt=i(T,"DIV",{class:!0});var qt=v(gt);f(hd.$$.fragment,qt),U1=o(qt),ig=i(qt,"P",{"data-svelte-h":!0}),$(ig)!=="svelte-10hhe69"&&(ig.textContent=FC),Z1=o(qt),pg=i(qt,"P",{"data-svelte-h":!0}),$(pg)!=="svelte-q1wkp3"&&(pg.innerHTML=RC),F1=o(qt),f(_r.$$.fragment,qt),qt.forEach(p),R1=o(T),ds=i(T,"DIV",{class:!0});var Ha=v(ds);f(gd.$$.fragment,Ha),z1=o(Ha),mg=i(Ha,"P",{"data-svelte-h":!0}),$(mg)!=="svelte-l4yuic"&&(mg.textContent=zC),G1=o(Ha),f(xr.$$.fragment,Ha),Ha.forEach(p),N1=o(T),is=i(T,"DIV",{class:!0});var La=v(is);f(ud.$$.fragment,La),X1=o(La),hg=i(La,"P",{"data-svelte-h":!0}),$(hg)!=="svelte-1hi1vhm"&&(hg.textContent=GC),V1=o(La),f($r.$$.fragment,La),La.forEach(p),q1=o(T),ps=i(T,"DIV",{class:!0});var Ya=v(ps);f(fd.$$.fragment,Ya),W1=o(Ya),gg=i(Ya,"P",{"data-svelte-h":!0}),$(gg)!=="svelte-17e9g07"&&(gg.textContent=NC),B1=o(Ya),f(yr.$$.fragment,Ya),Ya.forEach(p),Q1=o(T),ms=i(T,"DIV",{class:!0});var Sa=v(ms);f(bd.$$.fragment,Sa),E1=o(Sa),ug=i(Sa,"P",{"data-svelte-h":!0}),$(ug)!=="svelte-15dbzc7"&&(ug.innerHTML=XC),H1=o(Sa),f(jr.$$.fragment,Sa),Sa.forEach(p),L1=o(T),hs=i(T,"DIV",{class:!0});var Aa=v(hs);f(_d.$$.fragment,Aa),Y1=o(Aa),fg=i(Aa,"P",{"data-svelte-h":!0}),$(fg)!=="svelte-27coxf"&&(fg.textContent=VC),S1=o(Aa),f(wr.$$.fragment,Aa),Aa.forEach(p),A1=o(T),gs=i(T,"DIV",{class:!0});var Pa=v(gs);f(xd.$$.fragment,Pa),P1=o(Pa),bg=i(Pa,"P",{"data-svelte-h":!0}),$(bg)!=="svelte-5t5lj3"&&(bg.textContent=qC),K1=o(Pa),_g=i(Pa,"P",{"data-svelte-h":!0}),$(_g)!=="svelte-10ut4e5"&&(_g.innerHTML=WC),Pa.forEach(p),O1=o(T),us=i(T,"DIV",{class:!0});var Ka=v(us);f($d.$$.fragment,Ka),ej=o(Ka),xg=i(Ka,"P",{"data-svelte-h":!0}),$(xg)!=="svelte-3yz5m3"&&(xg.innerHTML=BC),tj=o(Ka),$g=i(Ka,"P",{"data-svelte-h":!0}),$($g)!=="svelte-15hkzd9"&&($g.innerHTML=QC),Ka.forEach(p),sj=o(T),vr=i(T,"DIV",{class:!0});var _h=v(vr);f(yd.$$.fragment,_h),aj=o(_h),yg=i(_h,"P",{"data-svelte-h":!0}),$(yg)!=="svelte-h1u4ah"&&(yg.innerHTML=EC),_h.forEach(p),nj=o(T),Je=i(T,"DIV",{class:!0});var Ye=v(Je);f(jd.$$.fragment,Ye),rj=o(Ye),jg=i(Ye,"P",{"data-svelte-h":!0}),$(jg)!=="svelte-c7y2of"&&(jg.innerHTML=HC),oj=o(Ye),wg=i(Ye,"P",{"data-svelte-h":!0}),$(wg)!=="svelte-1fo8vay"&&(wg.innerHTML=LC),lj=o(Ye),f(Mr.$$.fragment,Ye),cj=o(Ye),f(kr.$$.fragment,Ye),Ye.forEach(p),dj=o(T),fs=i(T,"DIV",{class:!0});var Oa=v(fs);f(wd.$$.fragment,Oa),ij=o(Oa),vg=i(Oa,"P",{"data-svelte-h":!0}),$(vg)!=="svelte-i1samc"&&(vg.innerHTML=YC),pj=o(Oa),f(Jr.$$.fragment,Oa),Oa.forEach(p),mj=o(T),ut=i(T,"DIV",{class:!0});var Wt=v(ut);f(vd.$$.fragment,Wt),hj=o(Wt),Mg=i(Wt,"P",{"data-svelte-h":!0}),$(Mg)!=="svelte-3clgrk"&&(Mg.innerHTML=SC),gj=o(Wt),kg=i(Wt,"P",{"data-svelte-h":!0}),$(kg)!=="svelte-iyxfy2"&&(kg.innerHTML=AC),uj=o(Wt),f(Tr.$$.fragment,Wt),Wt.forEach(p),fj=o(T),Te=i(T,"DIV",{class:!0});var Se=v(Te);f(Md.$$.fragment,Se),bj=o(Se),Jg=i(Se,"P",{"data-svelte-h":!0}),$(Jg)!=="svelte-87ae2u"&&(Jg.innerHTML=PC),_j=o(Se),Tg=i(Se,"P",{"data-svelte-h":!0}),$(Tg)!=="svelte-1pwl359"&&(Tg.innerHTML=KC),xj=o(Se),Dg=i(Se,"P",{"data-svelte-h":!0}),$(Dg)!=="svelte-149aqoy"&&(Dg.innerHTML=OC),$j=o(Se),f(Dr.$$.fragment,Se),Se.forEach(p),yj=o(T),De=i(T,"DIV",{class:!0});var Ae=v(De);f(kd.$$.fragment,Ae),jj=o(Ae),Ig=i(Ae,"P",{"data-svelte-h":!0}),$(Ig)!=="svelte-1r4rcyu"&&(Ig.innerHTML=eU),wj=o(Ae),Cg=i(Ae,"P",{"data-svelte-h":!0}),$(Cg)!=="svelte-3xtvig"&&(Cg.innerHTML=tU),vj=o(Ae),Ug=i(Ae,"P",{"data-svelte-h":!0}),$(Ug)!=="svelte-16p2ux1"&&(Ug.innerHTML=sU),Mj=o(Ae),f(Ir.$$.fragment,Ae),Ae.forEach(p),kj=o(T),Cr=i(T,"DIV",{class:!0});var xh=v(Cr);f(Jd.$$.fragment,xh),Jj=o(xh),Zg=i(xh,"P",{"data-svelte-h":!0}),$(Zg)!=="svelte-gpicds"&&(Zg.textContent=aU),xh.forEach(p),Tj=o(T),ft=i(T,"DIV",{class:!0});var Bt=v(ft);f(Td.$$.fragment,Bt),Dj=o(Bt),Fg=i(Bt,"P",{"data-svelte-h":!0}),$(Fg)!=="svelte-bpj7c4"&&(Fg.textContent=nU),Ij=o(Bt),Rg=i(Bt,"P",{"data-svelte-h":!0}),$(Rg)!=="svelte-uj8hed"&&(Rg.textContent=rU),Cj=o(Bt),f(Ur.$$.fragment,Bt),Bt.forEach(p),Uj=o(T),Ie=i(T,"DIV",{class:!0});var Pe=v(Ie);f(Dd.$$.fragment,Pe),Zj=o(Pe),zg=i(Pe,"P",{"data-svelte-h":!0}),$(zg)!=="svelte-9z7uvf"&&(zg.textContent=oU),Fj=o(Pe),Gg=i(Pe,"P",{"data-svelte-h":!0}),$(Gg)!=="svelte-nw1g8z"&&(Gg.innerHTML=lU),Rj=o(Pe),Ng=i(Pe,"UL",{"data-svelte-h":!0}),$(Ng)!=="svelte-suoos2"&&(Ng.innerHTML=cU),zj=o(Pe),f(Zr.$$.fragment,Pe),Pe.forEach(p),Gj=o(T),bs=i(T,"DIV",{class:!0});var en=v(bs);f(Id.$$.fragment,en),Nj=o(en),Xg=i(en,"P",{"data-svelte-h":!0}),$(Xg)!=="svelte-1y7xb5x"&&(Xg.textContent=dU),Xj=o(en),f(Fr.$$.fragment,en),en.forEach(p),Vj=o(T),_s=i(T,"DIV",{class:!0});var tn=v(_s);f(Cd.$$.fragment,tn),qj=o(tn),Vg=i(tn,"P",{"data-svelte-h":!0}),$(Vg)!=="svelte-gt2ig5"&&(Vg.textContent=iU),Wj=o(tn),f(Rr.$$.fragment,tn),tn.forEach(p),Bj=o(T),xs=i(T,"DIV",{class:!0});var sn=v(xs);f(Ud.$$.fragment,sn),Qj=o(sn),qg=i(sn,"P",{"data-svelte-h":!0}),$(qg)!=="svelte-jv8sqa"&&(qg.textContent=pU),Ej=o(sn),f(zr.$$.fragment,sn),sn.forEach(p),Hj=o(T),P=i(T,"DIV",{class:!0});var se=v(P);f(Zd.$$.fragment,se),Lj=o(se),Wg=i(se,"P",{"data-svelte-h":!0}),$(Wg)!=="svelte-9hwenr"&&(Wg.textContent=mU),Yj=o(se),Bg=i(se,"P",{"data-svelte-h":!0}),$(Bg)!=="svelte-nds7wn"&&(Bg.textContent=hU),Sj=o(se),Qg=i(se,"P",{"data-svelte-h":!0}),$(Qg)!=="svelte-n2s5zl"&&(Qg.innerHTML=gU),Aj=o(se),f(Gr.$$.fragment,se),Pj=o(se),Eg=i(se,"P",{"data-svelte-h":!0}),$(Eg)!=="svelte-1y4i4vo"&&(Eg.innerHTML=uU),Kj=o(se),f(Nr.$$.fragment,se),Oj=o(se),f(Xr.$$.fragment,se),se.forEach(p),e0=o(T),$s=i(T,"DIV",{class:!0});var an=v($s);f(Fd.$$.fragment,an),t0=o(an),Hg=i(an,"P",{"data-svelte-h":!0}),$(Hg)!=="svelte-13d531u"&&(Hg.innerHTML=fU),s0=o(an),f(Vr.$$.fragment,an),an.forEach(p),a0=o(T),ys=i(T,"DIV",{class:!0});var nn=v(ys);f(Rd.$$.fragment,nn),n0=o(nn),Lg=i(nn,"P",{"data-svelte-h":!0}),$(Lg)!=="svelte-jbabgp"&&(Lg.innerHTML=bU),r0=o(nn),f(qr.$$.fragment,nn),nn.forEach(p),o0=o(T),bt=i(T,"DIV",{class:!0});var Qt=v(bt);f(zd.$$.fragment,Qt),l0=o(Qt),Yg=i(Qt,"P",{"data-svelte-h":!0}),$(Yg)!=="svelte-fhrp45"&&(Yg.innerHTML=_U),c0=o(Qt),Sg=i(Qt,"P",{"data-svelte-h":!0}),$(Sg)!=="svelte-rv8n1m"&&(Sg.innerHTML=xU),d0=o(Qt),f(Wr.$$.fragment,Qt),Qt.forEach(p),i0=o(T),ie=i(T,"DIV",{class:!0});var $e=v(ie);f(Gd.$$.fragment,$e),p0=o($e),Ag=i($e,"P",{"data-svelte-h":!0}),$(Ag)!=="svelte-vo46xv"&&(Ag.innerHTML=$U),m0=o($e),Pg=i($e,"P",{"data-svelte-h":!0}),$(Pg)!=="svelte-jrrrgm"&&(Pg.innerHTML=yU),h0=o($e),Kg=i($e,"P",{"data-svelte-h":!0}),$(Kg)!=="svelte-1q50xzx"&&(Kg.innerHTML=jU),g0=o($e),Og=i($e,"P",{"data-svelte-h":!0}),$(Og)!=="svelte-1k56e43"&&(Og.innerHTML=wU),u0=o($e),f(Br.$$.fragment,$e),$e.forEach(p),f0=o(T),js=i(T,"DIV",{class:!0});var rn=v(js);f(Nd.$$.fragment,rn),b0=o(rn),eu=i(rn,"P",{"data-svelte-h":!0}),$(eu)!=="svelte-9hwqxf"&&(eu.innerHTML=vU),_0=o(rn),f(Qr.$$.fragment,rn),rn.forEach(p),x0=o(T),pe=i(T,"DIV",{class:!0});var ye=v(pe);f(Xd.$$.fragment,ye),$0=o(ye),tu=i(ye,"P",{"data-svelte-h":!0}),$(tu)!=="svelte-12h8d1z"&&(tu.textContent=MU),y0=o(ye),su=i(ye,"P",{"data-svelte-h":!0}),$(su)!=="svelte-14lpaxt"&&(su.innerHTML=kU),j0=o(ye),f(Er.$$.fragment,ye),w0=o(ye),f(Hr.$$.fragment,ye),v0=o(ye),f(Lr.$$.fragment,ye),ye.forEach(p),M0=o(T),Ce=i(T,"DIV",{class:!0});var Ke=v(Ce);f(Vd.$$.fragment,Ke),k0=o(Ke),au=i(Ke,"P",{"data-svelte-h":!0}),$(au)!=="svelte-fuc3iu"&&(au.innerHTML=JU),J0=o(Ke),nu=i(Ke,"P",{"data-svelte-h":!0}),$(nu)!=="svelte-3fubyw"&&(nu.innerHTML=TU),T0=o(Ke),ru=i(Ke,"P",{"data-svelte-h":!0}),$(ru)!=="svelte-1cqxkja"&&(ru.textContent=DU),D0=o(Ke),f(Yr.$$.fragment,Ke),Ke.forEach(p),I0=o(T),ws=i(T,"DIV",{class:!0});var on=v(ws);f(qd.$$.fragment,on),C0=o(on),ou=i(on,"P",{"data-svelte-h":!0}),$(ou)!=="svelte-afgi6s"&&(ou.innerHTML=IU),U0=o(on),f(Sr.$$.fragment,on),on.forEach(p),Z0=o(T),Ar=i(T,"DIV",{class:!0});var $h=v(Ar);f(Wd.$$.fragment,$h),F0=o($h),lu=i($h,"P",{"data-svelte-h":!0}),$(lu)!=="svelte-1upjh2b"&&(lu.textContent=CU),$h.forEach(p),R0=o(T),vs=i(T,"DIV",{class:!0});var ln=v(vs);f(Bd.$$.fragment,ln),z0=o(ln),cu=i(ln,"P",{"data-svelte-h":!0}),$(cu)!=="svelte-1vpxgwn"&&(cu.textContent=UU),G0=o(ln),f(Pr.$$.fragment,ln),ln.forEach(p),N0=o(T),Ms=i(T,"DIV",{class:!0});var cn=v(Ms);f(Qd.$$.fragment,cn),X0=o(cn),du=i(cn,"P",{"data-svelte-h":!0}),$(du)!=="svelte-16aovqo"&&(du.innerHTML=ZU),V0=o(cn),f(Kr.$$.fragment,cn),cn.forEach(p),q0=o(T),ks=i(T,"DIV",{class:!0});var dn=v(ks);f(Ed.$$.fragment,dn),W0=o(dn),iu=i(dn,"P",{"data-svelte-h":!0}),$(iu)!=="svelte-17wrjm3"&&(iu.textContent=FU),B0=o(dn),f(Or.$$.fragment,dn),dn.forEach(p),Q0=o(T),_t=i(T,"DIV",{class:!0});var Et=v(_t);f(Hd.$$.fragment,Et),E0=o(Et),pu=i(Et,"P",{"data-svelte-h":!0}),$(pu)!=="svelte-1myd95s"&&(pu.textContent=RU),H0=o(Et),mu=i(Et,"P",{"data-svelte-h":!0}),$(mu)!=="svelte-4werc"&&(mu.innerHTML=zU),L0=o(Et),f(eo.$$.fragment,Et),Et.forEach(p),Y0=o(T),Js=i(T,"DIV",{class:!0});var pn=v(Js);f(Ld.$$.fragment,pn),S0=o(pn),hu=i(pn,"P",{"data-svelte-h":!0}),$(hu)!=="svelte-ojn5af"&&(hu.textContent=GU),A0=o(pn),f(to.$$.fragment,pn),pn.forEach(p),P0=o(T),Ts=i(T,"DIV",{class:!0});var mn=v(Ts);f(Yd.$$.fragment,mn),K0=o(mn),gu=i(mn,"P",{"data-svelte-h":!0}),$(gu)!=="svelte-cr6o9"&&(gu.textContent=NU),O0=o(mn),f(so.$$.fragment,mn),mn.forEach(p),ew=o(T),G=i(T,"DIV",{class:!0});var X=v(G);f(Sd.$$.fragment,X),tw=o(X),uu=i(X,"P",{"data-svelte-h":!0}),$(uu)!=="svelte-cqb73z"&&(uu.innerHTML=XU),sw=o(X),fu=i(X,"P",{"data-svelte-h":!0}),$(fu)!=="svelte-s5e69l"&&(fu.textContent=VU),aw=o(X),bu=i(X,"P",{"data-svelte-h":!0}),$(bu)!=="svelte-13st2ie"&&(bu.innerHTML=qU),nw=o(X),_u=i(X,"P",{"data-svelte-h":!0}),$(_u)!=="svelte-fu6aa4"&&(_u.innerHTML=WU),rw=o(X),xu=i(X,"P",{"data-svelte-h":!0}),$(xu)!=="svelte-11lpom8"&&(xu.textContent=BU),ow=o(X),f(ao.$$.fragment,X),lw=o(X),f(no.$$.fragment,X),cw=o(X),f(ro.$$.fragment,X),dw=o(X),f(oo.$$.fragment,X),iw=o(X),f(lo.$$.fragment,X),pw=o(X),$u=i(X,"P",{"data-svelte-h":!0}),$($u)!=="svelte-b72tz8"&&($u.textContent=QU),mw=o(X),f(co.$$.fragment,X),hw=o(X),f(io.$$.fragment,X),gw=aC(X,"\nFeel free to also use `IterableDataset.set_epoch()` when using a PyTorch DataLoader or in distributed setups."),X.forEach(p),uw=o(T),xt=i(T,"DIV",{class:!0});var Ht=v(xt);f(Ad.$$.fragment,Ht),fw=o(Ht),yu=i(Ht,"P",{"data-svelte-h":!0}),$(yu)!=="svelte-dxgty8"&&(yu.innerHTML=EU),bw=o(Ht),ju=i(Ht,"UL",{"data-svelte-h":!0}),$(ju)!=="svelte-1no3fah"&&(ju.innerHTML=HU),_w=o(Ht),f(po.$$.fragment,Ht),Ht.forEach(p),xw=o(T),Ds=i(T,"DIV",{class:!0});var hn=v(Ds);f(Pd.$$.fragment,hn),$w=o(hn),wu=i(hn,"P",{"data-svelte-h":!0}),$(wu)!=="svelte-2daopy"&&(wu.innerHTML=LU),yw=o(hn),vu=i(hn,"UL",{"data-svelte-h":!0}),$(vu)!=="svelte-1no3fah"&&(vu.innerHTML=YU),hn.forEach(p),jw=o(T),mo=i(T,"DIV",{class:!0});var yh=v(mo);f(Kd.$$.fragment,yh),ww=o(yh),Mu=i(yh,"P",{"data-svelte-h":!0}),$(Mu)!=="svelte-1404wtc"&&(Mu.textContent=SU),yh.forEach(p),vw=o(T),Is=i(T,"DIV",{class:!0});var gn=v(Is);f(Od.$$.fragment,gn),Mw=o(gn),ku=i(gn,"P",{"data-svelte-h":!0}),$(ku)!=="svelte-9ueubg"&&(ku.textContent=AU),kw=o(gn),Ju=i(gn,"P",{"data-svelte-h":!0}),$(Ju)!=="svelte-150zuup"&&(Ju.innerHTML=PU),gn.forEach(p),Jw=o(T),Cs=i(T,"DIV",{class:!0});var un=v(Cs);f(ei.$$.fragment,un),Tw=o(un),Tu=i(un,"P",{"data-svelte-h":!0}),$(Tu)!=="svelte-m9un6o"&&(Tu.textContent=KU),Dw=o(un),f(ho.$$.fragment,un),un.forEach(p),Iw=o(T),go=i(T,"DIV",{class:!0});var jh=v(go);f(ti.$$.fragment,jh),Cw=o(jh),Du=i(jh,"P",{"data-svelte-h":!0}),$(Du)!=="svelte-1oc11uj"&&(Du.textContent=OU),jh.forEach(p),Uw=o(T),uo=i(T,"DIV",{class:!0});var wh=v(uo);f(si.$$.fragment,wh),Zw=o(wh),Iu=i(wh,"P",{"data-svelte-h":!0}),$(Iu)!=="svelte-12ndgxj"&&(Iu.innerHTML=eZ),wh.forEach(p),Fw=o(T),fo=i(T,"DIV",{class:!0});var vh=v(fo);f(ai.$$.fragment,vh),Rw=o(vh),Cu=i(vh,"P",{"data-svelte-h":!0}),$(Cu)!=="svelte-wiqdbm"&&(Cu.innerHTML=tZ),vh.forEach(p),zw=o(T),bo=i(T,"DIV",{class:!0});var Mh=v(bo);f(ni.$$.fragment,Mh),Gw=o(Mh),Uu=i(Mh,"P",{"data-svelte-h":!0}),$(Uu)!=="svelte-1tg85xn"&&(Uu.textContent=sZ),Mh.forEach(p),Nw=o(T),_o=i(T,"DIV",{class:!0});var kh=v(_o);f(ri.$$.fragment,kh),Xw=o(kh),Zu=i(kh,"P",{"data-svelte-h":!0}),$(Zu)!=="svelte-1rq6ygg"&&(Zu.textContent=aZ),kh.forEach(p),Vw=o(T),xo=i(T,"DIV",{class:!0});var Jh=v(xo);f(oi.$$.fragment,Jh),qw=o(Jh),Fu=i(Jh,"P",{"data-svelte-h":!0}),$(Fu)!=="svelte-1rq6ygg"&&(Fu.textContent=nZ),Jh.forEach(p),Ww=o(T),$o=i(T,"DIV",{class:!0});var Th=v($o);f(li.$$.fragment,Th),Bw=o(Th),Ru=i(Th,"P",{"data-svelte-h":!0}),$(Ru)!=="svelte-1k9tte5"&&(Ru.textContent=rZ),Th.forEach(p),Qw=o(T),yo=i(T,"DIV",{class:!0});var Dh=v(yo);f(ci.$$.fragment,Dh),Ew=o(Dh),zu=i(Dh,"P",{"data-svelte-h":!0}),$(zu)!=="svelte-1k9tte5"&&(zu.textContent=oZ),Dh.forEach(p),Hw=o(T),jo=i(T,"DIV",{class:!0});var Ih=v(jo);f(di.$$.fragment,Ih),Lw=o(Ih),Gu=i(Ih,"P",{"data-svelte-h":!0}),$(Gu)!=="svelte-1dpaqc5"&&(Gu.innerHTML=lZ),Ih.forEach(p),Yw=o(T),wo=i(T,"DIV",{class:!0});var Ch=v(wo);f(ii.$$.fragment,Ch),Sw=o(Ch),Nu=i(Ch,"P",{"data-svelte-h":!0}),$(Nu)!=="svelte-3wiv0"&&(Nu.innerHTML=cZ),Ch.forEach(p),Aw=o(T),Xu=i(T,"DIV",{class:!0});var G$=v(Xu);f(pi.$$.fragment,G$),G$.forEach(p),Pw=o(T),Vu=i(T,"DIV",{class:!0});var N$=v(Vu);f(mi.$$.fragment,N$),N$.forEach(p),Kw=o(T),qu=i(T,"DIV",{class:!0});var X$=v(qu);f(hi.$$.fragment,X$),X$.forEach(p),Ow=o(T),Wu=i(T,"DIV",{class:!0});var V$=v(Wu);f(gi.$$.fragment,V$),V$.forEach(p),ev=o(T),Bu=i(T,"DIV",{class:!0});var q$=v(Bu);f(ui.$$.fragment,q$),q$.forEach(p),tv=o(T),Qu=i(T,"DIV",{class:!0});var W$=v(Qu);f(fi.$$.fragment,W$),W$.forEach(p),sv=o(T),Eu=i(T,"DIV",{class:!0});var B$=v(Eu);f(bi.$$.fragment,B$),B$.forEach(p),av=o(T),Hu=i(T,"DIV",{class:!0});var Q$=v(Hu);f(_i.$$.fragment,Q$),Q$.forEach(p),nv=o(T),Lu=i(T,"DIV",{class:!0});var E$=v(Lu);f(xi.$$.fragment,E$),E$.forEach(p),rv=o(T),Yu=i(T,"DIV",{class:!0});var H$=v(Yu);f($i.$$.fragment,H$),H$.forEach(p),ov=o(T),Su=i(T,"DIV",{class:!0});var L$=v(Su);f(yi.$$.fragment,L$),L$.forEach(p),lv=o(T),Au=i(T,"DIV",{class:!0});var Y$=v(Au);f(ji.$$.fragment,Y$),Y$.forEach(p),cv=o(T),Pu=i(T,"DIV",{class:!0});var S$=v(Pu);f(wi.$$.fragment,S$),S$.forEach(p),dv=o(T),Us=i(T,"DIV",{class:!0});var fn=v(Us);f(vi.$$.fragment,fn),iv=o(fn),Ku=i(fn,"P",{"data-svelte-h":!0}),$(Ku)!=="svelte-17lbdfs"&&(Ku.textContent=dZ),pv=o(fn),f(vo.$$.fragment,fn),fn.forEach(p),mv=o(T),Zs=i(T,"DIV",{class:!0});var bn=v(Zs);f(Mi.$$.fragment,bn),hv=o(bn),Ou=i(bn,"P",{"data-svelte-h":!0}),$(Ou)!=="svelte-1j26yi8"&&(Ou.textContent=iZ),gv=o(bn),f(Mo.$$.fragment,bn),bn.forEach(p),uv=o(T),Fs=i(T,"DIV",{class:!0});var _n=v(Fs);f(ki.$$.fragment,_n),fv=o(_n),ef=i(_n,"P",{"data-svelte-h":!0}),$(ef)!=="svelte-7pct94"&&(ef.textContent=pZ),bv=o(_n),f(ko.$$.fragment,_n),_n.forEach(p),_v=o(T),Rs=i(T,"DIV",{class:!0});var xn=v(Rs);f(Ji.$$.fragment,xn),xv=o(xn),tf=i(xn,"P",{"data-svelte-h":!0}),$(tf)!=="svelte-17gtj61"&&(tf.textContent=mZ),$v=o(xn),f(Jo.$$.fragment,xn),xn.forEach(p),yv=o(T),$t=i(T,"DIV",{class:!0});var Lt=v($t);f(Ti.$$.fragment,Lt),jv=o(Lt),sf=i(Lt,"P",{"data-svelte-h":!0}),$(sf)!=="svelte-1c43104"&&(sf.textContent=hZ),wv=o(Lt),f(To.$$.fragment,Lt),vv=o(Lt),f(Do.$$.fragment,Lt),Lt.forEach(p),Mv=o(T),zs=i(T,"DIV",{class:!0});var $n=v(zs);f(Di.$$.fragment,$n),kv=o($n),af=i($n,"P",{"data-svelte-h":!0}),$(af)!=="svelte-zpbb90"&&(af.innerHTML=gZ),Jv=o($n),nf=i($n,"P",{"data-svelte-h":!0}),$(nf)!=="svelte-o3fvxz"&&(nf.innerHTML=uZ),$n.forEach(p),Tv=o(T),Gs=i(T,"DIV",{class:!0});var yn=v(Gs);f(Ii.$$.fragment,yn),Dv=o(yn),rf=i(yn,"P",{"data-svelte-h":!0}),$(rf)!=="svelte-1350uew"&&(rf.innerHTML=fZ),Iv=o(yn),f(Io.$$.fragment,yn),yn.forEach(p),T.forEach(p),d2=o(n),Ct=i(n,"DIV",{class:!0});var jn=v(Ct);f(Ci.$$.fragment,jn),Cv=o(jn),of=i(jn,"P",{"data-svelte-h":!0}),$(of)!=="svelte-1137tzb"&&(of.innerHTML=bZ),Uv=o(jn),f(Co.$$.fragment,jn),jn.forEach(p),i2=o(n),L=i(n,"DIV",{class:!0});var A=v(L);f(Ui.$$.fragment,A),Zv=o(A),lf=i(A,"P",{"data-svelte-h":!0}),$(lf)!=="svelte-5mtlbp"&&(lf.textContent=_Z),Fv=o(A),cf=i(A,"P",{"data-svelte-h":!0}),$(cf)!=="svelte-l0qr25"&&(cf.innerHTML=xZ),Rv=o(A),df=i(A,"UL",{"data-svelte-h":!0}),$(df)!=="svelte-innmou"&&(df.innerHTML=$Z),zv=o(A),pf=i(A,"P",{"data-svelte-h":!0}),$(pf)!=="svelte-19sfm5m"&&(pf.innerHTML=yZ),Gv=o(A),mf=i(A,"P",{"data-svelte-h":!0}),$(mf)!=="svelte-13n49oy"&&(mf.textContent=jZ),Nv=o(A),hf=i(A,"P",{"data-svelte-h":!0}),$(hf)!=="svelte-1lgko1a"&&(hf.textContent=wZ),Xv=o(A),gf=i(A,"P",{"data-svelte-h":!0}),$(gf)!=="svelte-11lpom8"&&(gf.textContent=vZ),Vv=o(A),f(Uo.$$.fragment,A),A.forEach(p),p2=o(n),oe=i(n,"DIV",{class:!0});var je=v(oe);f(Zi.$$.fragment,je),qv=o(je),uf=i(je,"P",{"data-svelte-h":!0}),$(uf)!=="svelte-mz9vcq"&&(uf.innerHTML=MZ),Wv=o(je),ff=i(je,"P",{"data-svelte-h":!0}),$(ff)!=="svelte-1a3gkys"&&(ff.textContent=kZ),Bv=o(je),bf=i(je,"P",{"data-svelte-h":!0}),$(bf)!=="svelte-195dicq"&&(bf.textContent=JZ),Qv=o(je),_f=i(je,"P",{"data-svelte-h":!0}),$(_f)!=="svelte-1kujsme"&&(_f.textContent=TZ),Ev=o(je),xf=i(je,"P",{"data-svelte-h":!0}),$(xf)!=="svelte-nsc411"&&(xf.innerHTML=DZ),je.forEach(p),m2=o(n),fe=i(n,"DIV",{class:!0});var Oe=v(fe);f(Fi.$$.fragment,Oe),Hv=o(Oe),$f=i(Oe,"P",{"data-svelte-h":!0}),$($f)!=="svelte-11p73zd"&&($f.textContent=IZ),Lv=o(Oe),yf=i(Oe,"P",{"data-svelte-h":!0}),$(yf)!=="svelte-1l0khzq"&&(yf.textContent=CZ),Yv=o(Oe),jf=i(Oe,"P",{"data-svelte-h":!0}),$(jf)!=="svelte-1njac64"&&(jf.textContent=UZ),Sv=o(Oe),wf=i(Oe,"UL",{"data-svelte-h":!0}),$(wf)!=="svelte-1nrwl54"&&(wf.innerHTML=ZZ),Oe.forEach(p),h2=o(n),be=i(n,"DIV",{class:!0});var et=v(be);f(Ri.$$.fragment,et),Av=o(et),vf=i(et,"P",{"data-svelte-h":!0}),$(vf)!=="svelte-11p73zd"&&(vf.textContent=FZ),Pv=o(et),Mf=i(et,"P",{"data-svelte-h":!0}),$(Mf)!=="svelte-1l0khzq"&&(Mf.textContent=RZ),Kv=o(et),kf=i(et,"P",{"data-svelte-h":!0}),$(kf)!=="svelte-1njac64"&&(kf.textContent=zZ),Ov=o(et),Jf=i(et,"UL",{"data-svelte-h":!0}),$(Jf)!=="svelte-1nrwl54"&&(Jf.innerHTML=GZ),et.forEach(p),g2=o(n),_e=i(n,"DIV",{class:!0});var tt=v(_e);f(zi.$$.fragment,tt),eM=o(tt),Tf=i(tt,"P",{"data-svelte-h":!0}),$(Tf)!=="svelte-11p73zd"&&(Tf.textContent=NZ),tM=o(tt),Df=i(tt,"P",{"data-svelte-h":!0}),$(Df)!=="svelte-1l0khzq"&&(Df.textContent=XZ),sM=o(tt),If=i(tt,"P",{"data-svelte-h":!0}),$(If)!=="svelte-1njac64"&&(If.textContent=VZ),aM=o(tt),Cf=i(tt,"UL",{"data-svelte-h":!0}),$(Cf)!=="svelte-118r0sf"&&(Cf.innerHTML=qZ),tt.forEach(p),u2=o(n),f(Gi.$$.fragment,n),f2=o(n),Ni=i(n,"P",{"data-svelte-h":!0}),$(Ni)!=="svelte-1pw0knt"&&(Ni.innerHTML=WZ),b2=o(n),U=i(n,"DIV",{class:!0});var Z=v(U);f(Xi.$$.fragment,Z),nM=o(Z),Uf=i(Z,"P",{"data-svelte-h":!0}),$(Uf)!=="svelte-14lver1"&&(Uf.textContent=BZ),rM=o(Z),Ns=i(Z,"DIV",{class:!0});var wn=v(Ns);f(Vi.$$.fragment,wn),oM=o(wn),Zf=i(wn,"P",{"data-svelte-h":!0}),$(Zf)!=="svelte-1pzcinj"&&(Zf.textContent=QZ),lM=o(wn),f(Zo.$$.fragment,wn),wn.forEach(p),cM=o(Z),Xs=i(Z,"DIV",{class:!0});var vn=v(Xs);f(qi.$$.fragment,vn),dM=o(vn),Ff=i(vn,"P",{"data-svelte-h":!0}),$(Ff)!=="svelte-j9yykk"&&(Ff.textContent=EZ),iM=o(vn),f(Fo.$$.fragment,vn),vn.forEach(p),pM=o(Z),Vs=i(Z,"DIV",{class:!0});var Mn=v(Vs);f(Wi.$$.fragment,Mn),mM=o(Mn),Rf=i(Mn,"P",{"data-svelte-h":!0}),$(Rf)!=="svelte-77ea4h"&&(Rf.textContent=HZ),hM=o(Mn),f(Ro.$$.fragment,Mn),Mn.forEach(p),gM=o(Z),qs=i(Z,"DIV",{class:!0});var kn=v(qs);f(Bi.$$.fragment,kn),uM=o(kn),zf=i(kn,"P",{"data-svelte-h":!0}),$(zf)!=="svelte-1dq0401"&&(zf.textContent=LZ),fM=o(kn),f(zo.$$.fragment,kn),kn.forEach(p),bM=o(Z),Ws=i(Z,"DIV",{class:!0});var Jn=v(Ws);f(Qi.$$.fragment,Jn),_M=o(Jn),Gf=i(Jn,"P",{"data-svelte-h":!0}),$(Gf)!=="svelte-11j1fwn"&&(Gf.textContent=YZ),xM=o(Jn),f(Go.$$.fragment,Jn),Jn.forEach(p),$M=o(Z),Bs=i(Z,"DIV",{class:!0});var Tn=v(Bs);f(Ei.$$.fragment,Tn),yM=o(Tn),Nf=i(Tn,"P",{"data-svelte-h":!0}),$(Nf)!=="svelte-1v4tf4q"&&(Nf.textContent=SZ),jM=o(Tn),f(No.$$.fragment,Tn),Tn.forEach(p),wM=o(Z),yt=i(Z,"DIV",{class:!0});var Yt=v(yt);f(Hi.$$.fragment,Yt),vM=o(Yt),Xf=i(Yt,"P",{"data-svelte-h":!0}),$(Xf)!=="svelte-b4657d"&&(Xf.textContent=AZ),MM=o(Yt),Vf=i(Yt,"P",{"data-svelte-h":!0}),$(Vf)!=="svelte-1sxlc2t"&&(Vf.textContent=PZ),kM=o(Yt),f(Xo.$$.fragment,Yt),Yt.forEach(p),JM=o(Z),Qs=i(Z,"DIV",{class:!0});var Dn=v(Qs);f(Li.$$.fragment,Dn),TM=o(Dn),qf=i(Dn,"P",{"data-svelte-h":!0}),$(qf)!=="svelte-1dkln5f"&&(qf.textContent=KZ),DM=o(Dn),f(Vo.$$.fragment,Dn),Dn.forEach(p),IM=o(Z),Es=i(Z,"DIV",{class:!0});var In=v(Es);f(Yi.$$.fragment,In),CM=o(In),Wf=i(In,"P",{"data-svelte-h":!0}),$(Wf)!=="svelte-1rukux9"&&(Wf.textContent=OZ),UM=o(In),f(qo.$$.fragment,In),In.forEach(p),ZM=o(Z),Hs=i(Z,"DIV",{class:!0});var Cn=v(Hs);f(Si.$$.fragment,Cn),FM=o(Cn),Bf=i(Cn,"P",{"data-svelte-h":!0}),$(Bf)!=="svelte-65x6j8"&&(Bf.textContent=e9),RM=o(Cn),f(Wo.$$.fragment,Cn),Cn.forEach(p),zM=o(Z),Ls=i(Z,"DIV",{class:!0});var Un=v(Ls);f(Ai.$$.fragment,Un),GM=o(Un),Qf=i(Un,"P",{"data-svelte-h":!0}),$(Qf)!=="svelte-jv8sqa"&&(Qf.textContent=t9),NM=o(Un),f(Bo.$$.fragment,Un),Un.forEach(p),XM=o(Z),Ue=i(Z,"DIV",{class:!0});var st=v(Ue);f(Pi.$$.fragment,st),VM=o(st),Ef=i(st,"P",{"data-svelte-h":!0}),$(Ef)!=="svelte-9hwenr"&&(Ef.textContent=s9),qM=o(st),Hf=i(st,"P",{"data-svelte-h":!0}),$(Hf)!=="svelte-oy0nqf"&&(Hf.textContent=a9),WM=o(st),Lf=i(st,"P",{"data-svelte-h":!0}),$(Lf)!=="svelte-nds7wn"&&(Lf.textContent=n9),BM=o(st),f(Qo.$$.fragment,st),st.forEach(p),QM=o(Z),Ze=i(Z,"DIV",{class:!0});var at=v(Ze);f(Ki.$$.fragment,at),EM=o(at),Yf=i(at,"P",{"data-svelte-h":!0}),$(Yf)!=="svelte-1q1ik80"&&(Yf.innerHTML=r9),HM=o(at),Sf=i(at,"P",{"data-svelte-h":!0}),$(Sf)!=="svelte-15z1w4c"&&(Sf.innerHTML=o9),LM=o(at),Af=i(at,"P",{"data-svelte-h":!0}),$(Af)!=="svelte-1tad20v"&&(Af.innerHTML=l9),YM=o(at),f(Eo.$$.fragment,at),at.forEach(p),SM=o(Z),jt=i(Z,"DIV",{class:!0});var St=v(jt);f(Oi.$$.fragment,St),AM=o(St),Pf=i(St,"P",{"data-svelte-h":!0}),$(Pf)!=="svelte-1t1fvqt"&&(Pf.innerHTML=c9),PM=o(St),Kf=i(St,"P",{"data-svelte-h":!0}),$(Kf)!=="svelte-iyxfy2"&&(Kf.innerHTML=d9),KM=o(St),f(Ho.$$.fragment,St),St.forEach(p),OM=o(Z),Lo=i(Z,"DIV",{class:!0});var Uh=v(Lo);f(ep.$$.fragment,Uh),ek=o(Uh),Of=i(Uh,"P",{"data-svelte-h":!0}),$(Of)!=="svelte-1cvucj0"&&(Of.innerHTML=i9),Uh.forEach(p),tk=o(Z),Fe=i(Z,"DIV",{class:!0});var nt=v(Fe);f(tp.$$.fragment,nt),sk=o(nt),eb=i(nt,"P",{"data-svelte-h":!0}),$(eb)!=="svelte-5o7j4w"&&(eb.innerHTML=p9),ak=o(nt),tb=i(nt,"P",{"data-svelte-h":!0}),$(tb)!=="svelte-1q31ttf"&&(tb.innerHTML=m9),nk=o(nt),sb=i(nt,"P",{"data-svelte-h":!0}),$(sb)!=="svelte-ruh49l"&&(sb.innerHTML=h9),rk=o(nt),f(Yo.$$.fragment,nt),nt.forEach(p),ok=o(Z),Re=i(Z,"DIV",{class:!0});var rt=v(Re);f(sp.$$.fragment,rt),lk=o(rt),ab=i(rt,"P",{"data-svelte-h":!0}),$(ab)!=="svelte-v9r8r9"&&(ab.innerHTML=g9),ck=o(rt),nb=i(rt,"P",{"data-svelte-h":!0}),$(nb)!=="svelte-zpcr64"&&(nb.innerHTML=u9),dk=o(rt),rb=i(rt,"P",{"data-svelte-h":!0}),$(rb)!=="svelte-11y5q6b"&&(rb.innerHTML=f9),ik=o(rt),f(So.$$.fragment,rt),rt.forEach(p),pk=o(Z),Ys=i(Z,"DIV",{class:!0});var Zn=v(Ys);f(ap.$$.fragment,Zn),mk=o(Zn),ob=i(Zn,"P",{"data-svelte-h":!0}),$(ob)!=="svelte-8vebwi"&&(ob.textContent=b9),hk=o(Zn),f(Ao.$$.fragment,Zn),Zn.forEach(p),gk=o(Z),Ss=i(Z,"DIV",{class:!0});var Fn=v(Ss);f(np.$$.fragment,Fn),uk=o(Fn),lb=i(Fn,"P",{"data-svelte-h":!0}),$(lb)!=="svelte-1y0jkhx"&&(lb.textContent=_9),fk=o(Fn),f(Po.$$.fragment,Fn),Fn.forEach(p),bk=o(Z),As=i(Z,"DIV",{class:!0});var Rn=v(As);f(rp.$$.fragment,Rn),_k=o(Rn),cb=i(Rn,"P",{"data-svelte-h":!0}),$(cb)!=="svelte-6q86ko"&&(cb.textContent=x9),xk=o(Rn),f(Ko.$$.fragment,Rn),Rn.forEach(p),$k=o(Z),ze=i(Z,"DIV",{class:!0});var ot=v(ze);f(op.$$.fragment,ot),yk=o(ot),db=i(ot,"P",{"data-svelte-h":!0}),$(db)!=="svelte-xxkf15"&&(db.textContent=$9),jk=o(ot),ib=i(ot,"P",{"data-svelte-h":!0}),$(ib)!=="svelte-q7bhdj"&&(ib.textContent=y9),wk=o(ot),pb=i(ot,"P",{"data-svelte-h":!0}),$(pb)!=="svelte-5fgh3f"&&(pb.innerHTML=j9),vk=o(ot),f(Oo.$$.fragment,ot),ot.forEach(p),Mk=o(Z),Ge=i(Z,"DIV",{class:!0});var lt=v(Ge);f(lp.$$.fragment,lt),kk=o(lt),mb=i(lt,"P",{"data-svelte-h":!0}),$(mb)!=="svelte-q0ph7l"&&(mb.textContent=w9),Jk=o(lt),hb=i(lt,"P",{"data-svelte-h":!0}),$(hb)!=="svelte-1wlx860"&&(hb.innerHTML=v9),Tk=o(lt),gb=i(lt,"UL",{"data-svelte-h":!0}),$(gb)!=="svelte-1gu32p2"&&(gb.innerHTML=M9),Dk=o(lt),f(el.$$.fragment,lt),lt.forEach(p),Ik=o(Z),Ps=i(Z,"DIV",{class:!0});var zn=v(Ps);f(cp.$$.fragment,zn),Ck=o(zn),ub=i(zn,"P",{"data-svelte-h":!0}),$(ub)!=="svelte-h617tn"&&(ub.textContent=k9),Uk=o(zn),f(tl.$$.fragment,zn),zn.forEach(p),Zk=o(Z),wt=i(Z,"DIV",{class:!0});var At=v(wt);f(dp.$$.fragment,At),Fk=o(At),fb=i(At,"P",{"data-svelte-h":!0}),$(fb)!=="svelte-1qtckqx"&&(fb.textContent=J9),Rk=o(At),bb=i(At,"P",{"data-svelte-h":!0}),$(bb)!=="svelte-1fw89ol"&&(bb.textContent=T9),zk=o(At),f(sl.$$.fragment,At),At.forEach(p),Gk=o(Z),Ks=i(Z,"DIV",{class:!0});var Gn=v(Ks);f(ip.$$.fragment,Gn),Nk=o(Gn),_b=i(Gn,"P",{"data-svelte-h":!0}),$(_b)!=="svelte-1eegsg2"&&(_b.innerHTML=D9),Xk=o(Gn),f(al.$$.fragment,Gn),Gn.forEach(p),Vk=o(Z),me=i(Z,"DIV",{class:!0});var we=v(me);f(pp.$$.fragment,we),qk=o(we),xb=i(we,"P",{"data-svelte-h":!0}),$(xb)!=="svelte-15y7w3d"&&(xb.innerHTML=I9),Wk=o(we),$b=i(we,"P",{"data-svelte-h":!0}),$($b)!=="svelte-11tammr"&&($b.textContent=C9),Bk=o(we),yb=i(we,"P",{"data-svelte-h":!0}),$(yb)!=="svelte-5l7v64"&&(yb.innerHTML=U9),Qk=o(we),f(nl.$$.fragment,we),Ek=o(we),f(rl.$$.fragment,we),we.forEach(p),Hk=o(Z),Ne=i(Z,"DIV",{class:!0});var ct=v(Ne);f(mp.$$.fragment,ct),Lk=o(ct),jb=i(ct,"P",{"data-svelte-h":!0}),$(jb)!=="svelte-12ymtrf"&&(jb.innerHTML=Z9),Yk=o(ct),wb=i(ct,"P",{"data-svelte-h":!0}),$(wb)!=="svelte-ebmxuw"&&(wb.innerHTML=F9),Sk=o(ct),vb=i(ct,"P",{"data-svelte-h":!0}),$(vb)!=="svelte-1cqxkja"&&(vb.textContent=R9),Ak=o(ct),f(ol.$$.fragment,ct),ct.forEach(p),Pk=o(Z),Os=i(Z,"DIV",{class:!0});var Nn=v(Os);f(hp.$$.fragment,Nn),Kk=o(Nn),Mb=i(Nn,"P",{"data-svelte-h":!0}),$(Mb)!=="svelte-mf7sgr"&&(Mb.innerHTML=z9),Ok=o(Nn),f(ll.$$.fragment,Nn),Nn.forEach(p),eJ=o(Z),ea=i(Z,"DIV",{class:!0});var Xn=v(ea);f(gp.$$.fragment,Xn),tJ=o(Xn),kb=i(Xn,"P",{"data-svelte-h":!0}),$(kb)!=="svelte-3wtih7"&&(kb.innerHTML=G9),sJ=o(Xn),f(cl.$$.fragment,Xn),Xn.forEach(p),aJ=o(Z),ta=i(Z,"DIV",{class:!0});var Vn=v(ta);f(up.$$.fragment,Vn),nJ=o(Vn),Jb=i(Vn,"P",{"data-svelte-h":!0}),$(Jb)!=="svelte-c0oh6m"&&(Jb.innerHTML=N9),rJ=o(Vn),f(dl.$$.fragment,Vn),Vn.forEach(p),oJ=o(Z),sa=i(Z,"DIV",{class:!0});var qn=v(sa);f(fp.$$.fragment,qn),lJ=o(qn),Tb=i(qn,"P",{"data-svelte-h":!0}),$(Tb)!=="svelte-by60rf"&&(Tb.innerHTML=X9),cJ=o(qn),f(il.$$.fragment,qn),qn.forEach(p),dJ=o(Z),aa=i(Z,"DIV",{class:!0});var Wn=v(aa);f(bp.$$.fragment,Wn),iJ=o(Wn),Db=i(Wn,"P",{"data-svelte-h":!0}),$(Db)!=="svelte-u6y84o"&&(Db.innerHTML=V9),pJ=o(Wn),f(pl.$$.fragment,Wn),Wn.forEach(p),mJ=o(Z),na=i(Z,"DIV",{class:!0});var Bn=v(na);f(_p.$$.fragment,Bn),hJ=o(Bn),Ib=i(Bn,"P",{"data-svelte-h":!0}),$(Ib)!=="svelte-zpbb90"&&(Ib.innerHTML=q9),gJ=o(Bn),Cb=i(Bn,"P",{"data-svelte-h":!0}),$(Cb)!=="svelte-o3fvxz"&&(Cb.innerHTML=W9),Bn.forEach(p),Z.forEach(p),_2=o(n),Ub=i(n,"A",{id:!0}),v(Ub).forEach(p),x2=o(n),f(xp.$$.fragment,n),$2=o(n),$p=i(n,"P",{"data-svelte-h":!0}),$($p)!=="svelte-wktsqz"&&($p.innerHTML=B9),y2=o(n),F=i(n,"DIV",{class:!0});var R=v(F);f(yp.$$.fragment,R),uJ=o(R),Zb=i(R,"P",{"data-svelte-h":!0}),$(Zb)!=="svelte-klv7m9"&&(Zb.textContent=Q9),fJ=o(R),vt=i(R,"DIV",{class:!0});var Pt=v(vt);f(jp.$$.fragment,Pt),bJ=o(Pt),Fb=i(Pt,"P",{"data-svelte-h":!0}),$(Fb)!=="svelte-11un0dh"&&(Fb.textContent=E9),_J=o(Pt),f(ml.$$.fragment,Pt),xJ=o(Pt),f(hl.$$.fragment,Pt),Pt.forEach(p),$J=o(R),ra=i(R,"DIV",{class:!0});var Qn=v(ra);f(wp.$$.fragment,Qn),yJ=o(Qn),Rb=i(Qn,"P",{"data-svelte-h":!0}),$(Rb)!=="svelte-1ayy7iq"&&(Rb.textContent=H9),jJ=o(Qn),f(gl.$$.fragment,Qn),Qn.forEach(p),wJ=o(R),oa=i(R,"DIV",{class:!0});var En=v(oa);f(vp.$$.fragment,En),vJ=o(En),zb=i(En,"P",{"data-svelte-h":!0}),$(zb)!=="svelte-1r6z74q"&&(zb.textContent=L9),MJ=o(En),f(ul.$$.fragment,En),En.forEach(p),kJ=o(R),la=i(R,"DIV",{class:!0});var Hn=v(la);f(Mp.$$.fragment,Hn),JJ=o(Hn),Gb=i(Hn,"P",{"data-svelte-h":!0}),$(Gb)!=="svelte-6q86ko"&&(Gb.textContent=Y9),TJ=o(Hn),f(fl.$$.fragment,Hn),Hn.forEach(p),DJ=o(R),ca=i(R,"DIV",{class:!0});var Ln=v(ca);f(kp.$$.fragment,Ln),IJ=o(Ln),Nb=i(Ln,"P",{"data-svelte-h":!0}),$(Nb)!=="svelte-gdaajq"&&(Nb.textContent=S9),CJ=o(Ln),f(bl.$$.fragment,Ln),Ln.forEach(p),UJ=o(R),Xb=i(R,"DIV",{class:!0});var A$=v(Xb);f(Jp.$$.fragment,A$),A$.forEach(p),ZJ=o(R),_l=i(R,"DIV",{class:!0});var Zh=v(_l);f(Tp.$$.fragment,Zh),FJ=o(Zh),Vb=i(Zh,"P",{"data-svelte-h":!0}),$(Vb)!=="svelte-3yz5m3"&&(Vb.innerHTML=A9),Zh.forEach(p),RJ=o(R),Xe=i(R,"DIV",{class:!0});var dt=v(Xe);f(Dp.$$.fragment,dt),zJ=o(dt),qb=i(dt,"P",{"data-svelte-h":!0}),$(qb)!=="svelte-1oo88ic"&&(qb.textContent=P9),GJ=o(dt),Wb=i(dt,"P",{"data-svelte-h":!0}),$(Wb)!=="svelte-nw1g8z"&&(Wb.innerHTML=K9),NJ=o(dt),Bb=i(dt,"UL",{"data-svelte-h":!0}),$(Bb)!=="svelte-1cfjt5y"&&(Bb.innerHTML=O9),XJ=o(dt),f(xl.$$.fragment,dt),dt.forEach(p),VJ=o(R),da=i(R,"DIV",{class:!0});var Yn=v(da);f(Ip.$$.fragment,Yn),qJ=o(Yn),Qb=i(Yn,"P",{"data-svelte-h":!0}),$(Qb)!=="svelte-l4yuic"&&(Qb.textContent=e4),WJ=o(Yn),f($l.$$.fragment,Yn),Yn.forEach(p),BJ=o(R),ia=i(R,"DIV",{class:!0});var Sn=v(ia);f(Cp.$$.fragment,Sn),QJ=o(Sn),Eb=i(Sn,"P",{"data-svelte-h":!0}),$(Eb)!=="svelte-nd2ell"&&(Eb.textContent=t4),EJ=o(Sn),f(yl.$$.fragment,Sn),Sn.forEach(p),HJ=o(R),he=i(R,"DIV",{class:!0});var ve=v(he);f(Up.$$.fragment,ve),LJ=o(ve),Hb=i(ve,"P",{"data-svelte-h":!0}),$(Hb)!=="svelte-1t555q9"&&(Hb.textContent=s4),YJ=o(ve),Lb=i(ve,"P",{"data-svelte-h":!0}),$(Lb)!=="svelte-1bfz8uc"&&(Lb.innerHTML=a4),SJ=o(ve),Yb=i(ve,"P",{"data-svelte-h":!0}),$(Yb)!=="svelte-1imimjw"&&(Yb.innerHTML=n4),AJ=o(ve),Sb=i(ve,"P",{"data-svelte-h":!0}),$(Sb)!=="svelte-g7dz1l"&&(Sb.innerHTML=r4),PJ=o(ve),f(jl.$$.fragment,ve),ve.forEach(p),KJ=o(R),pa=i(R,"DIV",{class:!0});var An=v(pa);f(Zp.$$.fragment,An),OJ=o(An),Ab=i(An,"P",{"data-svelte-h":!0}),$(Ab)!=="svelte-1ph6phw"&&(Ab.innerHTML=o4),eT=o(An),f(wl.$$.fragment,An),An.forEach(p),tT=o(R),ma=i(R,"DIV",{class:!0});var Pn=v(ma);f(Fp.$$.fragment,Pn),sT=o(Pn),Pb=i(Pn,"P",{"data-svelte-h":!0}),$(Pb)!=="svelte-13jsk9f"&&(Pb.innerHTML=l4),aT=o(Pn),f(vl.$$.fragment,Pn),Pn.forEach(p),nT=o(R),ae=i(R,"DIV",{class:!0});var ce=v(ae);f(Rp.$$.fragment,ce),rT=o(ce),Kb=i(ce,"P",{"data-svelte-h":!0}),$(Kb)!=="svelte-11t5l9h"&&(Kb.textContent=c4),oT=o(ce),Ob=i(ce,"P",{"data-svelte-h":!0}),$(Ob)!=="svelte-fyok9w"&&(Ob.textContent=d4),lT=o(ce),e_=i(ce,"OL",{"data-svelte-h":!0}),$(e_)!=="svelte-11q9ndv"&&(e_.innerHTML=i4),cT=o(ce),f(Ml.$$.fragment,ce),dT=o(ce),f(kl.$$.fragment,ce),iT=o(ce),f(Jl.$$.fragment,ce),ce.forEach(p),pT=o(R),ne=i(R,"DIV",{class:!0});var de=v(ne);f(zp.$$.fragment,de),mT=o(de),t_=i(de,"P",{"data-svelte-h":!0}),$(t_)!=="svelte-1qoujby"&&(t_.textContent=p4),hT=o(de),s_=i(de,"P",{"data-svelte-h":!0}),$(s_)!=="svelte-fyok9w"&&(s_.textContent=m4),gT=o(de),a_=i(de,"OL",{"data-svelte-h":!0}),$(a_)!=="svelte-11q9ndv"&&(a_.innerHTML=h4),uT=o(de),f(Tl.$$.fragment,de),fT=o(de),f(Dl.$$.fragment,de),bT=o(de),f(Il.$$.fragment,de),de.forEach(p),_T=o(R),Cl=i(R,"DIV",{class:!0});var Fh=v(Cl);f(Gp.$$.fragment,Fh),xT=o(Fh),n_=i(Fh,"P",{"data-svelte-h":!0}),$(n_)!=="svelte-1dpaqc5"&&(n_.innerHTML=g4),Fh.forEach(p),$T=o(R),Ul=i(R,"DIV",{class:!0});var Rh=v(Ul);f(Np.$$.fragment,Rh),yT=o(Rh),r_=i(Rh,"P",{"data-svelte-h":!0}),$(r_)!=="svelte-3wiv0"&&(r_.innerHTML=u4),Rh.forEach(p),jT=o(R),o_=i(R,"DIV",{class:!0});var P$=v(o_);f(Xp.$$.fragment,P$),P$.forEach(p),wT=o(R),l_=i(R,"DIV",{class:!0});var K$=v(l_);f(Vp.$$.fragment,K$),K$.forEach(p),vT=o(R),c_=i(R,"DIV",{class:!0});var O$=v(c_);f(qp.$$.fragment,O$),O$.forEach(p),MT=o(R),d_=i(R,"DIV",{class:!0});var e2=v(d_);f(Wp.$$.fragment,e2),e2.forEach(p),kT=o(R),i_=i(R,"DIV",{class:!0});var t2=v(i_);f(Bp.$$.fragment,t2),t2.forEach(p),JT=o(R),p_=i(R,"DIV",{class:!0});var s2=v(p_);f(Qp.$$.fragment,s2),s2.forEach(p),TT=o(R),m_=i(R,"DIV",{class:!0});var a2=v(m_);f(Ep.$$.fragment,a2),a2.forEach(p),DT=o(R),h_=i(R,"DIV",{class:!0});var n2=v(h_);f(Hp.$$.fragment,n2),n2.forEach(p),IT=o(R),g_=i(R,"DIV",{class:!0});var r2=v(g_);f(Lp.$$.fragment,r2),r2.forEach(p),CT=o(R),u_=i(R,"DIV",{class:!0});var mF=v(u_);f(Yp.$$.fragment,mF),mF.forEach(p),UT=o(R),f_=i(R,"DIV",{class:!0});var hF=v(f_);f(Sp.$$.fragment,hF),hF.forEach(p),ZT=o(R),b_=i(R,"DIV",{class:!0});var gF=v(b_);f(Ap.$$.fragment,gF),gF.forEach(p),FT=o(R),__=i(R,"DIV",{class:!0});var uF=v(__);f(Pp.$$.fragment,uF),uF.forEach(p),R.forEach(p),j2=o(n),f(Kp.$$.fragment,n),w2=o(n),Op=i(n,"P",{"data-svelte-h":!0}),$(Op)!=="svelte-bcebso"&&(Op.innerHTML=f4),v2=o(n),B=i(n,"DIV",{class:!0});var S=v(B);f(em.$$.fragment,S),RT=o(S),Ve=i(S,"DIV",{class:!0});var Ca=v(Ve);f(tm.$$.fragment,Ca),zT=o(Ca),x_=i(Ca,"P",{"data-svelte-h":!0}),$(x_)!=="svelte-1trckff"&&(x_.textContent=b4),GT=o(Ca),$_=i(Ca,"P",{"data-svelte-h":!0}),$($_)!=="svelte-nw1g8z"&&($_.innerHTML=_4),NT=o(Ca),y_=i(Ca,"UL",{"data-svelte-h":!0}),$(y_)!=="svelte-sdrr7i"&&(y_.innerHTML=x4),XT=o(Ca),f(Zl.$$.fragment,Ca),Ca.forEach(p),VT=o(S),ha=i(S,"DIV",{class:!0});var h$=v(ha);f(sm.$$.fragment,h$),qT=o(h$),j_=i(h$,"P",{"data-svelte-h":!0}),$(j_)!=="svelte-17cfhcv"&&(j_.textContent=$4),WT=o(h$),f(Fl.$$.fragment,h$),h$.forEach(p),BT=o(S),ge=i(S,"DIV",{class:!0});var Dt=v(ge);f(am.$$.fragment,Dt),QT=o(Dt),w_=i(Dt,"P",{"data-svelte-h":!0}),$(w_)!=="svelte-1hiiixb"&&(w_.textContent=y4),ET=o(Dt),v_=i(Dt,"P",{"data-svelte-h":!0}),$(v_)!=="svelte-1hbfiyb"&&(v_.textContent=j4),HT=o(Dt),M_=i(Dt,"P",{"data-svelte-h":!0}),$(M_)!=="svelte-1imimjw"&&(M_.innerHTML=w4),LT=o(Dt),k_=i(Dt,"P",{"data-svelte-h":!0}),$(k_)!=="svelte-gcj2hu"&&(k_.innerHTML=v4),YT=o(Dt),f(Rl.$$.fragment,Dt),Dt.forEach(p),ST=o(S),ga=i(S,"DIV",{class:!0});var g$=v(ga);f(nm.$$.fragment,g$),AT=o(g$),J_=i(g$,"P",{"data-svelte-h":!0}),$(J_)!=="svelte-1xu5p6u"&&(J_.textContent=M4),PT=o(g$),f(zl.$$.fragment,g$),g$.forEach(p),KT=o(S),ua=i(S,"DIV",{class:!0});var u$=v(ua);f(rm.$$.fragment,u$),OT=o(u$),T_=i(u$,"P",{"data-svelte-h":!0}),$(T_)!=="svelte-1wrj59"&&(T_.textContent=k4),eD=o(u$),f(Gl.$$.fragment,u$),u$.forEach(p),tD=o(S),fa=i(S,"DIV",{class:!0});var f$=v(fa);f(om.$$.fragment,f$),sD=o(f$),D_=i(f$,"P",{"data-svelte-h":!0}),$(D_)!=="svelte-xf9m5z"&&(D_.textContent=J4),aD=o(f$),f(Nl.$$.fragment,f$),f$.forEach(p),nD=o(S),ba=i(S,"DIV",{class:!0});var b$=v(ba);f(lm.$$.fragment,b$),rD=o(b$),I_=i(b$,"P",{"data-svelte-h":!0}),$(I_)!=="svelte-1q2nooa"&&(I_.textContent=T4),oD=o(b$),f(Xl.$$.fragment,b$),b$.forEach(p),lD=o(S),_a=i(S,"DIV",{class:!0});var _$=v(_a);f(cm.$$.fragment,_$),cD=o(_$),C_=i(_$,"P",{"data-svelte-h":!0}),$(C_)!=="svelte-1bvysnr"&&(C_.textContent=D4),dD=o(_$),f(Vl.$$.fragment,_$),_$.forEach(p),iD=o(S),xa=i(S,"DIV",{class:!0});var x$=v(xa);f(dm.$$.fragment,x$),pD=o(x$),U_=i(x$,"P",{"data-svelte-h":!0}),$(U_)!=="svelte-1e299r"&&(U_.textContent=I4),mD=o(x$),f(ql.$$.fragment,x$),x$.forEach(p),hD=o(S),$a=i(S,"DIV",{class:!0});var $$=v($a);f(im.$$.fragment,$$),gD=o($$),Z_=i($$,"P",{"data-svelte-h":!0}),$(Z_)!=="svelte-1lkkmts"&&(Z_.textContent=C4),uD=o($$),f(Wl.$$.fragment,$$),$$.forEach(p),S.forEach(p),M2=o(n),f(pm.$$.fragment,n),k2=o(n),z=i(n,"DIV",{class:!0});var V=v(z);f(mm.$$.fragment,V),fD=o(V),F_=i(V,"P",{"data-svelte-h":!0}),$(F_)!=="svelte-1jylqo6"&&(F_.textContent=U4),bD=o(V),R_=i(V,"P",{"data-svelte-h":!0}),$(R_)!=="svelte-1709x5u"&&(R_.innerHTML=Z4),_D=o(V),z_=i(V,"P",{"data-svelte-h":!0}),$(z_)!=="svelte-kq6msj"&&(z_.innerHTML=F4),xD=o(V),ee=i(V,"UL",{});var ue=v(ee);G_=i(ue,"LI",{"data-svelte-h":!0}),$(G_)!=="svelte-1i1qyy7"&&(G_.innerHTML=R4),$D=o(ue),N_=i(ue,"LI",{"data-svelte-h":!0}),$(N_)!=="svelte-1ptcomm"&&(N_.innerHTML=z4),yD=o(ue),X_=i(ue,"LI",{"data-svelte-h":!0}),$(X_)!=="svelte-90jjw2"&&(X_.innerHTML=G4),jD=o(ue),hm=i(ue,"LI",{});var K2=v(hm);V_=i(K2,"P",{"data-svelte-h":!0}),$(V_)!=="svelte-1pftc7l"&&(V_.innerHTML=N4),wD=o(K2),f(Bl.$$.fragment,K2),K2.forEach(p),vD=o(ue),q_=i(ue,"LI",{"data-svelte-h":!0}),$(q_)!=="svelte-17u81y6"&&(q_.innerHTML=X4),MD=o(ue),W_=i(ue,"LI",{"data-svelte-h":!0}),$(W_)!=="svelte-12m9rae"&&(W_.innerHTML=V4),kD=o(ue),B_=i(ue,"LI",{"data-svelte-h":!0}),$(B_)!=="svelte-hqgghh"&&(B_.innerHTML=q4),JD=o(ue),Q_=i(ue,"LI",{"data-svelte-h":!0}),$(Q_)!=="svelte-jkh6tf"&&(Q_.innerHTML=W4),ue.forEach(p),TD=o(V),ya=i(V,"DIV",{class:!0});var y$=v(ya);f(gm.$$.fragment,y$),DD=o(y$),E_=i(y$,"P",{"data-svelte-h":!0}),$(E_)!=="svelte-txkpze"&&(E_.innerHTML=B4),ID=o(y$),f(Ql.$$.fragment,y$),y$.forEach(p),CD=o(V),El=i(V,"DIV",{class:!0});var O2=v(El);f(um.$$.fragment,O2),UD=o(O2),H_=i(O2,"P",{"data-svelte-h":!0}),$(H_)!=="svelte-176mzim"&&(H_.textContent=Q4),O2.forEach(p),ZD=o(V),Hl=i(V,"DIV",{class:!0});var ey=v(Hl);f(fm.$$.fragment,ey),FD=o(ey),L_=i(ey,"P",{"data-svelte-h":!0}),$(L_)!=="svelte-1dh8kdw"&&(L_.textContent=E4),ey.forEach(p),RD=o(V),Ll=i(V,"DIV",{class:!0});var ty=v(Ll);f(bm.$$.fragment,ty),zD=o(ty),Y_=i(ty,"P",{"data-svelte-h":!0}),$(Y_)!=="svelte-19iv1kc"&&(Y_.textContent=H4),ty.forEach(p),GD=o(V),Yl=i(V,"DIV",{class:!0});var sy=v(Yl);f(_m.$$.fragment,sy),ND=o(sy),S_=i(sy,"P",{"data-svelte-h":!0}),$(S_)!=="svelte-1ui1q6e"&&(S_.textContent=L4),sy.forEach(p),XD=o(V),Sl=i(V,"DIV",{class:!0});var ay=v(Sl);f(xm.$$.fragment,ay),VD=o(ay),A_=i(ay,"P",{"data-svelte-h":!0}),$(A_)!=="svelte-1updbyg"&&(A_.textContent=Y4),ay.forEach(p),qD=o(V),Al=i(V,"DIV",{class:!0});var ny=v(Al);f($m.$$.fragment,ny),WD=o(ny),P_=i(ny,"P",{"data-svelte-h":!0}),$(P_)!=="svelte-fiz4kg"&&(P_.textContent=S4),ny.forEach(p),BD=o(V),Mt=i(V,"DIV",{class:!0});var Rc=v(Mt);f(ym.$$.fragment,Rc),QD=o(Rc),K_=i(Rc,"P",{"data-svelte-h":!0}),$(K_)!=="svelte-1wcuag3"&&(K_.innerHTML=A4),ED=o(Rc),O_=i(Rc,"P",{"data-svelte-h":!0}),$(O_)!=="svelte-1o74wxf"&&(O_.innerHTML=P4),HD=o(Rc),f(Pl.$$.fragment,Rc),Rc.forEach(p),LD=o(V),ja=i(V,"DIV",{class:!0});var j$=v(ja);f(jm.$$.fragment,j$),YD=o(j$),ex=i(j$,"P",{"data-svelte-h":!0}),$(ex)!=="svelte-10cu9xt"&&(ex.innerHTML=K4),SD=o(j$),tx=i(j$,"P",{"data-svelte-h":!0}),$(tx)!=="svelte-qsxzv8"&&(tx.textContent=O4),j$.forEach(p),AD=o(V),qe=i(V,"DIV",{class:!0});var Ua=v(qe);f(wm.$$.fragment,Ua),PD=o(Ua),sx=i(Ua,"P",{"data-svelte-h":!0}),$(sx)!=="svelte-4nqzr7"&&(sx.innerHTML=e3),KD=o(Ua),ax=i(Ua,"P",{"data-svelte-h":!0}),$(ax)!=="svelte-pi4np6"&&(ax.innerHTML=t3),OD=o(Ua),nx=i(Ua,"P",{"data-svelte-h":!0}),$(nx)!=="svelte-1yubjw9"&&(nx.innerHTML=s3),e7=o(Ua),f(Kl.$$.fragment,Ua),Ua.forEach(p),t7=o(V),kt=i(V,"DIV",{class:!0});var zc=v(kt);f(vm.$$.fragment,zc),s7=o(zc),rx=i(zc,"P",{"data-svelte-h":!0}),$(rx)!=="svelte-1cygjyf"&&(rx.innerHTML=a3),a7=o(zc),ox=i(zc,"P",{"data-svelte-h":!0}),$(ox)!=="svelte-whtedo"&&(ox.textContent=n3),n7=o(zc),f(Ol.$$.fragment,zc),zc.forEach(p),V.forEach(p),J2=o(n),Ut=i(n,"DIV",{class:!0});var w$=v(Ut);f(Mm.$$.fragment,w$),r7=o(w$),lx=i(w$,"P",{"data-svelte-h":!0}),$(lx)!=="svelte-1cxss91"&&(lx.textContent=r3),o7=o(w$),f(ec.$$.fragment,w$),w$.forEach(p),T2=o(n),Y=i(n,"DIV",{class:!0});var re=v(Y);f(km.$$.fragment,re),l7=o(re),cx=i(re,"P",{"data-svelte-h":!0}),$(cx)!=="svelte-1xnvn4g"&&(cx.textContent=o3),c7=o(re),dx=i(re,"P",{"data-svelte-h":!0}),$(dx)!=="svelte-o3wlni"&&(dx.innerHTML=l3),d7=o(re),ix=i(re,"UL",{"data-svelte-h":!0}),$(ix)!=="svelte-c26y92"&&(ix.innerHTML=c3),i7=o(re),px=i(re,"P",{"data-svelte-h":!0}),$(px)!=="svelte-15ivgce"&&(px.textContent=d3),p7=o(re),f(tc.$$.fragment,re),m7=o(re),wa=i(re,"DIV",{class:!0});var v$=v(wa);f(Jm.$$.fragment,v$),h7=o(v$),mx=i(v$,"P",{"data-svelte-h":!0}),$(mx)!=="svelte-156pqhu"&&(mx.innerHTML=i3),g7=o(v$),hx=i(v$,"UL",{"data-svelte-h":!0}),$(hx)!=="svelte-1d5lbk6"&&(hx.innerHTML=p3),v$.forEach(p),u7=o(re),Jt=i(re,"DIV",{class:!0});var Gc=v(Jt);f(Tm.$$.fragment,Gc),f7=o(Gc),gx=i(Gc,"P",{"data-svelte-h":!0}),$(gx)!=="svelte-18p6gyr"&&(gx.innerHTML=m3),b7=o(Gc),ux=i(Gc,"P",{"data-svelte-h":!0}),$(ux)!=="svelte-1axj24d"&&(ux.innerHTML=h3),_7=o(Gc),f(sc.$$.fragment,Gc),Gc.forEach(p),x7=o(re),va=i(re,"DIV",{class:!0});var M$=v(va);f(Dm.$$.fragment,M$),$7=o(M$),fx=i(M$,"P",{"data-svelte-h":!0}),$(fx)!=="svelte-bn939v"&&(fx.innerHTML=g3),y7=o(M$),f(ac.$$.fragment,M$),M$.forEach(p),re.forEach(p),D2=o(n),Be=i(n,"DIV",{class:!0});var Nc=v(Be);f(Im.$$.fragment,Nc),j7=o(Nc),bx=i(Nc,"P",{"data-svelte-h":!0}),$(bx)!=="svelte-106ngqw"&&(bx.innerHTML=u3),w7=o(Nc),_x=i(Nc,"UL",{"data-svelte-h":!0}),$(_x)!=="svelte-vd1z00"&&(_x.innerHTML=f3),v7=o(Nc),f(nc.$$.fragment,Nc),Nc.forEach(p),I2=o(n),Qe=i(n,"DIV",{class:!0});var Xc=v(Qe);f(Cm.$$.fragment,Xc),M7=o(Xc),xx=i(Xc,"P",{"data-svelte-h":!0}),$(xx)!=="svelte-1vyljrc"&&(xx.innerHTML=b3),k7=o(Xc),f(rc.$$.fragment,Xc),J7=o(Xc),oc=i(Xc,"DIV",{class:!0});var ry=v(oc);f(Um.$$.fragment,ry),T7=o(ry),$x=i(ry,"P",{"data-svelte-h":!0}),$($x)!=="svelte-m6djit"&&($x.textContent=_3),ry.forEach(p),Xc.forEach(p),C2=o(n),Ee=i(n,"DIV",{class:!0});var Vc=v(Ee);f(Zm.$$.fragment,Vc),D7=o(Vc),yx=i(Vc,"P",{"data-svelte-h":!0}),$(yx)!=="svelte-icooms"&&(yx.innerHTML=x3),I7=o(Vc),f(lc.$$.fragment,Vc),C7=o(Vc),cc=i(Vc,"DIV",{class:!0});var oy=v(cc);f(Fm.$$.fragment,oy),U7=o(oy),jx=i(oy,"P",{"data-svelte-h":!0}),$(jx)!=="svelte-192kpca"&&(jx.textContent=$3),oy.forEach(p),Vc.forEach(p),U2=o(n),Zt=i(n,"DIV",{class:!0});var k$=v(Zt);f(Rm.$$.fragment,k$),Z7=o(k$),wx=i(k$,"P",{"data-svelte-h":!0}),$(wx)!=="svelte-sflycm"&&(wx.textContent=y3),F7=o(k$),f(dc.$$.fragment,k$),k$.forEach(p),Z2=o(n),Ft=i(n,"DIV",{class:!0});var J$=v(Ft);f(zm.$$.fragment,J$),R7=o(J$),vx=i(J$,"P",{"data-svelte-h":!0}),$(vx)!=="svelte-54qrxk"&&(vx.textContent=j3),z7=o(J$),f(ic.$$.fragment,J$),J$.forEach(p),F2=o(n),Rt=i(n,"DIV",{class:!0});var T$=v(Rt);f(Gm.$$.fragment,T$),G7=o(T$),Mx=i(T$,"P",{"data-svelte-h":!0}),$(Mx)!=="svelte-8i2n0u"&&(Mx.textContent=w3),N7=o(T$),f(pc.$$.fragment,T$),T$.forEach(p),R2=o(n),zt=i(n,"DIV",{class:!0});var D$=v(zt);f(Nm.$$.fragment,D$),X7=o(D$),kx=i(D$,"P",{"data-svelte-h":!0}),$(kx)!=="svelte-apnj56"&&(kx.textContent=v3),V7=o(D$),f(mc.$$.fragment,D$),D$.forEach(p),z2=o(n),E=i(n,"DIV",{class:!0});var K=v(E);f(Xm.$$.fragment,K),q7=o(K),Jx=i(K,"P",{"data-svelte-h":!0}),$(Jx)!=="svelte-1w1fc68"&&(Jx.innerHTML=M3),W7=o(K),Tx=i(K,"P",{"data-svelte-h":!0}),$(Tx)!=="svelte-16tyu3i"&&(Tx.textContent=k3),B7=o(K),Dx=i(K,"UL",{"data-svelte-h":!0}),$(Dx)!=="svelte-1400qwt"&&(Dx.innerHTML=J3),Q7=o(K),f(hc.$$.fragment,K),E7=o(K),Ma=i(K,"DIV",{class:!0});var I$=v(Ma);f(Vm.$$.fragment,I$),H7=o(I$),Ix=i(I$,"P",{"data-svelte-h":!0}),$(Ix)!=="svelte-1rqntss"&&(Ix.textContent=T3),L7=o(I$),Cx=i(I$,"UL",{"data-svelte-h":!0}),$(Cx)!=="svelte-11klihy"&&(Cx.innerHTML=D3),I$.forEach(p),Y7=o(K),gc=i(K,"DIV",{class:!0});var ly=v(gc);f(qm.$$.fragment,ly),S7=o(ly),Ux=i(ly,"P",{"data-svelte-h":!0}),$(Ux)!=="svelte-12gxlom"&&(Ux.textContent=I3),ly.forEach(p),A7=o(K),uc=i(K,"DIV",{class:!0});var cy=v(uc);f(Wm.$$.fragment,cy),P7=o(cy),Zx=i(cy,"P",{"data-svelte-h":!0}),$(Zx)!=="svelte-tijd25"&&(Zx.textContent=C3),cy.forEach(p),K7=o(K),fc=i(K,"DIV",{class:!0});var dy=v(fc);f(Bm.$$.fragment,dy),O7=o(dy),Fx=i(dy,"P",{"data-svelte-h":!0}),$(Fx)!=="svelte-fiz4kg"&&(Fx.textContent=U3),dy.forEach(p),eI=o(K),bc=i(K,"DIV",{class:!0});var iy=v(bc);f(Qm.$$.fragment,iy),tI=o(iy),Rx=i(iy,"P",{"data-svelte-h":!0}),$(Rx)!=="svelte-im5jl2"&&(Rx.textContent=Z3),iy.forEach(p),K.forEach(p),G2=o(n),H=i(n,"DIV",{class:!0});var O=v(H);f(Em.$$.fragment,O),sI=o(O),zx=i(O,"P",{"data-svelte-h":!0}),$(zx)!=="svelte-1y1aqwq"&&(zx.innerHTML=F3),aI=o(O),Gx=i(O,"P",{"data-svelte-h":!0}),$(Gx)!=="svelte-bt262r"&&(Gx.textContent=R3),nI=o(O),Nx=i(O,"UL",{"data-svelte-h":!0}),$(Nx)!=="svelte-hx3bug"&&(Nx.innerHTML=z3),rI=o(O),f(_c.$$.fragment,O),oI=o(O),ka=i(O,"DIV",{class:!0});var C$=v(ka);f(Hm.$$.fragment,C$),lI=o(C$),Xx=i(C$,"P",{"data-svelte-h":!0}),$(Xx)!=="svelte-1x9lbim"&&(Xx.textContent=G3),cI=o(C$),Vx=i(C$,"UL",{"data-svelte-h":!0}),$(Vx)!=="svelte-1aojjd7"&&(Vx.innerHTML=N3),C$.forEach(p),dI=o(O),xc=i(O,"DIV",{class:!0});var py=v(xc);f(Lm.$$.fragment,py),iI=o(py),qx=i(py,"P",{"data-svelte-h":!0}),$(qx)!=="svelte-36ujp2"&&(qx.textContent=X3),py.forEach(p),pI=o(O),$c=i(O,"DIV",{class:!0});var my=v($c);f(Ym.$$.fragment,my),mI=o(my),Wx=i(my,"P",{"data-svelte-h":!0}),$(Wx)!=="svelte-1f418ti"&&(Wx.textContent=V3),my.forEach(p),hI=o(O),yc=i(O,"DIV",{class:!0});var hy=v(yc);f(Sm.$$.fragment,hy),gI=o(hy),Bx=i(hy,"P",{"data-svelte-h":!0}),$(Bx)!=="svelte-fiz4kg"&&(Bx.textContent=q3),hy.forEach(p),uI=o(O),jc=i(O,"DIV",{class:!0});var gy=v(jc);f(Am.$$.fragment,gy),fI=o(gy),Qx=i(gy,"P",{"data-svelte-h":!0}),$(Qx)!=="svelte-1lmy675"&&(Qx.textContent=W3),gy.forEach(p),O.forEach(p),N2=o(n),f(Pm.$$.fragment,n),X2=o(n),le=i(n,"DIV",{class:!0});var It=v(le);f(Km.$$.fragment,It),bI=o(It),Ex=i(It,"P",{"data-svelte-h":!0}),$(Ex)!=="svelte-6i8lom"&&(Ex.textContent=B3),_I=o(It),Hx=i(It,"P",{"data-svelte-h":!0}),$(Hx)!=="svelte-1b0dter"&&(Hx.innerHTML=Q3),xI=o(It),Lx=i(It,"P",{"data-svelte-h":!0}),$(Lx)!=="svelte-i6tnp8"&&(Lx.textContent=E3),$I=o(It),Ja=i(It,"DIV",{class:!0});var U$=v(Ja);f(Om.$$.fragment,U$),yI=o(U$),Yx=i(U$,"P",{"data-svelte-h":!0}),$(Yx)!=="svelte-1pwttzg"&&(Yx.innerHTML=H3),jI=o(U$),f(wc.$$.fragment,U$),U$.forEach(p),wI=o(It),Ta=i(It,"DIV",{class:!0});var Z$=v(Ta);f(eh.$$.fragment,Z$),vI=o(Z$),Sx=i(Z$,"P",{"data-svelte-h":!0}),$(Sx)!=="svelte-x6c49m"&&(Sx.innerHTML=L3),MI=o(Z$),f(vc.$$.fragment,Z$),Z$.forEach(p),It.forEach(p),V2=o(n),f(th.$$.fragment,n),q2=o(n),sh=i(n,"P",{"data-svelte-h":!0}),$(sh)!=="svelte-qj7zv1"&&(sh.innerHTML=Y3),W2=o(n),te=i(n,"DIV",{class:!0});var We=v(te);f(ah.$$.fragment,We),kI=o(We),Ax=i(We,"P",{"data-svelte-h":!0}),$(Ax)!=="svelte-l5b5u6"&&(Ax.textContent=S3),JI=o(We),f(Mc.$$.fragment,We),TI=o(We),Da=i(We,"DIV",{class:!0});var F$=v(Da);f(nh.$$.fragment,F$),DI=o(F$),Px=i(F$,"P",{"data-svelte-h":!0}),$(Px)!=="svelte-fhs97q"&&(Px.textContent=A3),II=o(F$),f(kc.$$.fragment,F$),F$.forEach(p),CI=o(We),Ia=i(We,"DIV",{class:!0});var R$=v(Ia);f(rh.$$.fragment,R$),UI=o(R$),Kx=i(R$,"P",{"data-svelte-h":!0}),$(Kx)!=="svelte-ha5qna"&&(Kx.textContent=P3),ZI=o(R$),f(Jc.$$.fragment,R$),R$.forEach(p),FI=o(We),Tt=i(We,"DIV",{class:!0});var qc=v(Tt);f(oh.$$.fragment,qc),RI=o(qc),Ox=i(qc,"P",{"data-svelte-h":!0}),$(Ox)!=="svelte-1iyjhu5"&&(Ox.textContent=K3),zI=o(qc),e$=i(qc,"P",{"data-svelte-h":!0}),$(e$)!=="svelte-yrjmzb"&&(e$.textContent=O3),GI=o(qc),f(Tc.$$.fragment,qc),qc.forEach(p),NI=o(We),Dc=i(We,"DIV",{class:!0});var uy=v(Dc);f(lh.$$.fragment,uy),XI=o(uy),t$=i(uy,"P",{"data-svelte-h":!0}),$(t$)!=="svelte-9mag6f"&&(t$.textContent=eF),uy.forEach(p),We.forEach(p),B2=o(n),f(ch.$$.fragment,n),Q2=o(n),N=i(n,"DIV",{class:!0});var W=v(N);f(dh.$$.fragment,W),VI=o(W),s$=i(W,"P",{"data-svelte-h":!0}),$(s$)!=="svelte-h9renl"&&(s$.innerHTML=tF),qI=o(W),a$=i(W,"P",{"data-svelte-h":!0}),$(a$)!=="svelte-1ypky5f"&&(a$.innerHTML=sF),WI=o(W),n$=i(W,"P",{"data-svelte-h":!0}),$(n$)!=="svelte-kvfsh7"&&(n$.textContent=aF),BI=o(W),r$=i(W,"P",{"data-svelte-h":!0}),$(r$)!=="svelte-1lryxbc"&&(r$.textContent=nF),QI=o(W),f(Ic.$$.fragment,W),EI=o(W),o$=i(W,"P",{"data-svelte-h":!0}),$(o$)!=="svelte-wn2h8a"&&(o$.innerHTML=rF),HI=o(W),f(Cc.$$.fragment,W),LI=o(W),l$=i(W,"P",{"data-svelte-h":!0}),$(l$)!=="svelte-dj179w"&&(l$.innerHTML=oF),YI=o(W),f(Uc.$$.fragment,W),SI=o(W),c$=i(W,"P",{"data-svelte-h":!0}),$(c$)!=="svelte-ozahqy"&&(c$.innerHTML=lF),AI=o(W),f(Zc.$$.fragment,W),PI=o(W),d$=i(W,"P",{"data-svelte-h":!0}),$(d$)!=="svelte-1nsb1lc"&&(d$.innerHTML=cF),KI=o(W),f(Fc.$$.fragment,W),W.forEach(p),E2=o(n),Za=i(n,"DIV",{class:!0});var fy=v(Za);f(ih.$$.fragment,fy),OI=o(fy),i$=i(fy,"P",{"data-svelte-h":!0}),$(i$)!=="svelte-1fdei67"&&(i$.innerHTML=dF),fy.forEach(p),H2=o(n),Fa=i(n,"DIV",{class:!0});var by=v(Fa);f(ph.$$.fragment,by),eC=o(by),p$=i(by,"P",{"data-svelte-h":!0}),$(p$)!=="svelte-1njqea8"&&(p$.innerHTML=iF),by.forEach(p),L2=o(n),f(mh.$$.fragment,n),Y2=o(n),Ra=i(n,"DIV",{class:!0});var _y=v(Ra);f(hh.$$.fragment,_y),tC=o(_y),m$=i(_y,"P",{"data-svelte-h":!0}),$(m$)!=="svelte-1cgdp3y"&&(m$.textContent=pF),_y.forEach(p),S2=o(n),f(gh.$$.fragment,n),A2=o(n),z$=i(n,"P",{}),v(z$).forEach(p),this.h()},h(){M(t,"name","hf:doc:metadata"),M(t,"content",Cz),M(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(it,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(pt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(sr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ar,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(rr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(es,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ts,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ss,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(as,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ns,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(rs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(os,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ls,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(cs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(gt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ds,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(is,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ps,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ms,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(hs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(gs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(us,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(vr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(fs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Cr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(bs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(_s,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(xs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M($s,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ys,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(js,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ws,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ar,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(vs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ms,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ks,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(_t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Js,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ts,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ds,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(mo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Is,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Cs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(go,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(uo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(fo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(bo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(_o,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(xo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M($o,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(yo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(jo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(wo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Xu,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Vu,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(qu,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Wu,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Bu,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Qu,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Eu,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Hu,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Lu,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Yu,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Su,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Au,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Pu,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Us,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Zs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Fs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Rs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M($t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(zs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Gs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(be,"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,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ns,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Xs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Vs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(qs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ws,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Bs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Qs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Es,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Hs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ls,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Lo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ys,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ss,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(As,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ps,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(wt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ks,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Os,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ea,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ta,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(sa,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(aa,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(na,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ub,"id","package_reference_features"),M(vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ra,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(oa,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(la,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ca,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Xb,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(_l,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(da,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ia,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(pa,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ma,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Cl,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ul,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(o_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(l_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(c_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(d_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(i_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(p_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(m_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(h_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(g_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(u_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(f_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(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(__,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ha,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ga,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ua,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(fa,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ba,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(_a,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(xa,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M($a,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(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(ya,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(El,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Hl,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ll,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Yl,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Sl,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Al,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ja,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(kt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(wa,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(va,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(oc,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(cc,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Zt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(zt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ma,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(gc,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(uc,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(fc,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(bc,"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,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ka,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(xc,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M($c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(yc,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(jc,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ja,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ta,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Da,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ia,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Dc,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Za,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Fa,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Ra,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(n,y){a(document.head,t),j(n,x,y),j(n,l,y),j(n,s,y),b(c,n,y),j(n,e,y),b(m,n,y),j(n,Q,y),j(n,q,y),b(Wc,q,null),a(q,xy),a(q,zh),a(q,$y),a(q,Gh),a(q,yy),a(q,Nh),a(q,jy),a(q,Me),b(Bc,Me,null),a(Me,wy),a(Me,Xh),a(Me,vy),a(Me,Vh),a(Me,My),a(Me,qh),a(Me,ky),b(Kn,Me,null),a(q,Jy),a(q,Ot),b(Qc,Ot,null),a(Ot,Ty),a(Ot,Wh),a(Ot,Dy),b(On,Ot,null),j(n,o2,y),b(Ec,n,y),j(n,l2,y),j(n,Hc,y),j(n,c2,y),j(n,J,y),b(Lc,J,null),a(J,Iy),a(J,Bh),a(J,Cy),a(J,it),b(Yc,it,null),a(it,Uy),a(it,Qh),a(it,Zy),b(Sc,it,null),a(it,Fy),b(er,it,null),a(J,Ry),a(J,pt),b(Ac,pt,null),a(pt,zy),a(pt,Eh),a(pt,Gy),b(Pc,pt,null),a(pt,Ny),b(tr,pt,null),a(J,Xy),a(J,sr),b(Kc,sr,null),a(sr,Vy),a(sr,Hh),a(J,qy),a(J,ar),b(Oc,ar,null),a(ar,Wy),a(ar,Lh),a(J,By),a(J,ke),b(ed,ke,null),a(ke,Qy),a(ke,Yh),a(ke,Ey),a(ke,Sh),a(ke,Hy),a(ke,Ah),a(ke,Ly),b(nr,ke,null),a(J,Yy),a(J,rr),b(td,rr,null),a(rr,Sy),a(rr,Ph),a(J,Ay),a(J,mt),b(sd,mt,null),a(mt,Py),a(mt,Kh),a(mt,Ky),b(or,mt,null),a(mt,Oy),b(lr,mt,null),a(J,e1),a(J,es),b(ad,es,null),a(es,t1),a(es,Oh),a(es,s1),b(cr,es,null),a(J,a1),a(J,ts),b(nd,ts,null),a(ts,n1),a(ts,eg),a(ts,r1),b(dr,ts,null),a(J,o1),a(J,ss),b(rd,ss,null),a(ss,l1),a(ss,tg),a(ss,c1),b(ir,ss,null),a(J,d1),a(J,as),b(od,as,null),a(as,i1),a(as,sg),a(as,p1),b(pr,as,null),a(J,m1),a(J,ns),b(ld,ns,null),a(ns,h1),a(ns,ag),a(ns,g1),b(mr,ns,null),a(J,u1),a(J,rs),b(cd,rs,null),a(rs,f1),a(rs,ng),a(rs,b1),b(hr,rs,null),a(J,_1),a(J,ht),b(dd,ht,null),a(ht,x1),a(ht,rg),a(ht,$1),a(ht,og),a(ht,y1),b(gr,ht,null),a(J,j1),a(J,os),b(id,os,null),a(os,w1),a(os,lg),a(os,v1),b(ur,os,null),a(J,M1),a(J,ls),b(pd,ls,null),a(ls,k1),a(ls,cg),a(ls,J1),b(fr,ls,null),a(J,T1),a(J,cs),b(md,cs,null),a(cs,D1),a(cs,dg),a(cs,I1),b(br,cs,null),a(J,C1),a(J,gt),b(hd,gt,null),a(gt,U1),a(gt,ig),a(gt,Z1),a(gt,pg),a(gt,F1),b(_r,gt,null),a(J,R1),a(J,ds),b(gd,ds,null),a(ds,z1),a(ds,mg),a(ds,G1),b(xr,ds,null),a(J,N1),a(J,is),b(ud,is,null),a(is,X1),a(is,hg),a(is,V1),b($r,is,null),a(J,q1),a(J,ps),b(fd,ps,null),a(ps,W1),a(ps,gg),a(ps,B1),b(yr,ps,null),a(J,Q1),a(J,ms),b(bd,ms,null),a(ms,E1),a(ms,ug),a(ms,H1),b(jr,ms,null),a(J,L1),a(J,hs),b(_d,hs,null),a(hs,Y1),a(hs,fg),a(hs,S1),b(wr,hs,null),a(J,A1),a(J,gs),b(xd,gs,null),a(gs,P1),a(gs,bg),a(gs,K1),a(gs,_g),a(J,O1),a(J,us),b($d,us,null),a(us,ej),a(us,xg),a(us,tj),a(us,$g),a(J,sj),a(J,vr),b(yd,vr,null),a(vr,aj),a(vr,yg),a(J,nj),a(J,Je),b(jd,Je,null),a(Je,rj),a(Je,jg),a(Je,oj),a(Je,wg),a(Je,lj),b(Mr,Je,null),a(Je,cj),b(kr,Je,null),a(J,dj),a(J,fs),b(wd,fs,null),a(fs,ij),a(fs,vg),a(fs,pj),b(Jr,fs,null),a(J,mj),a(J,ut),b(vd,ut,null),a(ut,hj),a(ut,Mg),a(ut,gj),a(ut,kg),a(ut,uj),b(Tr,ut,null),a(J,fj),a(J,Te),b(Md,Te,null),a(Te,bj),a(Te,Jg),a(Te,_j),a(Te,Tg),a(Te,xj),a(Te,Dg),a(Te,$j),b(Dr,Te,null),a(J,yj),a(J,De),b(kd,De,null),a(De,jj),a(De,Ig),a(De,wj),a(De,Cg),a(De,vj),a(De,Ug),a(De,Mj),b(Ir,De,null),a(J,kj),a(J,Cr),b(Jd,Cr,null),a(Cr,Jj),a(Cr,Zg),a(J,Tj),a(J,ft),b(Td,ft,null),a(ft,Dj),a(ft,Fg),a(ft,Ij),a(ft,Rg),a(ft,Cj),b(Ur,ft,null),a(J,Uj),a(J,Ie),b(Dd,Ie,null),a(Ie,Zj),a(Ie,zg),a(Ie,Fj),a(Ie,Gg),a(Ie,Rj),a(Ie,Ng),a(Ie,zj),b(Zr,Ie,null),a(J,Gj),a(J,bs),b(Id,bs,null),a(bs,Nj),a(bs,Xg),a(bs,Xj),b(Fr,bs,null),a(J,Vj),a(J,_s),b(Cd,_s,null),a(_s,qj),a(_s,Vg),a(_s,Wj),b(Rr,_s,null),a(J,Bj),a(J,xs),b(Ud,xs,null),a(xs,Qj),a(xs,qg),a(xs,Ej),b(zr,xs,null),a(J,Hj),a(J,P),b(Zd,P,null),a(P,Lj),a(P,Wg),a(P,Yj),a(P,Bg),a(P,Sj),a(P,Qg),a(P,Aj),b(Gr,P,null),a(P,Pj),a(P,Eg),a(P,Kj),b(Nr,P,null),a(P,Oj),b(Xr,P,null),a(J,e0),a(J,$s),b(Fd,$s,null),a($s,t0),a($s,Hg),a($s,s0),b(Vr,$s,null),a(J,a0),a(J,ys),b(Rd,ys,null),a(ys,n0),a(ys,Lg),a(ys,r0),b(qr,ys,null),a(J,o0),a(J,bt),b(zd,bt,null),a(bt,l0),a(bt,Yg),a(bt,c0),a(bt,Sg),a(bt,d0),b(Wr,bt,null),a(J,i0),a(J,ie),b(Gd,ie,null),a(ie,p0),a(ie,Ag),a(ie,m0),a(ie,Pg),a(ie,h0),a(ie,Kg),a(ie,g0),a(ie,Og),a(ie,u0),b(Br,ie,null),a(J,f0),a(J,js),b(Nd,js,null),a(js,b0),a(js,eu),a(js,_0),b(Qr,js,null),a(J,x0),a(J,pe),b(Xd,pe,null),a(pe,$0),a(pe,tu),a(pe,y0),a(pe,su),a(pe,j0),b(Er,pe,null),a(pe,w0),b(Hr,pe,null),a(pe,v0),b(Lr,pe,null),a(J,M0),a(J,Ce),b(Vd,Ce,null),a(Ce,k0),a(Ce,au),a(Ce,J0),a(Ce,nu),a(Ce,T0),a(Ce,ru),a(Ce,D0),b(Yr,Ce,null),a(J,I0),a(J,ws),b(qd,ws,null),a(ws,C0),a(ws,ou),a(ws,U0),b(Sr,ws,null),a(J,Z0),a(J,Ar),b(Wd,Ar,null),a(Ar,F0),a(Ar,lu),a(J,R0),a(J,vs),b(Bd,vs,null),a(vs,z0),a(vs,cu),a(vs,G0),b(Pr,vs,null),a(J,N0),a(J,Ms),b(Qd,Ms,null),a(Ms,X0),a(Ms,du),a(Ms,V0),b(Kr,Ms,null),a(J,q0),a(J,ks),b(Ed,ks,null),a(ks,W0),a(ks,iu),a(ks,B0),b(Or,ks,null),a(J,Q0),a(J,_t),b(Hd,_t,null),a(_t,E0),a(_t,pu),a(_t,H0),a(_t,mu),a(_t,L0),b(eo,_t,null),a(J,Y0),a(J,Js),b(Ld,Js,null),a(Js,S0),a(Js,hu),a(Js,A0),b(to,Js,null),a(J,P0),a(J,Ts),b(Yd,Ts,null),a(Ts,K0),a(Ts,gu),a(Ts,O0),b(so,Ts,null),a(J,ew),a(J,G),b(Sd,G,null),a(G,tw),a(G,uu),a(G,sw),a(G,fu),a(G,aw),a(G,bu),a(G,nw),a(G,_u),a(G,rw),a(G,xu),a(G,ow),b(ao,G,null),a(G,lw),b(no,G,null),a(G,cw),b(ro,G,null),a(G,dw),b(oo,G,null),a(G,iw),b(lo,G,null),a(G,pw),a(G,$u),a(G,mw),b(co,G,null),a(G,hw),b(io,G,null),a(G,gw),a(J,uw),a(J,xt),b(Ad,xt,null),a(xt,fw),a(xt,yu),a(xt,bw),a(xt,ju),a(xt,_w),b(po,xt,null),a(J,xw),a(J,Ds),b(Pd,Ds,null),a(Ds,$w),a(Ds,wu),a(Ds,yw),a(Ds,vu),a(J,jw),a(J,mo),b(Kd,mo,null),a(mo,ww),a(mo,Mu),a(J,vw),a(J,Is),b(Od,Is,null),a(Is,Mw),a(Is,ku),a(Is,kw),a(Is,Ju),a(J,Jw),a(J,Cs),b(ei,Cs,null),a(Cs,Tw),a(Cs,Tu),a(Cs,Dw),b(ho,Cs,null),a(J,Iw),a(J,go),b(ti,go,null),a(go,Cw),a(go,Du),a(J,Uw),a(J,uo),b(si,uo,null),a(uo,Zw),a(uo,Iu),a(J,Fw),a(J,fo),b(ai,fo,null),a(fo,Rw),a(fo,Cu),a(J,zw),a(J,bo),b(ni,bo,null),a(bo,Gw),a(bo,Uu),a(J,Nw),a(J,_o),b(ri,_o,null),a(_o,Xw),a(_o,Zu),a(J,Vw),a(J,xo),b(oi,xo,null),a(xo,qw),a(xo,Fu),a(J,Ww),a(J,$o),b(li,$o,null),a($o,Bw),a($o,Ru),a(J,Qw),a(J,yo),b(ci,yo,null),a(yo,Ew),a(yo,zu),a(J,Hw),a(J,jo),b(di,jo,null),a(jo,Lw),a(jo,Gu),a(J,Yw),a(J,wo),b(ii,wo,null),a(wo,Sw),a(wo,Nu),a(J,Aw),a(J,Xu),b(pi,Xu,null),a(J,Pw),a(J,Vu),b(mi,Vu,null),a(J,Kw),a(J,qu),b(hi,qu,null),a(J,Ow),a(J,Wu),b(gi,Wu,null),a(J,ev),a(J,Bu),b(ui,Bu,null),a(J,tv),a(J,Qu),b(fi,Qu,null),a(J,sv),a(J,Eu),b(bi,Eu,null),a(J,av),a(J,Hu),b(_i,Hu,null),a(J,nv),a(J,Lu),b(xi,Lu,null),a(J,rv),a(J,Yu),b($i,Yu,null),a(J,ov),a(J,Su),b(yi,Su,null),a(J,lv),a(J,Au),b(ji,Au,null),a(J,cv),a(J,Pu),b(wi,Pu,null),a(J,dv),a(J,Us),b(vi,Us,null),a(Us,iv),a(Us,Ku),a(Us,pv),b(vo,Us,null),a(J,mv),a(J,Zs),b(Mi,Zs,null),a(Zs,hv),a(Zs,Ou),a(Zs,gv),b(Mo,Zs,null),a(J,uv),a(J,Fs),b(ki,Fs,null),a(Fs,fv),a(Fs,ef),a(Fs,bv),b(ko,Fs,null),a(J,_v),a(J,Rs),b(Ji,Rs,null),a(Rs,xv),a(Rs,tf),a(Rs,$v),b(Jo,Rs,null),a(J,yv),a(J,$t),b(Ti,$t,null),a($t,jv),a($t,sf),a($t,wv),b(To,$t,null),a($t,vv),b(Do,$t,null),a(J,Mv),a(J,zs),b(Di,zs,null),a(zs,kv),a(zs,af),a(zs,Jv),a(zs,nf),a(J,Tv),a(J,Gs),b(Ii,Gs,null),a(Gs,Dv),a(Gs,rf),a(Gs,Iv),b(Io,Gs,null),j(n,d2,y),j(n,Ct,y),b(Ci,Ct,null),a(Ct,Cv),a(Ct,of),a(Ct,Uv),b(Co,Ct,null),j(n,i2,y),j(n,L,y),b(Ui,L,null),a(L,Zv),a(L,lf),a(L,Fv),a(L,cf),a(L,Rv),a(L,df),a(L,zv),a(L,pf),a(L,Gv),a(L,mf),a(L,Nv),a(L,hf),a(L,Xv),a(L,gf),a(L,Vv),b(Uo,L,null),j(n,p2,y),j(n,oe,y),b(Zi,oe,null),a(oe,qv),a(oe,uf),a(oe,Wv),a(oe,ff),a(oe,Bv),a(oe,bf),a(oe,Qv),a(oe,_f),a(oe,Ev),a(oe,xf),j(n,m2,y),j(n,fe,y),b(Fi,fe,null),a(fe,Hv),a(fe,$f),a(fe,Lv),a(fe,yf),a(fe,Yv),a(fe,jf),a(fe,Sv),a(fe,wf),j(n,h2,y),j(n,be,y),b(Ri,be,null),a(be,Av),a(be,vf),a(be,Pv),a(be,Mf),a(be,Kv),a(be,kf),a(be,Ov),a(be,Jf),j(n,g2,y),j(n,_e,y),b(zi,_e,null),a(_e,eM),a(_e,Tf),a(_e,tM),a(_e,Df),a(_e,sM),a(_e,If),a(_e,aM),a(_e,Cf),j(n,u2,y),b(Gi,n,y),j(n,f2,y),j(n,Ni,y),j(n,b2,y),j(n,U,y),b(Xi,U,null),a(U,nM),a(U,Uf),a(U,rM),a(U,Ns),b(Vi,Ns,null),a(Ns,oM),a(Ns,Zf),a(Ns,lM),b(Zo,Ns,null),a(U,cM),a(U,Xs),b(qi,Xs,null),a(Xs,dM),a(Xs,Ff),a(Xs,iM),b(Fo,Xs,null),a(U,pM),a(U,Vs),b(Wi,Vs,null),a(Vs,mM),a(Vs,Rf),a(Vs,hM),b(Ro,Vs,null),a(U,gM),a(U,qs),b(Bi,qs,null),a(qs,uM),a(qs,zf),a(qs,fM),b(zo,qs,null),a(U,bM),a(U,Ws),b(Qi,Ws,null),a(Ws,_M),a(Ws,Gf),a(Ws,xM),b(Go,Ws,null),a(U,$M),a(U,Bs),b(Ei,Bs,null),a(Bs,yM),a(Bs,Nf),a(Bs,jM),b(No,Bs,null),a(U,wM),a(U,yt),b(Hi,yt,null),a(yt,vM),a(yt,Xf),a(yt,MM),a(yt,Vf),a(yt,kM),b(Xo,yt,null),a(U,JM),a(U,Qs),b(Li,Qs,null),a(Qs,TM),a(Qs,qf),a(Qs,DM),b(Vo,Qs,null),a(U,IM),a(U,Es),b(Yi,Es,null),a(Es,CM),a(Es,Wf),a(Es,UM),b(qo,Es,null),a(U,ZM),a(U,Hs),b(Si,Hs,null),a(Hs,FM),a(Hs,Bf),a(Hs,RM),b(Wo,Hs,null),a(U,zM),a(U,Ls),b(Ai,Ls,null),a(Ls,GM),a(Ls,Qf),a(Ls,NM),b(Bo,Ls,null),a(U,XM),a(U,Ue),b(Pi,Ue,null),a(Ue,VM),a(Ue,Ef),a(Ue,qM),a(Ue,Hf),a(Ue,WM),a(Ue,Lf),a(Ue,BM),b(Qo,Ue,null),a(U,QM),a(U,Ze),b(Ki,Ze,null),a(Ze,EM),a(Ze,Yf),a(Ze,HM),a(Ze,Sf),a(Ze,LM),a(Ze,Af),a(Ze,YM),b(Eo,Ze,null),a(U,SM),a(U,jt),b(Oi,jt,null),a(jt,AM),a(jt,Pf),a(jt,PM),a(jt,Kf),a(jt,KM),b(Ho,jt,null),a(U,OM),a(U,Lo),b(ep,Lo,null),a(Lo,ek),a(Lo,Of),a(U,tk),a(U,Fe),b(tp,Fe,null),a(Fe,sk),a(Fe,eb),a(Fe,ak),a(Fe,tb),a(Fe,nk),a(Fe,sb),a(Fe,rk),b(Yo,Fe,null),a(U,ok),a(U,Re),b(sp,Re,null),a(Re,lk),a(Re,ab),a(Re,ck),a(Re,nb),a(Re,dk),a(Re,rb),a(Re,ik),b(So,Re,null),a(U,pk),a(U,Ys),b(ap,Ys,null),a(Ys,mk),a(Ys,ob),a(Ys,hk),b(Ao,Ys,null),a(U,gk),a(U,Ss),b(np,Ss,null),a(Ss,uk),a(Ss,lb),a(Ss,fk),b(Po,Ss,null),a(U,bk),a(U,As),b(rp,As,null),a(As,_k),a(As,cb),a(As,xk),b(Ko,As,null),a(U,$k),a(U,ze),b(op,ze,null),a(ze,yk),a(ze,db),a(ze,jk),a(ze,ib),a(ze,wk),a(ze,pb),a(ze,vk),b(Oo,ze,null),a(U,Mk),a(U,Ge),b(lp,Ge,null),a(Ge,kk),a(Ge,mb),a(Ge,Jk),a(Ge,hb),a(Ge,Tk),a(Ge,gb),a(Ge,Dk),b(el,Ge,null),a(U,Ik),a(U,Ps),b(cp,Ps,null),a(Ps,Ck),a(Ps,ub),a(Ps,Uk),b(tl,Ps,null),a(U,Zk),a(U,wt),b(dp,wt,null),a(wt,Fk),a(wt,fb),a(wt,Rk),a(wt,bb),a(wt,zk),b(sl,wt,null),a(U,Gk),a(U,Ks),b(ip,Ks,null),a(Ks,Nk),a(Ks,_b),a(Ks,Xk),b(al,Ks,null),a(U,Vk),a(U,me),b(pp,me,null),a(me,qk),a(me,xb),a(me,Wk),a(me,$b),a(me,Bk),a(me,yb),a(me,Qk),b(nl,me,null),a(me,Ek),b(rl,me,null),a(U,Hk),a(U,Ne),b(mp,Ne,null),a(Ne,Lk),a(Ne,jb),a(Ne,Yk),a(Ne,wb),a(Ne,Sk),a(Ne,vb),a(Ne,Ak),b(ol,Ne,null),a(U,Pk),a(U,Os),b(hp,Os,null),a(Os,Kk),a(Os,Mb),a(Os,Ok),b(ll,Os,null),a(U,eJ),a(U,ea),b(gp,ea,null),a(ea,tJ),a(ea,kb),a(ea,sJ),b(cl,ea,null),a(U,aJ),a(U,ta),b(up,ta,null),a(ta,nJ),a(ta,Jb),a(ta,rJ),b(dl,ta,null),a(U,oJ),a(U,sa),b(fp,sa,null),a(sa,lJ),a(sa,Tb),a(sa,cJ),b(il,sa,null),a(U,dJ),a(U,aa),b(bp,aa,null),a(aa,iJ),a(aa,Db),a(aa,pJ),b(pl,aa,null),a(U,mJ),a(U,na),b(_p,na,null),a(na,hJ),a(na,Ib),a(na,gJ),a(na,Cb),j(n,_2,y),j(n,Ub,y),j(n,x2,y),b(xp,n,y),j(n,$2,y),j(n,$p,y),j(n,y2,y),j(n,F,y),b(yp,F,null),a(F,uJ),a(F,Zb),a(F,fJ),a(F,vt),b(jp,vt,null),a(vt,bJ),a(vt,Fb),a(vt,_J),b(ml,vt,null),a(vt,xJ),b(hl,vt,null),a(F,$J),a(F,ra),b(wp,ra,null),a(ra,yJ),a(ra,Rb),a(ra,jJ),b(gl,ra,null),a(F,wJ),a(F,oa),b(vp,oa,null),a(oa,vJ),a(oa,zb),a(oa,MJ),b(ul,oa,null),a(F,kJ),a(F,la),b(Mp,la,null),a(la,JJ),a(la,Gb),a(la,TJ),b(fl,la,null),a(F,DJ),a(F,ca),b(kp,ca,null),a(ca,IJ),a(ca,Nb),a(ca,CJ),b(bl,ca,null),a(F,UJ),a(F,Xb),b(Jp,Xb,null),a(F,ZJ),a(F,_l),b(Tp,_l,null),a(_l,FJ),a(_l,Vb),a(F,RJ),a(F,Xe),b(Dp,Xe,null),a(Xe,zJ),a(Xe,qb),a(Xe,GJ),a(Xe,Wb),a(Xe,NJ),a(Xe,Bb),a(Xe,XJ),b(xl,Xe,null),a(F,VJ),a(F,da),b(Ip,da,null),a(da,qJ),a(da,Qb),a(da,WJ),b($l,da,null),a(F,BJ),a(F,ia),b(Cp,ia,null),a(ia,QJ),a(ia,Eb),a(ia,EJ),b(yl,ia,null),a(F,HJ),a(F,he),b(Up,he,null),a(he,LJ),a(he,Hb),a(he,YJ),a(he,Lb),a(he,SJ),a(he,Yb),a(he,AJ),a(he,Sb),a(he,PJ),b(jl,he,null),a(F,KJ),a(F,pa),b(Zp,pa,null),a(pa,OJ),a(pa,Ab),a(pa,eT),b(wl,pa,null),a(F,tT),a(F,ma),b(Fp,ma,null),a(ma,sT),a(ma,Pb),a(ma,aT),b(vl,ma,null),a(F,nT),a(F,ae),b(Rp,ae,null),a(ae,rT),a(ae,Kb),a(ae,oT),a(ae,Ob),a(ae,lT),a(ae,e_),a(ae,cT),b(Ml,ae,null),a(ae,dT),b(kl,ae,null),a(ae,iT),b(Jl,ae,null),a(F,pT),a(F,ne),b(zp,ne,null),a(ne,mT),a(ne,t_),a(ne,hT),a(ne,s_),a(ne,gT),a(ne,a_),a(ne,uT),b(Tl,ne,null),a(ne,fT),b(Dl,ne,null),a(ne,bT),b(Il,ne,null),a(F,_T),a(F,Cl),b(Gp,Cl,null),a(Cl,xT),a(Cl,n_),a(F,$T),a(F,Ul),b(Np,Ul,null),a(Ul,yT),a(Ul,r_),a(F,jT),a(F,o_),b(Xp,o_,null),a(F,wT),a(F,l_),b(Vp,l_,null),a(F,vT),a(F,c_),b(qp,c_,null),a(F,MT),a(F,d_),b(Wp,d_,null),a(F,kT),a(F,i_),b(Bp,i_,null),a(F,JT),a(F,p_),b(Qp,p_,null),a(F,TT),a(F,m_),b(Ep,m_,null),a(F,DT),a(F,h_),b(Hp,h_,null),a(F,IT),a(F,g_),b(Lp,g_,null),a(F,CT),a(F,u_),b(Yp,u_,null),a(F,UT),a(F,f_),b(Sp,f_,null),a(F,ZT),a(F,b_),b(Ap,b_,null),a(F,FT),a(F,__),b(Pp,__,null),j(n,j2,y),b(Kp,n,y),j(n,w2,y),j(n,Op,y),j(n,v2,y),j(n,B,y),b(em,B,null),a(B,RT),a(B,Ve),b(tm,Ve,null),a(Ve,zT),a(Ve,x_),a(Ve,GT),a(Ve,$_),a(Ve,NT),a(Ve,y_),a(Ve,XT),b(Zl,Ve,null),a(B,VT),a(B,ha),b(sm,ha,null),a(ha,qT),a(ha,j_),a(ha,WT),b(Fl,ha,null),a(B,BT),a(B,ge),b(am,ge,null),a(ge,QT),a(ge,w_),a(ge,ET),a(ge,v_),a(ge,HT),a(ge,M_),a(ge,LT),a(ge,k_),a(ge,YT),b(Rl,ge,null),a(B,ST),a(B,ga),b(nm,ga,null),a(ga,AT),a(ga,J_),a(ga,PT),b(zl,ga,null),a(B,KT),a(B,ua),b(rm,ua,null),a(ua,OT),a(ua,T_),a(ua,eD),b(Gl,ua,null),a(B,tD),a(B,fa),b(om,fa,null),a(fa,sD),a(fa,D_),a(fa,aD),b(Nl,fa,null),a(B,nD),a(B,ba),b(lm,ba,null),a(ba,rD),a(ba,I_),a(ba,oD),b(Xl,ba,null),a(B,lD),a(B,_a),b(cm,_a,null),a(_a,cD),a(_a,C_),a(_a,dD),b(Vl,_a,null),a(B,iD),a(B,xa),b(dm,xa,null),a(xa,pD),a(xa,U_),a(xa,mD),b(ql,xa,null),a(B,hD),a(B,$a),b(im,$a,null),a($a,gD),a($a,Z_),a($a,uD),b(Wl,$a,null),j(n,M2,y),b(pm,n,y),j(n,k2,y),j(n,z,y),b(mm,z,null),a(z,fD),a(z,F_),a(z,bD),a(z,R_),a(z,_D),a(z,z_),a(z,xD),a(z,ee),a(ee,G_),a(ee,$D),a(ee,N_),a(ee,yD),a(ee,X_),a(ee,jD),a(ee,hm),a(hm,V_),a(hm,wD),b(Bl,hm,null),a(ee,vD),a(ee,q_),a(ee,MD),a(ee,W_),a(ee,kD),a(ee,B_),a(ee,JD),a(ee,Q_),a(z,TD),a(z,ya),b(gm,ya,null),a(ya,DD),a(ya,E_),a(ya,ID),b(Ql,ya,null),a(z,CD),a(z,El),b(um,El,null),a(El,UD),a(El,H_),a(z,ZD),a(z,Hl),b(fm,Hl,null),a(Hl,FD),a(Hl,L_),a(z,RD),a(z,Ll),b(bm,Ll,null),a(Ll,zD),a(Ll,Y_),a(z,GD),a(z,Yl),b(_m,Yl,null),a(Yl,ND),a(Yl,S_),a(z,XD),a(z,Sl),b(xm,Sl,null),a(Sl,VD),a(Sl,A_),a(z,qD),a(z,Al),b($m,Al,null),a(Al,WD),a(Al,P_),a(z,BD),a(z,Mt),b(ym,Mt,null),a(Mt,QD),a(Mt,K_),a(Mt,ED),a(Mt,O_),a(Mt,HD),b(Pl,Mt,null),a(z,LD),a(z,ja),b(jm,ja,null),a(ja,YD),a(ja,ex),a(ja,SD),a(ja,tx),a(z,AD),a(z,qe),b(wm,qe,null),a(qe,PD),a(qe,sx),a(qe,KD),a(qe,ax),a(qe,OD),a(qe,nx),a(qe,e7),b(Kl,qe,null),a(z,t7),a(z,kt),b(vm,kt,null),a(kt,s7),a(kt,rx),a(kt,a7),a(kt,ox),a(kt,n7),b(Ol,kt,null),j(n,J2,y),j(n,Ut,y),b(Mm,Ut,null),a(Ut,r7),a(Ut,lx),a(Ut,o7),b(ec,Ut,null),j(n,T2,y),j(n,Y,y),b(km,Y,null),a(Y,l7),a(Y,cx),a(Y,c7),a(Y,dx),a(Y,d7),a(Y,ix),a(Y,i7),a(Y,px),a(Y,p7),b(tc,Y,null),a(Y,m7),a(Y,wa),b(Jm,wa,null),a(wa,h7),a(wa,mx),a(wa,g7),a(wa,hx),a(Y,u7),a(Y,Jt),b(Tm,Jt,null),a(Jt,f7),a(Jt,gx),a(Jt,b7),a(Jt,ux),a(Jt,_7),b(sc,Jt,null),a(Y,x7),a(Y,va),b(Dm,va,null),a(va,$7),a(va,fx),a(va,y7),b(ac,va,null),j(n,D2,y),j(n,Be,y),b(Im,Be,null),a(Be,j7),a(Be,bx),a(Be,w7),a(Be,_x),a(Be,v7),b(nc,Be,null),j(n,I2,y),j(n,Qe,y),b(Cm,Qe,null),a(Qe,M7),a(Qe,xx),a(Qe,k7),b(rc,Qe,null),a(Qe,J7),a(Qe,oc),b(Um,oc,null),a(oc,T7),a(oc,$x),j(n,C2,y),j(n,Ee,y),b(Zm,Ee,null),a(Ee,D7),a(Ee,yx),a(Ee,I7),b(lc,Ee,null),a(Ee,C7),a(Ee,cc),b(Fm,cc,null),a(cc,U7),a(cc,jx),j(n,U2,y),j(n,Zt,y),b(Rm,Zt,null),a(Zt,Z7),a(Zt,wx),a(Zt,F7),b(dc,Zt,null),j(n,Z2,y),j(n,Ft,y),b(zm,Ft,null),a(Ft,R7),a(Ft,vx),a(Ft,z7),b(ic,Ft,null),j(n,F2,y),j(n,Rt,y),b(Gm,Rt,null),a(Rt,G7),a(Rt,Mx),a(Rt,N7),b(pc,Rt,null),j(n,R2,y),j(n,zt,y),b(Nm,zt,null),a(zt,X7),a(zt,kx),a(zt,V7),b(mc,zt,null),j(n,z2,y),j(n,E,y),b(Xm,E,null),a(E,q7),a(E,Jx),a(E,W7),a(E,Tx),a(E,B7),a(E,Dx),a(E,Q7),b(hc,E,null),a(E,E7),a(E,Ma),b(Vm,Ma,null),a(Ma,H7),a(Ma,Ix),a(Ma,L7),a(Ma,Cx),a(E,Y7),a(E,gc),b(qm,gc,null),a(gc,S7),a(gc,Ux),a(E,A7),a(E,uc),b(Wm,uc,null),a(uc,P7),a(uc,Zx),a(E,K7),a(E,fc),b(Bm,fc,null),a(fc,O7),a(fc,Fx),a(E,eI),a(E,bc),b(Qm,bc,null),a(bc,tI),a(bc,Rx),j(n,G2,y),j(n,H,y),b(Em,H,null),a(H,sI),a(H,zx),a(H,aI),a(H,Gx),a(H,nI),a(H,Nx),a(H,rI),b(_c,H,null),a(H,oI),a(H,ka),b(Hm,ka,null),a(ka,lI),a(ka,Xx),a(ka,cI),a(ka,Vx),a(H,dI),a(H,xc),b(Lm,xc,null),a(xc,iI),a(xc,qx),a(H,pI),a(H,$c),b(Ym,$c,null),a($c,mI),a($c,Wx),a(H,hI),a(H,yc),b(Sm,yc,null),a(yc,gI),a(yc,Bx),a(H,uI),a(H,jc),b(Am,jc,null),a(jc,fI),a(jc,Qx),j(n,N2,y),b(Pm,n,y),j(n,X2,y),j(n,le,y),b(Km,le,null),a(le,bI),a(le,Ex),a(le,_I),a(le,Hx),a(le,xI),a(le,Lx),a(le,$I),a(le,Ja),b(Om,Ja,null),a(Ja,yI),a(Ja,Yx),a(Ja,jI),b(wc,Ja,null),a(le,wI),a(le,Ta),b(eh,Ta,null),a(Ta,vI),a(Ta,Sx),a(Ta,MI),b(vc,Ta,null),j(n,V2,y),b(th,n,y),j(n,q2,y),j(n,sh,y),j(n,W2,y),j(n,te,y),b(ah,te,null),a(te,kI),a(te,Ax),a(te,JI),b(Mc,te,null),a(te,TI),a(te,Da),b(nh,Da,null),a(Da,DI),a(Da,Px),a(Da,II),b(kc,Da,null),a(te,CI),a(te,Ia),b(rh,Ia,null),a(Ia,UI),a(Ia,Kx),a(Ia,ZI),b(Jc,Ia,null),a(te,FI),a(te,Tt),b(oh,Tt,null),a(Tt,RI),a(Tt,Ox),a(Tt,zI),a(Tt,e$),a(Tt,GI),b(Tc,Tt,null),a(te,NI),a(te,Dc),b(lh,Dc,null),a(Dc,XI),a(Dc,t$),j(n,B2,y),b(ch,n,y),j(n,Q2,y),j(n,N,y),b(dh,N,null),a(N,VI),a(N,s$),a(N,qI),a(N,a$),a(N,WI),a(N,n$),a(N,BI),a(N,r$),a(N,QI),b(Ic,N,null),a(N,EI),a(N,o$),a(N,HI),b(Cc,N,null),a(N,LI),a(N,l$),a(N,YI),b(Uc,N,null),a(N,SI),a(N,c$),a(N,AI),b(Zc,N,null),a(N,PI),a(N,d$),a(N,KI),b(Fc,N,null),j(n,E2,y),j(n,Za,y),b(ih,Za,null),a(Za,OI),a(Za,i$),j(n,H2,y),j(n,Fa,y),b(ph,Fa,null),a(Fa,eC),a(Fa,p$),j(n,L2,y),b(mh,n,y),j(n,Y2,y),j(n,Ra,y),b(hh,Ra,null),a(Ra,tC),a(Ra,m$),j(n,S2,y),b(gh,n,y),j(n,A2,y),j(n,z$,y),P2=!0},p(n,[y]){const xe={};y&2&&(xe.$$scope={dirty:y,ctx:n}),Kn.$set(xe);const He={};y&2&&(He.$$scope={dirty:y,ctx:n}),On.$set(He);const za={};y&2&&(za.$$scope={dirty:y,ctx:n}),er.$set(za);const T={};y&2&&(T.$$scope={dirty:y,ctx:n}),tr.$set(T);const Gt={};y&2&&(Gt.$$scope={dirty:y,ctx:n}),nr.$set(Gt);const Nt={};y&2&&(Nt.$$scope={dirty:y,ctx:n}),or.$set(Nt);const uh={};y&2&&(uh.$$scope={dirty:y,ctx:n}),lr.$set(uh);const fh={};y&2&&(fh.$$scope={dirty:y,ctx:n}),cr.$set(fh);const Le={};y&2&&(Le.$$scope={dirty:y,ctx:n}),dr.$set(Le);const bh={};y&2&&(bh.$$scope={dirty:y,ctx:n}),ir.$set(bh);const Xt={};y&2&&(Xt.$$scope={dirty:y,ctx:n}),pr.$set(Xt);const Ga={};y&2&&(Ga.$$scope={dirty:y,ctx:n}),mr.$set(Ga);const Na={};y&2&&(Na.$$scope={dirty:y,ctx:n}),hr.$set(Na);const Xa={};y&2&&(Xa.$$scope={dirty:y,ctx:n}),gr.$set(Xa);const Va={};y&2&&(Va.$$scope={dirty:y,ctx:n}),ur.$set(Va);const qa={};y&2&&(qa.$$scope={dirty:y,ctx:n}),fr.$set(qa);const Wa={};y&2&&(Wa.$$scope={dirty:y,ctx:n}),br.$set(Wa);const Vt={};y&2&&(Vt.$$scope={dirty:y,ctx:n}),_r.$set(Vt);const Ba={};y&2&&(Ba.$$scope={dirty:y,ctx:n}),xr.$set(Ba);const Qa={};y&2&&(Qa.$$scope={dirty:y,ctx:n}),$r.$set(Qa);const Ea={};y&2&&(Ea.$$scope={dirty:y,ctx:n}),yr.$set(Ea);const qt={};y&2&&(qt.$$scope={dirty:y,ctx:n}),jr.$set(qt);const Ha={};y&2&&(Ha.$$scope={dirty:y,ctx:n}),wr.$set(Ha);const La={};y&2&&(La.$$scope={dirty:y,ctx:n}),Mr.$set(La);const Ya={};y&2&&(Ya.$$scope={dirty:y,ctx:n}),kr.$set(Ya);const Sa={};y&2&&(Sa.$$scope={dirty:y,ctx:n}),Jr.$set(Sa);const Aa={};y&2&&(Aa.$$scope={dirty:y,ctx:n}),Tr.$set(Aa);const Pa={};y&2&&(Pa.$$scope={dirty:y,ctx:n}),Dr.$set(Pa);const Ka={};y&2&&(Ka.$$scope={dirty:y,ctx:n}),Ir.$set(Ka);const _h={};y&2&&(_h.$$scope={dirty:y,ctx:n}),Ur.$set(_h);const Ye={};y&2&&(Ye.$$scope={dirty:y,ctx:n}),Zr.$set(Ye);const Oa={};y&2&&(Oa.$$scope={dirty:y,ctx:n}),Fr.$set(Oa);const Wt={};y&2&&(Wt.$$scope={dirty:y,ctx:n}),Rr.$set(Wt);const Se={};y&2&&(Se.$$scope={dirty:y,ctx:n}),zr.$set(Se);const Ae={};y&2&&(Ae.$$scope={dirty:y,ctx:n}),Gr.$set(Ae);const xh={};y&2&&(xh.$$scope={dirty:y,ctx:n}),Nr.$set(xh);const Bt={};y&2&&(Bt.$$scope={dirty:y,ctx:n}),Xr.$set(Bt);const Pe={};y&2&&(Pe.$$scope={dirty:y,ctx:n}),Vr.$set(Pe);const en={};y&2&&(en.$$scope={dirty:y,ctx:n}),qr.$set(en);const tn={};y&2&&(tn.$$scope={dirty:y,ctx:n}),Wr.$set(tn);const sn={};y&2&&(sn.$$scope={dirty:y,ctx:n}),Br.$set(sn);const se={};y&2&&(se.$$scope={dirty:y,ctx:n}),Qr.$set(se);const an={};y&2&&(an.$$scope={dirty:y,ctx:n}),Er.$set(an);const nn={};y&2&&(nn.$$scope={dirty:y,ctx:n}),Hr.$set(nn);const Qt={};y&2&&(Qt.$$scope={dirty:y,ctx:n}),Lr.$set(Qt);const $e={};y&2&&($e.$$scope={dirty:y,ctx:n}),Yr.$set($e);const rn={};y&2&&(rn.$$scope={dirty:y,ctx:n}),Sr.$set(rn);const ye={};y&2&&(ye.$$scope={dirty:y,ctx:n}),Pr.$set(ye);const Ke={};y&2&&(Ke.$$scope={dirty:y,ctx:n}),Kr.$set(Ke);const on={};y&2&&(on.$$scope={dirty:y,ctx:n}),Or.$set(on);const $h={};y&2&&($h.$$scope={dirty:y,ctx:n}),eo.$set($h);const ln={};y&2&&(ln.$$scope={dirty:y,ctx:n}),to.$set(ln);const cn={};y&2&&(cn.$$scope={dirty:y,ctx:n}),so.$set(cn);const dn={};y&2&&(dn.$$scope={dirty:y,ctx:n}),ao.$set(dn);const Et={};y&2&&(Et.$$scope={dirty:y,ctx:n}),no.$set(Et);const pn={};y&2&&(pn.$$scope={dirty:y,ctx:n}),ro.$set(pn);const mn={};y&2&&(mn.$$scope={dirty:y,ctx:n}),oo.$set(mn);const X={};y&2&&(X.$$scope={dirty:y,ctx:n}),lo.$set(X);const Ht={};y&2&&(Ht.$$scope={dirty:y,ctx:n}),co.$set(Ht);const hn={};y&2&&(hn.$$scope={dirty:y,ctx:n}),io.$set(hn);const yh={};y&2&&(yh.$$scope={dirty:y,ctx:n}),po.$set(yh);const gn={};y&2&&(gn.$$scope={dirty:y,ctx:n}),ho.$set(gn);const un={};y&2&&(un.$$scope={dirty:y,ctx:n}),vo.$set(un);const jh={};y&2&&(jh.$$scope={dirty:y,ctx:n}),Mo.$set(jh);const wh={};y&2&&(wh.$$scope={dirty:y,ctx:n}),ko.$set(wh);const vh={};y&2&&(vh.$$scope={dirty:y,ctx:n}),Jo.$set(vh);const Mh={};y&2&&(Mh.$$scope={dirty:y,ctx:n}),To.$set(Mh);const kh={};y&2&&(kh.$$scope={dirty:y,ctx:n}),Do.$set(kh);const Jh={};y&2&&(Jh.$$scope={dirty:y,ctx:n}),Io.$set(Jh);const Th={};y&2&&(Th.$$scope={dirty:y,ctx:n}),Co.$set(Th);const Dh={};y&2&&(Dh.$$scope={dirty:y,ctx:n}),Uo.$set(Dh);const Ih={};y&2&&(Ih.$$scope={dirty:y,ctx:n}),Zo.$set(Ih);const Ch={};y&2&&(Ch.$$scope={dirty:y,ctx:n}),Fo.$set(Ch);const G$={};y&2&&(G$.$$scope={dirty:y,ctx:n}),Ro.$set(G$);const N$={};y&2&&(N$.$$scope={dirty:y,ctx:n}),zo.$set(N$);const X$={};y&2&&(X$.$$scope={dirty:y,ctx:n}),Go.$set(X$);const V$={};y&2&&(V$.$$scope={dirty:y,ctx:n}),No.$set(V$);const q$={};y&2&&(q$.$$scope={dirty:y,ctx:n}),Xo.$set(q$);const W$={};y&2&&(W$.$$scope={dirty:y,ctx:n}),Vo.$set(W$);const B$={};y&2&&(B$.$$scope={dirty:y,ctx:n}),qo.$set(B$);const Q$={};y&2&&(Q$.$$scope={dirty:y,ctx:n}),Wo.$set(Q$);const E$={};y&2&&(E$.$$scope={dirty:y,ctx:n}),Bo.$set(E$);const H$={};y&2&&(H$.$$scope={dirty:y,ctx:n}),Qo.$set(H$);const L$={};y&2&&(L$.$$scope={dirty:y,ctx:n}),Eo.$set(L$);const Y$={};y&2&&(Y$.$$scope={dirty:y,ctx:n}),Ho.$set(Y$);const S$={};y&2&&(S$.$$scope={dirty:y,ctx:n}),Yo.$set(S$);const fn={};y&2&&(fn.$$scope={dirty:y,ctx:n}),So.$set(fn);const bn={};y&2&&(bn.$$scope={dirty:y,ctx:n}),Ao.$set(bn);const _n={};y&2&&(_n.$$scope={dirty:y,ctx:n}),Po.$set(_n);const xn={};y&2&&(xn.$$scope={dirty:y,ctx:n}),Ko.$set(xn);const Lt={};y&2&&(Lt.$$scope={dirty:y,ctx:n}),Oo.$set(Lt);const $n={};y&2&&($n.$$scope={dirty:y,ctx:n}),el.$set($n);const yn={};y&2&&(yn.$$scope={dirty:y,ctx:n}),tl.$set(yn);const jn={};y&2&&(jn.$$scope={dirty:y,ctx:n}),sl.$set(jn);const A={};y&2&&(A.$$scope={dirty:y,ctx:n}),al.$set(A);const je={};y&2&&(je.$$scope={dirty:y,ctx:n}),nl.$set(je);const Oe={};y&2&&(Oe.$$scope={dirty:y,ctx:n}),rl.$set(Oe);const et={};y&2&&(et.$$scope={dirty:y,ctx:n}),ol.$set(et);const tt={};y&2&&(tt.$$scope={dirty:y,ctx:n}),ll.$set(tt);const Z={};y&2&&(Z.$$scope={dirty:y,ctx:n}),cl.$set(Z);const wn={};y&2&&(wn.$$scope={dirty:y,ctx:n}),dl.$set(wn);const vn={};y&2&&(vn.$$scope={dirty:y,ctx:n}),il.$set(vn);const Mn={};y&2&&(Mn.$$scope={dirty:y,ctx:n}),pl.$set(Mn);const kn={};y&2&&(kn.$$scope={dirty:y,ctx:n}),ml.$set(kn);const Jn={};y&2&&(Jn.$$scope={dirty:y,ctx:n}),hl.$set(Jn);const Tn={};y&2&&(Tn.$$scope={dirty:y,ctx:n}),gl.$set(Tn);const Yt={};y&2&&(Yt.$$scope={dirty:y,ctx:n}),ul.$set(Yt);const Dn={};y&2&&(Dn.$$scope={dirty:y,ctx:n}),fl.$set(Dn);const In={};y&2&&(In.$$scope={dirty:y,ctx:n}),bl.$set(In);const Cn={};y&2&&(Cn.$$scope={dirty:y,ctx:n}),xl.$set(Cn);const Un={};y&2&&(Un.$$scope={dirty:y,ctx:n}),$l.$set(Un);const st={};y&2&&(st.$$scope={dirty:y,ctx:n}),yl.$set(st);const at={};y&2&&(at.$$scope={dirty:y,ctx:n}),jl.$set(at);const St={};y&2&&(St.$$scope={dirty:y,ctx:n}),wl.$set(St);const Uh={};y&2&&(Uh.$$scope={dirty:y,ctx:n}),vl.$set(Uh);const nt={};y&2&&(nt.$$scope={dirty:y,ctx:n}),Ml.$set(nt);const rt={};y&2&&(rt.$$scope={dirty:y,ctx:n}),kl.$set(rt);const Zn={};y&2&&(Zn.$$scope={dirty:y,ctx:n}),Jl.$set(Zn);const Fn={};y&2&&(Fn.$$scope={dirty:y,ctx:n}),Tl.$set(Fn);const Rn={};y&2&&(Rn.$$scope={dirty:y,ctx:n}),Dl.$set(Rn);const ot={};y&2&&(ot.$$scope={dirty:y,ctx:n}),Il.$set(ot);const lt={};y&2&&(lt.$$scope={dirty:y,ctx:n}),Zl.$set(lt);const zn={};y&2&&(zn.$$scope={dirty:y,ctx:n}),Fl.$set(zn);const At={};y&2&&(At.$$scope={dirty:y,ctx:n}),Rl.$set(At);const Gn={};y&2&&(Gn.$$scope={dirty:y,ctx:n}),zl.$set(Gn);const we={};y&2&&(we.$$scope={dirty:y,ctx:n}),Gl.$set(we);const ct={};y&2&&(ct.$$scope={dirty:y,ctx:n}),Nl.$set(ct);const Nn={};y&2&&(Nn.$$scope={dirty:y,ctx:n}),Xl.$set(Nn);const Xn={};y&2&&(Xn.$$scope={dirty:y,ctx:n}),Vl.$set(Xn);const Vn={};y&2&&(Vn.$$scope={dirty:y,ctx:n}),ql.$set(Vn);const qn={};y&2&&(qn.$$scope={dirty:y,ctx:n}),Wl.$set(qn);const Wn={};y&2&&(Wn.$$scope={dirty:y,ctx:n}),Bl.$set(Wn);const Bn={};y&2&&(Bn.$$scope={dirty:y,ctx:n}),Ql.$set(Bn);const R={};y&2&&(R.$$scope={dirty:y,ctx:n}),Pl.$set(R);const Pt={};y&2&&(Pt.$$scope={dirty:y,ctx:n}),Kl.$set(Pt);const Qn={};y&2&&(Qn.$$scope={dirty:y,ctx:n}),Ol.$set(Qn);const En={};y&2&&(En.$$scope={dirty:y,ctx:n}),ec.$set(En);const Hn={};y&2&&(Hn.$$scope={dirty:y,ctx:n}),tc.$set(Hn);const Ln={};y&2&&(Ln.$$scope={dirty:y,ctx:n}),sc.$set(Ln);const A$={};y&2&&(A$.$$scope={dirty:y,ctx:n}),ac.$set(A$);const Zh={};y&2&&(Zh.$$scope={dirty:y,ctx:n}),nc.$set(Zh);const dt={};y&2&&(dt.$$scope={dirty:y,ctx:n}),rc.$set(dt);const Yn={};y&2&&(Yn.$$scope={dirty:y,ctx:n}),lc.$set(Yn);const Sn={};y&2&&(Sn.$$scope={dirty:y,ctx:n}),dc.$set(Sn);const ve={};y&2&&(ve.$$scope={dirty:y,ctx:n}),ic.$set(ve);const An={};y&2&&(An.$$scope={dirty:y,ctx:n}),pc.$set(An);const Pn={};y&2&&(Pn.$$scope={dirty:y,ctx:n}),mc.$set(Pn);const ce={};y&2&&(ce.$$scope={dirty:y,ctx:n}),hc.$set(ce);const de={};y&2&&(de.$$scope={dirty:y,ctx:n}),_c.$set(de);const Fh={};y&2&&(Fh.$$scope={dirty:y,ctx:n}),wc.$set(Fh);const Rh={};y&2&&(Rh.$$scope={dirty:y,ctx:n}),vc.$set(Rh);const P$={};y&2&&(P$.$$scope={dirty:y,ctx:n}),Mc.$set(P$);const K$={};y&2&&(K$.$$scope={dirty:y,ctx:n}),kc.$set(K$);const O$={};y&2&&(O$.$$scope={dirty:y,ctx:n}),Jc.$set(O$);const e2={};y&2&&(e2.$$scope={dirty:y,ctx:n}),Tc.$set(e2);const t2={};y&2&&(t2.$$scope={dirty:y,ctx:n}),Ic.$set(t2);const s2={};y&2&&(s2.$$scope={dirty:y,ctx:n}),Cc.$set(s2);const a2={};y&2&&(a2.$$scope={dirty:y,ctx:n}),Uc.$set(a2);const n2={};y&2&&(n2.$$scope={dirty:y,ctx:n}),Zc.$set(n2);const r2={};y&2&&(r2.$$scope={dirty:y,ctx:n}),Fc.$set(r2)},i(n){P2||(h(c.$$.fragment,n),h(m.$$.fragment,n),h(Wc.$$.fragment,n),h(Bc.$$.fragment,n),h(Kn.$$.fragment,n),h(Qc.$$.fragment,n),h(On.$$.fragment,n),h(Ec.$$.fragment,n),h(Lc.$$.fragment,n),h(Yc.$$.fragment,n),h(Sc.$$.fragment,n),h(er.$$.fragment,n),h(Ac.$$.fragment,n),h(Pc.$$.fragment,n),h(tr.$$.fragment,n),h(Kc.$$.fragment,n),h(Oc.$$.fragment,n),h(ed.$$.fragment,n),h(nr.$$.fragment,n),h(td.$$.fragment,n),h(sd.$$.fragment,n),h(or.$$.fragment,n),h(lr.$$.fragment,n),h(ad.$$.fragment,n),h(cr.$$.fragment,n),h(nd.$$.fragment,n),h(dr.$$.fragment,n),h(rd.$$.fragment,n),h(ir.$$.fragment,n),h(od.$$.fragment,n),h(pr.$$.fragment,n),h(ld.$$.fragment,n),h(mr.$$.fragment,n),h(cd.$$.fragment,n),h(hr.$$.fragment,n),h(dd.$$.fragment,n),h(gr.$$.fragment,n),h(id.$$.fragment,n),h(ur.$$.fragment,n),h(pd.$$.fragment,n),h(fr.$$.fragment,n),h(md.$$.fragment,n),h(br.$$.fragment,n),h(hd.$$.fragment,n),h(_r.$$.fragment,n),h(gd.$$.fragment,n),h(xr.$$.fragment,n),h(ud.$$.fragment,n),h($r.$$.fragment,n),h(fd.$$.fragment,n),h(yr.$$.fragment,n),h(bd.$$.fragment,n),h(jr.$$.fragment,n),h(_d.$$.fragment,n),h(wr.$$.fragment,n),h(xd.$$.fragment,n),h($d.$$.fragment,n),h(yd.$$.fragment,n),h(jd.$$.fragment,n),h(Mr.$$.fragment,n),h(kr.$$.fragment,n),h(wd.$$.fragment,n),h(Jr.$$.fragment,n),h(vd.$$.fragment,n),h(Tr.$$.fragment,n),h(Md.$$.fragment,n),h(Dr.$$.fragment,n),h(kd.$$.fragment,n),h(Ir.$$.fragment,n),h(Jd.$$.fragment,n),h(Td.$$.fragment,n),h(Ur.$$.fragment,n),h(Dd.$$.fragment,n),h(Zr.$$.fragment,n),h(Id.$$.fragment,n),h(Fr.$$.fragment,n),h(Cd.$$.fragment,n),h(Rr.$$.fragment,n),h(Ud.$$.fragment,n),h(zr.$$.fragment,n),h(Zd.$$.fragment,n),h(Gr.$$.fragment,n),h(Nr.$$.fragment,n),h(Xr.$$.fragment,n),h(Fd.$$.fragment,n),h(Vr.$$.fragment,n),h(Rd.$$.fragment,n),h(qr.$$.fragment,n),h(zd.$$.fragment,n),h(Wr.$$.fragment,n),h(Gd.$$.fragment,n),h(Br.$$.fragment,n),h(Nd.$$.fragment,n),h(Qr.$$.fragment,n),h(Xd.$$.fragment,n),h(Er.$$.fragment,n),h(Hr.$$.fragment,n),h(Lr.$$.fragment,n),h(Vd.$$.fragment,n),h(Yr.$$.fragment,n),h(qd.$$.fragment,n),h(Sr.$$.fragment,n),h(Wd.$$.fragment,n),h(Bd.$$.fragment,n),h(Pr.$$.fragment,n),h(Qd.$$.fragment,n),h(Kr.$$.fragment,n),h(Ed.$$.fragment,n),h(Or.$$.fragment,n),h(Hd.$$.fragment,n),h(eo.$$.fragment,n),h(Ld.$$.fragment,n),h(to.$$.fragment,n),h(Yd.$$.fragment,n),h(so.$$.fragment,n),h(Sd.$$.fragment,n),h(ao.$$.fragment,n),h(no.$$.fragment,n),h(ro.$$.fragment,n),h(oo.$$.fragment,n),h(lo.$$.fragment,n),h(co.$$.fragment,n),h(io.$$.fragment,n),h(Ad.$$.fragment,n),h(po.$$.fragment,n),h(Pd.$$.fragment,n),h(Kd.$$.fragment,n),h(Od.$$.fragment,n),h(ei.$$.fragment,n),h(ho.$$.fragment,n),h(ti.$$.fragment,n),h(si.$$.fragment,n),h(ai.$$.fragment,n),h(ni.$$.fragment,n),h(ri.$$.fragment,n),h(oi.$$.fragment,n),h(li.$$.fragment,n),h(ci.$$.fragment,n),h(di.$$.fragment,n),h(ii.$$.fragment,n),h(pi.$$.fragment,n),h(mi.$$.fragment,n),h(hi.$$.fragment,n),h(gi.$$.fragment,n),h(ui.$$.fragment,n),h(fi.$$.fragment,n),h(bi.$$.fragment,n),h(_i.$$.fragment,n),h(xi.$$.fragment,n),h($i.$$.fragment,n),h(yi.$$.fragment,n),h(ji.$$.fragment,n),h(wi.$$.fragment,n),h(vi.$$.fragment,n),h(vo.$$.fragment,n),h(Mi.$$.fragment,n),h(Mo.$$.fragment,n),h(ki.$$.fragment,n),h(ko.$$.fragment,n),h(Ji.$$.fragment,n),h(Jo.$$.fragment,n),h(Ti.$$.fragment,n),h(To.$$.fragment,n),h(Do.$$.fragment,n),h(Di.$$.fragment,n),h(Ii.$$.fragment,n),h(Io.$$.fragment,n),h(Ci.$$.fragment,n),h(Co.$$.fragment,n),h(Ui.$$.fragment,n),h(Uo.$$.fragment,n),h(Zi.$$.fragment,n),h(Fi.$$.fragment,n),h(Ri.$$.fragment,n),h(zi.$$.fragment,n),h(Gi.$$.fragment,n),h(Xi.$$.fragment,n),h(Vi.$$.fragment,n),h(Zo.$$.fragment,n),h(qi.$$.fragment,n),h(Fo.$$.fragment,n),h(Wi.$$.fragment,n),h(Ro.$$.fragment,n),h(Bi.$$.fragment,n),h(zo.$$.fragment,n),h(Qi.$$.fragment,n),h(Go.$$.fragment,n),h(Ei.$$.fragment,n),h(No.$$.fragment,n),h(Hi.$$.fragment,n),h(Xo.$$.fragment,n),h(Li.$$.fragment,n),h(Vo.$$.fragment,n),h(Yi.$$.fragment,n),h(qo.$$.fragment,n),h(Si.$$.fragment,n),h(Wo.$$.fragment,n),h(Ai.$$.fragment,n),h(Bo.$$.fragment,n),h(Pi.$$.fragment,n),h(Qo.$$.fragment,n),h(Ki.$$.fragment,n),h(Eo.$$.fragment,n),h(Oi.$$.fragment,n),h(Ho.$$.fragment,n),h(ep.$$.fragment,n),h(tp.$$.fragment,n),h(Yo.$$.fragment,n),h(sp.$$.fragment,n),h(So.$$.fragment,n),h(ap.$$.fragment,n),h(Ao.$$.fragment,n),h(np.$$.fragment,n),h(Po.$$.fragment,n),h(rp.$$.fragment,n),h(Ko.$$.fragment,n),h(op.$$.fragment,n),h(Oo.$$.fragment,n),h(lp.$$.fragment,n),h(el.$$.fragment,n),h(cp.$$.fragment,n),h(tl.$$.fragment,n),h(dp.$$.fragment,n),h(sl.$$.fragment,n),h(ip.$$.fragment,n),h(al.$$.fragment,n),h(pp.$$.fragment,n),h(nl.$$.fragment,n),h(rl.$$.fragment,n),h(mp.$$.fragment,n),h(ol.$$.fragment,n),h(hp.$$.fragment,n),h(ll.$$.fragment,n),h(gp.$$.fragment,n),h(cl.$$.fragment,n),h(up.$$.fragment,n),h(dl.$$.fragment,n),h(fp.$$.fragment,n),h(il.$$.fragment,n),h(bp.$$.fragment,n),h(pl.$$.fragment,n),h(_p.$$.fragment,n),h(xp.$$.fragment,n),h(yp.$$.fragment,n),h(jp.$$.fragment,n),h(ml.$$.fragment,n),h(hl.$$.fragment,n),h(wp.$$.fragment,n),h(gl.$$.fragment,n),h(vp.$$.fragment,n),h(ul.$$.fragment,n),h(Mp.$$.fragment,n),h(fl.$$.fragment,n),h(kp.$$.fragment,n),h(bl.$$.fragment,n),h(Jp.$$.fragment,n),h(Tp.$$.fragment,n),h(Dp.$$.fragment,n),h(xl.$$.fragment,n),h(Ip.$$.fragment,n),h($l.$$.fragment,n),h(Cp.$$.fragment,n),h(yl.$$.fragment,n),h(Up.$$.fragment,n),h(jl.$$.fragment,n),h(Zp.$$.fragment,n),h(wl.$$.fragment,n),h(Fp.$$.fragment,n),h(vl.$$.fragment,n),h(Rp.$$.fragment,n),h(Ml.$$.fragment,n),h(kl.$$.fragment,n),h(Jl.$$.fragment,n),h(zp.$$.fragment,n),h(Tl.$$.fragment,n),h(Dl.$$.fragment,n),h(Il.$$.fragment,n),h(Gp.$$.fragment,n),h(Np.$$.fragment,n),h(Xp.$$.fragment,n),h(Vp.$$.fragment,n),h(qp.$$.fragment,n),h(Wp.$$.fragment,n),h(Bp.$$.fragment,n),h(Qp.$$.fragment,n),h(Ep.$$.fragment,n),h(Hp.$$.fragment,n),h(Lp.$$.fragment,n),h(Yp.$$.fragment,n),h(Sp.$$.fragment,n),h(Ap.$$.fragment,n),h(Pp.$$.fragment,n),h(Kp.$$.fragment,n),h(em.$$.fragment,n),h(tm.$$.fragment,n),h(Zl.$$.fragment,n),h(sm.$$.fragment,n),h(Fl.$$.fragment,n),h(am.$$.fragment,n),h(Rl.$$.fragment,n),h(nm.$$.fragment,n),h(zl.$$.fragment,n),h(rm.$$.fragment,n),h(Gl.$$.fragment,n),h(om.$$.fragment,n),h(Nl.$$.fragment,n),h(lm.$$.fragment,n),h(Xl.$$.fragment,n),h(cm.$$.fragment,n),h(Vl.$$.fragment,n),h(dm.$$.fragment,n),h(ql.$$.fragment,n),h(im.$$.fragment,n),h(Wl.$$.fragment,n),h(pm.$$.fragment,n),h(mm.$$.fragment,n),h(Bl.$$.fragment,n),h(gm.$$.fragment,n),h(Ql.$$.fragment,n),h(um.$$.fragment,n),h(fm.$$.fragment,n),h(bm.$$.fragment,n),h(_m.$$.fragment,n),h(xm.$$.fragment,n),h($m.$$.fragment,n),h(ym.$$.fragment,n),h(Pl.$$.fragment,n),h(jm.$$.fragment,n),h(wm.$$.fragment,n),h(Kl.$$.fragment,n),h(vm.$$.fragment,n),h(Ol.$$.fragment,n),h(Mm.$$.fragment,n),h(ec.$$.fragment,n),h(km.$$.fragment,n),h(tc.$$.fragment,n),h(Jm.$$.fragment,n),h(Tm.$$.fragment,n),h(sc.$$.fragment,n),h(Dm.$$.fragment,n),h(ac.$$.fragment,n),h(Im.$$.fragment,n),h(nc.$$.fragment,n),h(Cm.$$.fragment,n),h(rc.$$.fragment,n),h(Um.$$.fragment,n),h(Zm.$$.fragment,n),h(lc.$$.fragment,n),h(Fm.$$.fragment,n),h(Rm.$$.fragment,n),h(dc.$$.fragment,n),h(zm.$$.fragment,n),h(ic.$$.fragment,n),h(Gm.$$.fragment,n),h(pc.$$.fragment,n),h(Nm.$$.fragment,n),h(mc.$$.fragment,n),h(Xm.$$.fragment,n),h(hc.$$.fragment,n),h(Vm.$$.fragment,n),h(qm.$$.fragment,n),h(Wm.$$.fragment,n),h(Bm.$$.fragment,n),h(Qm.$$.fragment,n),h(Em.$$.fragment,n),h(_c.$$.fragment,n),h(Hm.$$.fragment,n),h(Lm.$$.fragment,n),h(Ym.$$.fragment,n),h(Sm.$$.fragment,n),h(Am.$$.fragment,n),h(Pm.$$.fragment,n),h(Km.$$.fragment,n),h(Om.$$.fragment,n),h(wc.$$.fragment,n),h(eh.$$.fragment,n),h(vc.$$.fragment,n),h(th.$$.fragment,n),h(ah.$$.fragment,n),h(Mc.$$.fragment,n),h(nh.$$.fragment,n),h(kc.$$.fragment,n),h(rh.$$.fragment,n),h(Jc.$$.fragment,n),h(oh.$$.fragment,n),h(Tc.$$.fragment,n),h(lh.$$.fragment,n),h(ch.$$.fragment,n),h(dh.$$.fragment,n),h(Ic.$$.fragment,n),h(Cc.$$.fragment,n),h(Uc.$$.fragment,n),h(Zc.$$.fragment,n),h(Fc.$$.fragment,n),h(ih.$$.fragment,n),h(ph.$$.fragment,n),h(mh.$$.fragment,n),h(hh.$$.fragment,n),h(gh.$$.fragment,n),P2=!0)},o(n){g(c.$$.fragment,n),g(m.$$.fragment,n),g(Wc.$$.fragment,n),g(Bc.$$.fragment,n),g(Kn.$$.fragment,n),g(Qc.$$.fragment,n),g(On.$$.fragment,n),g(Ec.$$.fragment,n),g(Lc.$$.fragment,n),g(Yc.$$.fragment,n),g(Sc.$$.fragment,n),g(er.$$.fragment,n),g(Ac.$$.fragment,n),g(Pc.$$.fragment,n),g(tr.$$.fragment,n),g(Kc.$$.fragment,n),g(Oc.$$.fragment,n),g(ed.$$.fragment,n),g(nr.$$.fragment,n),g(td.$$.fragment,n),g(sd.$$.fragment,n),g(or.$$.fragment,n),g(lr.$$.fragment,n),g(ad.$$.fragment,n),g(cr.$$.fragment,n),g(nd.$$.fragment,n),g(dr.$$.fragment,n),g(rd.$$.fragment,n),g(ir.$$.fragment,n),g(od.$$.fragment,n),g(pr.$$.fragment,n),g(ld.$$.fragment,n),g(mr.$$.fragment,n),g(cd.$$.fragment,n),g(hr.$$.fragment,n),g(dd.$$.fragment,n),g(gr.$$.fragment,n),g(id.$$.fragment,n),g(ur.$$.fragment,n),g(pd.$$.fragment,n),g(fr.$$.fragment,n),g(md.$$.fragment,n),g(br.$$.fragment,n),g(hd.$$.fragment,n),g(_r.$$.fragment,n),g(gd.$$.fragment,n),g(xr.$$.fragment,n),g(ud.$$.fragment,n),g($r.$$.fragment,n),g(fd.$$.fragment,n),g(yr.$$.fragment,n),g(bd.$$.fragment,n),g(jr.$$.fragment,n),g(_d.$$.fragment,n),g(wr.$$.fragment,n),g(xd.$$.fragment,n),g($d.$$.fragment,n),g(yd.$$.fragment,n),g(jd.$$.fragment,n),g(Mr.$$.fragment,n),g(kr.$$.fragment,n),g(wd.$$.fragment,n),g(Jr.$$.fragment,n),g(vd.$$.fragment,n),g(Tr.$$.fragment,n),g(Md.$$.fragment,n),g(Dr.$$.fragment,n),g(kd.$$.fragment,n),g(Ir.$$.fragment,n),g(Jd.$$.fragment,n),g(Td.$$.fragment,n),g(Ur.$$.fragment,n),g(Dd.$$.fragment,n),g(Zr.$$.fragment,n),g(Id.$$.fragment,n),g(Fr.$$.fragment,n),g(Cd.$$.fragment,n),g(Rr.$$.fragment,n),g(Ud.$$.fragment,n),g(zr.$$.fragment,n),g(Zd.$$.fragment,n),g(Gr.$$.fragment,n),g(Nr.$$.fragment,n),g(Xr.$$.fragment,n),g(Fd.$$.fragment,n),g(Vr.$$.fragment,n),g(Rd.$$.fragment,n),g(qr.$$.fragment,n),g(zd.$$.fragment,n),g(Wr.$$.fragment,n),g(Gd.$$.fragment,n),g(Br.$$.fragment,n),g(Nd.$$.fragment,n),g(Qr.$$.fragment,n),g(Xd.$$.fragment,n),g(Er.$$.fragment,n),g(Hr.$$.fragment,n),g(Lr.$$.fragment,n),g(Vd.$$.fragment,n),g(Yr.$$.fragment,n),g(qd.$$.fragment,n),g(Sr.$$.fragment,n),g(Wd.$$.fragment,n),g(Bd.$$.fragment,n),g(Pr.$$.fragment,n),g(Qd.$$.fragment,n),g(Kr.$$.fragment,n),g(Ed.$$.fragment,n),g(Or.$$.fragment,n),g(Hd.$$.fragment,n),g(eo.$$.fragment,n),g(Ld.$$.fragment,n),g(to.$$.fragment,n),g(Yd.$$.fragment,n),g(so.$$.fragment,n),g(Sd.$$.fragment,n),g(ao.$$.fragment,n),g(no.$$.fragment,n),g(ro.$$.fragment,n),g(oo.$$.fragment,n),g(lo.$$.fragment,n),g(co.$$.fragment,n),g(io.$$.fragment,n),g(Ad.$$.fragment,n),g(po.$$.fragment,n),g(Pd.$$.fragment,n),g(Kd.$$.fragment,n),g(Od.$$.fragment,n),g(ei.$$.fragment,n),g(ho.$$.fragment,n),g(ti.$$.fragment,n),g(si.$$.fragment,n),g(ai.$$.fragment,n),g(ni.$$.fragment,n),g(ri.$$.fragment,n),g(oi.$$.fragment,n),g(li.$$.fragment,n),g(ci.$$.fragment,n),g(di.$$.fragment,n),g(ii.$$.fragment,n),g(pi.$$.fragment,n),g(mi.$$.fragment,n),g(hi.$$.fragment,n),g(gi.$$.fragment,n),g(ui.$$.fragment,n),g(fi.$$.fragment,n),g(bi.$$.fragment,n),g(_i.$$.fragment,n),g(xi.$$.fragment,n),g($i.$$.fragment,n),g(yi.$$.fragment,n),g(ji.$$.fragment,n),g(wi.$$.fragment,n),g(vi.$$.fragment,n),g(vo.$$.fragment,n),g(Mi.$$.fragment,n),g(Mo.$$.fragment,n),g(ki.$$.fragment,n),g(ko.$$.fragment,n),g(Ji.$$.fragment,n),g(Jo.$$.fragment,n),g(Ti.$$.fragment,n),g(To.$$.fragment,n),g(Do.$$.fragment,n),g(Di.$$.fragment,n),g(Ii.$$.fragment,n),g(Io.$$.fragment,n),g(Ci.$$.fragment,n),g(Co.$$.fragment,n),g(Ui.$$.fragment,n),g(Uo.$$.fragment,n),g(Zi.$$.fragment,n),g(Fi.$$.fragment,n),g(Ri.$$.fragment,n),g(zi.$$.fragment,n),g(Gi.$$.fragment,n),g(Xi.$$.fragment,n),g(Vi.$$.fragment,n),g(Zo.$$.fragment,n),g(qi.$$.fragment,n),g(Fo.$$.fragment,n),g(Wi.$$.fragment,n),g(Ro.$$.fragment,n),g(Bi.$$.fragment,n),g(zo.$$.fragment,n),g(Qi.$$.fragment,n),g(Go.$$.fragment,n),g(Ei.$$.fragment,n),g(No.$$.fragment,n),g(Hi.$$.fragment,n),g(Xo.$$.fragment,n),g(Li.$$.fragment,n),g(Vo.$$.fragment,n),g(Yi.$$.fragment,n),g(qo.$$.fragment,n),g(Si.$$.fragment,n),g(Wo.$$.fragment,n),g(Ai.$$.fragment,n),g(Bo.$$.fragment,n),g(Pi.$$.fragment,n),g(Qo.$$.fragment,n),g(Ki.$$.fragment,n),g(Eo.$$.fragment,n),g(Oi.$$.fragment,n),g(Ho.$$.fragment,n),g(ep.$$.fragment,n),g(tp.$$.fragment,n),g(Yo.$$.fragment,n),g(sp.$$.fragment,n),g(So.$$.fragment,n),g(ap.$$.fragment,n),g(Ao.$$.fragment,n),g(np.$$.fragment,n),g(Po.$$.fragment,n),g(rp.$$.fragment,n),g(Ko.$$.fragment,n),g(op.$$.fragment,n),g(Oo.$$.fragment,n),g(lp.$$.fragment,n),g(el.$$.fragment,n),g(cp.$$.fragment,n),g(tl.$$.fragment,n),g(dp.$$.fragment,n),g(sl.$$.fragment,n),g(ip.$$.fragment,n),g(al.$$.fragment,n),g(pp.$$.fragment,n),g(nl.$$.fragment,n),g(rl.$$.fragment,n),g(mp.$$.fragment,n),g(ol.$$.fragment,n),g(hp.$$.fragment,n),g(ll.$$.fragment,n),g(gp.$$.fragment,n),g(cl.$$.fragment,n),g(up.$$.fragment,n),g(dl.$$.fragment,n),g(fp.$$.fragment,n),g(il.$$.fragment,n),g(bp.$$.fragment,n),g(pl.$$.fragment,n),g(_p.$$.fragment,n),g(xp.$$.fragment,n),g(yp.$$.fragment,n),g(jp.$$.fragment,n),g(ml.$$.fragment,n),g(hl.$$.fragment,n),g(wp.$$.fragment,n),g(gl.$$.fragment,n),g(vp.$$.fragment,n),g(ul.$$.fragment,n),g(Mp.$$.fragment,n),g(fl.$$.fragment,n),g(kp.$$.fragment,n),g(bl.$$.fragment,n),g(Jp.$$.fragment,n),g(Tp.$$.fragment,n),g(Dp.$$.fragment,n),g(xl.$$.fragment,n),g(Ip.$$.fragment,n),g($l.$$.fragment,n),g(Cp.$$.fragment,n),g(yl.$$.fragment,n),g(Up.$$.fragment,n),g(jl.$$.fragment,n),g(Zp.$$.fragment,n),g(wl.$$.fragment,n),g(Fp.$$.fragment,n),g(vl.$$.fragment,n),g(Rp.$$.fragment,n),g(Ml.$$.fragment,n),g(kl.$$.fragment,n),g(Jl.$$.fragment,n),g(zp.$$.fragment,n),g(Tl.$$.fragment,n),g(Dl.$$.fragment,n),g(Il.$$.fragment,n),g(Gp.$$.fragment,n),g(Np.$$.fragment,n),g(Xp.$$.fragment,n),g(Vp.$$.fragment,n),g(qp.$$.fragment,n),g(Wp.$$.fragment,n),g(Bp.$$.fragment,n),g(Qp.$$.fragment,n),g(Ep.$$.fragment,n),g(Hp.$$.fragment,n),g(Lp.$$.fragment,n),g(Yp.$$.fragment,n),g(Sp.$$.fragment,n),g(Ap.$$.fragment,n),g(Pp.$$.fragment,n),g(Kp.$$.fragment,n),g(em.$$.fragment,n),g(tm.$$.fragment,n),g(Zl.$$.fragment,n),g(sm.$$.fragment,n),g(Fl.$$.fragment,n),g(am.$$.fragment,n),g(Rl.$$.fragment,n),g(nm.$$.fragment,n),g(zl.$$.fragment,n),g(rm.$$.fragment,n),g(Gl.$$.fragment,n),g(om.$$.fragment,n),g(Nl.$$.fragment,n),g(lm.$$.fragment,n),g(Xl.$$.fragment,n),g(cm.$$.fragment,n),g(Vl.$$.fragment,n),g(dm.$$.fragment,n),g(ql.$$.fragment,n),g(im.$$.fragment,n),g(Wl.$$.fragment,n),g(pm.$$.fragment,n),g(mm.$$.fragment,n),g(Bl.$$.fragment,n),g(gm.$$.fragment,n),g(Ql.$$.fragment,n),g(um.$$.fragment,n),g(fm.$$.fragment,n),g(bm.$$.fragment,n),g(_m.$$.fragment,n),g(xm.$$.fragment,n),g($m.$$.fragment,n),g(ym.$$.fragment,n),g(Pl.$$.fragment,n),g(jm.$$.fragment,n),g(wm.$$.fragment,n),g(Kl.$$.fragment,n),g(vm.$$.fragment,n),g(Ol.$$.fragment,n),g(Mm.$$.fragment,n),g(ec.$$.fragment,n),g(km.$$.fragment,n),g(tc.$$.fragment,n),g(Jm.$$.fragment,n),g(Tm.$$.fragment,n),g(sc.$$.fragment,n),g(Dm.$$.fragment,n),g(ac.$$.fragment,n),g(Im.$$.fragment,n),g(nc.$$.fragment,n),g(Cm.$$.fragment,n),g(rc.$$.fragment,n),g(Um.$$.fragment,n),g(Zm.$$.fragment,n),g(lc.$$.fragment,n),g(Fm.$$.fragment,n),g(Rm.$$.fragment,n),g(dc.$$.fragment,n),g(zm.$$.fragment,n),g(ic.$$.fragment,n),g(Gm.$$.fragment,n),g(pc.$$.fragment,n),g(Nm.$$.fragment,n),g(mc.$$.fragment,n),g(Xm.$$.fragment,n),g(hc.$$.fragment,n),g(Vm.$$.fragment,n),g(qm.$$.fragment,n),g(Wm.$$.fragment,n),g(Bm.$$.fragment,n),g(Qm.$$.fragment,n),g(Em.$$.fragment,n),g(_c.$$.fragment,n),g(Hm.$$.fragment,n),g(Lm.$$.fragment,n),g(Ym.$$.fragment,n),g(Sm.$$.fragment,n),g(Am.$$.fragment,n),g(Pm.$$.fragment,n),g(Km.$$.fragment,n),g(Om.$$.fragment,n),g(wc.$$.fragment,n),g(eh.$$.fragment,n),g(vc.$$.fragment,n),g(th.$$.fragment,n),g(ah.$$.fragment,n),g(Mc.$$.fragment,n),g(nh.$$.fragment,n),g(kc.$$.fragment,n),g(rh.$$.fragment,n),g(Jc.$$.fragment,n),g(oh.$$.fragment,n),g(Tc.$$.fragment,n),g(lh.$$.fragment,n),g(ch.$$.fragment,n),g(dh.$$.fragment,n),g(Ic.$$.fragment,n),g(Cc.$$.fragment,n),g(Uc.$$.fragment,n),g(Zc.$$.fragment,n),g(Fc.$$.fragment,n),g(ih.$$.fragment,n),g(ph.$$.fragment,n),g(mh.$$.fragment,n),g(hh.$$.fragment,n),g(gh.$$.fragment,n),P2=!1},d(n){n&&(p(x),p(l),p(s),p(e),p(Q),p(q),p(o2),p(l2),p(Hc),p(c2),p(J),p(d2),p(Ct),p(i2),p(L),p(p2),p(oe),p(m2),p(fe),p(h2),p(be),p(g2),p(_e),p(u2),p(f2),p(Ni),p(b2),p(U),p(_2),p(Ub),p(x2),p($2),p($p),p(y2),p(F),p(j2),p(w2),p(Op),p(v2),p(B),p(M2),p(k2),p(z),p(J2),p(Ut),p(T2),p(Y),p(D2),p(Be),p(I2),p(Qe),p(C2),p(Ee),p(U2),p(Zt),p(Z2),p(Ft),p(F2),p(Rt),p(R2),p(zt),p(z2),p(E),p(G2),p(H),p(N2),p(X2),p(le),p(V2),p(q2),p(sh),p(W2),p(te),p(B2),p(Q2),p(N),p(E2),p(Za),p(H2),p(Fa),p(L2),p(Y2),p(Ra),p(S2),p(A2),p(z$)),p(t),_(c,n),_(m,n),_(Wc),_(Bc),_(Kn),_(Qc),_(On),_(Ec,n),_(Lc),_(Yc),_(Sc),_(er),_(Ac),_(Pc),_(tr),_(Kc),_(Oc),_(ed),_(nr),_(td),_(sd),_(or),_(lr),_(ad),_(cr),_(nd),_(dr),_(rd),_(ir),_(od),_(pr),_(ld),_(mr),_(cd),_(hr),_(dd),_(gr),_(id),_(ur),_(pd),_(fr),_(md),_(br),_(hd),_(_r),_(gd),_(xr),_(ud),_($r),_(fd),_(yr),_(bd),_(jr),_(_d),_(wr),_(xd),_($d),_(yd),_(jd),_(Mr),_(kr),_(wd),_(Jr),_(vd),_(Tr),_(Md),_(Dr),_(kd),_(Ir),_(Jd),_(Td),_(Ur),_(Dd),_(Zr),_(Id),_(Fr),_(Cd),_(Rr),_(Ud),_(zr),_(Zd),_(Gr),_(Nr),_(Xr),_(Fd),_(Vr),_(Rd),_(qr),_(zd),_(Wr),_(Gd),_(Br),_(Nd),_(Qr),_(Xd),_(Er),_(Hr),_(Lr),_(Vd),_(Yr),_(qd),_(Sr),_(Wd),_(Bd),_(Pr),_(Qd),_(Kr),_(Ed),_(Or),_(Hd),_(eo),_(Ld),_(to),_(Yd),_(so),_(Sd),_(ao),_(no),_(ro),_(oo),_(lo),_(co),_(io),_(Ad),_(po),_(Pd),_(Kd),_(Od),_(ei),_(ho),_(ti),_(si),_(ai),_(ni),_(ri),_(oi),_(li),_(ci),_(di),_(ii),_(pi),_(mi),_(hi),_(gi),_(ui),_(fi),_(bi),_(_i),_(xi),_($i),_(yi),_(ji),_(wi),_(vi),_(vo),_(Mi),_(Mo),_(ki),_(ko),_(Ji),_(Jo),_(Ti),_(To),_(Do),_(Di),_(Ii),_(Io),_(Ci),_(Co),_(Ui),_(Uo),_(Zi),_(Fi),_(Ri),_(zi),_(Gi,n),_(Xi),_(Vi),_(Zo),_(qi),_(Fo),_(Wi),_(Ro),_(Bi),_(zo),_(Qi),_(Go),_(Ei),_(No),_(Hi),_(Xo),_(Li),_(Vo),_(Yi),_(qo),_(Si),_(Wo),_(Ai),_(Bo),_(Pi),_(Qo),_(Ki),_(Eo),_(Oi),_(Ho),_(ep),_(tp),_(Yo),_(sp),_(So),_(ap),_(Ao),_(np),_(Po),_(rp),_(Ko),_(op),_(Oo),_(lp),_(el),_(cp),_(tl),_(dp),_(sl),_(ip),_(al),_(pp),_(nl),_(rl),_(mp),_(ol),_(hp),_(ll),_(gp),_(cl),_(up),_(dl),_(fp),_(il),_(bp),_(pl),_(_p),_(xp,n),_(yp),_(jp),_(ml),_(hl),_(wp),_(gl),_(vp),_(ul),_(Mp),_(fl),_(kp),_(bl),_(Jp),_(Tp),_(Dp),_(xl),_(Ip),_($l),_(Cp),_(yl),_(Up),_(jl),_(Zp),_(wl),_(Fp),_(vl),_(Rp),_(Ml),_(kl),_(Jl),_(zp),_(Tl),_(Dl),_(Il),_(Gp),_(Np),_(Xp),_(Vp),_(qp),_(Wp),_(Bp),_(Qp),_(Ep),_(Hp),_(Lp),_(Yp),_(Sp),_(Ap),_(Pp),_(Kp,n),_(em),_(tm),_(Zl),_(sm),_(Fl),_(am),_(Rl),_(nm),_(zl),_(rm),_(Gl),_(om),_(Nl),_(lm),_(Xl),_(cm),_(Vl),_(dm),_(ql),_(im),_(Wl),_(pm,n),_(mm),_(Bl),_(gm),_(Ql),_(um),_(fm),_(bm),_(_m),_(xm),_($m),_(ym),_(Pl),_(jm),_(wm),_(Kl),_(vm),_(Ol),_(Mm),_(ec),_(km),_(tc),_(Jm),_(Tm),_(sc),_(Dm),_(ac),_(Im),_(nc),_(Cm),_(rc),_(Um),_(Zm),_(lc),_(Fm),_(Rm),_(dc),_(zm),_(ic),_(Gm),_(pc),_(Nm),_(mc),_(Xm),_(hc),_(Vm),_(qm),_(Wm),_(Bm),_(Qm),_(Em),_(_c),_(Hm),_(Lm),_(Ym),_(Sm),_(Am),_(Pm,n),_(Km),_(Om),_(wc),_(eh),_(vc),_(th,n),_(ah),_(Mc),_(nh),_(kc),_(rh),_(Jc),_(oh),_(Tc),_(lh),_(ch,n),_(dh),_(Ic),_(Cc),_(Uc),_(Zc),_(Fc),_(ih),_(ph),_(mh,n),_(hh),_(gh,n)}}}const Cz='{"title":"Main classes","local":"main-classes","sections":[{"title":"DatasetInfo","local":"datasets.DatasetInfo","sections":[],"depth":2},{"title":"Dataset","local":"datasets.Dataset","sections":[],"depth":2},{"title":"DatasetDict","local":"datasets.DatasetDict","sections":[],"depth":2},{"title":"IterableDataset","local":"datasets.IterableDataset","sections":[],"depth":2},{"title":"IterableDatasetDict","local":"datasets.IterableDatasetDict","sections":[],"depth":2},{"title":"Features","local":"datasets.Features","sections":[],"depth":2},{"title":"MetricInfo","local":"datasets.MetricInfo","sections":[],"depth":2},{"title":"Metric","local":"datasets.Metric","sections":[],"depth":2},{"title":"Filesystems","local":"datasets.filesystems.S3FileSystem","sections":[],"depth":2},{"title":"Fingerprint","local":"datasets.fingerprint.Hasher","sections":[],"depth":2}],"depth":1}';function Uz(w){return vF(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class qz extends _F{constructor(t){super(),xF(this,t,Uz,Iz,bF,{})}}export{qz as component};
