import{s as o3,c as d3,u as i3,g as p3,d as m3,o as h3,n as D}from"../chunks/scheduler.bdbef820.js";import{S as l3,i as c3,r as u,u as f,v as b,d as h,t as g,w as _,g as d,m as YD,s as r,h as i,j as v,n as SD,f as p,c as o,k as M,a as j,y as a,o as g3,A as u3,x as $}from"../chunks/index.c0aea24a.js";import{T as AD}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{H as En,E as f3}from"../chunks/EditOnGithub.725ee0c1.js";function b3(w){let t,x,l,s,c;const e=w[1].default,m=d3(e,w,w[2],null);return{c(){t=d("p"),x=YD("Added in "),l=YD(w[0]),s=r(),m&&m.c(),this.h()},l(Q){t=i(Q,"P",{class:!0});var q=v(t);x=SD(q,"Added in "),l=SD(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)&&g3(l,Q[0]),m&&m.p&&(!c||q&4)&&i3(m,e,Q,Q[2],c?m3(e,Q[2],q,null):p3(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 _3(w){let t,x;return t=new AD({props:{$$slots:{default:[b3]},$$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 x3(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 r3 extends l3{constructor(t){super(),c3(this,t,x3,_3,o3,{version:0})}}function $3(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 y3(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 j3(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 w3(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 v3(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 M3(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 k3(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 J3(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 T3(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 D3(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 I3(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 C3(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 U3(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 Z3(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 F3(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 R3(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 z3(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 G3(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 N3(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 X3(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 V3(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 q3(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 W3(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 B3(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 Q3(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 E3(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 H3(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 L3(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 Y3(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 S3(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 A3(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 P3(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 K3(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 O3(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 eF(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 tF(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 sF(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 aF(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 nF(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 rF(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 oF(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 lF(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 cF(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 dF(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 iF(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 pF(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 mF(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 hF(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 gF(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 uF(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 fF(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 bF(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 _F(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 xF(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 $F(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 yF(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 jF(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 wF(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 vF(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 MF(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 kF(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 JF(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 TF(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 DF(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 IF(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 CF(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 UF(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 ZF(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 FF(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 RF(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 zF(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 GF(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 NF(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 XF(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 VF(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 qF(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 WF(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 BF(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 QF(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 EF(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 HF(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 LF(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 YF(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 SF(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 AF(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 PF(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 KF(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 OF(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 eR(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 tR(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 sR(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 aR(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 nR(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 rR(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 oR(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 lR(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 cR(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 dR(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 iR(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 pR(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 mR(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 hR(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 gR(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 uR(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 fR(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 bR(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 _R(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 xR(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 $R(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 yR(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 jR(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 wR(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 vR(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 MR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZHMlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyc29tZV9kYXRhc2V0JTIyJTJDJTIwc3RyZWFtaW5nJTNEVHJ1ZSklMEFiYXRjaGVkX2RzJTIwJTNEJTIwZHMuYmF0Y2goYmF0Y2hfc2l6ZSUzRDMyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>ds = load_dataset(<span class="hljs-string">&quot;some_dataset&quot;</span>, streaming=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>batched_ds = ds.batch(batch_size=<span class="hljs-number">32</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:"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 JR(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 TR(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 DR(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 IR(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 CR(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 UR(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 ZR(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 FR(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 RR(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 zR(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 GR(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 NR(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 XR(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 VR(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 qR(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 WR(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 BR(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 QR(w){let t,x=`A <a href="/docs/datasets/pr_7019/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 compatibility 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_7019/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-equ2pf"&&(t.innerHTML=x)},m(l,s){j(l,t,s)},p:D,d(l){l&&p(t)}}}function ER(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 HR(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 LR(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 YR(w){let t,x="Example:",l,s,c;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwRmVhdHVyZXMlMkMlMjBTZXF1ZW5jZSUyQyUyMFZhbHVlJTBBJTIzJTIwbGV0J3MlMjBzYXklMjB3ZSUyMGhhdmUlMjB0d28lMjBmZWF0dXJlcyUyMHdpdGglMjBhJTIwZGlmZmVyZW50JTIwb3JkZXIlMjBvZiUyMG5lc3RlZCUyMGZpZWxkcyUyMChmb3IlMjBhJTIwYW5kJTIwYiUyMGZvciUyMGV4YW1wbGUpJTBBZjElMjAlM0QlMjBGZWF0dXJlcyglN0IlMjJyb290JTIyJTNBJTIwU2VxdWVuY2UoJTdCJTIyYSUyMiUzQSUyMFZhbHVlKCUyMnN0cmluZyUyMiklMkMlMjAlMjJiJTIyJTNBJTIwVmFsdWUoJTIyc3RyaW5nJTIyKSU3RCklN0QpJTBBZjIlMjAlM0QlMjBGZWF0dXJlcyglN0IlMjJyb290JTIyJTNBJTIwJTdCJTIyYiUyMiUzQSUyMFNlcXVlbmNlKFZhbHVlKCUyMnN0cmluZyUyMikpJTJDJTIwJTIyYSUyMiUzQSUyMFNlcXVlbmNlKFZhbHVlKCUyMnN0cmluZyUyMikpJTdEJTdEKSUwQWFzc2VydCUyMGYxLnR5cGUlMjAhJTNEJTIwZjIudHlwZSUwQSUyMyUyMHJlLW9yZGVyaW5nJTIwa2VlcHMlMjB0aGUlMjBiYXNlJTIwc3RydWN0dXJlJTIwKGhlcmUlMjBTZXF1ZW5jZSUyMGlzJTIwZGVmaW5lZCUyMGF0JTIwdGhlJTIwcm9vdCUyMGxldmVsKSUyQyUyMGJ1dCUyMG1ha2VzJTIwdGhlJTIwZmllbGRzJTIwb3JkZXIlMjBtYXRjaCUwQWYxLnJlb3JkZXJfZmllbGRzX2FzKGYyKSUwQWFzc2VydCUyMGYxLnJlb3JkZXJfZmllbGRzX2FzKGYyKS50eXBlJTIwJTNEJTNEJTIwZjIudHlwZQ==",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 two 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 makes 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 SR(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 AR(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 PR(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 KR(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 OR(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 ez(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 tz(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 sz(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 az(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 nz(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 rz(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 oz(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 lz(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 cz(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 dz(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 iz(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 pz(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 mz(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 hz(w){let t,x,l,s,c,e,m,Q,q,Dc,D2,gh,PD="Information about a dataset.",I2,uh,KD=`<code>DatasetInfo</code> documents datasets, including its name, version, and features.
See the constructor arguments and properties for a full list.`,C2,fh,OD="Not all fields are known on construction and may be updated later.",U2,we,Ic,Z2,bh,eI='Create <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetInfo">DatasetInfo</a> from the JSON file in <code>dataset_info_dir</code>.',F2,_h,tI=`This function updates all the dynamically generated fields (num_examples,
hash, time of creation,…) of the <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetInfo">DatasetInfo</a>.`,R2,xh,sI="This will overwrite all previous metadata.",z2,Hn,G2,Yt,Cc,N2,$h,aI="Write <code>DatasetInfo</code> and license (if present) as JSON files to <code>dataset_info_dir</code>.",X2,Ln,y$,Uc,j$,Zc,nI='The base class <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset">Dataset</a> implements a Dataset backed by an Apache Arrow table.',w$,J,Fc,V2,yh,rI="A Dataset backed by an Arrow table.",q2,lt,Rc,W2,jh,oI="Add column to Dataset.",B2,zc,Q2,Yn,E2,ct,Gc,H2,wh,lI="Add item to Dataset.",L2,Nc,Y2,Sn,S2,An,Xc,A2,vh,cI="Instantiate a Dataset backed by an Arrow table at filename.",P2,Pn,Vc,K2,Mh,dI="Instantiate a Dataset backed by an Arrow buffer.",O2,ve,qc,ey,kh,iI='Convert <code>pandas.DataFrame</code> to a <code>pyarrow.Table</code> to create a <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset">Dataset</a>.',ty,Jh,pI=`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.`,sy,Th,mI=`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.`,ay,Kn,ny,On,Wc,ry,Dh,hI='Convert <code>dict</code> to a <code>pyarrow.Table</code> to create a <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset">Dataset</a>.',oy,dt,Bc,ly,Ih,gI="Create a Dataset from a generator.",cy,er,dy,tr,iy,St,Qc,py,Ch,uI="The Apache Arrow table backing the dataset.",my,sr,hy,At,Ec,gy,Uh,fI="The cache files containing the Apache Arrow table backing the dataset.",uy,ar,fy,Pt,Hc,by,Zh,bI="Number of columns in the dataset.",_y,nr,xy,Kt,Lc,$y,Fh,_I='Number of rows in the dataset (same as <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset.__len__">Dataset.<strong>len</strong>()</a>).',yy,rr,jy,Ot,Yc,wy,Rh,xI="Names of the columns in the dataset.",vy,or,My,es,Sc,ky,zh,$I="Shape of the dataset (number of columns, number of rows).",Jy,lr,Ty,it,Ac,Dy,Gh,yI="Return a list of the unique elements in a column.",Iy,Nh,jI="This is implemented in the low-level backend and as such, very fast.",Cy,cr,Uy,ts,Pc,Zy,Xh,wI=`Flatten the table.
Each column with a struct type is flattened into one column per struct field.
Other columns are left unchanged.`,Fy,dr,Ry,ss,Kc,zy,Vh,vI="Cast the dataset to a new set of features.",Gy,ir,Ny,as,Oc,Xy,qh,MI="Cast column to feature for decoding.",Vy,pr,qy,pt,ed,Wy,Wh,kI="Remove one or several column(s) in the dataset and the features associated to them.",By,Bh,JI=`You can also remove a column using <a href="/docs/datasets/pr_7019/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.`,Qy,mr,Ey,ns,td,Hy,Qh,TI=`Rename a column in the dataset, and move the features associated to the original column under the new column
name.`,Ly,hr,Yy,rs,sd,Sy,Eh,DI=`Rename several columns in the dataset, and move the features associated to the original columns under
the new column names.`,Ay,gr,Py,os,ad,Ky,Hh,II=`Select one or several column(s) in the dataset and the features
associated to them.`,Oy,ur,e1,ls,nd,t1,Lh,CI='Casts the given column as <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.ClassLabel">ClassLabel</a> and updates the table.',s1,fr,a1,cs,rd,n1,Yh,UI="Number of rows in the dataset.",r1,br,o1,ds,od,l1,Sh,ZI="Iterate through the examples.",c1,Ah,FI=`If a formatting is set with <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset.set_format">Dataset.set_format()</a> rows will be returned with the
selected format.`,d1,is,ld,i1,Ph,RI="Iterate through the batches of size <em>batch_size</em>.",p1,Kh,zI=`If a formatting is set with [<em>~datasets.Dataset.set_format</em>] rows will be returned with the
selected format.`,m1,_r,cd,h1,Oh,GI="To be used in a <code>with</code> statement. Set <code>__getitem__</code> return format (type and columns).",g1,Me,dd,u1,eg,NI=`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_7019/en/package_reference/main_classes#datasets.Dataset.set_transform">set_transform()</a>.`,f1,tg,XI='It is possible to call <a href="/docs/datasets/pr_7019/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',b1,xr,_1,$r,x1,ps,id,$1,sg,VI=`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_7019/en/package_reference/main_classes#datasets.Dataset.set_format">set_format()</a>, this can be reset using <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset.reset_format">reset_format()</a>.`,y1,yr,j1,mt,pd,w1,ag,qI="Reset <code>__getitem__</code> return format to python objects and all columns.",v1,ng,WI="Same as <code>self.set_format()</code>",M1,jr,k1,ke,md,J1,rg,BI=`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>.`,T1,og,QI='It’s also possible to use custom transforms for formatting using <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset.with_transform">with_transform()</a>.',D1,lg,EI='Contrary to <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset.set_format">set_format()</a>, <code>with_format</code> returns a new <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset">Dataset</a> object.',I1,wr,C1,Je,hd,U1,cg,HI="Set <code>__getitem__</code> return format using this transform. The transform is applied on-the-fly on batches when <code>__getitem__</code> is called.",Z1,dg,LI='As <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset.set_format">set_format()</a>, this can be reset using <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset.reset_format">reset_format()</a>.',F1,ig,YI='Contrary to <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset.set_transform">set_transform()</a>, <code>with_transform</code> returns a new <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset">Dataset</a> object.',R1,vr,z1,Mr,gd,G1,pg,SI="Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).",N1,ht,ud,X1,mg,AI=`Clean up all cache files in the dataset cache directory, excepted the currently used cache file if there is
one.`,V1,hg,PI="Be careful when running this command that no other process is currently using other cache files.",q1,kr,W1,Te,fd,B1,gg,KI=`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.`,Q1,ug,OI="You can specify whether the function should be batched or not with the <code>batched</code> parameter:",E1,fg,eC=`<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>`,H1,Jr,L1,ms,bd,Y1,bg,tC=`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.`,S1,Tr,A1,hs,_d,P1,_g,sC="Create a new dataset with rows selected following the list/array of indices.",K1,Dr,O1,gs,xd,e0,xg,aC="Create a new dataset sorted according to a single or multiple columns.",t0,Ir,s0,P,$d,a0,$g,nC="Create a new Dataset where the rows are shuffled.",n0,yg,rC=`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).`,r0,jg,oC=`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_7019/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_7019/en/package_reference/main_classes#datasets.Dataset.flatten_indices">Dataset.flatten_indices()</a>, which removes the indices mapping.`,o0,Cr,l0,wg,lC='In this case, we recommend switching to an <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> and leveraging its fast approximate shuffling method <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.IterableDataset.shuffle">IterableDataset.shuffle()</a>.',c0,Ur,d0,Zr,i0,us,yd,p0,vg,cC='Create a new <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset">Dataset</a> that skips the first <code>n</code> elements.',m0,Fr,h0,fs,jd,g0,Mg,dC='Create a new <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset">Dataset</a> with only the first <code>n</code> elements.',u0,Rr,f0,gt,wd,b0,kg,iC=`Return a dictionary (<a href="/docs/datasets/pr_7019/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>.`,_0,Jg,pC="This method is similar to scikit-learn <code>train_test_split</code>.",x0,zr,$0,ce,vd,y0,Tg,mC="Return the <code>index</code>-nth shard from dataset split into <code>num_shards</code> pieces.",j0,Dg,hC=`This shards deterministically. <code>dset.shard(n, i)</code> will contain all elements of dset whose
index mod <code>n = i</code>.`,w0,Ig,gC=`<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.`,v0,Cg,uC=`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.`,M0,Gr,k0,bs,Md,J0,Ug,fC=`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.`,T0,Nr,D0,de,kd,I0,Zg,bC=`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.`,C0,Fg,_C=`The resulting Parquet files are self-contained by default. If your dataset contains <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Image">Image</a> or <a href="/docs/datasets/pr_7019/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>.`,U0,Xr,Z0,Vr,F0,qr,R0,De,Jd,z0,Rg,xC="Saves a dataset to a dataset directory, or in a filesystem using any implementation of <code>fsspec.spec.AbstractFileSystem</code>.",G0,zg,$C='For <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Image">Image</a> and <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Audio">Audio</a> data:',N0,Gg,yC=`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.`,X0,Wr,V0,_s,Td,q0,Ng,jC=`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>.`,W0,Br,B0,Qr,Dd,Q0,Xg,wC="Create and cache a new Dataset by flattening the indices mapping.",E0,xs,Id,H0,Vg,vC="Exports the dataset to csv",L0,Er,Y0,$s,Cd,S0,qg,MC="Returns the dataset as a <code>pandas.DataFrame</code>. Can also return a generator for large datasets.",A0,Hr,P0,ys,Ud,K0,Wg,kC="Returns the dataset as a Python dict. Can also return a generator for large datasets.",O0,Lr,ej,ut,Zd,tj,Bg,JC="Export the dataset to JSON Lines or JSON.",sj,Qg,TC=`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>.`,aj,Yr,nj,js,Fd,rj,Eg,DC="Exports the dataset to parquet",oj,Sr,lj,ws,Rd,cj,Hg,IC="Exports the dataset to a SQL database.",dj,Ar,ij,G,zd,pj,Lg,CC=`Get an <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.IterableDataset">datasets.IterableDataset</a> from a map-style <a href="/docs/datasets/pr_7019/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_7019/en/package_reference/loading_methods#datasets.load_dataset">datasets.load_dataset()</a>, but much faster since the data is streamed from local files.`,mj,Yg,UC=`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.`,hj,Sg,ZC=`Still, it is possible to shuffle an iterable dataset using <a href="/docs/datasets/pr_7019/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.`,gj,Ag,FC=`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.`,uj,Pg,RC="Example:",fj,Pr,bj,Kr,_j,Or,xj,eo,$j,to,yj,Kg,zC="In a distributed setup like PyTorch DDP with a PyTorch DataLoader and shuffling",jj,so,wj,ao,vj,Mj,ft,Gd,kj,Og,GC=`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:`,Jj,eu,NC='<li>For <a href="https://github.com/facebookresearch/faiss/wiki/The-index-factory" rel="nofollow">string factory</a></li>',Tj,no,Dj,vs,Nd,Ij,tu,XC=`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:`,Cj,su,VC='<li>For <a href="https://github.com/facebookresearch/faiss/wiki/The-index-factory" rel="nofollow">string factory</a></li>',Uj,ro,Xd,Zj,au,qC="Save a FaissIndex on disk.",Fj,Ms,Vd,Rj,nu,WC="Load a FaissIndex from disk.",zj,ru,BC=`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.`,Gj,ks,qd,Nj,ou,QC="Add a text index using ElasticSearch for fast retrieval. This is done in-place.",Xj,oo,Vj,lo,Wd,qj,lu,EC="Load an existing text index using ElasticSearch for fast retrieval.",Wj,co,Bd,Bj,cu,HC="List the <code>colindex_nameumns</code>/identifiers of all the attached indexes.",Qj,io,Qd,Ej,du,LC="List the <code>index_name</code>/identifiers of all the attached indexes.",Hj,po,Ed,Lj,iu,YC="Drop the index with the specified column.",Yj,mo,Hd,Sj,pu,SC="Find the nearest examples indices in the dataset to the query.",Aj,ho,Ld,Pj,mu,AC="Find the nearest examples indices in the dataset to the query.",Kj,go,Yd,Oj,hu,PC="Find the nearest examples in the dataset to the query.",ew,uo,Sd,tw,gu,KC="Find the nearest examples in the dataset to the query.",sw,fo,Ad,aw,uu,OC='<a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetInfo">DatasetInfo</a> object containing all the metadata in the dataset.',nw,bo,Pd,rw,fu,eU='<a href="/docs/datasets/pr_7019/en/package_reference/builder_classes#datasets.NamedSplit">NamedSplit</a> object corresponding to a named dataset split.',ow,bu,Kd,lw,_u,Od,cw,xu,ei,dw,$u,ti,iw,yu,si,pw,ju,ai,mw,wu,ni,hw,vu,ri,gw,Mu,oi,uw,ku,li,fw,Ju,ci,bw,Tu,di,_w,Du,ii,xw,Js,pi,$w,Iu,tU="Create Dataset from CSV file(s).",yw,_o,jw,Ts,mi,ww,Cu,sU="Create Dataset from JSON or JSON Lines file(s).",vw,xo,Mw,Ds,hi,kw,Uu,aU="Create Dataset from Parquet file(s).",Jw,$o,Tw,Is,gi,Dw,Zu,nU="Create Dataset from text file(s).",Iw,yo,Cw,bt,ui,Uw,Fu,rU="Create Dataset from SQL query or database table.",Zw,jo,Fw,wo,Rw,Cs,fi,zw,Ru,oU='Prepare a dataset for the given task by casting the dataset’s <a href="/docs/datasets/pr_7019/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>.',Gw,zu,lU="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.",Nw,Us,bi,Xw,Gu,cU=`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.`,Vw,vo,v$,kt,_i,qw,Nu,dU='Converts a list of <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset">Dataset</a> with the same schema into a single <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset">Dataset</a>.',Ww,Mo,M$,L,xi,Bw,Xu,iU=`Interleave several datasets (sources) into a single dataset.
The new dataset is constructed by alternating between the sources to get the examples.`,Qw,Vu,pU='You can use this function on a list of <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset">Dataset</a> objects, or on a list of <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> objects.',Ew,qu,mU="<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>",Hw,Wu,hU=`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.`,Lw,Bu,gU="Note for iterable datasets:",Yw,Qu,uU=`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).`,Sw,Eu,fU="Example:",Aw,ko,k$,re,$i,Pw,Hu,bU="Split a dataset for the node at rank <code>rank</code> in a pool of nodes of size <code>world_size</code>.",Kw,Lu,_U="For map-style datasets:",Ow,Yu,xU=`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.`,ev,Su,$U="For iterable datasets:",tv,Au,yU=`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.`,J$,ge,yi,sv,Pu,jU=`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.`,av,Ku,wU=`Reloading a dataset is possible since the cache files are named using the dataset fingerprint, which is updated
after each transform.`,nv,Ou,vU=`If disabled, the library will no longer reload cached datasets files when applying transforms to the datasets.
More precisely, if the caching is disabled:`,rv,ef,MU=`<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_7019/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_7019/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_7019/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a>.</li>`,T$,ue,ji,ov,tf,kU=`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,sf,JU=`Reloading a dataset is possible since the cache files are named using the dataset fingerprint, which is updated
after each transform.`,cv,af,TU=`If disabled, the library will no longer reload cached datasets files when applying transforms to the datasets.
More precisely, if the caching is disabled:`,dv,nf,DU=`<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_7019/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_7019/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_7019/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a>.</li>`,D$,fe,wi,iv,rf,IU=`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,of,CU=`Reloading a dataset is possible since the cache files are named using the dataset fingerprint, which is updated
after each transform.`,mv,lf,UU=`If disabled, the library will no longer reload cached datasets files when applying transforms to the datasets.
More precisely, if the caching is disabled:`,hv,cf,ZU=`<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_7019/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_7019/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_7019/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a>.</li>`,I$,vi,C$,Mi,FU=`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.`,U$,U,ki,gv,df,RU="A dictionary (dict of str: datasets.Dataset) with dataset transforms methods (map, filter, etc.)",uv,Zs,Ji,fv,pf,zU="The Apache Arrow tables backing each split.",bv,Jo,_v,Fs,Ti,xv,mf,GU="The cache files containing the Apache Arrow table backing each split.",$v,To,yv,Rs,Di,jv,hf,NU="Number of columns in each split of the dataset.",wv,Do,vv,zs,Ii,Mv,gf,XU="Number of rows in each split of the dataset.",kv,Io,Jv,Gs,Ci,Tv,uf,VU="Names of the columns in each split of the dataset.",Dv,Co,Iv,Ns,Ui,Cv,ff,qU="Shape of each split of the dataset (number of rows, number of columns).",Uv,Uo,Zv,_t,Zi,Fv,bf,WU="Return a list of the unique elements in a column for each split.",Rv,_f,BU="This is implemented in the low-level backend and as such, very fast.",zv,Zo,Gv,Xs,Fi,Nv,xf,QU=`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.`,Xv,Fo,Vv,Vs,Ri,qv,$f,EU=`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.`,Wv,Ro,Bv,qs,zi,Qv,yf,HU=`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.`,Ev,zo,Hv,Ws,Gi,Lv,jf,LU="Create a new dataset sorted according to a single or multiple columns.",Yv,Go,Sv,Ie,Ni,Av,wf,YU="Create a new Dataset where the rows are shuffled.",Pv,vf,SU="The transformation is applied to all the datasets of the dataset dictionary.",Kv,Mf,AU=`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).`,Ov,No,eM,Ce,Xi,tM,kf,PU=`Set <code>__getitem__</code> return format (type and columns).
The format is set for every dataset in the dataset dictionary.`,sM,Jf,KU=`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:`,aM,Tf,OU="<code>new formatted columns = (all columns - previously unformatted columns)</code>",nM,Xo,rM,xt,Vi,oM,Df,eZ=`Reset <code>__getitem__</code> return format to python objects and all columns.
The transformation is applied to all the datasets of the dataset dictionary.`,lM,If,tZ="Same as <code>self.set_format()</code>",cM,Vo,dM,qo,qi,iM,Cf,sZ=`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.`,pM,Ue,Wi,mM,Uf,aZ=`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.`,hM,Zf,nZ='It’s also possible to use custom transforms for formatting using <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset.with_transform">with_transform()</a>.',gM,Ff,rZ='Contrary to <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict.set_format">set_format()</a>, <code>with_format</code> returns a new <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> object with new <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset">Dataset</a> objects.',uM,Wo,fM,Ze,Bi,bM,Rf,oZ=`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`,_M,zf,lZ='As <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset.set_format">set_format()</a>, this can be reset using <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset.reset_format">reset_format()</a>.',xM,Gf,cZ='Contrary to <code>set_transform()</code>, <code>with_transform</code> returns a new <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> object with new <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset">Dataset</a> objects.',$M,Bo,yM,Bs,Qi,jM,Nf,dZ=`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.`,wM,Qo,vM,Qs,Ei,MM,Xf,iZ=`Cast the dataset to a new set of features.
The transformation is applied to all the datasets of the dataset dictionary.`,kM,Eo,JM,Es,Hi,TM,Vf,pZ="Cast column to feature for decoding.",DM,Ho,IM,Fe,Li,CM,qf,mZ=`Remove one or several column(s) from each split in the dataset
and the features associated to the column(s).`,UM,Wf,hZ="The transformation is applied to all the splits of the dataset dictionary.",ZM,Bf,gZ=`You can also remove a column using <a href="/docs/datasets/pr_7019/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.`,FM,Lo,RM,Re,Yi,zM,Qf,uZ=`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.`,GM,Ef,fZ='You can also rename a column using <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict.map">map()</a> with <code>remove_columns</code> but the present method:',NM,Hf,bZ="<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>",XM,Yo,VM,Hs,Si,qM,Lf,_Z=`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.`,WM,So,BM,$t,Ai,QM,Yf,xZ=`Select one or several column(s) from each split in the dataset and
the features associated to the column(s).`,EM,Sf,$Z=`The transformation is applied to all the splits of the dataset
dictionary.`,HM,Ao,LM,Ls,Pi,YM,Af,yZ='Casts the given column as <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.ClassLabel">ClassLabel</a> and updates the tables.',SM,Po,AM,ie,Ki,PM,Pf,jZ=`Pushes the <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> to the hub as a Parquet dataset.
The <a href="/docs/datasets/pr_7019/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.`,KM,Kf,wZ="Each dataset split will be pushed independently. The pushed dataset will keep the original split names.",OM,Of,vZ=`The resulting Parquet files are self-contained by default: if your dataset contains <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Image">Image</a> or <a href="/docs/datasets/pr_7019/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.`,ek,Ko,tk,Oo,sk,ze,Oi,ak,eb,MZ="Saves a dataset dict to a filesystem using <code>fsspec.spec.AbstractFileSystem</code>.",nk,tb,kZ='For <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Image">Image</a> and <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Audio">Audio</a> data:',rk,sb,JZ=`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.`,ok,el,lk,Ys,ep,ck,ab,TZ="Load a dataset that was previously saved using <code>save_to_disk</code> from a filesystem using <code>fsspec.spec.AbstractFileSystem</code>.",dk,tl,ik,Ss,tp,pk,nb,DZ='Create <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> from CSV file(s).',mk,sl,hk,As,sp,gk,rb,IZ='Create <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> from JSON Lines file(s).',uk,al,fk,Ps,ap,bk,ob,CZ='Create <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> from Parquet file(s).',_k,nl,xk,Ks,np,$k,lb,UZ='Create <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> from text file(s).',yk,rl,jk,Os,rp,wk,cb,ZZ='Prepare a dataset for the given task by casting the dataset’s <a href="/docs/datasets/pr_7019/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>.',vk,db,FZ="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.",Z$,ib,F$,op,R$,lp,RZ='The base class <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> implements an iterable Dataset backed by python generators.',z$,F,cp,Mk,pb,zZ="A Dataset backed by an iterable.",kk,yt,dp,Jk,mb,GZ="Create an Iterable Dataset from a generator.",Tk,ol,Dk,ll,Ik,ea,ip,Ck,hb,NZ=`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.`,Uk,cl,Zk,ta,pp,Fk,gb,XZ=`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.`,Rk,dl,zk,sa,mp,Gk,ub,VZ="Cast column to feature for decoding.",Nk,il,Xk,aa,hp,Vk,fb,qZ="Cast the dataset to a new set of features.",qk,pl,Wk,bb,gp,Bk,ml,up,Qk,_b,WZ="Iterate through the batches of size <em>batch_size</em>.",Ek,Ge,fp,Hk,xb,BZ=`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.`,Lk,$b,QZ="You can specify whether the function should be batched or not with the <code>batched</code> parameter:",Yk,yb,EZ=`<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>`,Sk,hl,Ak,na,bp,Pk,jb,HZ=`Rename a column in the dataset, and move the features associated to the original column under the new column
name.`,Kk,gl,Ok,ra,_p,eJ,wb,LZ=`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.`,tJ,ul,sJ,pe,xp,aJ,vb,YZ="Randomly shuffles the elements of this dataset.",nJ,Mb,SZ=`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.`,rJ,kb,AZ=`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.`,oJ,Jb,PZ=`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_7019/en/package_reference/main_classes#datasets.IterableDataset.skip">skip()</a> or <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.IterableDataset.take">take()</a>
then the order of the shards is kept unchanged.`,lJ,fl,cJ,oa,$p,dJ,Tb,KZ="Group samples from the dataset into batches.",iJ,bl,pJ,la,yp,mJ,Db,OZ='Create a new <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> that skips the first <code>n</code> elements.',hJ,_l,gJ,ca,jp,uJ,Ib,e9='Create a new <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> with only the first <code>n</code> elements.',fJ,xl,bJ,se,wp,_J,Cb,t9=`Load the state_dict of the dataset.
The iteration will restart at the next example from when the state was saved.`,xJ,Ub,s9="Resuming returns exactly where the checkpoint was saved except in two cases:",$J,Zb,a9="<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>",yJ,$l,jJ,yl,wJ,jl,vJ,ae,vp,MJ,Fb,n9=`Get the current state_dict of the dataset.
It corresponds to the state at the latest example it yielded.`,kJ,Rb,r9="Resuming returns exactly where the checkpoint was saved except in two cases:",JJ,zb,o9="<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>",TJ,wl,DJ,vl,IJ,Ml,CJ,kl,Mp,UJ,Gb,l9='<a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetInfo">DatasetInfo</a> object containing all the metadata in the dataset.',ZJ,Jl,kp,FJ,Nb,c9='<a href="/docs/datasets/pr_7019/en/package_reference/builder_classes#datasets.NamedSplit">NamedSplit</a> object corresponding to a named dataset split.',RJ,Xb,Jp,zJ,Vb,Tp,GJ,qb,Dp,NJ,Wb,Ip,XJ,Bb,Cp,VJ,Qb,Up,qJ,Eb,Zp,WJ,Hb,Fp,BJ,Lb,Rp,QJ,Yb,zp,EJ,Sb,Gp,HJ,Ab,Np,LJ,Pb,Xp,G$,Vp,N$,qp,d9="Dictionary with split names as keys (‘train’, ‘test’ for example), and <code>IterableDataset</code> objects as values.",X$,B,Wp,YJ,Ne,Bp,SJ,Kb,i9=`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.`,AJ,Ob,p9="You can specify whether the function should be batched or not with the <code>batched</code> parameter:",PJ,e_,m9=`<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>`,KJ,Tl,OJ,da,Qp,eT,t_,h9=`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.`,tT,Dl,sT,me,Ep,aT,s_,g9=`Randomly shuffles the elements of this dataset.
The shuffling is applied to all the datasets of the dataset dictionary.`,nT,a_,u9=`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.`,rT,n_,f9=`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.`,oT,r_,b9=`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_7019/en/package_reference/main_classes#datasets.IterableDataset.skip">skip()</a> or <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.IterableDataset.take">take()</a>
then the order of the shards is kept unchanged.`,lT,Il,cT,ia,Hp,dT,o_,_9=`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.`,iT,Cl,pT,pa,Lp,mT,l_,x9=`Cast the dataset to a new set of features.
The type casting is applied to all the datasets of the dataset dictionary.`,hT,Ul,gT,ma,Yp,uT,c_,$9=`Cast column to feature for decoding.
The type casting is applied to all the datasets of the dataset dictionary.`,fT,Zl,bT,ha,Sp,_T,d_,y9=`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.`,xT,Fl,$T,ga,Ap,yT,i_,j9=`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.`,jT,Rl,wT,ua,Pp,vT,p_,w9=`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.`,MT,zl,kT,fa,Kp,JT,m_,v9=`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.`,TT,Gl,V$,Op,q$,z,em,DT,h_,M9="A special dictionary that defines the internal structure of a dataset.",IT,g_,k9=`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.`,CT,u_,J9="<code>FieldType</code> can be one of the following:",UT,ee,f_,T9='<p>a <a href="/docs/datasets/pr_7019/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>',ZT,b_,D9=`<p>a <a href="/docs/datasets/pr_7019/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>`,FT,__,I9=`<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>`,RT,tm,x_,C9=`a python <code>list</code> or a <a href="/docs/datasets/pr_7019/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_7019/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.`,zT,Nl,GT,$_,U9='<p>a <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Array2D">Array2D</a>, <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Array3D">Array3D</a>, <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Array4D">Array4D</a> or <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Array5D">Array5D</a> feature for multidimensional arrays.</p>',NT,y_,Z9=`<p>an <a href="/docs/datasets/pr_7019/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>`,XT,j_,F9=`<p>an <a href="/docs/datasets/pr_7019/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>`,VT,w_,R9='<p><a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Translation">Translation</a> and <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.TranslationVariableLanguages">TranslationVariableLanguages</a>, the two features specific to Machine Translation.</p>',qT,ba,sm,WT,v_,z9='Make a deep copy of <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Features">Features</a>.',BT,Xl,QT,Vl,am,ET,M_,G9="Decode batch with custom feature decoding.",HT,ql,nm,LT,k_,N9="Decode column with custom feature decoding.",YT,Wl,rm,ST,J_,X9="Decode example with custom feature decoding.",AT,Bl,om,PT,T_,V9="Encode batch into a format for Arrow.",KT,Ql,lm,OT,D_,q9="Encode column into a format for Arrow.",e7,El,cm,t7,I_,W9="Encode example into a format for Arrow.",s7,jt,dm,a7,C_,B9=`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>.`,n7,U_,Q9=`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.`,r7,Hl,o7,_a,im,l7,Z_,E9=`Construct <a href="/docs/datasets/pr_7019/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.`,c7,F_,H9=`Also, pa.dictionary is not supported and it uses its underlying type instead.
Therefore datasets convert DictionaryArray objects to their actual values.`,d7,Xe,pm,i7,R_,L9="Construct [<em>Features</em>] from dict.",p7,z_,Y9=`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>.`,m7,G_,S9=`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.`,h7,Ll,g7,wt,mm,u7,N_,A9="Reorder Features fields to match the field order of other [<em>Features</em>].",f7,X_,P9=`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.`,b7,Yl,W$,Ve,hm,_7,V_,K9="The <code>Value</code> dtypes are as follows:",x7,q_,O9="<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>",$7,Sl,B$,Y,gm,y7,W_,e4="Feature type for integer class labels.",j7,B_,t4="There are 3 ways to define a <code>ClassLabel</code>, which correspond to the 3 arguments:",w7,Q_,s4="<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>",v7,E_,a4=`Under the hood the labels are stored as integers.
You can use negative integers to represent unknown/missing labels.`,M7,Al,k7,xa,um,J7,H_,n4=`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:`,T7,L_,r4="<li><code>pa.string()</code></li> <li><code>pa.int()</code></li>",D7,vt,fm,I7,Y_,o4="Conversion <code>integer</code> =&gt; class name <code>string</code>.",C7,S_,l4="Regarding unknown/missing labels: passing negative integers raises <code>ValueError</code>.",U7,Pl,Z7,$a,bm,F7,A_,c4="Conversion class name <code>string</code> =&gt; <code>integer</code>.",R7,Kl,Q$,Jt,_m,z7,P_,d4="Feature type for large list data composed of child feature data type.",G7,K_,i4="It is backed by <code>pyarrow.LargeListType</code>, which is like <code>pyarrow.ListType</code> but with 64-bit rather than 32-bit offsets.",E$,Tt,xm,N7,O_,p4=`Construct a list of feature from a single type or a dict of types.
Mostly here for compatiblity with tfds.`,X7,Ol,H$,qe,$m,V7,ex,m4=`<code>FeatureConnector</code> for translations with fixed languages per example.
Here for compatiblity with tfds.`,q7,ec,W7,tc,ym,B7,tx,h4="Flatten the Translation feature into a dictionary.",L$,We,jm,Q7,sx,g4=`<code>FeatureConnector</code> for translations with variable languages per example.
Here for compatiblity with tfds.`,E7,sc,H7,ac,wm,L7,ax,u4="Flatten the TranslationVariableLanguages feature into a dictionary.",Y$,Dt,vm,Y7,nx,f4="Create a two-dimensional array.",S7,nc,S$,It,Mm,A7,rx,b4="Create a three-dimensional array.",P7,rc,A$,Ct,km,K7,ox,_4="Create a four-dimensional array.",O7,oc,P$,Ut,Jm,eD,lx,x4="Create a five-dimensional array.",tD,lc,K$,E,Tm,sD,cx,$4="Audio <code>Feature</code> to extract audio data from an audio file.",aD,dx,y4="Input: The Audio feature accepts as input:",nD,ix,j4="<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>",rD,cc,oD,ya,Dm,lD,px,w4=`Cast an Arrow array to the Audio arrow storage type.
The Arrow types that can be converted to the Audio pyarrow storage type are:`,cD,mx,v4="<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>",dD,dc,Im,iD,hx,M4="Decode example audio file into audio data.",pD,ic,Cm,mD,gx,k4="Embed audio files into the Arrow array.",hD,pc,Um,gD,ux,J4="Encode example into a format for Arrow.",uD,mc,Zm,fD,fx,T4="If in the decodable state, raise an error, otherwise flatten the feature into a dictionary.",O$,H,Fm,bD,bx,D4="Image <code>Feature</code> to read image data from an image file.",_D,_x,I4="Input: The Image feature accepts as input:",xD,xx,C4="<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>",$D,hc,yD,ja,Rm,jD,$x,U4=`Cast an Arrow array to the Image arrow storage type.
The Arrow types that can be converted to the Image pyarrow storage type are:`,wD,yx,Z4="<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>",vD,gc,zm,MD,jx,F4="Decode example image file into image data.",kD,uc,Gm,JD,wx,R4="Embed image files into the Arrow array.",TD,fc,Nm,DD,vx,z4="Encode example into a format for Arrow.",ID,bc,Xm,CD,Mx,G4="If in the decodable state, return the feature itself, otherwise flatten the feature into a dictionary.",e2,Vm,t2,N,qm,UD,kx,N4='<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>.',ZD,Jx,X4="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>.",FD,Tx,V4="Examples:",RD,Dx,q4="Listing files from public S3 bucket.",zD,_c,GD,Ix,W4="Listing files from private S3 bucket using <code>aws_access_key_id</code> and <code>aws_secret_access_key</code>.",ND,xc,XD,Cx,B4="Using <code>S3Filesystem</code> with <code>botocore.session.Session</code> and custom <code>aws_profile</code>.",VD,$c,qD,Ux,Q4='Loading dataset from S3 using <code>S3Filesystem</code> and <a href="/docs/datasets/pr_7019/en/package_reference/loading_methods#datasets.load_from_disk">load_from_disk()</a>.',WD,yc,BD,Zx,E4='Saving dataset to S3 using <code>S3Filesystem</code> and <a href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset.save_to_disk">Dataset.save_to_disk()</a>.',QD,jc,s2,Ma,Wm,ED,Fx,H4="Preprocesses <code>dataset_path</code> and removes remote filesystem (e.g. removing <code>s3://</code>).",a2,ka,Bm,HD,Rx,L4="Checks if <code>fs</code> is a remote filesystem.",n2,Qm,r2,Ja,Em,LD,zx,Y4="Hasher that accepts python objects as inputs.",o2,Hm,l2,a$,c2;return c=new En({props:{title:"Main classes",local:"main-classes",headingTag:"h1"}}),m=new En({props:{title:"DatasetInfo",local:"datasets.DatasetInfo",headingTag:"h2"}}),Dc=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_7019/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_7019/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_7019/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_7019/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_7019/en/package_reference/builder_classes#datasets.BuilderConfig">BuilderConfig</a> and used in the <a href="/docs/datasets/pr_7019/en/package_reference/builder_classes#datasets.DatasetBuilder">DatasetBuilder</a>.`,name:"*config_kwargs"}],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/info.py#L93"}}),Ic=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_7019/src/datasets/info.py#L305"}}),Hn=new I({props:{anchor:"datasets.DatasetInfo.from_directory.example",$$slots:{default:[$3]},$$scope:{ctx:w}}}),Cc=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_7019/src/datasets/info.py#L213"}}),Ln=new I({props:{anchor:"datasets.DatasetInfo.write_to_directory.example",$$slots:{default:[y3]},$$scope:{ctx:w}}}),Uc=new En({props:{title:"Dataset",local:"datasets.Dataset",headingTag:"h2"}}),Fc=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_7019/src/datasets/arrow_dataset.py#L668"}}),Rc=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_7019/src/datasets/arrow_dataset.py#L5887",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),zc=new r3({props:{version:"1.7"}}),Yn=new I({props:{anchor:"datasets.Dataset.add_column.example",$$slots:{default:[j3]},$$scope:{ctx:w}}}),Gc=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_7019/src/datasets/arrow_dataset.py#L6134",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),Nc=new r3({props:{version:"1.7"}}),Sn=new I({props:{anchor:"datasets.Dataset.add_item.example",$$slots:{default:[w3]},$$scope:{ctx:w}}}),Xc=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_7019/src/datasets/arrow_dataset.py#L751",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),Vc=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_7019/src/datasets/arrow_dataset.py#L791",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),qc=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_7019/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_7019/src/datasets/arrow_dataset.py#L823",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),Kn=new I({props:{anchor:"datasets.Dataset.from_pandas.example",$$slots:{default:[v3]},$$scope:{ctx:w}}}),Wc=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_7019/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_7019/src/datasets/arrow_dataset.py#L927",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),Bc=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:"split",val:": NamedSplit = NamedSplit('train')"},{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_7019/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.split",description:`<strong>split</strong> (<a href="/docs/datasets/pr_7019/en/package_reference/builder_classes#datasets.NamedSplit">NamedSplit</a>, defaults to <code>Split.TRAIN</code>) &#x2014;
Split name to be assigned to the dataset.</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.21.0</p>
						
					</div>`,name:"split"},{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_7019/src/datasets/arrow_dataset.py#L1063",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),er=new I({props:{anchor:"datasets.Dataset.from_generator.example",$$slots:{default:[M3]},$$scope:{ctx:w}}}),tr=new I({props:{anchor:"datasets.Dataset.from_generator.example-2",$$slots:{default:[k3]},$$scope:{ctx:w}}}),Qc=new k({props:{name:"data",anchor:"datasets.Dataset.data",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L1801"}}),sr=new I({props:{anchor:"datasets.Dataset.data.example",$$slots:{default:[J3]},$$scope:{ctx:w}}}),Ec=new k({props:{name:"cache_files",anchor:"datasets.Dataset.cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L1821"}}),ar=new I({props:{anchor:"datasets.Dataset.cache_files.example",$$slots:{default:[T3]},$$scope:{ctx:w}}}),Hc=new k({props:{name:"num_columns",anchor:"datasets.Dataset.num_columns",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L1839"}}),nr=new I({props:{anchor:"datasets.Dataset.num_columns.example",$$slots:{default:[D3]},$$scope:{ctx:w}}}),Lc=new k({props:{name:"num_rows",anchor:"datasets.Dataset.num_rows",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L1854"}}),rr=new I({props:{anchor:"datasets.Dataset.num_rows.example",$$slots:{default:[I3]},$$scope:{ctx:w}}}),Yc=new k({props:{name:"column_names",anchor:"datasets.Dataset.column_names",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L1871"}}),or=new I({props:{anchor:"datasets.Dataset.column_names.example",$$slots:{default:[C3]},$$scope:{ctx:w}}}),Sc=new k({props:{name:"shape",anchor:"datasets.Dataset.shape",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L1886"}}),lr=new I({props:{anchor:"datasets.Dataset.shape.example",$$slots:{default:[U3]},$$scope:{ctx:w}}}),Ac=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_7019/en/package_reference/main_classes#datasets.Dataset.column_names">column_names</a>).`,name:"column"}],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L1903",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>
`}}),cr=new I({props:{anchor:"datasets.Dataset.unique.example",$$slots:{default:[Z3]},$$scope:{ctx:w}}}),Pc=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_7019/src/datasets/arrow_dataset.py#L2009",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_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),dr=new I({props:{anchor:"datasets.Dataset.flatten.example",$$slots:{default:[F3]},$$scope:{ctx:w}}}),Kc=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_7019/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_7019/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_7019/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_7019/src/datasets/arrow_dataset.py#L2054",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_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),ir=new I({props:{anchor:"datasets.Dataset.cast.example",$$slots:{default:[R3]},$$scope:{ctx:w}}}),Oc=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_7019/src/datasets/arrow_dataset.py#L2137",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),pr=new I({props:{anchor:"datasets.Dataset.cast_column.example",$$slots:{default:[z3]},$$scope:{ctx:w}}}),ed=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_7019/src/datasets/arrow_dataset.py#L2179",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_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),mr=new I({props:{anchor:"datasets.Dataset.remove_columns.example",$$slots:{default:[G3]},$$scope:{ctx:w}}}),td=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_7019/src/datasets/arrow_dataset.py#L2235",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_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),hr=new I({props:{anchor:"datasets.Dataset.rename_column.example",$$slots:{default:[N3]},$$scope:{ctx:w}}}),sd=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_7019/src/datasets/arrow_dataset.py#L2302",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_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),gr=new I({props:{anchor:"datasets.Dataset.rename_columns.example",$$slots:{default:[X3]},$$scope:{ctx:w}}}),ad=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_7019/src/datasets/arrow_dataset.py#L2370",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_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),ur=new I({props:{anchor:"datasets.Dataset.select_columns.example",$$slots:{default:[V3]},$$scope:{ctx:w}}}),nd=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_7019/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_7019/src/datasets/arrow_dataset.py#L1934"}}),fr=new I({props:{anchor:"datasets.Dataset.class_encode_column.example",$$slots:{default:[q3]},$$scope:{ctx:w}}}),rd=new k({props:{name:"__len__",anchor:"datasets.Dataset.__len__",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L2419"}}),br=new I({props:{anchor:"datasets.Dataset.__len__.example",$$slots:{default:[W3]},$$scope:{ctx:w}}}),od=new k({props:{name:"__iter__",anchor:"datasets.Dataset.__iter__",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L2436"}}),ld=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_7019/src/datasets/arrow_dataset.py#L2465"}}),cd=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_7019/src/datasets/arrow_dataset.py#L2509"}}),dd=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_7019/src/datasets/arrow_dataset.py#L2541"}}),xr=new I({props:{anchor:"datasets.Dataset.set_format.example",$$slots:{default:[B3]},$$scope:{ctx:w}}}),$r=new I({props:{anchor:"datasets.Dataset.set_format.example-2",$$slots:{default:[Q3]},$$scope:{ctx:w}}}),id=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_7019/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_7019/src/datasets/arrow_dataset.py#L2649"}}),yr=new I({props:{anchor:"datasets.Dataset.set_transform.example",$$slots:{default:[E3]},$$scope:{ctx:w}}}),pd=new k({props:{name:"reset_format",anchor:"datasets.Dataset.reset_format",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L2620"}}),jr=new I({props:{anchor:"datasets.Dataset.reset_format.example",$$slots:{default:[H3]},$$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_7019/src/datasets/arrow_dataset.py#L2692"}}),wr=new I({props:{anchor:"datasets.Dataset.with_format.example",$$slots:{default:[L3]},$$scope:{ctx:w}}}),hd=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_7019/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_7019/src/datasets/arrow_dataset.py#L2743"}}),vr=new I({props:{anchor:"datasets.Dataset.with_transform.example",$$slots:{default:[Y3]},$$scope:{ctx:w}}}),gd=new k({props:{name:"__getitem__",anchor:"datasets.Dataset.__getitem__",parameters:[{name:"key",val:""}],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L2870"}}),ud=new k({props:{name:"cleanup_cache_files",anchor:"datasets.Dataset.cleanup_cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L2880",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>
`}}),kr=new I({props:{anchor:"datasets.Dataset.cleanup_cache_files.example",$$slots:{default:[S3]},$$scope:{ctx:w}}}),fd=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_7019/src/datasets/arrow_dataset.py#L2927"}}),Jr=new I({props:{anchor:"datasets.Dataset.map.example",$$slots:{default:[A3]},$$scope:{ctx:w}}}),bd=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_7019/src/datasets/arrow_dataset.py#L3671"}}),Tr=new I({props:{anchor:"datasets.Dataset.filter.example",$$slots:{default:[P3]},$$scope:{ctx:w}}}),_d=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_7019/src/datasets/arrow_dataset.py#L3882"}}),Dr=new I({props:{anchor:"datasets.Dataset.select.example",$$slots:{default:[K3]},$$scope:{ctx:w}}}),xd=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_7019/src/datasets/arrow_dataset.py#L4185"}}),Ir=new I({props:{anchor:"datasets.Dataset.sort.example",$$slots:{default:[O3]},$$scope:{ctx:w}}}),$d=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_7019/src/datasets/arrow_dataset.py#L4330"}}),Cr=new I({props:{anchor:"datasets.Dataset.shuffle.example",$$slots:{default:[eF]},$$scope:{ctx:w}}}),Ur=new I({props:{anchor:"datasets.Dataset.shuffle.example-2",$$slots:{default:[tF]},$$scope:{ctx:w}}}),Zr=new I({props:{anchor:"datasets.Dataset.shuffle.example-3",$$slots:{default:[sF]},$$scope:{ctx:w}}}),yd=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_7019/src/datasets/arrow_dataset.py#L4132"}}),Fr=new I({props:{anchor:"datasets.Dataset.skip.example",$$slots:{default:[aF]},$$scope:{ctx:w}}}),jd=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_7019/src/datasets/arrow_dataset.py#L4162"}}),Rr=new I({props:{anchor:"datasets.Dataset.take.example",$$slots:{default:[nF]},$$scope:{ctx:w}}}),wd=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_7019/src/datasets/arrow_dataset.py#L4462"}}),zr=new I({props:{anchor:"datasets.Dataset.train_test_split.example",$$slots:{default:[rF]},$$scope:{ctx:w}}}),vd=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_7019/src/datasets/arrow_dataset.py#L4745"}}),Gr=new I({props:{anchor:"datasets.Dataset.shard.example",$$slots:{default:[oF]},$$scope:{ctx:w}}}),Md=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_7019/src/datasets/arrow_dataset.py#L336",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>tf.data.Dataset</code></p>
`}}),Nr=new I({props:{anchor:"datasets.Dataset.to_tf_dataset.example",$$slots:{default:[lF]},$$scope:{ctx:w}}}),kd=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_7019/en/package_reference/main_classes#datasets.Audio">Audio</a> and <a href="/docs/datasets/pr_7019/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_7019/src/datasets/arrow_dataset.py#L5528",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>huggingface_hub.CommitInfo</p>
`}}),Xr=new I({props:{anchor:"datasets.Dataset.push_to_hub.example",$$slots:{default:[cF]},$$scope:{ctx:w}}}),Vr=new I({props:{anchor:"datasets.Dataset.push_to_hub.example-2",$$slots:{default:[dF]},$$scope:{ctx:w}}}),qr=new I({props:{anchor:"datasets.Dataset.push_to_hub.example-3",$$slots:{default:[iF]},$$scope:{ctx:w}}}),Jd=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>path-like</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_7019/src/datasets/arrow_dataset.py#L1445"}}),Wr=new I({props:{anchor:"datasets.Dataset.save_to_disk.example",$$slots:{default:[pF]},$$scope:{ctx:w}}}),Td=new k({props:{name:"load_from_disk",anchor:"datasets.Dataset.load_from_disk",parameters:[{name:"dataset_path",val:": Union"},{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>path-like</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_7019/src/datasets/arrow_dataset.py#L1661",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_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a> or <a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),Br=new I({props:{anchor:"datasets.Dataset.load_from_disk.example",$$slots:{default:[mF]},$$scope:{ctx:w}}}),Dd=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_7019/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_7019/src/datasets/arrow_dataset.py#L3803"}}),Id=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_7019/src/datasets/arrow_dataset.py#L4911",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>
`}}),Er=new I({props:{anchor:"datasets.Dataset.to_csv.example",$$slots:{default:[hF]},$$scope:{ctx:w}}}),Cd=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_7019/src/datasets/arrow_dataset.py#L5101",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>pandas.DataFrame</code> or <code>Iterator[pandas.DataFrame]</code></p>
`}}),Hr=new I({props:{anchor:"datasets.Dataset.to_pandas.example",$$slots:{default:[gF]},$$scope:{ctx:w}}}),Ud=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_7019/src/datasets/arrow_dataset.py#L4970",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code> or <code>Iterator[dict]</code></p>
`}}),Lr=new I({props:{anchor:"datasets.Dataset.to_dict.example",$$slots:{default:[uF]},$$scope:{ctx:w}}}),Zd=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_7019/src/datasets/arrow_dataset.py#L5039",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>
`}}),Yr=new I({props:{anchor:"datasets.Dataset.to_json.example",$$slots:{default:[fF]},$$scope:{ctx:w}}}),Fd=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_7019/src/datasets/arrow_dataset.py#L5200",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>
`}}),Sr=new I({props:{anchor:"datasets.Dataset.to_parquet.example",$$slots:{default:[bF]},$$scope:{ctx:w}}}),Rd=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_7019/src/datasets/arrow_dataset.py#L5239",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>
`}}),Ar=new I({props:{anchor:"datasets.Dataset.to_sql.example",$$slots:{default:[_F]},$$scope:{ctx:w}}}),zd=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_7019/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_7019/src/datasets/arrow_dataset.py#L5331",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.IterableDataset"
>datasets.IterableDataset</a></p>
`}}),Pr=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example",$$slots:{default:[xF]},$$scope:{ctx:w}}}),Kr=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-2",$$slots:{default:[$F]},$$scope:{ctx:w}}}),Or=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-3",$$slots:{default:[yF]},$$scope:{ctx:w}}}),eo=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-4",$$slots:{default:[jF]},$$scope:{ctx:w}}}),to=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-5",$$slots:{default:[wF]},$$scope:{ctx:w}}}),so=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-6",$$slots:{default:[vF]},$$scope:{ctx:w}}}),ao=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-7",$$slots:{default:[MF]},$$scope:{ctx:w}}}),Gd=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_7019/en/package_reference/main_classes#datasets.Dataset.get_nearest_examples">get_nearest_examples()</a> or <a href="/docs/datasets/pr_7019/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_7019/src/datasets/arrow_dataset.py#L5927"}}),no=new I({props:{anchor:"datasets.Dataset.add_faiss_index.example",$$slots:{default:[kF]},$$scope:{ctx:w}}}),Nd=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_7019/en/package_reference/main_classes#datasets.Dataset.get_nearest_examples">get_nearest_examples()</a> or <a href="/docs/datasets/pr_7019/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_7019/src/datasets/arrow_dataset.py#L6007"}}),Xd=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_7019/src/datasets/search.py#L535"}}),Vd=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_7019/src/datasets/search.py#L553"}}),qd=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_7019/en/package_reference/main_classes#datasets.Dataset.get_nearest_examples">get_nearest_examples()</a> or <a href="/docs/datasets/pr_7019/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_7019/src/datasets/arrow_dataset.py#L6066"}}),oo=new I({props:{anchor:"datasets.Dataset.add_elasticsearch_index.example",$$slots:{default:[JF]},$$scope:{ctx:w}}}),Wd=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_7019/src/datasets/search.py#L637"}}),Bd=new k({props:{name:"list_indexes",anchor:"datasets.Dataset.list_indexes",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/search.py#L438"}}),Qd=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_7019/src/datasets/search.py#L442",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>BaseIndex</code></p>
`}}),Ed=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_7019/src/datasets/search.py#L684"}}),Hd=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_7019/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>
`}}),Ld=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_7019/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>
`}}),Yd=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_7019/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>
`}}),Sd=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_7019/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>
`}}),Ad=new k({props:{name:"info",anchor:"datasets.Dataset.info",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L168"}}),Pd=new k({props:{name:"split",anchor:"datasets.Dataset.split",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L173"}}),Kd=new k({props:{name:"builder_name",anchor:"datasets.Dataset.builder_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L178"}}),Od=new k({props:{name:"citation",anchor:"datasets.Dataset.citation",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L182"}}),ei=new k({props:{name:"config_name",anchor:"datasets.Dataset.config_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L186"}}),ti=new k({props:{name:"dataset_size",anchor:"datasets.Dataset.dataset_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L190"}}),si=new k({props:{name:"description",anchor:"datasets.Dataset.description",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L194"}}),ai=new k({props:{name:"download_checksums",anchor:"datasets.Dataset.download_checksums",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L198"}}),ni=new k({props:{name:"download_size",anchor:"datasets.Dataset.download_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L202"}}),ri=new k({props:{name:"features",anchor:"datasets.Dataset.features",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L744"}}),oi=new k({props:{name:"homepage",anchor:"datasets.Dataset.homepage",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L210"}}),li=new k({props:{name:"license",anchor:"datasets.Dataset.license",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L214"}}),ci=new k({props:{name:"size_in_bytes",anchor:"datasets.Dataset.size_in_bytes",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L218"}}),di=new k({props:{name:"supervised_keys",anchor:"datasets.Dataset.supervised_keys",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L222"}}),ii=new k({props:{name:"version",anchor:"datasets.Dataset.version",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L230"}}),pi=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_7019/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_7019/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_7019/src/datasets/arrow_dataset.py#L1010",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),_o=new I({props:{anchor:"datasets.Dataset.from_csv.example",$$slots:{default:[TF]},$$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_7019/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_7019/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_7019/src/datasets/arrow_dataset.py#L1138",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),xo=new I({props:{anchor:"datasets.Dataset.from_json.example",$$slots:{default:[DF]},$$scope:{ctx:w}}}),hi=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_7019/src/datasets/arrow_dataset.py#L1195",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),$o=new I({props:{anchor:"datasets.Dataset.from_parquet.example",$$slots:{default:[IF]},$$scope:{ctx:w}}}),gi=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_7019/src/datasets/arrow_dataset.py#L1254",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),yo=new I({props:{anchor:"datasets.Dataset.from_text.example",$$slots:{default:[CF]},$$scope:{ctx:w}}}),ui=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_7019/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_7019/src/datasets/arrow_dataset.py#L1369",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),jo=new I({props:{anchor:"datasets.Dataset.from_sql.example",$$slots:{default:[UF]},$$scope:{ctx:w}}}),wo=new AD({props:{$$slots:{default:[ZF]},$$scope:{ctx:w}}}),fi=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_7019/src/datasets/arrow_dataset.py#L2791"}}),bi=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_7019/src/datasets/arrow_dataset.py#L6188"}}),vo=new I({props:{anchor:"datasets.Dataset.align_labels_with_mapping.example",$$slots:{default:[FF]},$$scope:{ctx:w}}}),_i=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_7019/src/datasets/combine.py#L158"}}),Mo=new I({props:{anchor:"datasets.concatenate_datasets.example",$$slots:{default:[RF]},$$scope:{ctx:w}}}),xi=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_7019/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_7019/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_7019/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_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a> or <a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.IterableDataset"
>IterableDataset</a></p>
`}}),ko=new I({props:{anchor:"datasets.interleave_datasets.example",$$slots:{default:[zF]},$$scope:{ctx:w}}}),$i=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_7019/en/package_reference/main_classes#datasets.Dataset">Dataset</a> or <a href="/docs/datasets/pr_7019/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_7019/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_7019/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a> or <a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.IterableDataset"
>IterableDataset</a></p>
`}}),yi=new k({props:{name:"datasets.enable_caching",anchor:"datasets.enable_caching",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/fingerprint.py#L95"}}),ji=new k({props:{name:"datasets.disable_caching",anchor:"datasets.disable_caching",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/fingerprint.py#L116"}}),wi=new k({props:{name:"datasets.is_caching_enabled",anchor:"datasets.is_caching_enabled",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/fingerprint.py#L161"}}),vi=new En({props:{title:"DatasetDict",local:"datasets.DatasetDict",headingTag:"h2"}}),ki=new k({props:{name:"class datasets.DatasetDict",anchor:"datasets.DatasetDict",parameters:"",source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/dataset_dict.py#L46"}}),Ji=new k({props:{name:"data",anchor:"datasets.DatasetDict.data",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/dataset_dict.py#L87"}}),Jo=new I({props:{anchor:"datasets.DatasetDict.data.example",$$slots:{default:[GF]},$$scope:{ctx:w}}}),Ti=new k({props:{name:"cache_files",anchor:"datasets.DatasetDict.cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/dataset_dict.py#L102"}}),To=new I({props:{anchor:"datasets.DatasetDict.cache_files.example",$$slots:{default:[NF]},$$scope:{ctx:w}}}),Di=new k({props:{name:"num_columns",anchor:"datasets.DatasetDict.num_columns",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/dataset_dict.py#L120"}}),Do=new I({props:{anchor:"datasets.DatasetDict.num_columns.example",$$slots:{default:[XF]},$$scope:{ctx:w}}}),Ii=new k({props:{name:"num_rows",anchor:"datasets.DatasetDict.num_rows",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/dataset_dict.py#L136"}}),Io=new I({props:{anchor:"datasets.DatasetDict.num_rows.example",$$slots:{default:[VF]},$$scope:{ctx:w}}}),Ci=new k({props:{name:"column_names",anchor:"datasets.DatasetDict.column_names",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/dataset_dict.py#L152"}}),Co=new I({props:{anchor:"datasets.DatasetDict.column_names.example",$$slots:{default:[qF]},$$scope:{ctx:w}}}),Ui=new k({props:{name:"shape",anchor:"datasets.DatasetDict.shape",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/dataset_dict.py#L170"}}),Uo=new I({props:{anchor:"datasets.DatasetDict.shape.example",$$slots:{default:[WF]},$$scope:{ctx:w}}}),Zi=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_7019/en/package_reference/main_classes#datasets.DatasetDict.column_names">column_names</a>)`,name:"column"}],source:"https://github.com/huggingface/datasets/blob/r_7019/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>
`}}),Zo=new I({props:{anchor:"datasets.DatasetDict.unique.example",$$slots:{default:[BF]},$$scope:{ctx:w}}}),Fi=new k({props:{name:"cleanup_cache_files",anchor:"datasets.DatasetDict.cleanup_cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/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>
`}}),Fo=new I({props:{anchor:"datasets.DatasetDict.cleanup_cache_files.example",$$slots:{default:[QF]},$$scope:{ctx:w}}}),Ri=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_7019/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_7019/src/datasets/dataset_dict.py#L765"}}),Ro=new I({props:{anchor:"datasets.DatasetDict.map.example",$$slots:{default:[EF]},$$scope:{ctx:w}}}),zi=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_7019/src/datasets/dataset_dict.py#L893"}}),zo=new I({props:{anchor:"datasets.DatasetDict.filter.example",$$slots:{default:[HF]},$$scope:{ctx:w}}}),Gi=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_7019/src/datasets/dataset_dict.py#L1055"}}),Go=new I({props:{anchor:"datasets.DatasetDict.sort.example",$$slots:{default:[LF]},$$scope:{ctx:w}}}),Ni=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_7019/src/datasets/dataset_dict.py#L1133"}}),No=new I({props:{anchor:"datasets.DatasetDict.shuffle.example",$$slots:{default:[YF]},$$scope:{ctx:w}}}),Xi=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_7019/src/datasets/dataset_dict.py#L557"}}),Xo=new I({props:{anchor:"datasets.DatasetDict.set_format.example",$$slots:{default:[SF]},$$scope:{ctx:w}}}),Vi=new k({props:{name:"reset_format",anchor:"datasets.DatasetDict.reset_format",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/dataset_dict.py#L603"}}),Vo=new I({props:{anchor:"datasets.DatasetDict.reset_format.example",$$slots:{default:[AF]},$$scope:{ctx:w}}}),qi=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_7019/src/datasets/dataset_dict.py#L520"}}),Wi=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_7019/src/datasets/dataset_dict.py#L659"}}),Wo=new I({props:{anchor:"datasets.DatasetDict.with_format.example",$$slots:{default:[PF]},$$scope:{ctx:w}}}),Bi=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_7019/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_7019/src/datasets/dataset_dict.py#L711"}}),Bo=new I({props:{anchor:"datasets.DatasetDict.with_transform.example",$$slots:{default:[KF]},$$scope:{ctx:w}}}),Qi=new k({props:{name:"flatten",anchor:"datasets.DatasetDict.flatten",parameters:[{name:"max_depth",val:" = 16"}],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/dataset_dict.py#L186"}}),Qo=new I({props:{anchor:"datasets.DatasetDict.flatten.example",$$slots:{default:[OF]},$$scope:{ctx:w}}}),Ei=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_7019/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_7019/en/package_reference/main_classes#datasets.DatasetDict.map">map()</a> to update the dataset.`,name:"features"}],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/dataset_dict.py#L266"}}),Eo=new I({props:{anchor:"datasets.DatasetDict.cast.example",$$slots:{default:[eR]},$$scope:{ctx:w}}}),Hi=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_7019/src/datasets/dataset_dict.py#L298",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),Ho=new I({props:{anchor:"datasets.DatasetDict.cast_column.example",$$slots:{default:[tR]},$$scope:{ctx:w}}}),Li=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_7019/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_7019/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),Lo=new I({props:{anchor:"datasets.DatasetDict.remove_columns.example",$$slots:{default:[sR]},$$scope:{ctx:w}}}),Yi=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_7019/src/datasets/dataset_dict.py#L369"}}),Yo=new I({props:{anchor:"datasets.DatasetDict.rename_column.example",$$slots:{default:[aR]},$$scope:{ctx:w}}}),Si=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_7019/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_7019/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),So=new I({props:{anchor:"datasets.DatasetDict.rename_columns.example",$$slots:{default:[nR]},$$scope:{ctx:w}}}),Ai=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_7019/src/datasets/dataset_dict.py#L452"}}),Ao=new I({props:{anchor:"datasets.DatasetDict.select_columns.example",$$slots:{default:[rR]},$$scope:{ctx:w}}}),Pi=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_7019/src/datasets/dataset_dict.py#L488"}}),Po=new I({props:{anchor:"datasets.DatasetDict.class_encode_column.example",$$slots:{default:[oR]},$$scope:{ctx:w}}}),Ki=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_7019/en/package_reference/main_classes#datasets.Audio">Audio</a> and <a href="/docs/datasets/pr_7019/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_7019/src/datasets/dataset_dict.py#L1564",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>huggingface_hub.CommitInfo</p>
`}}),Ko=new I({props:{anchor:"datasets.DatasetDict.push_to_hub.example",$$slots:{default:[lR]},$$scope:{ctx:w}}}),Oo=new I({props:{anchor:"datasets.DatasetDict.push_to_hub.example-2",$$slots:{default:[cR]},$$scope:{ctx:w}}}),Oi=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>path-like</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_7019/src/datasets/dataset_dict.py#L1216"}}),el=new I({props:{anchor:"datasets.DatasetDict.save_to_disk.example",$$slots:{default:[dR]},$$scope:{ctx:w}}}),ep=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>path-like</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_7019/src/datasets/dataset_dict.py#L1305",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),tl=new I({props:{anchor:"datasets.DatasetDict.load_from_disk.example",$$slots:{default:[iR]},$$scope:{ctx:w}}}),tp=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_7019/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_7019/src/datasets/dataset_dict.py#L1382",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),sl=new I({props:{anchor:"datasets.DatasetDict.from_csv.example",$$slots:{default:[pR]},$$scope:{ctx:w}}}),sp=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_7019/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_7019/src/datasets/dataset_dict.py#L1421",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),al=new I({props:{anchor:"datasets.DatasetDict.from_json.example",$$slots:{default:[mR]},$$scope:{ctx:w}}}),ap=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_7019/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_7019/src/datasets/dataset_dict.py#L1460",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),nl=new I({props:{anchor:"datasets.DatasetDict.from_parquet.example",$$slots:{default:[hR]},$$scope:{ctx:w}}}),np=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_7019/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_7019/src/datasets/dataset_dict.py#L1509",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),rl=new I({props:{anchor:"datasets.DatasetDict.from_text.example",$$slots:{default:[gR]},$$scope:{ctx:w}}}),rp=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_7019/src/datasets/dataset_dict.py#L1548"}}),op=new En({props:{title:"IterableDataset",local:"datasets.IterableDataset",headingTag:"h2"}}),cp=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_7019/src/datasets/iterable_dataset.py#L1708"}}),dp=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"},{name:"split",val:": NamedSplit = NamedSplit('train')"}],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,"},{anchor:"datasets.IterableDataset.from_generator.split",description:`<strong>split</strong> (<a href="/docs/datasets/pr_7019/en/package_reference/builder_classes#datasets.NamedSplit">NamedSplit</a>, defaults to <code>Split.TRAIN</code>) &#x2014;
Split name to be assigned to the dataset.</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.21.0</p>
						
					</div>`,name:"split"}],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/iterable_dataset.py#L2081",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>IterableDataset</code></p>
`}}),ol=new I({props:{anchor:"datasets.IterableDataset.from_generator.example",$$slots:{default:[uR]},$$scope:{ctx:w}}}),ll=new I({props:{anchor:"datasets.IterableDataset.from_generator.example-2",$$slots:{default:[fR]},$$scope:{ctx:w}}}),ip=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_7019/src/datasets/iterable_dataset.py#L2660",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>
`}}),cl=new I({props:{anchor:"datasets.IterableDataset.remove_columns.example",$$slots:{default:[bR]},$$scope:{ctx:w}}}),pp=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_7019/src/datasets/iterable_dataset.py#L2700",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>
`}}),dl=new I({props:{anchor:"datasets.IterableDataset.select_columns.example",$$slots:{default:[_R]},$$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_7019/src/datasets/iterable_dataset.py#L2756",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>IterableDataset</code></p>
`}}),il=new I({props:{anchor:"datasets.IterableDataset.cast_column.example",$$slots:{default:[xR]},$$scope:{ctx:w}}}),hp=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_7019/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_7019/en/package_reference/main_classes#datasets.Dataset.map">map()</a> to update the Dataset.`,name:"features"}],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/iterable_dataset.py#L2807",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>
`}}),pl=new I({props:{anchor:"datasets.IterableDataset.cast.example",$$slots:{default:[$R]},$$scope:{ctx:w}}}),gp=new k({props:{name:"__iter__",anchor:"datasets.IterableDataset.__iter__",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/iterable_dataset.py#L2004"}}),up=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_7019/src/datasets/iterable_dataset.py#L2041"}}),fp=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_7019/src/datasets/iterable_dataset.py#L2223"}}),hl=new I({props:{anchor:"datasets.IterableDataset.map.example",$$slots:{default:[yR]},$$scope:{ctx:w}}}),bp=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_7019/src/datasets/iterable_dataset.py#L2600",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>
`}}),gl=new I({props:{anchor:"datasets.IterableDataset.rename_column.example",$$slots:{default:[jR]},$$scope:{ctx:w}}}),_p=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_7019/src/datasets/iterable_dataset.py#L2344"}}),ul=new I({props:{anchor:"datasets.IterableDataset.filter.example",$$slots:{default:[wR]},$$scope:{ctx:w}}}),xp=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_7019/src/datasets/iterable_dataset.py#L2422"}}),fl=new I({props:{anchor:"datasets.IterableDataset.shuffle.example",$$slots:{default:[vR]},$$scope:{ctx:w}}}),$p=new k({props:{name:"batch",anchor:"datasets.IterableDataset.batch",parameters:[{name:"batch_size",val:": int"},{name:"drop_last_batch",val:": bool = False"}],parametersDescription:[{anchor:"datasets.IterableDataset.batch.batch_size",description:"<strong>batch_size</strong> (<code>int</code>) &#x2014; The number of samples in each batch.",name:"batch_size"},{anchor:"datasets.IterableDataset.batch.drop_last_batch",description:"<strong>drop_last_batch</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014; Whether to drop the last incomplete batch.",name:"drop_last_batch"}],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/iterable_dataset.py#L2889"}}),bl=new I({props:{anchor:"datasets.IterableDataset.batch.example",$$slots:{default:[MR]},$$scope:{ctx:w}}}),yp=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_7019/src/datasets/iterable_dataset.py#L2492"}}),_l=new I({props:{anchor:"datasets.IterableDataset.skip.example",$$slots:{default:[kR]},$$scope:{ctx:w}}}),jp=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_7019/src/datasets/iterable_dataset.py#L2536"}}),xl=new I({props:{anchor:"datasets.IterableDataset.take.example",$$slots:{default:[JR]},$$scope:{ctx:w}}}),wp=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_7019/src/datasets/iterable_dataset.py#L1800"}}),$l=new I({props:{anchor:"datasets.IterableDataset.load_state_dict.example",$$slots:{default:[TR]},$$scope:{ctx:w}}}),yl=new I({props:{anchor:"datasets.IterableDataset.load_state_dict.example-2",$$slots:{default:[DR]},$$scope:{ctx:w}}}),jl=new I({props:{anchor:"datasets.IterableDataset.load_state_dict.example-3",$$slots:{default:[IR]},$$scope:{ctx:w}}}),vp=new k({props:{name:"state_dict",anchor:"datasets.IterableDataset.state_dict",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/iterable_dataset.py#L1747",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),wl=new I({props:{anchor:"datasets.IterableDataset.state_dict.example",$$slots:{default:[CR]},$$scope:{ctx:w}}}),vl=new I({props:{anchor:"datasets.IterableDataset.state_dict.example-2",$$slots:{default:[UR]},$$scope:{ctx:w}}}),Ml=new I({props:{anchor:"datasets.IterableDataset.state_dict.example-3",$$slots:{default:[ZR]},$$scope:{ctx:w}}}),Mp=new k({props:{name:"info",anchor:"datasets.IterableDataset.info",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L168"}}),kp=new k({props:{name:"split",anchor:"datasets.IterableDataset.split",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L173"}}),Jp=new k({props:{name:"builder_name",anchor:"datasets.IterableDataset.builder_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L178"}}),Tp=new k({props:{name:"citation",anchor:"datasets.IterableDataset.citation",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L182"}}),Dp=new k({props:{name:"config_name",anchor:"datasets.IterableDataset.config_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L186"}}),Ip=new k({props:{name:"dataset_size",anchor:"datasets.IterableDataset.dataset_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L190"}}),Cp=new k({props:{name:"description",anchor:"datasets.IterableDataset.description",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L194"}}),Up=new k({props:{name:"download_checksums",anchor:"datasets.IterableDataset.download_checksums",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L198"}}),Zp=new k({props:{name:"download_size",anchor:"datasets.IterableDataset.download_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L202"}}),Fp=new k({props:{name:"features",anchor:"datasets.IterableDataset.features",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L206"}}),Rp=new k({props:{name:"homepage",anchor:"datasets.IterableDataset.homepage",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L210"}}),zp=new k({props:{name:"license",anchor:"datasets.IterableDataset.license",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L214"}}),Gp=new k({props:{name:"size_in_bytes",anchor:"datasets.IterableDataset.size_in_bytes",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L218"}}),Np=new k({props:{name:"supervised_keys",anchor:"datasets.IterableDataset.supervised_keys",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L222"}}),Xp=new k({props:{name:"version",anchor:"datasets.IterableDataset.version",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/arrow_dataset.py#L230"}}),Vp=new En({props:{title:"IterableDatasetDict",local:"datasets.IterableDatasetDict",headingTag:"h2"}}),Wp=new k({props:{name:"class datasets.IterableDatasetDict",anchor:"datasets.IterableDatasetDict",parameters:"",source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/dataset_dict.py#L1869"}}),Bp=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_7019/src/datasets/dataset_dict.py#L1904"}}),Tl=new I({props:{anchor:"datasets.IterableDatasetDict.map.example",$$slots:{default:[FR]},$$scope:{ctx:w}}}),Qp=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_7019/src/datasets/dataset_dict.py#L1993"}}),Dl=new I({props:{anchor:"datasets.IterableDatasetDict.filter.example",$$slots:{default:[RR]},$$scope:{ctx:w}}}),Ep=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_7019/src/datasets/dataset_dict.py#L2056"}}),Il=new I({props:{anchor:"datasets.IterableDatasetDict.shuffle.example",$$slots:{default:[zR]},$$scope:{ctx:w}}}),Hp=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_7019/src/datasets/dataset_dict.py#L1875"}}),Cl=new I({props:{anchor:"datasets.IterableDatasetDict.with_format.example",$$slots:{default:[GR]},$$scope:{ctx:w}}}),Lp=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_7019/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_7019/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Ul=new I({props:{anchor:"datasets.IterableDatasetDict.cast.example",$$slots:{default:[NR]},$$scope:{ctx:w}}}),Yp=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_7019/src/datasets/dataset_dict.py#L2227",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Zl=new I({props:{anchor:"datasets.IterableDatasetDict.cast_column.example",$$slots:{default:[XR]},$$scope:{ctx:w}}}),Sp=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_7019/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_7019/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Fl=new I({props:{anchor:"datasets.IterableDatasetDict.remove_columns.example",$$slots:{default:[VR]},$$scope:{ctx:w}}}),Ap=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_7019/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_7019/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Rl=new I({props:{anchor:"datasets.IterableDatasetDict.rename_column.example",$$slots:{default:[qR]},$$scope:{ctx:w}}}),Pp=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_7019/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_7019/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),zl=new I({props:{anchor:"datasets.IterableDatasetDict.rename_columns.example",$$slots:{default:[WR]},$$scope:{ctx:w}}}),Kp=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_7019/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_7019/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Gl=new I({props:{anchor:"datasets.IterableDatasetDict.select_columns.example",$$slots:{default:[BR]},$$scope:{ctx:w}}}),Op=new En({props:{title:"Features",local:"datasets.Features",headingTag:"h2"}}),em=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_7019/src/datasets/features/features.py#L1691"}}),Nl=new AD({props:{$$slots:{default:[QR]},$$scope:{ctx:w}}}),sm=new k({props:{name:"copy",anchor:"datasets.Features.copy",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/features/features.py#L2092",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Features"
>Features</a></p>
`}}),Xl=new I({props:{anchor:"datasets.Features.copy.example",$$slots:{default:[ER]},$$scope:{ctx:w}}}),am=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_7019/src/datasets/features/features.py#L2065",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict[str, list[Any]]</code></p>
`}}),nm=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_7019/src/datasets/features/features.py#L2047",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>list[Any]</code></p>
`}}),rm=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_7019/src/datasets/features/features.py#L2024",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict[str, Any]</code></p>
`}}),om=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_7019/src/datasets/features/features.py#L2005",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict[str, list[Any]]</code></p>
`}}),lm=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_7019/src/datasets/features/features.py#L1989",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>list[Any]</code></p>
`}}),cm=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_7019/src/datasets/features/features.py#L1975",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict[str, Any]</code></p>
`}}),dm=new k({props:{name:"flatten",anchor:"datasets.Features.flatten",parameters:[{name:"max_depth",val:" = 16"}],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/features/features.py#L2184",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_7019/en/package_reference/main_classes#datasets.Features"
>Features</a></p>
`}}),Hl=new I({props:{anchor:"datasets.Features.flatten.example",$$slots:{default:[HR]},$$scope:{ctx:w}}}),im=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_7019/src/datasets/features/features.py#L1766",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/pr_7019/en/package_reference/main_classes#datasets.Features"
>Features</a></p>
`}}),pm=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_7019/src/datasets/features/features.py#L1800",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><em>Features</em></p>
`}}),Ll=new I({props:{anchor:"datasets.Features.from_dict.example",$$slots:{default:[LR]},$$scope:{ctx:w}}}),mm=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_7019/src/datasets/features/features.py#L2112",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>[<em>Features</em>]</p>
`}}),Yl=new I({props:{anchor:"datasets.Features.reorder_fields_as.example",$$slots:{default:[YR]},$$scope:{ctx:w}}}),hm=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_7019/src/datasets/features/features.py#L460"}}),Sl=new I({props:{anchor:"datasets.Value.example",$$slots:{default:[SR]},$$scope:{ctx:w}}}),gm=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_7019/src/datasets/features/features.py#L938"}}),Al=new I({props:{anchor:"datasets.ClassLabel.example",$$slots:{default:[AR]},$$scope:{ctx:w}}}),um=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_7019/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>
`}}),fm=new k({props:{name:"int2str",anchor:"datasets.ClassLabel.int2str",parameters:[{name:"values",val:": Union"}],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/features/features.py#L1058"}}),Pl=new I({props:{anchor:"datasets.ClassLabel.int2str.example",$$slots:{default:[PR]},$$scope:{ctx:w}}}),bm=new k({props:{name:"str2int",anchor:"datasets.ClassLabel.str2int",parameters:[{name:"values",val:": Union"}],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/features/features.py#L1013"}}),Kl=new I({props:{anchor:"datasets.ClassLabel.str2int.example",$$slots:{default:[KR]},$$scope:{ctx:w}}}),_m=new k({props:{name:"class datasets.LargeList",anchor:"datasets.LargeList",parameters:[{name:"dtype",val:": Any"},{name:"id",val:": Optional = None"}],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/features/features.py#L1166"}}),xm=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_7019/src/datasets/features/features.py#L1136"}}),Ol=new I({props:{anchor:"datasets.Sequence.example",$$slots:{default:[OR]},$$scope:{ctx:w}}}),$m=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_7019/src/datasets/features/translation.py#L11"}}),ec=new I({props:{anchor:"datasets.Translation.example",$$slots:{default:[ez]},$$scope:{ctx:w}}}),ym=new k({props:{name:"flatten",anchor:"datasets.Translation.flatten",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/features/translation.py#L44"}}),jm=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_7019/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>
`}}),sc=new I({props:{anchor:"datasets.TranslationVariableLanguages.example",$$slots:{default:[tz]},$$scope:{ctx:w}}}),wm=new k({props:{name:"flatten",anchor:"datasets.TranslationVariableLanguages.flatten",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/features/translation.py#L122"}}),vm=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_7019/src/datasets/features/features.py#L543"}}),nc=new I({props:{anchor:"datasets.Array2D.example",$$slots:{default:[sz]},$$scope:{ctx:w}}}),Mm=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_7019/src/datasets/features/features.py#L568"}}),rc=new I({props:{anchor:"datasets.Array3D.example",$$slots:{default:[az]},$$scope:{ctx:w}}}),km=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_7019/src/datasets/features/features.py#L593"}}),oc=new I({props:{anchor:"datasets.Array4D.example",$$slots:{default:[nz]},$$scope:{ctx:w}}}),Jm=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_7019/src/datasets/features/features.py#L618"}}),lc=new I({props:{anchor:"datasets.Array5D.example",$$slots:{default:[rz]},$$scope:{ctx:w}}}),Tm=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_7019/src/datasets/features/audio.py#L20"}}),cc=new I({props:{anchor:"datasets.Audio.example",$$slots:{default:[oz]},$$scope:{ctx:w}}}),Dm=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_7019/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>
`}}),Im=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_7019/src/datasets/features/audio.py#L126",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),Cm=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_7019/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>
`}}),Um=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_7019/src/datasets/features/audio.py#L77",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),Zm=new k({props:{name:"flatten",anchor:"datasets.Audio.flatten",parameters:[],source:"https://github.com/huggingface/datasets/blob/r_7019/src/datasets/features/audio.py#L198"}}),Fm=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_7019/src/datasets/features/image.py#L45"}}),hc=new I({props:{anchor:"datasets.Image.example",$$slots:{default:[lz]},$$scope:{ctx:w}}}),Rm=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_7019/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>
`}}),zm=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_7019/src/datasets/features/image.py#L133",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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