import{s as W,n as I,o as J}from"../chunks/scheduler.37c15a92.js";import{S as K,i as Q,g as r,s as l,r as y,A as V,h as m,f as a,c as i,j as G,u as z,x as b,k as N,y as X,a as n,v as j,d as D,t as S,w as q}from"../chunks/index.2bf4358c.js";import{C as Y}from"../chunks/CourseFloatingBanner.06521e8b.js";import{H as Z,E as tt}from"../chunks/EditOnGithub.8916dc7c.js";function et(F){let s,d,v,H,p,g,u,L,o,O='在<a href="/course/chapter3">第三章</a>第一次體驗了 🤗Datasets 庫，並發現在微調模型時有三個主要步驟：',M,f,R="<li>從 Hugging Face Hub 加載一個數據集。</li> <li>使用 Dataset.map() 對數據進行預處理。</li> <li>載入和計算指標(特徵)。</li>",T,c,U="但這只是🤗 Datasets的表面功能而已！在本章中，我們將深入瞭解這個庫。在此過程中，我們將找到以下問題的答案：",w,h,k="<li>當數據集不在 hub 上時，您該怎麼做？</li> <li>如何對數據集進行切片？（如果你真正的特別需要使用pandas的時候該怎麼辦？）</li> <li>當你的數據集很大，會撐爆你筆記本電腦的RAM時，你會怎麼做？</li> <li>「內存映射」和 Apache Arrow 到底是什麼？</li> <li>如何創建自己的數據集並將其推送到中心？</li>",C,$,B='您在這裡學到的技術將為您在<a href="/course/chapter6">第6章</a>和<a href="/course/chapter7">第7章</a>中的高級標記化和微調任務做好準備——所以，喝杯咖啡，讓我們開始吧!',P,_,E,x,A;return p=new Z({props:{title:"本章簡介",local:"本章簡介",headingTag:"h1"}}),u=new Y({props:{chapter:5,classNames:"absolute z-10 right-0 top-0"}}),_=new tt({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-TW/chapter5/1.mdx"}}),{c(){s=r("meta"),d=l(),v=r("p"),H=l(),y(p.$$.fragment),g=l(),y(u.$$.fragment),L=l(),o=r("p"),o.innerHTML=O,M=l(),f=r("ol"),f.innerHTML=R,T=l(),c=r("p"),c.textContent=U,w=l(),h=r("ul"),h.innerHTML=k,C=l(),$=r("p"),$.innerHTML=B,P=l(),y(_.$$.fragment),E=l(),x=r("p"),this.h()},l(t){const e=V("svelte-u9bgzb",document.head);s=m(e,"META",{name:!0,content:!0}),e.forEach(a),d=i(t),v=m(t,"P",{}),G(v).forEach(a),H=i(t),z(p.$$.fragment,t),g=i(t),z(u.$$.fragment,t),L=i(t),o=m(t,"P",{"data-svelte-h":!0}),b(o)!=="svelte-uzfshq"&&(o.innerHTML=O),M=i(t),f=m(t,"OL",{"data-svelte-h":!0}),b(f)!=="svelte-14iwi9a"&&(f.innerHTML=R),T=i(t),c=m(t,"P",{"data-svelte-h":!0}),b(c)!=="svelte-10n0b78"&&(c.textContent=U),w=i(t),h=m(t,"UL",{"data-svelte-h":!0}),b(h)!=="svelte-1junxec"&&(h.innerHTML=k),C=i(t),$=m(t,"P",{"data-svelte-h":!0}),b($)!=="svelte-1ejcen0"&&($.innerHTML=B),P=i(t),z(_.$$.fragment,t),E=i(t),x=m(t,"P",{}),G(x).forEach(a),this.h()},h(){N(s,"name","hf:doc:metadata"),N(s,"content",at)},m(t,e){X(document.head,s),n(t,d,e),n(t,v,e),n(t,H,e),j(p,t,e),n(t,g,e),j(u,t,e),n(t,L,e),n(t,o,e),n(t,M,e),n(t,f,e),n(t,T,e),n(t,c,e),n(t,w,e),n(t,h,e),n(t,C,e),n(t,$,e),n(t,P,e),j(_,t,e),n(t,E,e),n(t,x,e),A=!0},p:I,i(t){A||(D(p.$$.fragment,t),D(u.$$.fragment,t),D(_.$$.fragment,t),A=!0)},o(t){S(p.$$.fragment,t),S(u.$$.fragment,t),S(_.$$.fragment,t),A=!1},d(t){t&&(a(d),a(v),a(H),a(g),a(L),a(o),a(M),a(f),a(T),a(c),a(w),a(h),a(C),a($),a(P),a(E),a(x)),a(s),q(p,t),q(u,t),q(_,t)}}}const at='{"title":"本章簡介","local":"本章簡介","sections":[],"depth":1}';function nt(F){return J(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class mt extends K{constructor(s){super(),Q(this,s,nt,et,W,{})}}export{mt as component};
