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


<p><a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),vc=new d4({props:{version:"1.7"}}),Wn=new I({props:{anchor:"datasets.Dataset.add_column.example",$$slots:{default:[J4]},$$scope:{ctx:w}}}),Mc=new J({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/3.0.0/src/datasets/arrow_dataset.py#L5861",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),Jc=new d4({props:{version:"1.7"}}),Bn=new I({props:{anchor:"datasets.Dataset.add_item.example",$$slots:{default:[T4]},$$scope:{ctx:w}}}),Tc=new J({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/3.0.0/src/datasets/arrow_dataset.py#L714",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),kc=new J({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/3.0.0/src/datasets/arrow_dataset.py#L754",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),Dc=new J({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/v3.0.0/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/3.0.0/src/datasets/arrow_dataset.py#L786",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),Cc=new J({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/v3.0.0/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/v3.0.0/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/3.0.0/src/datasets/arrow_dataset.py#L1026",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),Yn=new I({props:{anchor:"datasets.Dataset.from_generator.example",$$slots:{default:[D4]},$$scope:{ctx:w}}}),Sn=new I({props:{anchor:"datasets.Dataset.from_generator.example-2",$$slots:{default:[I4]},$$scope:{ctx:w}}}),Uc=new J({props:{name:"data",anchor:"datasets.Dataset.data",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L1726"}}),An=new I({props:{anchor:"datasets.Dataset.data.example",$$slots:{default:[C4]},$$scope:{ctx:w}}}),Zc=new J({props:{name:"cache_files",anchor:"datasets.Dataset.cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L1746"}}),Pn=new I({props:{anchor:"datasets.Dataset.cache_files.example",$$slots:{default:[U4]},$$scope:{ctx:w}}}),Fc=new J({props:{name:"num_columns",anchor:"datasets.Dataset.num_columns",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L1764"}}),Kn=new I({props:{anchor:"datasets.Dataset.num_columns.example",$$slots:{default:[Z4]},$$scope:{ctx:w}}}),Rc=new J({props:{name:"num_rows",anchor:"datasets.Dataset.num_rows",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L1779"}}),On=new I({props:{anchor:"datasets.Dataset.num_rows.example",$$slots:{default:[F4]},$$scope:{ctx:w}}}),Gc=new J({props:{name:"column_names",anchor:"datasets.Dataset.column_names",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L1796"}}),el=new I({props:{anchor:"datasets.Dataset.column_names.example",$$slots:{default:[R4]},$$scope:{ctx:w}}}),zc=new J({props:{name:"shape",anchor:"datasets.Dataset.shape",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L1811"}}),tl=new I({props:{anchor:"datasets.Dataset.shape.example",$$slots:{default:[G4]},$$scope:{ctx:w}}}),Nc=new J({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/v3.0.0/en/package_reference/main_classes#datasets.Dataset.column_names">column_names</a>).`,name:"column"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L1828",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>
`}}),sl=new I({props:{anchor:"datasets.Dataset.unique.example",$$slots:{default:[z4]},$$scope:{ctx:w}}}),Xc=new J({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/3.0.0/src/datasets/arrow_dataset.py#L1934",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/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),al=new I({props:{anchor:"datasets.Dataset.flatten.example",$$slots:{default:[N4]},$$scope:{ctx:w}}}),Vc=new J({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/v3.0.0/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/v3.0.0/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/v3.0.0/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/3.0.0/src/datasets/arrow_dataset.py#L1979",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/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),nl=new I({props:{anchor:"datasets.Dataset.cast.example",$$slots:{default:[X4]},$$scope:{ctx:w}}}),qc=new J({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/3.0.0/src/datasets/arrow_dataset.py#L2062",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),ll=new I({props:{anchor:"datasets.Dataset.cast_column.example",$$slots:{default:[V4]},$$scope:{ctx:w}}}),Wc=new J({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/3.0.0/src/datasets/arrow_dataset.py#L2104",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/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),ol=new I({props:{anchor:"datasets.Dataset.remove_columns.example",$$slots:{default:[q4]},$$scope:{ctx:w}}}),Bc=new J({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/3.0.0/src/datasets/arrow_dataset.py#L2159",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/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),rl=new I({props:{anchor:"datasets.Dataset.rename_column.example",$$slots:{default:[W4]},$$scope:{ctx:w}}}),Qc=new J({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/3.0.0/src/datasets/arrow_dataset.py#L2225",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/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),cl=new I({props:{anchor:"datasets.Dataset.rename_columns.example",$$slots:{default:[B4]},$$scope:{ctx:w}}}),Ec=new J({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/3.0.0/src/datasets/arrow_dataset.py#L2292",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/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),dl=new I({props:{anchor:"datasets.Dataset.select_columns.example",$$slots:{default:[Q4]},$$scope:{ctx:w}}}),Lc=new J({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/v3.0.0/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/3.0.0/src/datasets/arrow_dataset.py#L1859"}}),il=new I({props:{anchor:"datasets.Dataset.class_encode_column.example",$$slots:{default:[E4]},$$scope:{ctx:w}}}),Hc=new J({props:{name:"__len__",anchor:"datasets.Dataset.__len__",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L2340"}}),pl=new I({props:{anchor:"datasets.Dataset.__len__.example",$$slots:{default:[L4]},$$scope:{ctx:w}}}),Yc=new J({props:{name:"__iter__",anchor:"datasets.Dataset.__iter__",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L2357"}}),Sc=new J({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/3.0.0/src/datasets/arrow_dataset.py#L2386"}}),Ac=new J({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/3.0.0/src/datasets/arrow_dataset.py#L2430"}}),Pc=new J({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/3.0.0/src/datasets/arrow_dataset.py#L2462"}}),hl=new I({props:{anchor:"datasets.Dataset.set_format.example",$$slots:{default:[H4]},$$scope:{ctx:w}}}),ul=new I({props:{anchor:"datasets.Dataset.set_format.example-2",$$slots:{default:[Y4]},$$scope:{ctx:w}}}),Kc=new J({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/v3.0.0/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/3.0.0/src/datasets/arrow_dataset.py#L2570"}}),gl=new I({props:{anchor:"datasets.Dataset.set_transform.example",$$slots:{default:[S4]},$$scope:{ctx:w}}}),Oc=new J({props:{name:"reset_format",anchor:"datasets.Dataset.reset_format",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L2541"}}),fl=new I({props:{anchor:"datasets.Dataset.reset_format.example",$$slots:{default:[A4]},$$scope:{ctx:w}}}),ed=new J({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/3.0.0/src/datasets/arrow_dataset.py#L2613"}}),bl=new I({props:{anchor:"datasets.Dataset.with_format.example",$$slots:{default:[P4]},$$scope:{ctx:w}}}),td=new J({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/v3.0.0/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/3.0.0/src/datasets/arrow_dataset.py#L2664"}}),_l=new I({props:{anchor:"datasets.Dataset.with_transform.example",$$slots:{default:[K4]},$$scope:{ctx:w}}}),sd=new J({props:{name:"__getitem__",anchor:"datasets.Dataset.__getitem__",parameters:[{name:"key",val:""}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L2740"}}),ad=new J({props:{name:"cleanup_cache_files",anchor:"datasets.Dataset.cleanup_cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L2750",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>
`}}),$l=new I({props:{anchor:"datasets.Dataset.cleanup_cache_files.example",$$slots:{default:[O4]},$$scope:{ctx:w}}}),nd=new J({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/3.0.0/src/datasets/arrow_dataset.py#L2797"}}),jl=new I({props:{anchor:"datasets.Dataset.map.example",$$slots:{default:[eF]},$$scope:{ctx:w}}}),ld=new J({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/3.0.0/src/datasets/arrow_dataset.py#L3550"}}),yl=new I({props:{anchor:"datasets.Dataset.filter.example",$$slots:{default:[tF]},$$scope:{ctx:w}}}),od=new J({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/3.0.0/src/datasets/arrow_dataset.py#L3761"}}),wl=new I({props:{anchor:"datasets.Dataset.select.example",$$slots:{default:[sF]},$$scope:{ctx:w}}}),rd=new J({props:{name:"sort",anchor:"datasets.Dataset.sort",parameters:[{name:"column_names",val:": Union"},{name:"reverse",val:": Union = False"},{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.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/3.0.0/src/datasets/arrow_dataset.py#L4066"}}),vl=new I({props:{anchor:"datasets.Dataset.sort.example",$$slots:{default:[aF]},$$scope:{ctx:w}}}),cd=new J({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/3.0.0/src/datasets/arrow_dataset.py#L4194"}}),Ml=new I({props:{anchor:"datasets.Dataset.shuffle.example",$$slots:{default:[nF]},$$scope:{ctx:w}}}),Jl=new I({props:{anchor:"datasets.Dataset.shuffle.example-2",$$slots:{default:[lF]},$$scope:{ctx:w}}}),Tl=new I({props:{anchor:"datasets.Dataset.shuffle.example-3",$$slots:{default:[oF]},$$scope:{ctx:w}}}),dd=new J({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/3.0.0/src/datasets/arrow_dataset.py#L4013"}}),kl=new I({props:{anchor:"datasets.Dataset.skip.example",$$slots:{default:[rF]},$$scope:{ctx:w}}}),id=new J({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/3.0.0/src/datasets/arrow_dataset.py#L4043"}}),Dl=new I({props:{anchor:"datasets.Dataset.take.example",$$slots:{default:[cF]},$$scope:{ctx:w}}}),pd=new J({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/3.0.0/src/datasets/arrow_dataset.py#L4326"}}),Il=new I({props:{anchor:"datasets.Dataset.train_test_split.example",$$slots:{default:[dF]},$$scope:{ctx:w}}}),md=new J({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/3.0.0/src/datasets/arrow_dataset.py#L4609"}}),Cl=new I({props:{anchor:"datasets.Dataset.shard.example",$$slots:{default:[iF]},$$scope:{ctx:w}}}),hd=new J({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/3.0.0/src/datasets/arrow_dataset.py#L329",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>huggingface_hub.CommitInfo</p>
`}}),Zl=new I({props:{anchor:"datasets.Dataset.push_to_hub.example",$$slots:{default:[mF]},$$scope:{ctx:w}}}),Fl=new I({props:{anchor:"datasets.Dataset.push_to_hub.example-2",$$slots:{default:[hF]},$$scope:{ctx:w}}}),Rl=new I({props:{anchor:"datasets.Dataset.push_to_hub.example-3",$$slots:{default:[uF]},$$scope:{ctx:w}}}),gd=new J({props:{name:"save_to_disk",anchor:"datasets.Dataset.save_to_disk",parameters:[{name:"dataset_path",val:": Union"},{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.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/3.0.0/src/datasets/arrow_dataset.py#L1408"}}),Gl=new I({props:{anchor:"datasets.Dataset.save_to_disk.example",$$slots:{default:[gF]},$$scope:{ctx:w}}}),fd=new J({props:{name:"load_from_disk",anchor:"datasets.Dataset.load_from_disk",parameters:[{name:"dataset_path",val:": Union"},{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.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/3.0.0/src/datasets/arrow_dataset.py#L1605",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/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a> or <a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),zl=new I({props:{anchor:"datasets.Dataset.load_from_disk.example",$$slots:{default:[fF]},$$scope:{ctx:w}}}),bd=new J({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/v3.0.0/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/3.0.0/src/datasets/arrow_dataset.py#L3682"}}),_d=new J({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/3.0.0/src/datasets/arrow_dataset.py#L4685",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>
`}}),Xl=new I({props:{anchor:"datasets.Dataset.to_csv.example",$$slots:{default:[bF]},$$scope:{ctx:w}}}),xd=new J({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/3.0.0/src/datasets/arrow_dataset.py#L4846",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>pandas.DataFrame</code> or <code>Iterator[pandas.DataFrame]</code></p>
`}}),Vl=new I({props:{anchor:"datasets.Dataset.to_pandas.example",$$slots:{default:[_F]},$$scope:{ctx:w}}}),$d=new J({props:{name:"to_dict",anchor:"datasets.Dataset.to_dict",parameters:[{name:"batch_size",val:": Optional = None"}],parametersDescription:[{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/3.0.0/src/datasets/arrow_dataset.py#L4744",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code> or <code>Iterator[dict]</code></p>
`}}),ql=new I({props:{anchor:"datasets.Dataset.to_dict.example",$$slots:{default:[xF]},$$scope:{ctx:w}}}),jd=new J({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/3.0.0/src/datasets/arrow_dataset.py#L4784",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>
`}}),Wl=new I({props:{anchor:"datasets.Dataset.to_json.example",$$slots:{default:[$F]},$$scope:{ctx:w}}}),yd=new J({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/3.0.0/src/datasets/arrow_dataset.py#L4945",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>
`}}),Bl=new I({props:{anchor:"datasets.Dataset.to_parquet.example",$$slots:{default:[jF]},$$scope:{ctx:w}}}),wd=new J({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/3.0.0/src/datasets/arrow_dataset.py#L4984",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>
`}}),Ql=new I({props:{anchor:"datasets.Dataset.to_sql.example",$$slots:{default:[yF]},$$scope:{ctx:w}}}),vd=new J({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/v3.0.0/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/3.0.0/src/datasets/arrow_dataset.py#L5076",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.IterableDataset"
>datasets.IterableDataset</a></p>
`}}),El=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example",$$slots:{default:[wF]},$$scope:{ctx:w}}}),Ll=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-2",$$slots:{default:[vF]},$$scope:{ctx:w}}}),Hl=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-3",$$slots:{default:[MF]},$$scope:{ctx:w}}}),Yl=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-4",$$slots:{default:[JF]},$$scope:{ctx:w}}}),Sl=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-5",$$slots:{default:[TF]},$$scope:{ctx:w}}}),Al=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-6",$$slots:{default:[kF]},$$scope:{ctx:w}}}),Pl=new I({props:{anchor:"datasets.Dataset.to_iterable_dataset.example-7",$$slots:{default:[DF]},$$scope:{ctx:w}}}),Md=new J({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/v3.0.0/en/package_reference/main_classes#datasets.Dataset.get_nearest_examples">get_nearest_examples()</a> or <a href="/docs/datasets/v3.0.0/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/3.0.0/src/datasets/arrow_dataset.py#L5654"}}),Kl=new I({props:{anchor:"datasets.Dataset.add_faiss_index.example",$$slots:{default:[IF]},$$scope:{ctx:w}}}),Jd=new J({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/v3.0.0/en/package_reference/main_classes#datasets.Dataset.get_nearest_examples">get_nearest_examples()</a> or <a href="/docs/datasets/v3.0.0/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/3.0.0/src/datasets/arrow_dataset.py#L5734"}}),Td=new J({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/3.0.0/src/datasets/search.py#L535"}}),kd=new J({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/3.0.0/src/datasets/search.py#L553"}}),Dd=new J({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/v3.0.0/en/package_reference/main_classes#datasets.Dataset.get_nearest_examples">get_nearest_examples()</a> or <a href="/docs/datasets/v3.0.0/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/3.0.0/src/datasets/arrow_dataset.py#L5793"}}),eo=new I({props:{anchor:"datasets.Dataset.add_elasticsearch_index.example",$$slots:{default:[CF]},$$scope:{ctx:w}}}),Id=new J({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/3.0.0/src/datasets/search.py#L637"}}),Cd=new J({props:{name:"list_indexes",anchor:"datasets.Dataset.list_indexes",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/search.py#L438"}}),Ud=new J({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/3.0.0/src/datasets/search.py#L442",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>BaseIndex</code></p>
`}}),Zd=new J({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/3.0.0/src/datasets/search.py#L684"}}),Fd=new J({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/3.0.0/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>
`}}),Rd=new J({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/3.0.0/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>
`}}),Gd=new J({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/3.0.0/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>
`}}),zd=new J({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/3.0.0/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>
`}}),Nd=new J({props:{name:"info",anchor:"datasets.Dataset.info",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L165"}}),Xd=new J({props:{name:"split",anchor:"datasets.Dataset.split",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L170"}}),Vd=new J({props:{name:"builder_name",anchor:"datasets.Dataset.builder_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L175"}}),qd=new J({props:{name:"citation",anchor:"datasets.Dataset.citation",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L179"}}),Wd=new J({props:{name:"config_name",anchor:"datasets.Dataset.config_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L183"}}),Bd=new J({props:{name:"dataset_size",anchor:"datasets.Dataset.dataset_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L187"}}),Qd=new J({props:{name:"description",anchor:"datasets.Dataset.description",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L191"}}),Ed=new J({props:{name:"download_checksums",anchor:"datasets.Dataset.download_checksums",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L195"}}),Ld=new J({props:{name:"download_size",anchor:"datasets.Dataset.download_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L199"}}),Hd=new J({props:{name:"features",anchor:"datasets.Dataset.features",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L707"}}),Yd=new J({props:{name:"homepage",anchor:"datasets.Dataset.homepage",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L207"}}),Sd=new J({props:{name:"license",anchor:"datasets.Dataset.license",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L211"}}),Ad=new J({props:{name:"size_in_bytes",anchor:"datasets.Dataset.size_in_bytes",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L215"}}),Pd=new J({props:{name:"supervised_keys",anchor:"datasets.Dataset.supervised_keys",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L219"}}),Kd=new J({props:{name:"version",anchor:"datasets.Dataset.version",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L223"}}),Od=new J({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/v3.0.0/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/v3.0.0/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/3.0.0/src/datasets/arrow_dataset.py#L973",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


<p><a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),fo=new I({props:{anchor:"datasets.Dataset.from_sql.example",$$slots:{default:[GF]},$$scope:{ctx:w}}}),bo=new dD({props:{$$slots:{default:[zF]},$$scope:{ctx:w}}}),ni=new J({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/3.0.0/src/datasets/arrow_dataset.py#L5915"}}),_o=new I({props:{anchor:"datasets.Dataset.align_labels_with_mapping.example",$$slots:{default:[NF]},$$scope:{ctx:w}}}),li=new J({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/3.0.0/src/datasets/combine.py#L158"}}),xo=new I({props:{anchor:"datasets.concatenate_datasets.example",$$slots:{default:[XF]},$$scope:{ctx:w}}}),oi=new J({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/v3.0.0/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/v3.0.0/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/3.0.0/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/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a> or <a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.IterableDataset"
>IterableDataset</a></p>
`}}),$o=new I({props:{anchor:"datasets.interleave_datasets.example",$$slots:{default:[VF]},$$scope:{ctx:w}}}),ri=new J({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/v3.0.0/en/package_reference/main_classes#datasets.Dataset">Dataset</a> or <a href="/docs/datasets/v3.0.0/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/3.0.0/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/v3.0.0/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a> or <a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.IterableDataset"
>IterableDataset</a></p>
`}}),ci=new J({props:{name:"datasets.enable_caching",anchor:"datasets.enable_caching",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/fingerprint.py#L94"}}),di=new J({props:{name:"datasets.disable_caching",anchor:"datasets.disable_caching",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/fingerprint.py#L115"}}),ii=new J({props:{name:"datasets.is_caching_enabled",anchor:"datasets.is_caching_enabled",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/fingerprint.py#L136"}}),pi=new ye({props:{title:"DatasetDict",local:"datasets.DatasetDict",headingTag:"h2"}}),hi=new J({props:{name:"class datasets.DatasetDict",anchor:"datasets.DatasetDict",parameters:"",source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/dataset_dict.py#L43"}}),ui=new J({props:{name:"data",anchor:"datasets.DatasetDict.data",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/dataset_dict.py#L84"}}),jo=new I({props:{anchor:"datasets.DatasetDict.data.example",$$slots:{default:[qF]},$$scope:{ctx:w}}}),gi=new J({props:{name:"cache_files",anchor:"datasets.DatasetDict.cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/dataset_dict.py#L99"}}),yo=new I({props:{anchor:"datasets.DatasetDict.cache_files.example",$$slots:{default:[WF]},$$scope:{ctx:w}}}),fi=new J({props:{name:"num_columns",anchor:"datasets.DatasetDict.num_columns",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/dataset_dict.py#L117"}}),wo=new I({props:{anchor:"datasets.DatasetDict.num_columns.example",$$slots:{default:[BF]},$$scope:{ctx:w}}}),bi=new J({props:{name:"num_rows",anchor:"datasets.DatasetDict.num_rows",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/dataset_dict.py#L133"}}),vo=new I({props:{anchor:"datasets.DatasetDict.num_rows.example",$$slots:{default:[QF]},$$scope:{ctx:w}}}),_i=new J({props:{name:"column_names",anchor:"datasets.DatasetDict.column_names",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/dataset_dict.py#L149"}}),Mo=new I({props:{anchor:"datasets.DatasetDict.column_names.example",$$slots:{default:[EF]},$$scope:{ctx:w}}}),xi=new J({props:{name:"shape",anchor:"datasets.DatasetDict.shape",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/dataset_dict.py#L167"}}),Jo=new I({props:{anchor:"datasets.DatasetDict.shape.example",$$slots:{default:[LF]},$$scope:{ctx:w}}}),$i=new J({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/v3.0.0/en/package_reference/main_classes#datasets.DatasetDict.column_names">column_names</a>)`,name:"column"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/dataset_dict.py#L215",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>
`}}),To=new I({props:{anchor:"datasets.DatasetDict.unique.example",$$slots:{default:[HF]},$$scope:{ctx:w}}}),ji=new J({props:{name:"cleanup_cache_files",anchor:"datasets.DatasetDict.cleanup_cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/dataset_dict.py#L239",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict</code> with the number of removed files for each split</p>
`}}),ko=new I({props:{anchor:"datasets.DatasetDict.cleanup_cache_files.example",$$slots:{default:[YF]},$$scope:{ctx:w}}}),yi=new J({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/v3.0.0/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/3.0.0/src/datasets/dataset_dict.py#L762"}}),Do=new I({props:{anchor:"datasets.DatasetDict.map.example",$$slots:{default:[SF]},$$scope:{ctx:w}}}),wi=new J({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/3.0.0/src/datasets/dataset_dict.py#L890"}}),Io=new I({props:{anchor:"datasets.DatasetDict.filter.example",$$slots:{default:[AF]},$$scope:{ctx:w}}}),vi=new J({props:{name:"sort",anchor:"datasets.DatasetDict.sort",parameters:[{name:"column_names",val:": Union"},{name:"reverse",val:": Union = False"},{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.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/3.0.0/src/datasets/dataset_dict.py#L1052"}}),Co=new I({props:{anchor:"datasets.DatasetDict.sort.example",$$slots:{default:[PF]},$$scope:{ctx:w}}}),Mi=new J({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/3.0.0/src/datasets/dataset_dict.py#L1119"}}),Uo=new I({props:{anchor:"datasets.DatasetDict.shuffle.example",$$slots:{default:[KF]},$$scope:{ctx:w}}}),Ji=new J({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/3.0.0/src/datasets/dataset_dict.py#L554"}}),Zo=new I({props:{anchor:"datasets.DatasetDict.set_format.example",$$slots:{default:[OF]},$$scope:{ctx:w}}}),Ti=new J({props:{name:"reset_format",anchor:"datasets.DatasetDict.reset_format",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/dataset_dict.py#L600"}}),Fo=new I({props:{anchor:"datasets.DatasetDict.reset_format.example",$$slots:{default:[eR]},$$scope:{ctx:w}}}),ki=new J({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/3.0.0/src/datasets/dataset_dict.py#L517"}}),Di=new J({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/3.0.0/src/datasets/dataset_dict.py#L656"}}),Go=new I({props:{anchor:"datasets.DatasetDict.with_format.example",$$slots:{default:[tR]},$$scope:{ctx:w}}}),Ii=new J({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/v3.0.0/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/3.0.0/src/datasets/dataset_dict.py#L708"}}),zo=new I({props:{anchor:"datasets.DatasetDict.with_transform.example",$$slots:{default:[sR]},$$scope:{ctx:w}}}),Ci=new J({props:{name:"flatten",anchor:"datasets.DatasetDict.flatten",parameters:[{name:"max_depth",val:" = 16"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/dataset_dict.py#L183"}}),No=new I({props:{anchor:"datasets.DatasetDict.flatten.example",$$slots:{default:[aR]},$$scope:{ctx:w}}}),Ui=new J({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/v3.0.0/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/v3.0.0/en/package_reference/main_classes#datasets.DatasetDict.map">map()</a> to update the dataset.`,name:"features"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/dataset_dict.py#L263"}}),Xo=new I({props:{anchor:"datasets.DatasetDict.cast.example",$$slots:{default:[nR]},$$scope:{ctx:w}}}),Zi=new J({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/3.0.0/src/datasets/dataset_dict.py#L295",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),Vo=new I({props:{anchor:"datasets.DatasetDict.cast_column.example",$$slots:{default:[lR]},$$scope:{ctx:w}}}),Fi=new J({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/3.0.0/src/datasets/dataset_dict.py#L324",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/v3.0.0/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),qo=new I({props:{anchor:"datasets.DatasetDict.remove_columns.example",$$slots:{default:[oR]},$$scope:{ctx:w}}}),Ri=new J({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/3.0.0/src/datasets/dataset_dict.py#L366"}}),Wo=new I({props:{anchor:"datasets.DatasetDict.rename_column.example",$$slots:{default:[rR]},$$scope:{ctx:w}}}),Gi=new J({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/3.0.0/src/datasets/dataset_dict.py#L411",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/v3.0.0/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),Bo=new I({props:{anchor:"datasets.DatasetDict.rename_columns.example",$$slots:{default:[cR]},$$scope:{ctx:w}}}),zi=new J({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/3.0.0/src/datasets/dataset_dict.py#L449"}}),Qo=new I({props:{anchor:"datasets.DatasetDict.select_columns.example",$$slots:{default:[dR]},$$scope:{ctx:w}}}),Ni=new J({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/3.0.0/src/datasets/dataset_dict.py#L485"}}),Eo=new I({props:{anchor:"datasets.DatasetDict.class_encode_column.example",$$slots:{default:[iR]},$$scope:{ctx:w}}}),Xi=new J({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:"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.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/v3.0.0/en/package_reference/main_classes#datasets.Audio">Audio</a> and <a href="/docs/datasets/v3.0.0/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/3.0.0/src/datasets/dataset_dict.py#L1506",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>huggingface_hub.CommitInfo</p>
`}}),Lo=new I({props:{anchor:"datasets.DatasetDict.push_to_hub.example",$$slots:{default:[pR]},$$scope:{ctx:w}}}),Ho=new I({props:{anchor:"datasets.DatasetDict.push_to_hub.example-2",$$slots:{default:[mR]},$$scope:{ctx:w}}}),Vi=new J({props:{name:"save_to_disk",anchor:"datasets.DatasetDict.save_to_disk",parameters:[{name:"dataset_dict_path",val:": Union"},{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.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/3.0.0/src/datasets/dataset_dict.py#L1202"}}),Yo=new I({props:{anchor:"datasets.DatasetDict.save_to_disk.example",$$slots:{default:[hR]},$$scope:{ctx:w}}}),qi=new J({props:{name:"load_from_disk",anchor:"datasets.DatasetDict.load_from_disk",parameters:[{name:"dataset_dict_path",val:": Union"},{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.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/3.0.0/src/datasets/dataset_dict.py#L1272",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


<p><a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),Oo=new I({props:{anchor:"datasets.DatasetDict.from_text.example",$$slots:{default:[_R]},$$scope:{ctx:w}}}),Li=new ye({props:{title:"IterableDataset",local:"datasets.IterableDataset",headingTag:"h2"}}),Yi=new J({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"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/iterable_dataset.py#L1694"}}),Si=new J({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/v3.0.0/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/3.0.0/src/datasets/iterable_dataset.py#L2061",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>IterableDataset</code></p>
`}}),er=new I({props:{anchor:"datasets.IterableDataset.from_generator.example",$$slots:{default:[xR]},$$scope:{ctx:w}}}),tr=new I({props:{anchor:"datasets.IterableDataset.from_generator.example-2",$$slots:{default:[$R]},$$scope:{ctx:w}}}),Ai=new J({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/3.0.0/src/datasets/iterable_dataset.py#L2635",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>
`}}),sr=new I({props:{anchor:"datasets.IterableDataset.remove_columns.example",$$slots:{default:[jR]},$$scope:{ctx:w}}}),Pi=new J({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/3.0.0/src/datasets/iterable_dataset.py#L2670",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>
`}}),ar=new I({props:{anchor:"datasets.IterableDataset.select_columns.example",$$slots:{default:[yR]},$$scope:{ctx:w}}}),Ki=new J({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/3.0.0/src/datasets/iterable_dataset.py#L2721",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>IterableDataset</code></p>
`}}),nr=new I({props:{anchor:"datasets.IterableDataset.cast_column.example",$$slots:{default:[wR]},$$scope:{ctx:w}}}),Oi=new J({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/v3.0.0/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/v3.0.0/en/package_reference/main_classes#datasets.Dataset.map">map()</a> to update the Dataset.`,name:"features"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/iterable_dataset.py#L2767",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>
`}}),lr=new I({props:{anchor:"datasets.IterableDataset.cast.example",$$slots:{default:[vR]},$$scope:{ctx:w}}}),ep=new J({props:{name:"__iter__",anchor:"datasets.IterableDataset.__iter__",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/iterable_dataset.py#L1984"}}),tp=new J({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/3.0.0/src/datasets/iterable_dataset.py#L2021"}}),sp=new J({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/3.0.0/src/datasets/iterable_dataset.py#L2203"}}),rr=new I({props:{anchor:"datasets.IterableDataset.map.example",$$slots:{default:[MR]},$$scope:{ctx:w}}}),ap=new J({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/3.0.0/src/datasets/iterable_dataset.py#L2580",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>
`}}),cr=new I({props:{anchor:"datasets.IterableDataset.rename_column.example",$$slots:{default:[JR]},$$scope:{ctx:w}}}),np=new J({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/3.0.0/src/datasets/iterable_dataset.py#L2324"}}),dr=new I({props:{anchor:"datasets.IterableDataset.filter.example",$$slots:{default:[TR]},$$scope:{ctx:w}}}),lp=new J({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/3.0.0/src/datasets/iterable_dataset.py#L2402"}}),ir=new I({props:{anchor:"datasets.IterableDataset.shuffle.example",$$slots:{default:[kR]},$$scope:{ctx:w}}}),op=new J({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/3.0.0/src/datasets/iterable_dataset.py#L2844"}}),pr=new I({props:{anchor:"datasets.IterableDataset.batch.example",$$slots:{default:[DR]},$$scope:{ctx:w}}}),rp=new J({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/3.0.0/src/datasets/iterable_dataset.py#L2472"}}),mr=new I({props:{anchor:"datasets.IterableDataset.skip.example",$$slots:{default:[IR]},$$scope:{ctx:w}}}),cp=new J({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/3.0.0/src/datasets/iterable_dataset.py#L2516"}}),hr=new I({props:{anchor:"datasets.IterableDataset.take.example",$$slots:{default:[CR]},$$scope:{ctx:w}}}),dp=new J({props:{name:"load_state_dict",anchor:"datasets.IterableDataset.load_state_dict",parameters:[{name:"state_dict",val:": dict"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/iterable_dataset.py#L1780"}}),ur=new I({props:{anchor:"datasets.IterableDataset.load_state_dict.example",$$slots:{default:[UR]},$$scope:{ctx:w}}}),gr=new I({props:{anchor:"datasets.IterableDataset.load_state_dict.example-2",$$slots:{default:[ZR]},$$scope:{ctx:w}}}),fr=new I({props:{anchor:"datasets.IterableDataset.load_state_dict.example-3",$$slots:{default:[FR]},$$scope:{ctx:w}}}),ip=new J({props:{name:"state_dict",anchor:"datasets.IterableDataset.state_dict",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/iterable_dataset.py#L1727",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),br=new I({props:{anchor:"datasets.IterableDataset.state_dict.example",$$slots:{default:[RR]},$$scope:{ctx:w}}}),_r=new I({props:{anchor:"datasets.IterableDataset.state_dict.example-2",$$slots:{default:[GR]},$$scope:{ctx:w}}}),xr=new I({props:{anchor:"datasets.IterableDataset.state_dict.example-3",$$slots:{default:[zR]},$$scope:{ctx:w}}}),pp=new J({props:{name:"info",anchor:"datasets.IterableDataset.info",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L165"}}),mp=new J({props:{name:"split",anchor:"datasets.IterableDataset.split",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L170"}}),hp=new J({props:{name:"builder_name",anchor:"datasets.IterableDataset.builder_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L175"}}),up=new J({props:{name:"citation",anchor:"datasets.IterableDataset.citation",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L179"}}),gp=new J({props:{name:"config_name",anchor:"datasets.IterableDataset.config_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L183"}}),fp=new J({props:{name:"dataset_size",anchor:"datasets.IterableDataset.dataset_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L187"}}),bp=new J({props:{name:"description",anchor:"datasets.IterableDataset.description",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L191"}}),_p=new J({props:{name:"download_checksums",anchor:"datasets.IterableDataset.download_checksums",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L195"}}),xp=new J({props:{name:"download_size",anchor:"datasets.IterableDataset.download_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L199"}}),$p=new J({props:{name:"features",anchor:"datasets.IterableDataset.features",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L203"}}),jp=new J({props:{name:"homepage",anchor:"datasets.IterableDataset.homepage",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L207"}}),yp=new J({props:{name:"license",anchor:"datasets.IterableDataset.license",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L211"}}),wp=new J({props:{name:"size_in_bytes",anchor:"datasets.IterableDataset.size_in_bytes",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L215"}}),vp=new J({props:{name:"supervised_keys",anchor:"datasets.IterableDataset.supervised_keys",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L219"}}),Mp=new J({props:{name:"version",anchor:"datasets.IterableDataset.version",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/arrow_dataset.py#L223"}}),Jp=new ye({props:{title:"IterableDatasetDict",local:"datasets.IterableDatasetDict",headingTag:"h2"}}),kp=new J({props:{name:"class datasets.IterableDatasetDict",anchor:"datasets.IterableDatasetDict",parameters:"",source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/dataset_dict.py#L1792"}}),Dp=new J({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/3.0.0/src/datasets/dataset_dict.py#L1827"}}),yr=new I({props:{anchor:"datasets.IterableDatasetDict.map.example",$$slots:{default:[NR]},$$scope:{ctx:w}}}),Ip=new J({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/3.0.0/src/datasets/dataset_dict.py#L1916"}}),wr=new I({props:{anchor:"datasets.IterableDatasetDict.filter.example",$$slots:{default:[XR]},$$scope:{ctx:w}}}),Cp=new J({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/3.0.0/src/datasets/dataset_dict.py#L1979"}}),vr=new I({props:{anchor:"datasets.IterableDatasetDict.shuffle.example",$$slots:{default:[VR]},$$scope:{ctx:w}}}),Up=new J({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/3.0.0/src/datasets/dataset_dict.py#L1798"}}),Mr=new I({props:{anchor:"datasets.IterableDatasetDict.with_format.example",$$slots:{default:[qR]},$$scope:{ctx:w}}}),Zp=new J({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/3.0.0/src/datasets/dataset_dict.py#L2181",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/v3.0.0/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Jr=new I({props:{anchor:"datasets.IterableDatasetDict.cast.example",$$slots:{default:[WR]},$$scope:{ctx:w}}}),Fp=new J({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/3.0.0/src/datasets/dataset_dict.py#L2150",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Tr=new I({props:{anchor:"datasets.IterableDatasetDict.cast_column.example",$$slots:{default:[BR]},$$scope:{ctx:w}}}),Rp=new J({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/3.0.0/src/datasets/dataset_dict.py#L2098",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/v3.0.0/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),kr=new I({props:{anchor:"datasets.IterableDatasetDict.remove_columns.example",$$slots:{default:[QR]},$$scope:{ctx:w}}}),Gp=new J({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/3.0.0/src/datasets/dataset_dict.py#L2037",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/v3.0.0/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Dr=new I({props:{anchor:"datasets.IterableDatasetDict.rename_column.example",$$slots:{default:[ER]},$$scope:{ctx:w}}}),zp=new J({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/3.0.0/src/datasets/dataset_dict.py#L2070",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/v3.0.0/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Ir=new I({props:{anchor:"datasets.IterableDatasetDict.rename_columns.example",$$slots:{default:[LR]},$$scope:{ctx:w}}}),Np=new J({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/3.0.0/src/datasets/dataset_dict.py#L2124",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/v3.0.0/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Cr=new I({props:{anchor:"datasets.IterableDatasetDict.select_columns.example",$$slots:{default:[HR]},$$scope:{ctx:w}}}),Xp=new ye({props:{title:"Features",local:"datasets.Features",headingTag:"h2"}}),Vp=new J({props:{name:"class datasets.Features",anchor:"datasets.Features",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/features/features.py#L1694"}}),Ur=new dD({props:{$$slots:{default:[YR]},$$scope:{ctx:w}}}),Wp=new J({props:{name:"copy",anchor:"datasets.Features.copy",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/features/features.py#L2095",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<p><code>list[Any]</code></p>
`}}),Ep=new J({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/3.0.0/src/datasets/features/features.py#L2027",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<p><code>list[Any]</code></p>
`}}),Yp=new J({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/3.0.0/src/datasets/features/features.py#L1978",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict[str, Any]</code></p>
`}}),Sp=new J({props:{name:"flatten",anchor:"datasets.Features.flatten",parameters:[{name:"max_depth",val:" = 16"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/features/features.py#L2187",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/v3.0.0/en/package_reference/main_classes#datasets.Features"
>Features</a></p>
`}}),Vr=new I({props:{anchor:"datasets.Features.flatten.example",$$slots:{default:[AR]},$$scope:{ctx:w}}}),Ap=new J({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/3.0.0/src/datasets/features/features.py#L1769",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.0/en/package_reference/main_classes#datasets.Features"
>Features</a></p>
`}}),Pp=new J({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/3.0.0/src/datasets/features/features.py#L1803",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>[<em>Features</em>]</p>
`}}),Wr=new I({props:{anchor:"datasets.Features.reorder_fields_as.example",$$slots:{default:[KR]},$$scope:{ctx:w}}}),Op=new ye({props:{title:"Scalar",local:"datasets.Value",headingTag:"h3"}}),em=new J({props:{name:"class datasets.Value",anchor:"datasets.Value",parameters:[{name:"dtype",val:": str"},{name:"id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.Value.dtype",description:`<strong>dtype</strong> (<code>str</code>) &#x2014;
Name of the data type.`,name:"dtype"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/features/features.py#L460"}}),Br=new I({props:{anchor:"datasets.Value.example",$$slots:{default:[OR]},$$scope:{ctx:w}}}),tm=new J({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/3.0.0/src/datasets/features/features.py#L943"}}),Qr=new I({props:{anchor:"datasets.ClassLabel.example",$$slots:{default:[eG]},$$scope:{ctx:w}}}),sm=new J({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/3.0.0/src/datasets/features/features.py#L1109",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>
`}}),am=new J({props:{name:"int2str",anchor:"datasets.ClassLabel.int2str",parameters:[{name:"values",val:": Union"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/features/features.py#L1063"}}),Er=new I({props:{anchor:"datasets.ClassLabel.int2str.example",$$slots:{default:[tG]},$$scope:{ctx:w}}}),nm=new J({props:{name:"str2int",anchor:"datasets.ClassLabel.str2int",parameters:[{name:"values",val:": Union"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/features/features.py#L1018"}}),Lr=new I({props:{anchor:"datasets.ClassLabel.str2int.example",$$slots:{default:[sG]},$$scope:{ctx:w}}}),lm=new ye({props:{title:"Composite",local:"datasets.LargeList",headingTag:"h3"}}),om=new J({props:{name:"class datasets.LargeList",anchor:"datasets.LargeList",parameters:[{name:"feature",val:": Any"},{name:"id",val:": Optional = None"}],parametersDescription:[{anchor:"datasets.LargeList.feature",description:`<strong>feature</strong> (<code>FeatureType</code>) &#x2014;
Child feature data type of each item within the large list.`,name:"feature"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/features/features.py#L1171"}}),rm=new J({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.feature",description:`<strong>feature</strong> (<code>FeatureType</code>) &#x2014;
A list of features of a single type or a dictionary of types.`,name:"feature"},{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/3.0.0/src/datasets/features/features.py#L1141"}}),Hr=new I({props:{anchor:"datasets.Sequence.example",$$slots:{default:[aG]},$$scope:{ctx:w}}}),cm=new ye({props:{title:"Translation",local:"datasets.Translation",headingTag:"h3"}}),dm=new J({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/3.0.0/src/datasets/features/translation.py#L11"}}),Yr=new I({props:{anchor:"datasets.Translation.example",$$slots:{default:[nG]},$$scope:{ctx:w}}}),im=new J({props:{name:"flatten",anchor:"datasets.Translation.flatten",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/features/translation.py#L44"}}),pm=new J({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/3.0.0/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>
`}}),Ar=new I({props:{anchor:"datasets.TranslationVariableLanguages.example",$$slots:{default:[lG]},$$scope:{ctx:w}}}),mm=new J({props:{name:"flatten",anchor:"datasets.TranslationVariableLanguages.flatten",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/features/translation.py#L122"}}),hm=new ye({props:{title:"Arrays",local:"datasets.Array2D",headingTag:"h3"}}),um=new J({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;
Size of each dimension.`,name:"shape"},{anchor:"datasets.Array2D.dtype",description:`<strong>dtype</strong> (<code>str</code>) &#x2014;
Name of the data type.`,name:"dtype"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/features/features.py#L548"}}),Kr=new I({props:{anchor:"datasets.Array2D.example",$$slots:{default:[oG]},$$scope:{ctx:w}}}),gm=new J({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;
Size of each dimension.`,name:"shape"},{anchor:"datasets.Array3D.dtype",description:`<strong>dtype</strong> (<code>str</code>) &#x2014;
Name of the data type.`,name:"dtype"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/features/features.py#L573"}}),Or=new I({props:{anchor:"datasets.Array3D.example",$$slots:{default:[rG]},$$scope:{ctx:w}}}),fm=new J({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;
Size of each dimension.`,name:"shape"},{anchor:"datasets.Array4D.dtype",description:`<strong>dtype</strong> (<code>str</code>) &#x2014;
Name of the data type.`,name:"dtype"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/features/features.py#L598"}}),ec=new I({props:{anchor:"datasets.Array4D.example",$$slots:{default:[cG]},$$scope:{ctx:w}}}),bm=new J({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;
Size of each dimension.`,name:"shape"},{anchor:"datasets.Array5D.dtype",description:`<strong>dtype</strong> (<code>str</code>) &#x2014;
Name of the data type.`,name:"dtype"}],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/features/features.py#L623"}}),tc=new I({props:{anchor:"datasets.Array5D.example",$$slots:{default:[dG]},$$scope:{ctx:w}}}),_m=new ye({props:{title:"Audio",local:"datasets.Audio",headingTag:"h3"}}),xm=new J({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/3.0.0/src/datasets/features/audio.py#L20"}}),sc=new I({props:{anchor:"datasets.Audio.example",$$slots:{default:[iG]},$$scope:{ctx:w}}}),$m=new J({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/3.0.0/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>
`}}),jm=new J({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/3.0.0/src/datasets/features/audio.py#L126",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),ym=new J({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/3.0.0/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>
`}}),wm=new J({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/3.0.0/src/datasets/features/audio.py#L77",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),vm=new J({props:{name:"flatten",anchor:"datasets.Audio.flatten",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.0/src/datasets/features/audio.py#L198"}}),Mm=new ye({props:{title:"Image",local:"datasets.Image",headingTag:"h3"}}),Jm=new J({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/3.0.0/src/datasets/features/image.py#L45"}}),rc=new I({props:{anchor:"datasets.Image.example",$$slots:{default:[pG]},$$scope:{ctx:w}}}),Tm=new J({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/3.0.0/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>
`}}),km=new J({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/3.0.0/src/datasets/features/image.py#L133",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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