import{s as d4,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 i4,i as m4,r as g,u as f,v as b,d as h,t as u,w as _,g as p,m as oD,s as l,h as d,j as v,n as cD,f as i,c as r,k as M,a as y,y as a,o as _4,A as x4,x as j}from"../chunks/index.c0aea24a.js";import{T as pD}from"../chunks/Tip.31005f7d.js";import{D as J}from"../chunks/Docstring.34291e8a.js";import{C}from"../chunks/CodeBlock.6ccca92e.js";import{E as I}from"../chunks/ExampleCodeBlock.241e4203.js";import{H as ye,E as j4}from"../chunks/EditOnGithub.725ee0c1.js";function $4(w){let s,x,o,t,c;const e=w[1].default,m=h4(e,w,w[2],null);return{c(){s=p("p"),x=oD("Added in "),o=oD(w[0]),t=l(),m&&m.c(),this.h()},l(W){s=d(W,"P",{class:!0});var V=v(s);x=cD(V,"Added in "),o=cD(V,w[0]),V.forEach(i),t=r(W),m&&m.l(W),this.h()},h(){M(s,"class","font-medium")},m(W,V){y(W,s,V),a(s,x),a(s,o),y(W,t,V),m&&m.m(W,V),c=!0},p(W,V){(!c||V&1)&&_4(o,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&&(i(s),i(t)),m&&m.d(W)}}}function y4(w){let s,x;return s=new pD({props:{$$slots:{default:[$4]},$$scope:{ctx:w}}}),{c(){g(s.$$.fragment)},l(o){f(s.$$.fragment,o)},m(o,t){b(s,o,t),x=!0},p(o,[t]){const c={};t&5&&(c.$$scope={dirty:t,ctx:o}),s.$set(c)},i(o){x||(h(s.$$.fragment,o),x=!0)},o(o){u(s.$$.fragment,o),x=!1},d(o){_(s,o)}}}function w4(w,s,x){let{$$slots:o={},$$scope:t}=s,{version:c}=s;return w.$$set=e=>{"version"in e&&x(0,c=e.version),"$$scope"in e&&x(2,t=e.$$scope)},[c,o,t]}class p4 extends i4{constructor(s){super(),m4(this,s,w4,y4,d4,{version:0})}}function v4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function M4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function J4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function T4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function k4(w){let s,x="Example:",o,t,c;return t=new C({props:{code:"ZHMlMjAlM0QlMjBEYXRhc2V0LmZyb21fcGFuZGFzKGRmKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds = Dataset.from_pandas(df)',wrap:!1}}),{c(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function D4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function I4(w){let s,x;return s=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(s.$$.fragment)},l(o){f(s.$$.fragment,o)},m(o,t){b(s,o,t),x=!0},p:D,i(o){x||(h(s.$$.fragment,o),x=!0)},o(o){u(s.$$.fragment,o),x=!1},d(o){_(s,o)}}}function C4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function U4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function Z4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function F4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function R4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function G4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function z4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function N4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function X4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function V4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function q4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function W4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function B4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function Q4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function E4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function L4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function H4(w){let s,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:",o,t,c;return t=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(){s=p("p"),s.innerHTML=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-bzwixd"&&(s.innerHTML=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function Y4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function S4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function A4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function P4(w){let s,x="Example:",o,t,c;return t=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJyb3R0ZW5fdG9tYXRvZXMlMjIlMkMlMjBzcGxpdCUzRCUyMnZhbGlkYXRpb24lMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQWRzJTIwJTNEJTIwZHMubWFwKGxhbWJkYSUyMHglM0ElMjB0b2tlbml6ZXIoeCU1Qid0ZXh0JyU1RCUyQyUyMHRydW5jYXRpb24lM0RUcnVlJTJDJTIwcGFkZGluZyUzRFRydWUpJTJDJTIwYmF0Y2hlZCUzRFRydWUpJTBBZHMuZm9ybWF0JTBBZHMlMjAlM0QlMjBkcy53aXRoX2Zvcm1hdCglMjJ0b3JjaCUyMiklMEFkcy5mb3JtYXQlMEFkcyU1QjAlNUQ=",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-string">&quot;torch&quot;</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-string">&#x27;torch&#x27;</span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>ds[<span class="hljs-number">0</span>]
{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;compassionately explores the seemingly irreconcilable situation between conservative christian parents and their estranged gay and lesbian children .&#x27;</span>,
 <span class="hljs-string">&#x27;label&#x27;</span>: tensor(<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-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</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>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>,
        <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</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">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>,
        <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>,
        <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function K4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function O4(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function eF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function sF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function tF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function aF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function nF(w){let s,x="This may take a lot of time depending of the size of your dataset though:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-4lic98"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function lF(w){let s,x="It only shuffles the shards order and adds a shuffle buffer to your dataset, which keeps the speed of your dataset optimal:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-x7zi6r"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function rF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function oF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function cF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function pF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function dF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function iF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function mF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function hF(w){let s,x="If your dataset has multiple splits (e.g. train/validation/test):",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-if431r"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function uF(w){let s,x="If you want to add a new configuration (or subset) to a dataset (e.g. if the dataset has multiple tasks/versions/languages):",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1l9vuim"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function gF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function fF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function bF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function _F(w){let s,x="Example:",o,t,c;return t=new C({props:{code:"ZHMudG9fcGFuZGFzKCk=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds.to_pandas()',wrap:!1}}),{c(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function xF(w){let s,x="Example:",o,t,c;return t=new C({props:{code:"ZHMudG9fZGljdCgp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds.to_dict()',wrap:!1}}),{c(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function jF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function $F(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function yF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function wF(w){let s,x="Basic usage:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1aguo8v"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function vF(w){let s,x="With lazy filtering and processing:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1hwce9a"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function MF(w){let s,x="With sharding to enable efficient shuffling:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-995aun"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function JF(w){let s,x="With a PyTorch DataLoader:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-ri12p1"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function TF(w){let s,x="With a PyTorch DataLoader and shuffling:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-dsklbq"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function kF(w){let s,x;return s=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzLmRpc3RyaWJ1dGVkJTIwaW1wb3J0JTIwc3BsaXRfZGF0YXNldF9ieV9ub2RlJTBBaWRzJTIwJTNEJTIwZHMudG9faXRlcmFibGVfZGF0YXNldChudW1fc2hhcmRzJTNENTEyKSUwQWlkcyUyMCUzRCUyMGlkcy5zaHVmZmxlKGJ1ZmZlcl9zaXplJTNEMTBfMDAwJTJDJTIwc2VlZCUzRDQyKSUyMCUyMCUyMyUyMHdpbGwlMjBzaHVmZmxlJTIwdGhlJTIwc2hhcmRzJTIwb3JkZXIlMjBhbmQlMjB1c2UlMjBhJTIwc2h1ZmZsZSUyMGJ1ZmZlciUyMHdoZW4lMjB5b3UlMjBzdGFydCUyMGl0ZXJhdGluZyUwQWlkcyUyMCUzRCUyMHNwbGl0X2RhdGFzZXRfYnlfbm9kZShkcyUyQyUyMHdvcmxkX3NpemUlM0Q4JTJDJTIwcmFuayUzRDApJTIwJTIwJTIzJTIwd2lsbCUyMGtlZXAlMjBvbmx5JTIwNTEyJTIwJTJGJTIwOCUyMCUzRCUyMDY0JTIwc2hhcmRzJTIwZnJvbSUyMHRoZSUyMHNodWZmbGVkJTIwbGlzdHMlMjBvZiUyMHNoYXJkcyUyMHdoZW4lMjB5b3UlMjBzdGFydCUyMGl0ZXJhdGluZyUwQWRhdGFsb2FkZXIlMjAlM0QlMjB0b3JjaC51dGlscy5kYXRhLkRhdGFMb2FkZXIoaWRzJTJDJTIwbnVtX3dvcmtlcnMlM0Q0KSUyMCUyMCUyMyUyMHdpbGwlMjBhc3NpZ24lMjA2NCUyMCUyRiUyMDQlMjAlM0QlMjAxNiUyMHNoYXJkcyUyMGZyb20lMjB0aGlzJTIwbm9kZSdzJTIwbGlzdCUyMG9mJTIwc2hhcmRzJTIwdG8lMjBlYWNoJTIwd29ya2VyJTIwd2hlbiUyMHlvdSUyMHN0YXJ0JTIwaXRlcmF0aW5nJTBBZm9yJTIwZXhhbXBsZSUyMGluJTIwaWRzJTNBJTBBJTIwJTIwJTIwJTIwcGFzcw==",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>, 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>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(s.$$.fragment)},l(o){f(s.$$.fragment,o)},m(o,t){b(s,o,t),x=!0},p:D,i(o){x||(h(s.$$.fragment,o),x=!0)},o(o){u(s.$$.fragment,o),x=!1},d(o){_(s,o)}}}function DF(w){let s,x="With shuffling and multiple epochs:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1ul2v9x"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function IF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function CF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function UF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function ZF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function FF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function RF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function GF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function zF(w){let s,x="The returned dataset can only be cached if <code>con</code> is specified as URI string.";return{c(){s=p("p"),s.innerHTML=x},l(o){s=d(o,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1iojgz0"&&(s.innerHTML=x)},m(o,t){y(o,s,t)},p:D,d(o){o&&i(s)}}}function NF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function XF(w){let s,x="Example:",o,t,c;return t=new C({props:{code:"ZHMzJTIwJTNEJTIwY29uY2F0ZW5hdGVfZGF0YXNldHMoJTVCZHMxJTJDJTIwZHMyJTVEKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>ds3 = concatenate_datasets([ds1, ds2])',wrap:!1}}),{c(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function VF(w){let s,x="For regular datasets (map-style):",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1as9ud5"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function qF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function WF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function BF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function QF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function EF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function LF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function HF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function YF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function SF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function AF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function PF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function KF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function OF(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function eR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function sR(w){let s,x="Example:",o,t,c;return t=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJyb3R0ZW5fdG9tYXRvZXMlMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQWRzJTIwJTNEJTIwZHMubWFwKGxhbWJkYSUyMHglM0ElMjB0b2tlbml6ZXIoeCU1Qid0ZXh0JyU1RCUyQyUyMHRydW5jYXRpb24lM0RUcnVlJTJDJTIwcGFkZGluZyUzRFRydWUpJTJDJTIwYmF0Y2hlZCUzRFRydWUpJTBBZHMlNUIlMjJ0cmFpbiUyMiU1RC5mb3JtYXQlMEFkcyUyMCUzRCUyMGRzLndpdGhfZm9ybWF0KCUyMnRvcmNoJTIyKSUwQWRzJTVCJTIydHJhaW4lMjIlNUQuZm9ybWF0JTBBZHMlNUIlMjJ0cmFpbiUyMiU1RCU1QjAlNUQ=",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-string">&quot;torch&quot;</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-string">&#x27;torch&#x27;</span>}
<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;text&#x27;</span>: <span class="hljs-string">&#x27;compassionately explores the seemingly irreconcilable situation between conservative christian parents and their estranged gay and lesbian children .&#x27;</span>,
 <span class="hljs-string">&#x27;label&#x27;</span>: tensor(<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-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</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>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>,
        <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</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">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>,
        <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>,
        <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function tR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function aR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function nR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function lR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function rR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function oR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function cR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function pR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function dR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function iR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function mR(w){let s,x="If you want to add a new configuration (or subset) to a dataset (e.g. if the dataset has multiple tasks/versions/languages):",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1l9vuim"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function hR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function uR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function gR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function fR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function bR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function _R(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function xR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function jR(w){let s,x;return s=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(s.$$.fragment)},l(o){f(s.$$.fragment,o)},m(o,t){b(s,o,t),x=!0},p:D,i(o){x||(h(s.$$.fragment,o),x=!0)},o(o){u(s.$$.fragment,o),x=!1},d(o){_(s,o)}}}function $R(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function yR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function wR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function vR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function MR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function JR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function TR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function kR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function DR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function IR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function CR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function UR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function ZR(w){let s,x="which returns:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1pybjl4"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function FR(w){let s,x;return s=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(s.$$.fragment)},l(o){f(s.$$.fragment,o)},m(o,t){b(s,o,t),x=!0},p:D,i(o){x||(h(s.$$.fragment,o),x=!0)},o(o){u(s.$$.fragment,o),x=!1},d(o){_(s,o)}}}function RR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function GR(w){let s,x="which returns:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-1pybjl4"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function zR(w){let s,x;return s=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(s.$$.fragment)},l(o){f(s.$$.fragment,o)},m(o,t){b(s,o,t),x=!0},p:D,i(o){x||(h(s.$$.fragment,o),x=!0)},o(o){u(s.$$.fragment,o),x=!1},d(o){_(s,o)}}}function NR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function XR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function VR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function qR(w){let s,x="Example:",o,t,c;return t=new C({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEFkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJyb3R0ZW5fdG9tYXRvZXMlMjIlMkMlMjBzcGxpdCUzRCUyMnZhbGlkYXRpb24lMjIlMkMlMjBzdHJlYW1pbmclM0RUcnVlKSUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMmJlcnQtYmFzZS1jYXNlZCUyMiklMEFkcyUyMCUzRCUyMGRzLm1hcChsYW1iZGElMjB4JTNBJTIwdG9rZW5pemVyKHglNUIndGV4dCclNUQlMkMlMjB0cnVuY2F0aW9uJTNEVHJ1ZSUyQyUyMHBhZGRpbmclM0RUcnVlKSUyQyUyMGJhdGNoZWQlM0RUcnVlKSUwQWRzJTIwJTNEJTIwZHMud2l0aF9mb3JtYXQoJTIydG9yY2glMjIpJTBBbmV4dChpdGVyKGRzKSk=",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>, streaming=<span class="hljs-literal">True</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 = ds.with_format(<span class="hljs-string">&quot;torch&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;compassionately explores the seemingly irreconcilable situation between conservative christian parents and their estranged gay and lesbian children .&#x27;</span>,
 <span class="hljs-string">&#x27;label&#x27;</span>: tensor(<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-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,
            <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</span>,     <span class="hljs-number">0</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>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>,
        <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</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">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>,
        <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>,
        <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function WR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function BR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function QR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function ER(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function LR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function HR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function YR(w){let s,x=`A <a href="/docs/datasets/v3.0.2/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.2/en/package_reference/main_classes#datasets.LargeList">LargeList</a>
instead of the <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Sequence">Sequence</a>.`;return{c(){s=p("p"),s.innerHTML=x},l(o){s=d(o,"P",{"data-svelte-h":!0}),j(s)!=="svelte-19g1vlo"&&(s.innerHTML=x)},m(o,t){y(o,s,t)},p:D,d(o){o&&i(s)}}}function SR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function AR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function PR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function KR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function OR(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function eG(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function sG(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function tG(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function aG(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function nG(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function lG(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function rG(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function oG(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function cG(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function pG(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function dG(w){let s,x="Example:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-11lpom8"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function iG(w){let s,x="Examples:",o,t,c;return t=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(){s=p("p"),s.textContent=x,o=l(),g(t.$$.fragment)},l(e){s=d(e,"P",{"data-svelte-h":!0}),j(s)!=="svelte-kvfsh7"&&(s.textContent=x),o=r(e),f(t.$$.fragment,e)},m(e,m){y(e,s,m),y(e,o,m),b(t,e,m),c=!0},p:D,i(e){c||(h(t.$$.fragment,e),c=!0)},o(e){u(t.$$.fragment,e),c=!1},d(e){e&&(i(s),i(o)),_(t,e)}}}function mG(w){let s,x,o,t,c,e,m,W,V,bc,oj,nh,dD="Information about a dataset.",cj,lh,iD=`<code>DatasetInfo</code> documents datasets, including its name, version, and features.
See the constructor arguments and properties for a full list.`,pj,rh,mD="Not all fields are known on construction and may be updated later.",dj,we,_c,ij,oh,hD='Create <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.DatasetInfo">DatasetInfo</a> from the JSON file in <code>dataset_info_dir</code>.',mj,ch,uD=`This function updates all the dynamically generated fields (num_examples,
hash, time of creation,…) of the <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.DatasetInfo">DatasetInfo</a>.`,hj,ph,gD="This will overwrite all previous metadata.",uj,Vn,gj,Hs,xc,fj,dh,fD="Write <code>DatasetInfo</code> and license (if present) as JSON files to <code>dataset_info_dir</code>.",bj,qn,Ax,jc,Px,$c,bD='The base class <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset">Dataset</a> implements a Dataset backed by an Apache Arrow table.',Kx,T,yc,_j,ih,_D="A Dataset backed by an Arrow table.",xj,rs,wc,jj,mh,xD="Add column to Dataset.",$j,vc,yj,Wn,wj,os,Mc,vj,hh,jD="Add item to Dataset.",Mj,Jc,Jj,Bn,Tj,Qn,Tc,kj,uh,$D="Instantiate a Dataset backed by an Arrow table at filename.",Dj,En,kc,Ij,gh,yD="Instantiate a Dataset backed by an Arrow buffer.",Cj,ve,Dc,Uj,fh,wD='Convert <code>pandas.DataFrame</code> to a <code>pyarrow.Table</code> to create a <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset">Dataset</a>.',Zj,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.`,Fj,_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.`,Rj,Ln,Gj,Hn,Ic,zj,xh,JD='Convert <code>dict</code> to a <code>pyarrow.Table</code> to create a <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset">Dataset</a>.',Nj,cs,Cc,Xj,jh,TD="Create a Dataset from a generator.",Vj,Yn,qj,Sn,Wj,Ys,Uc,Bj,$h,kD="The Apache Arrow table backing the dataset.",Qj,An,Ej,Ss,Zc,Lj,yh,DD="The cache files containing the Apache Arrow table backing the dataset.",Hj,Pn,Yj,As,Fc,Sj,wh,ID="Number of columns in the dataset.",Aj,Kn,Pj,Ps,Rc,Kj,vh,CD='Number of rows in the dataset (same as <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset.__len__">Dataset.<strong>len</strong>()</a>).',Oj,On,e$,Ks,Gc,s$,Mh,UD="Names of the columns in the dataset.",t$,el,a$,Os,zc,n$,Jh,ZD="Shape of the dataset (number of columns, number of rows).",l$,sl,r$,ps,Nc,o$,Th,FD="Return a list of the unique elements in a column.",c$,kh,RD="This is implemented in the low-level backend and as such, very fast.",p$,tl,d$,et,Xc,i$,Dh,GD=`Flatten the table.
Each column with a struct type is flattened into one column per struct field.
Other columns are left unchanged.`,m$,al,h$,st,Vc,u$,Ih,zD="Cast the dataset to a new set of features.",g$,nl,f$,tt,qc,b$,Ch,ND="Cast column to feature for decoding.",_$,ll,x$,ds,Wc,j$,Uh,XD="Remove one or several column(s) in the dataset and the features associated to them.",$$,Zh,VD=`You can also remove a column using <a href="/docs/datasets/v3.0.2/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.`,y$,rl,w$,at,Bc,v$,Fh,qD=`Rename a column in the dataset, and move the features associated to the original column under the new column
name.`,M$,ol,J$,nt,Qc,T$,Rh,WD=`Rename several columns in the dataset, and move the features associated to the original columns under
the new column names.`,k$,cl,D$,lt,Ec,I$,Gh,BD=`Select one or several column(s) in the dataset and the features
associated to them.`,C$,pl,U$,rt,Lc,Z$,zh,QD='Casts the given column as <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.ClassLabel">ClassLabel</a> and updates the table.',F$,dl,R$,ot,Hc,G$,Nh,ED="Number of rows in the dataset.",z$,il,N$,ct,Yc,X$,Xh,LD="Iterate through the examples.",V$,Vh,HD=`If a formatting is set with <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset.set_format">Dataset.set_format()</a> rows will be returned with the
selected format.`,q$,pt,Sc,W$,qh,YD="Iterate through the batches of size <em>batch_size</em>.",B$,Wh,SD=`If a formatting is set with [<em>~datasets.Dataset.set_format</em>] rows will be returned with the
selected format.`,Q$,ml,Ac,E$,Bh,AD="To be used in a <code>with</code> statement. Set <code>__getitem__</code> return format (type and columns).",L$,Me,Pc,H$,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.2/en/package_reference/main_classes#datasets.Dataset.set_transform">set_transform()</a>.`,Y$,Eh,KD='It is possible to call <a href="/docs/datasets/v3.0.2/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',S$,hl,A$,ul,P$,dt,Kc,K$,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.2/en/package_reference/main_classes#datasets.Dataset.set_format">set_format()</a>, this can be reset using <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset.reset_format">reset_format()</a>.`,O$,gl,e0,is,Oc,s0,Hh,eI="Reset <code>__getitem__</code> return format to python objects and all columns.",t0,Yh,sI="Same as <code>self.set_format()</code>",a0,fl,n0,Je,ep,l0,Sh,tI=`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>.`,r0,Ah,aI='It’s also possible to use custom transforms for formatting using <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset.with_transform">with_transform()</a>.',o0,Ph,nI='Contrary to <a href="/docs/datasets/v3.0.2/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.2/en/package_reference/main_classes#datasets.Dataset">Dataset</a> object.',c0,bl,p0,Te,sp,d0,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.",i0,Oh,rI='As <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset.set_format">set_format()</a>, this can be reset using <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset.reset_format">reset_format()</a>.',m0,eu,oI='Contrary to <a href="/docs/datasets/v3.0.2/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.2/en/package_reference/main_classes#datasets.Dataset">Dataset</a> object.',h0,_l,u0,xl,tp,g0,su,cI="Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).",f0,ms,ap,b0,tu,pI=`Clean up all cache files in the dataset cache directory, excepted the currently used cache file if there is
one.`,_0,au,dI="Be careful when running this command that no other process is currently using other cache files.",x0,jl,j0,ke,np,$0,nu,iI=`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.`,y0,lu,mI="You can specify whether the function should be batched or not with the <code>batched</code> parameter:",w0,ru,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>`,v0,$l,M0,it,lp,J0,ou,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.`,T0,yl,k0,mt,rp,D0,cu,gI="Create a new dataset with rows selected following the list/array of indices.",I0,wl,C0,ht,op,U0,pu,fI="Create a new dataset sorted according to a single or multiple columns.",Z0,vl,F0,S,cp,R0,du,bI="Create a new Dataset where the rows are shuffled.",G0,iu,_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).`,z0,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.2/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.2/en/package_reference/main_classes#datasets.Dataset.flatten_indices">Dataset.flatten_indices()</a>, which removes the indices mapping.`,N0,Ml,X0,hu,jI='In this case, we recommend switching to an <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> and leveraging its fast approximate shuffling method <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.IterableDataset.shuffle">IterableDataset.shuffle()</a>.',V0,Jl,q0,Tl,W0,ut,pp,B0,uu,$I='Create a new <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset">Dataset</a> that skips the first <code>n</code> elements.',Q0,kl,E0,gt,dp,L0,gu,yI='Create a new <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset">Dataset</a> with only the first <code>n</code> elements.',H0,Dl,Y0,hs,ip,S0,fu,wI=`Return a dictionary (<a href="/docs/datasets/v3.0.2/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>.`,A0,bu,vI="This method is similar to scikit-learn <code>train_test_split</code>.",P0,Il,K0,re,mp,O0,_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>.`,sy,ju,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.`,ty,$u,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,ft,hp,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.`,ry,Ul,oy,oe,up,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.`,py,vu,CI=`The resulting Parquet files are self-contained by default. If your dataset contains <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Image">Image</a> or <a href="/docs/datasets/v3.0.2/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>.`,dy,Zl,iy,Fl,my,Rl,hy,De,gp,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.2/en/package_reference/main_classes#datasets.Image">Image</a> and <a href="/docs/datasets/v3.0.2/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,bt,fp,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>.`,jy,zl,$y,Nl,bp,yy,Du,GI="Create and cache a new Dataset by flattening the indices mapping.",wy,_t,_p,vy,Iu,zI="Exports the dataset to csv",My,Xl,Jy,xt,xp,Ty,Cu,NI="Returns the dataset as a <code>pandas.DataFrame</code>. Can also return a generator for large datasets.",ky,Vl,Dy,jt,jp,Iy,Uu,XI="Returns the dataset as a Python dict. Can also return a generator for large datasets.",Cy,ql,Uy,us,$p,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,$t,yp,zy,Ru,WI="Exports the dataset to parquet",Ny,Bl,Xy,yt,wp,Vy,Gu,BI="Exports the dataset to a SQL database.",qy,Ql,Wy,z,vp,By,zu,QI=`Get an <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.IterableDataset">datasets.IterableDataset</a> from a map-style <a href="/docs/datasets/v3.0.2/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.2/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.2/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,s1,Pl,t1,a1,gs,Mp,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>',r1,Kl,o1,wt,Jp,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:`,p1,Lu,OI='<li>For <a href="https://github.com/facebookresearch/faiss/wiki/The-index-factory" rel="nofollow">string factory</a></li>',d1,Ol,Tp,i1,Hu,eC="Save a FaissIndex on disk.",m1,vt,kp,h1,Yu,sC="Load a FaissIndex from disk.",u1,Su,tC=`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,Mt,Dp,f1,Au,aC="Add a text index using ElasticSearch for fast retrieval. This is done in-place.",b1,er,_1,sr,Ip,x1,Pu,nC="Load an existing text index using ElasticSearch for fast retrieval.",j1,tr,Cp,$1,Ku,lC="List the <code>colindex_nameumns</code>/identifiers of all the attached indexes.",y1,ar,Up,w1,Ou,rC="List the <code>index_name</code>/identifiers of all the attached indexes.",v1,nr,Zp,M1,eg,oC="Drop the index with the specified column.",J1,lr,Fp,T1,sg,cC="Find the nearest examples indices in the dataset to the query.",k1,rr,Rp,D1,tg,pC="Find the nearest examples indices in the dataset to the query.",I1,or,Gp,C1,ag,dC="Find the nearest examples in the dataset to the query.",U1,cr,zp,Z1,ng,iC="Find the nearest examples in the dataset to the query.",F1,pr,Np,R1,lg,mC='<a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.DatasetInfo">DatasetInfo</a> object containing all the metadata in the dataset.',G1,dr,Xp,z1,rg,hC='<a href="/docs/datasets/v3.0.2/en/package_reference/builder_classes#datasets.NamedSplit">NamedSplit</a> object corresponding to a named dataset split.',N1,og,Vp,X1,cg,qp,V1,pg,Wp,q1,dg,Bp,W1,ig,Qp,B1,mg,Ep,Q1,hg,Lp,E1,ug,Hp,L1,gg,Yp,H1,fg,Sp,Y1,bg,Ap,S1,_g,Pp,A1,xg,Kp,P1,Jt,Op,K1,jg,uC="Create Dataset from CSV file(s).",O1,ir,ew,Tt,ed,sw,$g,gC="Create Dataset from JSON or JSON Lines file(s).",tw,mr,aw,kt,sd,nw,yg,fC="Create Dataset from Parquet file(s).",lw,hr,rw,Dt,td,ow,wg,bC="Create Dataset from text file(s).",cw,ur,pw,fs,ad,dw,vg,_C="Create Dataset from SQL query or database table.",iw,gr,mw,fr,hw,It,nd,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,br,Ox,Ms,ld,fw,Jg,jC='Converts a list of <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset">Dataset</a> with the same schema into a single <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset">Dataset</a>.',bw,_r,e2,E,rd,_w,Tg,$C=`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.2/en/package_reference/main_classes#datasets.Dataset">Dataset</a> objects, or on a list of <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> objects.',jw,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>",$w,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,xr,s2,ae,od,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.`,t2,me,cd,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.2/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.2/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.2/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a>.</li>`,a2,he,pd,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.2/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.2/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.2/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a>.</li>`,n2,ue,dd,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.2/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.2/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.2/en/package_reference/loading_methods#datasets.load_dataset">load_dataset()</a>.</li>`,l2,id,r2,md,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.`,o2,U,hd,Bw,Pg,LC="A dictionary (dict of str: datasets.Dataset) with dataset transforms methods (map, filter, etc.)",Qw,Ct,ud,Ew,Kg,HC="The Apache Arrow tables backing each split.",Lw,jr,Hw,Ut,gd,Yw,Og,YC="The cache files containing the Apache Arrow table backing each split.",Sw,$r,Aw,Zt,fd,Pw,ef,SC="Number of columns in each split of the dataset.",Kw,yr,Ow,Ft,bd,ev,sf,AC="Number of rows in each split of the dataset.",sv,wr,tv,Rt,_d,av,tf,PC="Names of the columns in each split of the dataset.",nv,vr,lv,Gt,xd,rv,af,KC="Shape of each split of the dataset (number of rows, number of columns).",ov,Mr,cv,bs,jd,pv,nf,OC="Return a list of the unique elements in a column for each split.",dv,lf,eU="This is implemented in the low-level backend and as such, very fast.",iv,Jr,mv,zt,$d,hv,rf,sU=`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,Tr,gv,Nt,yd,fv,of,tU=`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,kr,_v,Xt,wd,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.`,jv,Dr,$v,Vt,vd,yv,pf,nU="Create a new dataset sorted according to a single or multiple columns.",wv,Ir,vv,Ie,Md,Mv,df,lU="Create a new Dataset where the rows are shuffled.",Jv,mf,rU="The transformation is applied to all the datasets of the dataset dictionary.",Tv,hf,oU=`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,Cr,Dv,Ce,Jd,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,pU=`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,dU="<code>new formatted columns = (all columns - previously unformatted columns)</code>",Zv,Ur,Fv,_s,Td,Rv,bf,iU=`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,Zr,Nv,Fr,kd,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,Dd,qv,jf,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,$f,gU='It’s also possible to use custom transforms for formatting using <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset.with_transform">with_transform()</a>.',Bv,yf,fU='Contrary to <a href="/docs/datasets/v3.0.2/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.2/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> object with new <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset">Dataset</a> objects.',Qv,Rr,Ev,Ze,Id,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.2/en/package_reference/main_classes#datasets.Dataset.set_format">set_format()</a>, this can be reset using <a href="/docs/datasets/v3.0.2/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.2/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> object with new <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset">Dataset</a> objects.',Sv,Gr,Av,qt,Cd,Pv,Jf,jU=`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,zr,Ov,Wt,Ud,eM,Tf,$U=`Cast the dataset to a new set of features.
The transformation is applied to all the datasets of the dataset dictionary.`,sM,Nr,tM,Bt,Zd,aM,kf,yU="Cast column to feature for decoding.",nM,Xr,lM,Fe,Fd,rM,Df,wU=`Remove one or several column(s) from each split in the dataset
and the features associated to the column(s).`,oM,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.2/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.`,pM,Vr,dM,Re,Rd,iM,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.2/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,qr,gM,Qt,Gd,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,Wr,_M,xs,zd,xM,Gf,IU=`Select one or several column(s) from each split in the dataset and
the features associated to the column(s).`,jM,zf,CU=`The transformation is applied to all the splits of the dataset
dictionary.`,$M,Br,yM,Et,Nd,wM,Nf,UU='Casts the given column as <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.ClassLabel">ClassLabel</a> and updates the tables.',vM,Qr,MM,ce,Xd,JM,Xf,ZU=`Pushes the <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> to the hub as a Parquet dataset.
The <a href="/docs/datasets/v3.0.2/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.2/en/package_reference/main_classes#datasets.Image">Image</a> or <a href="/docs/datasets/v3.0.2/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,Er,IM,Lr,CM,Ge,Vd,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.2/en/package_reference/main_classes#datasets.Image">Image</a> and <a href="/docs/datasets/v3.0.2/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,Hr,GM,Lt,qd,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,Yr,XM,Ht,Wd,VM,Lf,VU='Create <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> from CSV file(s).',qM,Sr,WM,Yt,Bd,BM,Hf,qU='Create <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> from JSON Lines file(s).',QM,Ar,EM,St,Qd,LM,Yf,WU='Create <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> from Parquet file(s).',HM,Pr,YM,At,Ed,SM,Sf,BU='Create <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.DatasetDict">DatasetDict</a> from text file(s).',AM,Kr,c2,Af,p2,Ld,d2,Hd,QU='The base class <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> implements an iterable Dataset backed by python generators.',i2,Z,Yd,PM,Pf,EU="A Dataset backed by an iterable.",KM,js,Sd,OM,Kf,LU="Create an Iterable Dataset from a generator.",eJ,Or,sJ,eo,tJ,Pt,Ad,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,so,lJ,Kt,Pd,rJ,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.`,oJ,to,cJ,Ot,Kd,pJ,sb,SU="Cast column to feature for decoding.",dJ,ao,iJ,ea,Od,mJ,tb,AU="Cast the dataset to a new set of features.",hJ,no,uJ,ab,ei,gJ,lo,si,fJ,nb,PU="Iterate through the batches of size <em>batch_size</em>.",bJ,ze,ti,_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,rb,OU="You can specify whether the function should be batched or not with the <code>batched</code> parameter:",jJ,ob,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>`,$J,ro,yJ,sa,ai,wJ,cb,s3=`Rename a column in the dataset, and move the features associated to the original column under the new column
name.`,vJ,oo,MJ,ta,ni,JJ,pb,t3=`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,co,kJ,pe,li,DJ,db,a3="Randomly shuffles the elements of this dataset.",IJ,ib,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,r3=`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.2/en/package_reference/main_classes#datasets.IterableDataset.skip">skip()</a> or <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.IterableDataset.take">take()</a>
then the order of the shards is kept unchanged.`,ZJ,po,FJ,aa,ri,RJ,ub,o3="Group samples from the dataset into batches.",GJ,io,zJ,na,oi,NJ,gb,c3='Create a new <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> that skips the first <code>n</code> elements.',XJ,mo,VJ,la,ci,qJ,fb,p3='Create a new <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.IterableDataset">IterableDataset</a> with only the first <code>n</code> elements.',WJ,ho,BJ,ee,pi,QJ,bb,d3=`Load the state_dict of the dataset.
The iteration will restart at the next example from when the state was saved.`,EJ,_b,i3="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,uo,YJ,go,SJ,fo,AJ,se,di,PJ,jb,h3=`Get the current state_dict of the dataset.
It corresponds to the state at the latest example it yielded.`,KJ,$b,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,bo,sT,_o,tT,xo,aT,jo,ii,nT,wb,f3='<a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.DatasetInfo">DatasetInfo</a> object containing all the metadata in the dataset.',lT,$o,mi,rT,vb,b3='<a href="/docs/datasets/v3.0.2/en/package_reference/builder_classes#datasets.NamedSplit">NamedSplit</a> object corresponding to a named dataset split.',oT,Mb,hi,cT,Jb,ui,pT,Tb,gi,dT,kb,fi,iT,Db,bi,mT,Ib,_i,hT,Cb,xi,uT,Ub,ji,gT,Zb,$i,fT,Fb,yi,bT,Rb,wi,_T,Gb,vi,xT,zb,Mi,m2,Ji,h2,Ti,_3="Dictionary with split names as keys (‘train’, ‘test’ for example), and <code>IterableDataset</code> objects as values.",u2,q,ki,jT,Ne,Di,$T,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,j3="You can specify whether the function should be batched or not with the <code>batched</code> parameter:",wT,Vb,$3=`<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,yo,MT,ra,Ii,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,wo,kT,de,Ci,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.2/en/package_reference/main_classes#datasets.IterableDataset.skip">skip()</a> or <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.IterableDataset.take">take()</a>
then the order of the shards is kept unchanged.`,ZT,vo,FT,oa,Ui,RT,Lb,T3=`Return a dataset with the specified format.
The ‘pandas’ format is currently not implemented.`,GT,Mo,zT,ca,Zi,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,Jo,VT,pa,Fi,qT,Yb,D3=`Cast column to feature for decoding.
The type casting is applied to all the datasets of the dataset dictionary.`,WT,To,BT,da,Ri,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,ko,LT,ia,Gi,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,Do,ST,ma,zi,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,Io,KT,ha,Ni,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,Co,g2,Xi,f2,G,Vi,sk,Ob,F3="A special dictionary that defines the internal structure of a dataset.",tk,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,s_,G3="<code>FieldType</code> can be one of the following:",nk,K,t_,z3='<p><a href="/docs/datasets/v3.0.2/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.2/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>`,rk,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>`,ok,qi,l_,V3=`Python <code>list</code>, <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.LargeList">LargeList</a> or <a href="/docs/datasets/v3.0.2/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,Uo,pk,r_,q3='<p><a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Array2D">Array2D</a>, <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Array3D">Array3D</a>, <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Array4D">Array4D</a> or <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Array5D">Array5D</a> feature for multidimensional arrays.</p>',dk,o_,W3=`<p><a href="/docs/datasets/v3.0.2/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>`,ik,c_,B3=`<p><a href="/docs/datasets/v3.0.2/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,p_,Q3='<p><a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Translation">Translation</a> or <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.TranslationVariableLanguages">TranslationVariableLanguages</a> feature specific to Machine Translation.</p>',hk,ua,Wi,uk,d_,E3='Make a deep copy of <a href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Features">Features</a>.',gk,Zo,fk,Fo,Bi,bk,i_,L3="Decode batch with custom feature decoding.",_k,Ro,Qi,xk,m_,H3="Decode column with custom feature decoding.",jk,Go,Ei,$k,h_,Y3="Decode example with custom feature decoding.",yk,zo,Li,wk,u_,S3="Encode batch into a format for Arrow.",vk,No,Hi,Mk,g_,A3="Encode column into a format for Arrow.",Jk,Xo,Yi,Tk,f_,P3="Encode example into a format for Arrow.",kk,$s,Si,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,Vo,Uk,ga,Ai,Zk,x_,eZ=`Construct <a href="/docs/datasets/v3.0.2/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,j_,sZ=`Also, pa.dictionary is not supported and it uses its underlying type instead.
Therefore datasets convert DictionaryArray objects to their actual values.`,Rk,Xe,Pi,Gk,$_,tZ="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,qo,Vk,ys,Ki,qk,v_,lZ="Reorder Features fields to match the field order of other [<em>Features</em>].",Wk,M_,rZ=`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,Wo,b2,Oi,_2,ge,em,Qk,J_,oZ="Scalar feature value of a particular data type.",Ek,T_,cZ="The possible dtypes of <code>Value</code> are as follows:",Lk,k_,pZ="<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,Bo,x2,L,sm,Yk,D_,dZ="Feature type for integer class labels.",Sk,I_,iZ="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,Qo,Ok,fa,tm,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:`,s7,F_,gZ="<li><code>pa.string()</code></li> <li><code>pa.int()</code></li>",t7,ws,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,Eo,r7,ba,nm,o7,z_,_Z="Conversion class name <code>string</code> =&gt; <code>integer</code>.",c7,Lo,j2,lm,$2,Js,rm,p7,N_,xZ="Feature type for large list data composed of child feature data type.",d7,X_,jZ="It is backed by <code>pyarrow.LargeListType</code>, which is like <code>pyarrow.ListType</code> but with 64-bit rather than 32-bit offsets.",y2,Ts,om,i7,V_,$Z=`Construct a list of feature from a single type or a dict of types.
Mostly here for compatiblity with tfds.`,m7,Ho,w2,cm,v2,Ve,pm,h7,q_,yZ=`<code>Feature</code> for translations with fixed languages per example.
Here for compatiblity with tfds.`,u7,Yo,g7,So,dm,f7,W_,wZ="Flatten the Translation feature into a dictionary.",M2,qe,im,b7,B_,vZ=`<code>Feature</code> for translations with variable languages per example.
Here for compatiblity with tfds.`,_7,Ao,x7,Po,mm,j7,Q_,MZ="Flatten the TranslationVariableLanguages feature into a dictionary.",J2,hm,T2,ks,um,$7,E_,JZ="Create a two-dimensional array.",y7,Ko,k2,Ds,gm,w7,L_,TZ="Create a three-dimensional array.",v7,Oo,D2,Is,fm,M7,H_,kZ="Create a four-dimensional array.",J7,ec,I2,Cs,bm,T7,Y_,DZ="Create a five-dimensional array.",k7,sc,C2,_m,U2,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,tc,Z7,_a,jm,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,$m,z7,ex,RZ="Decode example audio file into audio data.",N7,nc,ym,X7,sx,GZ="Embed audio files into the Arrow array.",V7,lc,wm,q7,tx,zZ="Encode example into a format for Arrow.",W7,rc,vm,B7,ax,NZ="If in the decodable state, raise an error, otherwise flatten the feature into a dictionary.",Z2,Mm,F2,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,rx,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,oc,Y7,xa,Tm,S7,ox,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,px,QZ="Decode example image file into image data.",O7,pc,Dm,eD,dx,EZ="Embed image files into the Arrow array.",sD,dc,Im,tD,ix,LZ="Encode example into a format for Arrow.",aD,ic,Cm,nD,mx,HZ="If in the decodable state, return the feature itself, otherwise flatten the feature into a dictionary.",R2,Um,G2,wa,Zm,lD,hx,YZ="Checks if <code>fs</code> is a remote filesystem.",z2,Fm,N2,va,Rm,rD,ux,SZ="Hasher that accepts python objects as inputs.",X2,Gm,V2,Rx,q2;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.2/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.2/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.2/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.2/en/package_reference/builder_classes#datasets.BuilderConfig">BuilderConfig</a> and used in the <a href="/docs/datasets/v3.0.2/en/package_reference/builder_classes#datasets.DatasetBuilder">DatasetBuilder</a>.`,name:"*config_kwargs"}],source:"https://github.com/huggingface/datasets/blob/3.0.2/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.2/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.2/src/datasets/info.py#L186"}}),qn=new I({props:{anchor:"datasets.DatasetInfo.write_to_directory.example",$$slots:{default:[M4]},$$scope:{ctx:w}}}),jc=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.2/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"},{name:"feature",val:": Union = None"}],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"},{anchor:"datasets.Dataset.add_column.feature",description:`<strong>feature</strong> (<code>FeatureType</code> or <code>None</code>, defaults to <code>None</code>) &#x2014;
Column datatype.`,name:"feature"}],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L5634",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


<p><a
  href="/docs/datasets/v3.0.2/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.2/src/datasets/arrow_dataset.py#L754",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.2/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.2/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.2/src/datasets/arrow_dataset.py#L786",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.2/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.2/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.2/src/datasets/arrow_dataset.py#L890",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.2/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.2/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.2/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.2/src/datasets/arrow_dataset.py#L1026",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.2/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.2/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.2/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.2/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.2/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.2/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.2/src/datasets/arrow_dataset.py#L1811"}}),sl=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.2/en/package_reference/main_classes#datasets.Dataset.column_names">column_names</a>).`,name:"column"}],source:"https://github.com/huggingface/datasets/blob/3.0.2/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>
`}}),tl=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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/src/datasets/arrow_dataset.py#L2062",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.2/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.2/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.2/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),rl=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.2/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.2/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),ol=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.2/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.2/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.2/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.2/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),pl=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.2/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.2/src/datasets/arrow_dataset.py#L1859"}}),dl=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.2/src/datasets/arrow_dataset.py#L2340"}}),il=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.2/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.2/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.2/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.2/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.2/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.2/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.2/src/datasets/arrow_dataset.py#L2541"}}),fl=new I({props:{anchor:"datasets.Dataset.reset_format.example",$$slots:{default:[A4]},$$scope:{ctx:w}}}),ep=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.2/src/datasets/arrow_dataset.py#L2613"}}),bl=new I({props:{anchor:"datasets.Dataset.with_format.example",$$slots:{default:[P4]},$$scope:{ctx:w}}}),sp=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.2/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.2/src/datasets/arrow_dataset.py#L2684"}}),_l=new I({props:{anchor:"datasets.Dataset.with_transform.example",$$slots:{default:[K4]},$$scope:{ctx:w}}}),tp=new J({props:{name:"__getitem__",anchor:"datasets.Dataset.__getitem__",parameters:[{name:"key",val:""}],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L2760"}}),ap=new J({props:{name:"cleanup_cache_files",anchor:"datasets.Dataset.cleanup_cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L2770",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>
`}}),jl=new I({props:{anchor:"datasets.Dataset.cleanup_cache_files.example",$$slots:{default:[O4]},$$scope:{ctx:w}}}),np=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.2/src/datasets/arrow_dataset.py#L2817"}}),$l=new I({props:{anchor:"datasets.Dataset.map.example",$$slots:{default:[eF]},$$scope:{ctx:w}}}),lp=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.2/src/datasets/arrow_dataset.py#L3570"}}),yl=new I({props:{anchor:"datasets.Dataset.filter.example",$$slots:{default:[sF]},$$scope:{ctx:w}}}),rp=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.2/src/datasets/arrow_dataset.py#L3781"}}),wl=new I({props:{anchor:"datasets.Dataset.select.example",$$slots:{default:[tF]},$$scope:{ctx:w}}}),op=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.2/src/datasets/arrow_dataset.py#L4086"}}),vl=new I({props:{anchor:"datasets.Dataset.sort.example",$$slots:{default:[aF]},$$scope:{ctx:w}}}),cp=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.2/src/datasets/arrow_dataset.py#L4214"}}),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:[rF]},$$scope:{ctx:w}}}),pp=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.2/src/datasets/arrow_dataset.py#L4033"}}),kl=new I({props:{anchor:"datasets.Dataset.skip.example",$$slots:{default:[oF]},$$scope:{ctx:w}}}),dp=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.2/src/datasets/arrow_dataset.py#L4063"}}),Dl=new I({props:{anchor:"datasets.Dataset.take.example",$$slots:{default:[cF]},$$scope:{ctx:w}}}),ip=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.2/src/datasets/arrow_dataset.py#L4346"}}),Il=new I({props:{anchor:"datasets.Dataset.train_test_split.example",$$slots:{default:[pF]},$$scope:{ctx:w}}}),mp=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.2/src/datasets/arrow_dataset.py#L4629"}}),Cl=new I({props:{anchor:"datasets.Dataset.shard.example",$$slots:{default:[dF]},$$scope:{ctx:w}}}),hp=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.2/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:[iF]},$$scope:{ctx:w}}}),up=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.2/en/package_reference/main_classes#datasets.Audio">Audio</a> and <a href="/docs/datasets/v3.0.2/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.2/src/datasets/arrow_dataset.py#L5293",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}}}),gp=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.2/src/datasets/arrow_dataset.py#L1408"}}),Gl=new I({props:{anchor:"datasets.Dataset.save_to_disk.example",$$slots:{default:[gF]},$$scope:{ctx:w}}}),fp=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.2/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.2/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a> or <a
  href="/docs/datasets/v3.0.2/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}}}),bp=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.2/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.2/src/datasets/arrow_dataset.py#L3702"}}),_p=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.2/src/datasets/arrow_dataset.py#L4705",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}}}),xp=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.2/src/datasets/arrow_dataset.py#L4866",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}}}),jp=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.2/src/datasets/arrow_dataset.py#L4764",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}}}),$p=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.2/src/datasets/arrow_dataset.py#L4804",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:[jF]},$$scope:{ctx:w}}}),yp=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.2/src/datasets/arrow_dataset.py#L4965",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:[$F]},$$scope:{ctx:w}}}),wp=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.2/src/datasets/arrow_dataset.py#L5004",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}}}),vp=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.2/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.2/src/datasets/arrow_dataset.py#L5096",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.2/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}}}),Mp=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.2/en/package_reference/main_classes#datasets.Dataset.get_nearest_examples">get_nearest_examples()</a> or <a href="/docs/datasets/v3.0.2/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.2/src/datasets/arrow_dataset.py#L5684"}}),Kl=new I({props:{anchor:"datasets.Dataset.add_faiss_index.example",$$slots:{default:[IF]},$$scope:{ctx:w}}}),Jp=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.2/en/package_reference/main_classes#datasets.Dataset.get_nearest_examples">get_nearest_examples()</a> or <a href="/docs/datasets/v3.0.2/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.2/src/datasets/arrow_dataset.py#L5764"}}),Tp=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.2/src/datasets/search.py#L535"}}),kp=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.2/src/datasets/search.py#L553"}}),Dp=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.2/en/package_reference/main_classes#datasets.Dataset.get_nearest_examples">get_nearest_examples()</a> or <a href="/docs/datasets/v3.0.2/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.2/src/datasets/arrow_dataset.py#L5823"}}),er=new I({props:{anchor:"datasets.Dataset.add_elasticsearch_index.example",$$slots:{default:[CF]},$$scope:{ctx:w}}}),Ip=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.2/src/datasets/search.py#L637"}}),Cp=new J({props:{name:"list_indexes",anchor:"datasets.Dataset.list_indexes",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/search.py#L438"}}),Up=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.2/src/datasets/search.py#L442",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>BaseIndex</code></p>
`}}),Zp=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.2/src/datasets/search.py#L684"}}),Fp=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.2/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>
`}}),Rp=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.2/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>
`}}),Gp=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.2/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>
`}}),zp=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.2/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>
`}}),Np=new J({props:{name:"info",anchor:"datasets.Dataset.info",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L165"}}),Xp=new J({props:{name:"split",anchor:"datasets.Dataset.split",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L170"}}),Vp=new J({props:{name:"builder_name",anchor:"datasets.Dataset.builder_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L175"}}),qp=new J({props:{name:"citation",anchor:"datasets.Dataset.citation",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L179"}}),Wp=new J({props:{name:"config_name",anchor:"datasets.Dataset.config_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L183"}}),Bp=new J({props:{name:"dataset_size",anchor:"datasets.Dataset.dataset_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L187"}}),Qp=new J({props:{name:"description",anchor:"datasets.Dataset.description",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L191"}}),Ep=new J({props:{name:"download_checksums",anchor:"datasets.Dataset.download_checksums",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L195"}}),Lp=new J({props:{name:"download_size",anchor:"datasets.Dataset.download_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L199"}}),Hp=new J({props:{name:"features",anchor:"datasets.Dataset.features",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L707"}}),Yp=new J({props:{name:"homepage",anchor:"datasets.Dataset.homepage",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L207"}}),Sp=new J({props:{name:"license",anchor:"datasets.Dataset.license",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L211"}}),Ap=new J({props:{name:"size_in_bytes",anchor:"datasets.Dataset.size_in_bytes",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L215"}}),Pp=new J({props:{name:"supervised_keys",anchor:"datasets.Dataset.supervised_keys",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L219"}}),Kp=new J({props:{name:"version",anchor:"datasets.Dataset.version",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L223"}}),Op=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.2/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.2/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.2/src/datasets/arrow_dataset.py#L973",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


<p><a
  href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a></p>
`}}),gr=new I({props:{anchor:"datasets.Dataset.from_sql.example",$$slots:{default:[GF]},$$scope:{ctx:w}}}),fr=new pD({props:{$$slots:{default:[zF]},$$scope:{ctx:w}}}),nd=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.2/src/datasets/arrow_dataset.py#L5945"}}),br=new I({props:{anchor:"datasets.Dataset.align_labels_with_mapping.example",$$slots:{default:[NF]},$$scope:{ctx:w}}}),ld=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.2/src/datasets/combine.py#L158"}}),_r=new I({props:{anchor:"datasets.concatenate_datasets.example",$$slots:{default:[XF]},$$scope:{ctx:w}}}),rd=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.2/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.2/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.2/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.2/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a> or <a
  href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.IterableDataset"
>IterableDataset</a></p>
`}}),xr=new I({props:{anchor:"datasets.interleave_datasets.example",$$slots:{default:[VF]},$$scope:{ctx:w}}}),od=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.2/en/package_reference/main_classes#datasets.Dataset">Dataset</a> or <a href="/docs/datasets/v3.0.2/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.2/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.2/en/package_reference/main_classes#datasets.Dataset"
>Dataset</a> or <a
  href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.IterableDataset"
>IterableDataset</a></p>
`}}),cd=new J({props:{name:"datasets.enable_caching",anchor:"datasets.enable_caching",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/fingerprint.py#L94"}}),pd=new J({props:{name:"datasets.disable_caching",anchor:"datasets.disable_caching",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/fingerprint.py#L115"}}),dd=new J({props:{name:"datasets.is_caching_enabled",anchor:"datasets.is_caching_enabled",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/fingerprint.py#L136"}}),id=new ye({props:{title:"DatasetDict",local:"datasets.DatasetDict",headingTag:"h2"}}),hd=new J({props:{name:"class datasets.DatasetDict",anchor:"datasets.DatasetDict",parameters:"",source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/dataset_dict.py#L43"}}),ud=new J({props:{name:"data",anchor:"datasets.DatasetDict.data",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/dataset_dict.py#L84"}}),jr=new I({props:{anchor:"datasets.DatasetDict.data.example",$$slots:{default:[qF]},$$scope:{ctx:w}}}),gd=new J({props:{name:"cache_files",anchor:"datasets.DatasetDict.cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/dataset_dict.py#L99"}}),$r=new I({props:{anchor:"datasets.DatasetDict.cache_files.example",$$slots:{default:[WF]},$$scope:{ctx:w}}}),fd=new J({props:{name:"num_columns",anchor:"datasets.DatasetDict.num_columns",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/dataset_dict.py#L117"}}),yr=new I({props:{anchor:"datasets.DatasetDict.num_columns.example",$$slots:{default:[BF]},$$scope:{ctx:w}}}),bd=new J({props:{name:"num_rows",anchor:"datasets.DatasetDict.num_rows",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/dataset_dict.py#L133"}}),wr=new I({props:{anchor:"datasets.DatasetDict.num_rows.example",$$slots:{default:[QF]},$$scope:{ctx:w}}}),_d=new J({props:{name:"column_names",anchor:"datasets.DatasetDict.column_names",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/dataset_dict.py#L149"}}),vr=new I({props:{anchor:"datasets.DatasetDict.column_names.example",$$slots:{default:[EF]},$$scope:{ctx:w}}}),xd=new J({props:{name:"shape",anchor:"datasets.DatasetDict.shape",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/dataset_dict.py#L167"}}),Mr=new I({props:{anchor:"datasets.DatasetDict.shape.example",$$slots:{default:[LF]},$$scope:{ctx:w}}}),jd=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.2/en/package_reference/main_classes#datasets.DatasetDict.column_names">column_names</a>)`,name:"column"}],source:"https://github.com/huggingface/datasets/blob/3.0.2/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>
`}}),Jr=new I({props:{anchor:"datasets.DatasetDict.unique.example",$$slots:{default:[HF]},$$scope:{ctx:w}}}),$d=new J({props:{name:"cleanup_cache_files",anchor:"datasets.DatasetDict.cleanup_cache_files",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/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>
`}}),Tr=new I({props:{anchor:"datasets.DatasetDict.cleanup_cache_files.example",$$slots:{default:[YF]},$$scope:{ctx:w}}}),yd=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.2/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.2/src/datasets/dataset_dict.py#L782"}}),kr=new I({props:{anchor:"datasets.DatasetDict.map.example",$$slots:{default:[SF]},$$scope:{ctx:w}}}),wd=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.2/src/datasets/dataset_dict.py#L910"}}),Dr=new I({props:{anchor:"datasets.DatasetDict.filter.example",$$slots:{default:[AF]},$$scope:{ctx:w}}}),vd=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.2/src/datasets/dataset_dict.py#L1072"}}),Ir=new I({props:{anchor:"datasets.DatasetDict.sort.example",$$slots:{default:[PF]},$$scope:{ctx:w}}}),Md=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.2/src/datasets/dataset_dict.py#L1139"}}),Cr=new I({props:{anchor:"datasets.DatasetDict.shuffle.example",$$slots:{default:[KF]},$$scope:{ctx:w}}}),Jd=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.2/src/datasets/dataset_dict.py#L554"}}),Ur=new I({props:{anchor:"datasets.DatasetDict.set_format.example",$$slots:{default:[OF]},$$scope:{ctx:w}}}),Td=new J({props:{name:"reset_format",anchor:"datasets.DatasetDict.reset_format",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/dataset_dict.py#L600"}}),Zr=new I({props:{anchor:"datasets.DatasetDict.reset_format.example",$$slots:{default:[eR]},$$scope:{ctx:w}}}),kd=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.2/src/datasets/dataset_dict.py#L517"}}),Dd=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.2/src/datasets/dataset_dict.py#L656"}}),Rr=new I({props:{anchor:"datasets.DatasetDict.with_format.example",$$slots:{default:[sR]},$$scope:{ctx:w}}}),Id=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.2/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.2/src/datasets/dataset_dict.py#L728"}}),Gr=new I({props:{anchor:"datasets.DatasetDict.with_transform.example",$$slots:{default:[tR]},$$scope:{ctx:w}}}),Cd=new J({props:{name:"flatten",anchor:"datasets.DatasetDict.flatten",parameters:[{name:"max_depth",val:" = 16"}],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/dataset_dict.py#L183"}}),zr=new I({props:{anchor:"datasets.DatasetDict.flatten.example",$$slots:{default:[aR]},$$scope:{ctx:w}}}),Ud=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.2/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.2/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.2/src/datasets/dataset_dict.py#L263"}}),Nr=new I({props:{anchor:"datasets.DatasetDict.cast.example",$$slots:{default:[nR]},$$scope:{ctx:w}}}),Zd=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.2/src/datasets/dataset_dict.py#L295",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),Xr=new I({props:{anchor:"datasets.DatasetDict.cast_column.example",$$slots:{default:[lR]},$$scope:{ctx:w}}}),Fd=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.2/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.2/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),Vr=new I({props:{anchor:"datasets.DatasetDict.remove_columns.example",$$slots:{default:[rR]},$$scope:{ctx:w}}}),Rd=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.2/src/datasets/dataset_dict.py#L366"}}),qr=new I({props:{anchor:"datasets.DatasetDict.rename_column.example",$$slots:{default:[oR]},$$scope:{ctx:w}}}),Gd=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.2/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.2/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),Wr=new I({props:{anchor:"datasets.DatasetDict.rename_columns.example",$$slots:{default:[cR]},$$scope:{ctx:w}}}),zd=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.2/src/datasets/dataset_dict.py#L449"}}),Br=new I({props:{anchor:"datasets.DatasetDict.select_columns.example",$$slots:{default:[pR]},$$scope:{ctx:w}}}),Nd=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.2/src/datasets/dataset_dict.py#L485"}}),Qr=new I({props:{anchor:"datasets.DatasetDict.class_encode_column.example",$$slots:{default:[dR]},$$scope:{ctx:w}}}),Xd=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.2/en/package_reference/main_classes#datasets.Audio">Audio</a> and <a href="/docs/datasets/v3.0.2/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.2/src/datasets/dataset_dict.py#L1526",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>huggingface_hub.CommitInfo</p>
`}}),Er=new I({props:{anchor:"datasets.DatasetDict.push_to_hub.example",$$slots:{default:[iR]},$$scope:{ctx:w}}}),Lr=new I({props:{anchor:"datasets.DatasetDict.push_to_hub.example-2",$$slots:{default:[mR]},$$scope:{ctx:w}}}),Vd=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.2/src/datasets/dataset_dict.py#L1222"}}),Hr=new I({props:{anchor:"datasets.DatasetDict.save_to_disk.example",$$slots:{default:[hR]},$$scope:{ctx:w}}}),qd=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.2/src/datasets/dataset_dict.py#L1292",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


<p><a
  href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.DatasetDict"
>DatasetDict</a></p>
`}}),Kr=new I({props:{anchor:"datasets.DatasetDict.from_text.example",$$slots:{default:[_R]},$$scope:{ctx:w}}}),Ld=new ye({props:{title:"IterableDataset",local:"datasets.IterableDataset",headingTag:"h2"}}),Yd=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.2/src/datasets/iterable_dataset.py#L1750"}}),Sd=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.2/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.2/src/datasets/iterable_dataset.py#L2117",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>IterableDataset</code></p>
`}}),Or=new I({props:{anchor:"datasets.IterableDataset.from_generator.example",$$slots:{default:[xR]},$$scope:{ctx:w}}}),eo=new I({props:{anchor:"datasets.IterableDataset.from_generator.example-2",$$slots:{default:[jR]},$$scope:{ctx:w}}}),Ad=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.2/src/datasets/iterable_dataset.py#L2720",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>
`}}),so=new I({props:{anchor:"datasets.IterableDataset.remove_columns.example",$$slots:{default:[$R]},$$scope:{ctx:w}}}),Pd=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.2/src/datasets/iterable_dataset.py#L2755",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>
`}}),to=new I({props:{anchor:"datasets.IterableDataset.select_columns.example",$$slots:{default:[yR]},$$scope:{ctx:w}}}),Kd=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.2/src/datasets/iterable_dataset.py#L2806",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>IterableDataset</code></p>
`}}),ao=new I({props:{anchor:"datasets.IterableDataset.cast_column.example",$$slots:{default:[wR]},$$scope:{ctx:w}}}),Od=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.2/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.2/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.2/src/datasets/iterable_dataset.py#L2852",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>
`}}),no=new I({props:{anchor:"datasets.IterableDataset.cast.example",$$slots:{default:[vR]},$$scope:{ctx:w}}}),ei=new J({props:{name:"__iter__",anchor:"datasets.IterableDataset.__iter__",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/iterable_dataset.py#L2040"}}),si=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.2/src/datasets/iterable_dataset.py#L2077"}}),ti=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.2/src/datasets/iterable_dataset.py#L2290"}}),ro=new I({props:{anchor:"datasets.IterableDataset.map.example",$$slots:{default:[MR]},$$scope:{ctx:w}}}),ai=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.2/src/datasets/iterable_dataset.py#L2665",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>
`}}),oo=new I({props:{anchor:"datasets.IterableDataset.rename_column.example",$$slots:{default:[JR]},$$scope:{ctx:w}}}),ni=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.2/src/datasets/iterable_dataset.py#L2413"}}),co=new I({props:{anchor:"datasets.IterableDataset.filter.example",$$slots:{default:[TR]},$$scope:{ctx:w}}}),li=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.2/src/datasets/iterable_dataset.py#L2487"}}),po=new I({props:{anchor:"datasets.IterableDataset.shuffle.example",$$slots:{default:[kR]},$$scope:{ctx:w}}}),ri=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.2/src/datasets/iterable_dataset.py#L2929"}}),io=new I({props:{anchor:"datasets.IterableDataset.batch.example",$$slots:{default:[DR]},$$scope:{ctx:w}}}),oi=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.2/src/datasets/iterable_dataset.py#L2557"}}),mo=new I({props:{anchor:"datasets.IterableDataset.skip.example",$$slots:{default:[IR]},$$scope:{ctx:w}}}),ci=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.2/src/datasets/iterable_dataset.py#L2601"}}),ho=new I({props:{anchor:"datasets.IterableDataset.take.example",$$slots:{default:[CR]},$$scope:{ctx:w}}}),pi=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.2/src/datasets/iterable_dataset.py#L1836"}}),uo=new I({props:{anchor:"datasets.IterableDataset.load_state_dict.example",$$slots:{default:[UR]},$$scope:{ctx:w}}}),go=new I({props:{anchor:"datasets.IterableDataset.load_state_dict.example-2",$$slots:{default:[ZR]},$$scope:{ctx:w}}}),fo=new I({props:{anchor:"datasets.IterableDataset.load_state_dict.example-3",$$slots:{default:[FR]},$$scope:{ctx:w}}}),di=new J({props:{name:"state_dict",anchor:"datasets.IterableDataset.state_dict",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/iterable_dataset.py#L1783",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),bo=new I({props:{anchor:"datasets.IterableDataset.state_dict.example",$$slots:{default:[RR]},$$scope:{ctx:w}}}),_o=new I({props:{anchor:"datasets.IterableDataset.state_dict.example-2",$$slots:{default:[GR]},$$scope:{ctx:w}}}),xo=new I({props:{anchor:"datasets.IterableDataset.state_dict.example-3",$$slots:{default:[zR]},$$scope:{ctx:w}}}),ii=new J({props:{name:"info",anchor:"datasets.IterableDataset.info",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L165"}}),mi=new J({props:{name:"split",anchor:"datasets.IterableDataset.split",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L170"}}),hi=new J({props:{name:"builder_name",anchor:"datasets.IterableDataset.builder_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L175"}}),ui=new J({props:{name:"citation",anchor:"datasets.IterableDataset.citation",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L179"}}),gi=new J({props:{name:"config_name",anchor:"datasets.IterableDataset.config_name",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L183"}}),fi=new J({props:{name:"dataset_size",anchor:"datasets.IterableDataset.dataset_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L187"}}),bi=new J({props:{name:"description",anchor:"datasets.IterableDataset.description",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L191"}}),_i=new J({props:{name:"download_checksums",anchor:"datasets.IterableDataset.download_checksums",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L195"}}),xi=new J({props:{name:"download_size",anchor:"datasets.IterableDataset.download_size",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L199"}}),ji=new J({props:{name:"features",anchor:"datasets.IterableDataset.features",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L203"}}),$i=new J({props:{name:"homepage",anchor:"datasets.IterableDataset.homepage",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L207"}}),yi=new J({props:{name:"license",anchor:"datasets.IterableDataset.license",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L211"}}),wi=new J({props:{name:"size_in_bytes",anchor:"datasets.IterableDataset.size_in_bytes",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L215"}}),vi=new J({props:{name:"supervised_keys",anchor:"datasets.IterableDataset.supervised_keys",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L219"}}),Mi=new J({props:{name:"version",anchor:"datasets.IterableDataset.version",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/arrow_dataset.py#L223"}}),Ji=new ye({props:{title:"IterableDatasetDict",local:"datasets.IterableDatasetDict",headingTag:"h2"}}),ki=new J({props:{name:"class datasets.IterableDatasetDict",anchor:"datasets.IterableDatasetDict",parameters:"",source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/dataset_dict.py#L1812"}}),Di=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.2/src/datasets/dataset_dict.py#L1865"}}),yo=new I({props:{anchor:"datasets.IterableDatasetDict.map.example",$$slots:{default:[NR]},$$scope:{ctx:w}}}),Ii=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.2/src/datasets/dataset_dict.py#L1954"}}),wo=new I({props:{anchor:"datasets.IterableDatasetDict.filter.example",$$slots:{default:[XR]},$$scope:{ctx:w}}}),Ci=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.2/src/datasets/dataset_dict.py#L2017"}}),vo=new I({props:{anchor:"datasets.IterableDatasetDict.shuffle.example",$$slots:{default:[VR]},$$scope:{ctx:w}}}),Ui=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>) &#x2014;
Either output type selected in <code>[None, &apos;numpy&apos;, &apos;torch&apos;, &apos;tensorflow&apos;, &apos;arrow&apos;, &apos;jax&apos;]</code>.
<code>None</code> means it returns python objects (default).`,name:"type"}],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/dataset_dict.py#L1818"}}),Mo=new I({props:{anchor:"datasets.IterableDatasetDict.with_format.example",$$slots:{default:[qR]},$$scope:{ctx:w}}}),Zi=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.2/src/datasets/dataset_dict.py#L2219",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.2/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Jo=new I({props:{anchor:"datasets.IterableDatasetDict.cast.example",$$slots:{default:[WR]},$$scope:{ctx:w}}}),Fi=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.2/src/datasets/dataset_dict.py#L2188",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/datasets/v3.0.2/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),To=new I({props:{anchor:"datasets.IterableDatasetDict.cast_column.example",$$slots:{default:[BR]},$$scope:{ctx:w}}}),Ri=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.2/src/datasets/dataset_dict.py#L2136",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.2/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),ko=new I({props:{anchor:"datasets.IterableDatasetDict.remove_columns.example",$$slots:{default:[QR]},$$scope:{ctx:w}}}),Gi=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.2/src/datasets/dataset_dict.py#L2075",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.2/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Do=new I({props:{anchor:"datasets.IterableDatasetDict.rename_column.example",$$slots:{default:[ER]},$$scope:{ctx:w}}}),zi=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.2/src/datasets/dataset_dict.py#L2108",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.2/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Io=new I({props:{anchor:"datasets.IterableDatasetDict.rename_columns.example",$$slots:{default:[LR]},$$scope:{ctx:w}}}),Ni=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.2/src/datasets/dataset_dict.py#L2162",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.2/en/package_reference/main_classes#datasets.IterableDatasetDict"
>IterableDatasetDict</a></p>
`}}),Co=new I({props:{anchor:"datasets.IterableDatasetDict.select_columns.example",$$slots:{default:[HR]},$$scope:{ctx:w}}}),Xi=new ye({props:{title:"Features",local:"datasets.Features",headingTag:"h2"}}),Vi=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.2/src/datasets/features/features.py#L1694"}}),Uo=new pD({props:{$$slots:{default:[YR]},$$scope:{ctx:w}}}),Wi=new J({props:{name:"copy",anchor:"datasets.Features.copy",parameters:[],source:"https://github.com/huggingface/datasets/blob/3.0.2/src/datasets/features/features.py#L2095",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


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


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


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


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


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


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


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


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


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