import{S as Z,i as J,s as W,M as I,N as M,a as d,d as o,b as s,g as y,G as u,L as Y,e as w,w as T,k as z,t as x,c as b,x as O,m as E,h as N,y as G,n as ue,o as K,B as j,p as fe,q as H,K as he,R as de,v as me}from"../../chunks/vendor-hf-doc-builder.js";import{I as pe}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as ge}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";function ve(h){let e,t,a,l,c,r;return{c(){e=I("svg"),t=I("defs"),a=I("clipPath"),l=I("rect"),c=I("g"),r=I("path"),this.h()},l(f){e=M(f,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var i=d(e);t=M(i,"defs",{});var v=d(t);a=M(v,"clipPath",{id:!0});var _=d(a);l=M(_,"rect",{x:!0,y:!0,width:!0,height:!0,fill:!0}),d(l).forEach(o),_.forEach(o),v.forEach(o),c=M(i,"g",{"clip-path":!0});var k=d(c);r=M(k,"path",{d:!0,fill:!0}),d(r).forEach(o),k.forEach(o),i.forEach(o),this.h()},h(){s(l,"x","3.05"),s(l,"y","0.5"),s(l,"width","25.73"),s(l,"height","31"),s(l,"fill","none"),s(a,"id","a"),s(r,"d","M24.94,9.51a12.81,12.81,0,0,1,0,18.16,12.68,12.68,0,0,1-18,0,12.81,12.81,0,0,1,0-18.16l9-9V5l-.84.83-6,6a9.58,9.58,0,1,0,13.55,0ZM20.44,9a1.68,1.68,0,1,1,1.67-1.67A1.68,1.68,0,0,1,20.44,9Z"),s(r,"fill","#ee4c2c"),s(c,"clip-path","url(#a)"),s(e,"class",h[0]),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),s(e,"aria-hidden","true"),s(e,"focusable","false"),s(e,"role","img"),s(e,"width","1em"),s(e,"height","1em"),s(e,"preserveAspectRatio","xMidYMid meet"),s(e,"viewBox","0 0 32 32")},m(f,i){y(f,e,i),u(e,t),u(t,a),u(a,l),u(e,c),u(c,r)},p(f,[i]){i&1&&s(e,"class",f[0])},i:Y,o:Y,d(f){f&&o(e)}}}function _e(h,e,t){let{classNames:a=""}=e;return h.$$set=l=>{"classNames"in l&&t(0,a=l.classNames)},[a]}class ke extends Z{constructor(e){super();J(this,e,_e,ve,W,{classNames:0})}}function we(h){let e,t,a,l;return{c(){e=I("svg"),t=I("path"),a=I("path"),l=I("path"),this.h()},l(c){e=M(c,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var r=d(e);t=M(r,"path",{d:!0,fill:!0}),d(t).forEach(o),a=M(r,"path",{d:!0,fill:!0}),d(a).forEach(o),l=M(r,"path",{d:!0,fill:!0}),d(l).forEach(o),r.forEach(o),this.h()},h(){s(t,"d","M145.726 42.065v42.07l72.861 42.07v-42.07l-72.86-42.07zM0 84.135v42.07l36.43 21.03V105.17L0 84.135zm109.291 21.035l-36.43 21.034v126.2l36.43 21.035v-84.135l36.435 21.035v-42.07l-36.435-21.034V105.17z"),s(t,"fill","#E55B2D"),s(a,"d","M145.726 42.065L36.43 105.17v42.065l72.861-42.065v42.065l36.435-21.03v-84.14zM255.022 63.1l-36.435 21.035v42.07l36.435-21.035V63.1zm-72.865 84.135l-36.43 21.035v42.07l36.43-21.036v-42.07zm-36.43 63.104l-36.436-21.035v84.135l36.435-21.035V210.34z"),s(a,"fill","#ED8E24"),s(l,"d","M145.726 0L0 84.135l36.43 21.035l109.296-63.105l72.861 42.07L255.022 63.1L145.726 0zm0 126.204l-36.435 21.03l36.435 21.036l36.43-21.035l-36.43-21.03z"),s(l,"fill","#F8BF3C"),s(e,"class",h[0]),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),s(e,"aria-hidden","true"),s(e,"focusable","false"),s(e,"role","img"),s(e,"width","0.94em"),s(e,"height","1em"),s(e,"preserveAspectRatio","xMidYMid meet"),s(e,"viewBox","0 0 256 274")},m(c,r){y(c,e,r),u(e,t),u(e,a),u(e,l)},p(c,[r]){r&1&&s(e,"class",c[0])},i:Y,o:Y,d(c){c&&o(e)}}}function be(h,e,t){let{classNames:a=""}=e;return h.$$set=l=>{"classNames"in l&&t(0,a=l.classNames)},[a]}class $e extends Z{constructor(e){super();J(this,e,be,we,W,{classNames:0})}}function oe(h,e,t){const a=h.slice();return a[2]=e[t],a[4]=t,a}function ce(h){let e,t,a,l=h[2].name+"",c,r,f,i,v;var _=h[2].icon;function k(m){return{props:{classNames:"mr-1.5"}}}return _&&(t=new _(k())),{c(){e=w("a"),t&&T(t.$$.fragment),a=z(),c=x(l),r=z(),this.h()},l(m){e=b(m,"A",{class:!0,href:!0});var p=d(e);t&&O(t.$$.fragment,p),a=E(p),c=N(p,l),r=E(p),p.forEach(o),this.h()},h(){s(e,"class",f="flex justify-center flex-1 py-1.5 px-2.5 focus:outline-none !no-underline rounded-"+(h[4]?"r":"l")+" "+(h[2].id===h[0]?h[2].classNames:"text-gray-500 filter grayscale")),s(e,"href",i="?fw="+h[2].id)},m(m,p){y(m,e,p),t&&G(t,e,null),u(e,a),u(e,c),u(e,r),v=!0},p(m,p){if(_!==(_=m[2].icon)){if(t){ue();const g=t;K(g.$$.fragment,1,0,()=>{j(g,1)}),fe()}_?(t=new _(k()),T(t.$$.fragment),H(t.$$.fragment,1),G(t,e,a)):t=null}(!v||p&1&&f!==(f="flex justify-center flex-1 py-1.5 px-2.5 focus:outline-none !no-underline rounded-"+(m[4]?"r":"l")+" "+(m[2].id===m[0]?m[2].classNames:"text-gray-500 filter grayscale")))&&s(e,"class",f)},i(m){v||(t&&H(t.$$.fragment,m),v=!0)},o(m){t&&K(t.$$.fragment,m),v=!1},d(m){m&&o(e),t&&j(t)}}}function ye(h){let e,t,a=h[1],l=[];for(let r=0;r<a.length;r+=1)l[r]=ce(oe(h,a,r));const c=r=>K(l[r],1,1,()=>{l[r]=null});return{c(){e=w("div");for(let r=0;r<l.length;r+=1)l[r].c();this.h()},l(r){e=b(r,"DIV",{class:!0});var f=d(e);for(let i=0;i<l.length;i+=1)l[i].l(f);f.forEach(o),this.h()},h(){s(e,"class","bg-white leading-none border border-gray-100 rounded-lg flex p-0.5 w-56 text-sm mb-4")},m(r,f){y(r,e,f);for(let i=0;i<l.length;i+=1)l[i].m(e,null);t=!0},p(r,[f]){if(f&3){a=r[1];let i;for(i=0;i<a.length;i+=1){const v=oe(r,a,i);l[i]?(l[i].p(v,f),H(l[i],1)):(l[i]=ce(v),l[i].c(),H(l[i],1),l[i].m(e,null))}for(ue(),i=a.length;i<l.length;i+=1)c(i);fe()}},i(r){if(!t){for(let f=0;f<a.length;f+=1)H(l[f]);t=!0}},o(r){l=l.filter(Boolean);for(let f=0;f<l.length;f+=1)K(l[f]);t=!1},d(r){r&&o(e),he(l,r)}}}function ze(h,e,t){let{fw:a}=e;const l=[{id:"pt",classNames:"bg-red-50 dark:bg-transparent text-red-600",icon:ke,name:"Pytorch"},{id:"tf",classNames:"bg-orange-50 dark:bg-transparent text-yellow-600",icon:$e,name:"TensorFlow"}];return h.$$set=c=>{"fw"in c&&t(0,a=c.fw)},[a,l]}class Ee extends Z{constructor(e){super();J(this,e,ze,ye,W,{fw:0})}}function xe(h){let e,t,a,l,c,r,f,i,v,_,k,m;return{c(){e=w("ul"),t=w("li"),a=x("Hub\u2019dan nas\u0131l b\xFCy\xFCk bir veri seti haz\u0131rlan\u0131r"),l=z(),c=w("li"),r=x("Keras ile nas\u0131l model fine-tune edilir"),f=z(),i=w("li"),v=x("Keras ile tahminler nas\u0131l elde edilir"),_=z(),k=w("li"),m=x("\xD6zel metrikler nas\u0131l kullan\u0131l\u0131r")},l(p){e=b(p,"UL",{});var g=d(e);t=b(g,"LI",{});var L=d(t);a=N(L,"Hub\u2019dan nas\u0131l b\xFCy\xFCk bir veri seti haz\u0131rlan\u0131r"),L.forEach(o),l=E(g),c=b(g,"LI",{});var A=d(c);r=N(A,"Keras ile nas\u0131l model fine-tune edilir"),A.forEach(o),f=E(g),i=b(g,"LI",{});var P=d(i);v=N(P,"Keras ile tahminler nas\u0131l elde edilir"),P.forEach(o),_=E(g),k=b(g,"LI",{});var B=d(k);m=N(B,"\xD6zel metrikler nas\u0131l kullan\u0131l\u0131r"),B.forEach(o),g.forEach(o)},m(p,g){y(p,e,g),u(e,t),u(t,a),u(e,l),u(e,c),u(c,r),u(e,f),u(e,i),u(i,v),u(e,_),u(e,k),u(k,m)},d(p){p&&o(e)}}}function Ne(h){let e,t,a,l,c,r,f,i,v,_,k,m;return{c(){e=w("ul"),t=w("li"),a=x("Hub\u2019dan nas\u0131l b\xFCy\xFCk bir veri seti haz\u0131rlan\u0131r"),l=z(),c=w("li"),r=x("Trainer API ile nas\u0131l model fine-tune edilir"),f=z(),i=w("li"),v=x("\xD6zelle\u015Ftirilmi\u015F training d\xF6ng\xFCs\xFC nas\u0131l yaz\u0131l\u0131r"),_=z(),k=w("li"),m=x("Bu \xF6zel training d\xF6ng\xFCs\xFCn\xFC herhangi bir da\u011F\u0131t\u0131lm\u0131\u015F(distributed) kurulumda kolayca \xE7al\u0131\u015Ft\u0131rmak i\xE7in \u{1F917} Accelerate k\xFCt\xFCphanesinden nas\u0131l yararlan\u0131l\u0131r")},l(p){e=b(p,"UL",{});var g=d(e);t=b(g,"LI",{});var L=d(t);a=N(L,"Hub\u2019dan nas\u0131l b\xFCy\xFCk bir veri seti haz\u0131rlan\u0131r"),L.forEach(o),l=E(g),c=b(g,"LI",{});var A=d(c);r=N(A,"Trainer API ile nas\u0131l model fine-tune edilir"),A.forEach(o),f=E(g),i=b(g,"LI",{});var P=d(i);v=N(P,"\xD6zelle\u015Ftirilmi\u015F training d\xF6ng\xFCs\xFC nas\u0131l yaz\u0131l\u0131r"),P.forEach(o),_=E(g),k=b(g,"LI",{});var B=d(k);m=N(B,"Bu \xF6zel training d\xF6ng\xFCs\xFCn\xFC herhangi bir da\u011F\u0131t\u0131lm\u0131\u015F(distributed) kurulumda kolayca \xE7al\u0131\u015Ft\u0131rmak i\xE7in \u{1F917} Accelerate k\xFCt\xFCphanesinden nas\u0131l yararlan\u0131l\u0131r"),B.forEach(o),g.forEach(o)},m(p,g){y(p,e,g),u(e,t),u(t,a),u(e,l),u(e,c),u(c,r),u(e,f),u(e,i),u(i,v),u(e,_),u(e,k),u(k,m)},d(p){p&&o(e)}}}function Le(h){let e,t,a,l,c,r,f,i,v,_,k,m,p,g,L,A,P,B,q,V,R,Q,S,X,D;a=new Ee({props:{fw:h[0]}}),i=new pe({}),p=new ge({props:{chapter:3,classNames:"absolute z-10 right-0 top-0"}});function le(n,$){return n[0]==="pt"?Ne:xe}let U=le(h),F=U(h);return{c(){e=w("meta"),t=z(),T(a.$$.fragment),l=z(),c=w("h1"),r=w("a"),f=w("span"),T(i.$$.fragment),v=z(),_=w("span"),k=x("Giri\u015F"),m=z(),T(p.$$.fragment),g=z(),L=w("p"),A=w("a"),P=x("\u0130kinci b\xF6l\xFCmde"),B=x(" tokenizer ve pretrained modelleri kullanarak nas\u0131l tahmin yapabilece\u011Fimizi \xF6\u011Frendik. Fakat, kendi veri setiniz i\xE7in, pretrained bir modeli nas\u0131l kullanacaks\u0131n\u0131z ? \u0130\u015Fte bu b\xF6l\xFCmde bunu \xF6\u011Freneceksiniz! \xD6\u011Frenecekleriniz :"),q=z(),F.c(),V=z(),R=w("p"),Q=x("Hugging Face Hub\u2019a e\u011Fitti\u011Finiz model a\u011F\u0131rl\u0131klar\u0131n\u0131 y\xFCklemek i\xE7in huggingface.co hesab\u0131na ihtiyac\u0131n\u0131z var."),S=w("a"),X=x("hesap olu\u015Fturun"),this.h()},l(n){const $=de('[data-svelte="svelte-1phssyn"]',document.head);e=b($,"META",{name:!0,content:!0}),$.forEach(o),t=E(n),O(a.$$.fragment,n),l=E(n),c=b(n,"H1",{class:!0});var C=d(c);r=b(C,"A",{id:!0,class:!0,href:!0});var re=d(r);f=b(re,"SPAN",{});var ae=d(f);O(i.$$.fragment,ae),ae.forEach(o),re.forEach(o),v=E(C),_=b(C,"SPAN",{});var ie=d(_);k=N(ie,"Giri\u015F"),ie.forEach(o),C.forEach(o),m=E(n),O(p.$$.fragment,n),g=E(n),L=b(n,"P",{});var ee=d(L);A=b(ee,"A",{href:!0});var ne=d(A);P=N(ne,"\u0130kinci b\xF6l\xFCmde"),ne.forEach(o),B=N(ee," tokenizer ve pretrained modelleri kullanarak nas\u0131l tahmin yapabilece\u011Fimizi \xF6\u011Frendik. Fakat, kendi veri setiniz i\xE7in, pretrained bir modeli nas\u0131l kullanacaks\u0131n\u0131z ? \u0130\u015Fte bu b\xF6l\xFCmde bunu \xF6\u011Freneceksiniz! \xD6\u011Frenecekleriniz :"),ee.forEach(o),q=E(n),F.l(n),V=E(n),R=b(n,"P",{});var te=d(R);Q=N(te,"Hugging Face Hub\u2019a e\u011Fitti\u011Finiz model a\u011F\u0131rl\u0131klar\u0131n\u0131 y\xFCklemek i\xE7in huggingface.co hesab\u0131na ihtiyac\u0131n\u0131z var."),S=b(te,"A",{href:!0,rel:!0});var se=d(S);X=N(se,"hesap olu\u015Fturun"),se.forEach(o),te.forEach(o),this.h()},h(){s(e,"name","hf:doc:metadata"),s(e,"content",JSON.stringify(Ae)),s(r,"id","giri"),s(r,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),s(r,"href","#giri"),s(c,"class","relative group"),s(A,"href","/course/chapter2"),s(S,"href","https://huggingface.co/join"),s(S,"rel","nofollow")},m(n,$){u(document.head,e),y(n,t,$),G(a,n,$),y(n,l,$),y(n,c,$),u(c,r),u(r,f),G(i,f,null),u(c,v),u(c,_),u(_,k),y(n,m,$),G(p,n,$),y(n,g,$),y(n,L,$),u(L,A),u(A,P),u(L,B),y(n,q,$),F.m(n,$),y(n,V,$),y(n,R,$),u(R,Q),u(R,S),u(S,X),D=!0},p(n,[$]){const C={};$&1&&(C.fw=n[0]),a.$set(C),U!==(U=le(n))&&(F.d(1),F=U(n),F&&(F.c(),F.m(V.parentNode,V)))},i(n){D||(H(a.$$.fragment,n),H(i.$$.fragment,n),H(p.$$.fragment,n),D=!0)},o(n){K(a.$$.fragment,n),K(i.$$.fragment,n),K(p.$$.fragment,n),D=!1},d(n){o(e),n&&o(t),j(a,n),n&&o(l),n&&o(c),j(i),n&&o(m),j(p,n),n&&o(g),n&&o(L),n&&o(q),F.d(n),n&&o(V),n&&o(R)}}}const Ae={local:"giri",title:"Giri\u015F"};function Ie(h,e,t){let a="pt";return me(()=>{const l=new URLSearchParams(window.location.search);t(0,a=l.get("fw")||"pt")}),[a]}class Fe extends Z{constructor(e){super();J(this,e,Ie,Le,W,{})}}export{Fe as default,Ae as metadata};
