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