import{S as U,i as O,s as Y,M as I,N as M,a as m,d as s,b as n,g as $,G as c,L as G,e as w,w as j,k as z,t as x,c as b,x as X,m as E,h as L,y as q,n as oe,o as V,B as D,p as ce,q as K,K as ue,R as fe,v as he}from"../../chunks/vendor-hf-doc-builder.js";import{I as de}from"../../chunks/IconCopyLink-hf-doc-builder.js";function me(h){let e,t,a,l,o,r;return{c(){e=I("svg"),t=I("defs"),a=I("clipPath"),l=I("rect"),o=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=m(e);t=M(i,"defs",{});var g=m(t);a=M(g,"clipPath",{id:!0});var _=m(a);l=M(_,"rect",{x:!0,y:!0,width:!0,height:!0,fill:!0}),m(l).forEach(s),_.forEach(s),g.forEach(s),o=M(i,"g",{"clip-path":!0});var k=m(o);r=M(k,"path",{d:!0,fill:!0}),m(r).forEach(s),k.forEach(s),i.forEach(s),this.h()},h(){n(l,"x","3.05"),n(l,"y","0.5"),n(l,"width","25.73"),n(l,"height","31"),n(l,"fill","none"),n(a,"id","a"),n(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"),n(r,"fill","#ee4c2c"),n(o,"clip-path","url(#a)"),n(e,"class",h[0]),n(e,"xmlns","http://www.w3.org/2000/svg"),n(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),n(e,"aria-hidden","true"),n(e,"focusable","false"),n(e,"role","img"),n(e,"width","1em"),n(e,"height","1em"),n(e,"preserveAspectRatio","xMidYMid meet"),n(e,"viewBox","0 0 32 32")},m(f,i){$(f,e,i),c(e,t),c(t,a),c(a,l),c(e,o),c(o,r)},p(f,[i]){i&1&&n(e,"class",f[0])},i:G,o:G,d(f){f&&s(e)}}}function pe(h,e,t){let{classNames:a=""}=e;return h.$$set=l=>{"classNames"in l&&t(0,a=l.classNames)},[a]}class ve extends U{constructor(e){super();O(this,e,pe,me,Y,{classNames:0})}}function ge(h){let e,t,a,l;return{c(){e=I("svg"),t=I("path"),a=I("path"),l=I("path"),this.h()},l(o){e=M(o,"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=m(e);t=M(r,"path",{d:!0,fill:!0}),m(t).forEach(s),a=M(r,"path",{d:!0,fill:!0}),m(a).forEach(s),l=M(r,"path",{d:!0,fill:!0}),m(l).forEach(s),r.forEach(s),this.h()},h(){n(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"),n(t,"fill","#E55B2D"),n(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"),n(a,"fill","#ED8E24"),n(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"),n(l,"fill","#F8BF3C"),n(e,"class",h[0]),n(e,"xmlns","http://www.w3.org/2000/svg"),n(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),n(e,"aria-hidden","true"),n(e,"focusable","false"),n(e,"role","img"),n(e,"width","0.94em"),n(e,"height","1em"),n(e,"preserveAspectRatio","xMidYMid meet"),n(e,"viewBox","0 0 256 274")},m(o,r){$(o,e,r),c(e,t),c(e,a),c(e,l)},p(o,[r]){r&1&&n(e,"class",o[0])},i:G,o:G,d(o){o&&s(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 U{constructor(e){super();O(this,e,_e,ge,Y,{classNames:0})}}function ne(h,e,t){const a=h.slice();return a[2]=e[t],a[4]=t,a}function se(h){let e,t,a,l=h[2].name+"",o,r,f,i,g;var _=h[2].icon;function k(p){return{props:{classNames:"mr-1.5"}}}return _&&(t=new _(k())),{c(){e=w("a"),t&&j(t.$$.fragment),a=z(),o=x(l),r=z(),this.h()},l(p){e=b(p,"A",{class:!0,href:!0});var v=m(e);t&&X(t.$$.fragment,v),a=E(v),o=L(v,l),r=E(v),v.forEach(s),this.h()},h(){n(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")),n(e,"href",i="?fw="+h[2].id)},m(p,v){$(p,e,v),t&&q(t,e,null),c(e,a),c(e,o),c(e,r),g=!0},p(p,v){if(_!==(_=p[2].icon)){if(t){oe();const d=t;V(d.$$.fragment,1,0,()=>{D(d,1)}),ce()}_?(t=new _(k()),j(t.$$.fragment),K(t.$$.fragment,1),q(t,e,a)):t=null}(!g||v&1&&f!==(f="flex justify-center flex-1 py-1.5 px-2.5 focus:outline-none !no-underline rounded-"+(p[4]?"r":"l")+" "+(p[2].id===p[0]?p[2].classNames:"text-gray-500 filter grayscale")))&&n(e,"class",f)},i(p){g||(t&&K(t.$$.fragment,p),g=!0)},o(p){t&&V(t.$$.fragment,p),g=!1},d(p){p&&s(e),t&&D(t)}}}function we(h){let e,t,a=h[1],l=[];for(let r=0;r<a.length;r+=1)l[r]=se(ne(h,a,r));const o=r=>V(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=m(e);for(let i=0;i<l.length;i+=1)l[i].l(f);f.forEach(s),this.h()},h(){n(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){$(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 g=ne(r,a,i);l[i]?(l[i].p(g,f),K(l[i],1)):(l[i]=se(g),l[i].c(),K(l[i],1),l[i].m(e,null))}for(oe(),i=a.length;i<l.length;i+=1)o(i);ce()}},i(r){if(!t){for(let f=0;f<a.length;f+=1)K(l[f]);t=!0}},o(r){l=l.filter(Boolean);for(let f=0;f<l.length;f+=1)V(l[f]);t=!1},d(r){r&&s(e),ue(l,r)}}}function be(h,e,t){let{fw:a}=e;const l=[{id:"pt",classNames:"bg-red-50 dark:bg-transparent text-red-600",icon:ve,name:"Pytorch"},{id:"tf",classNames:"bg-orange-50 dark:bg-transparent text-yellow-600",icon:ke,name:"TensorFlow"}];return h.$$set=o=>{"fw"in o&&t(0,a=o.fw)},[a,l]}class ye extends U{constructor(e){super();O(this,e,be,we,Y,{fw:0})}}function $e(h){let e,t,a,l,o,r,f,i,g,_,k,p;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(),o=w("li"),r=x("Keras ile nas\u0131l model fine-tune edilir"),f=z(),i=w("li"),g=x("Keras ile tahminler nas\u0131l elde edilir"),_=z(),k=w("li"),p=x("\xD6zel metrikler nas\u0131l kullan\u0131l\u0131r")},l(v){e=b(v,"UL",{});var d=m(e);t=b(d,"LI",{});var P=m(t);a=L(P,"Hub\u2019dan nas\u0131l b\xFCy\xFCk bir veri seti haz\u0131rlan\u0131r"),P.forEach(s),l=E(d),o=b(d,"LI",{});var B=m(o);r=L(B,"Keras ile nas\u0131l model fine-tune edilir"),B.forEach(s),f=E(d),i=b(d,"LI",{});var A=m(i);g=L(A,"Keras ile tahminler nas\u0131l elde edilir"),A.forEach(s),_=E(d),k=b(d,"LI",{});var N=m(k);p=L(N,"\xD6zel metrikler nas\u0131l kullan\u0131l\u0131r"),N.forEach(s),d.forEach(s)},m(v,d){$(v,e,d),c(e,t),c(t,a),c(e,l),c(e,o),c(o,r),c(e,f),c(e,i),c(i,g),c(e,_),c(e,k),c(k,p)},d(v){v&&s(e)}}}function ze(h){let e,t,a,l,o,r,f,i,g,_,k,p;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(),o=w("li"),r=x("Trainer API ile nas\u0131l model fine-tune edilir"),f=z(),i=w("li"),g=x("\xD6zelle\u015Ftirilmi\u015F training d\xF6ng\xFCs\xFC nas\u0131l yaz\u0131l\u0131r"),_=z(),k=w("li"),p=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(v){e=b(v,"UL",{});var d=m(e);t=b(d,"LI",{});var P=m(t);a=L(P,"Hub\u2019dan nas\u0131l b\xFCy\xFCk bir veri seti haz\u0131rlan\u0131r"),P.forEach(s),l=E(d),o=b(d,"LI",{});var B=m(o);r=L(B,"Trainer API ile nas\u0131l model fine-tune edilir"),B.forEach(s),f=E(d),i=b(d,"LI",{});var A=m(i);g=L(A,"\xD6zelle\u015Ftirilmi\u015F training d\xF6ng\xFCs\xFC nas\u0131l yaz\u0131l\u0131r"),A.forEach(s),_=E(d),k=b(d,"LI",{});var N=m(k);p=L(N,"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"),N.forEach(s),d.forEach(s)},m(v,d){$(v,e,d),c(e,t),c(t,a),c(e,l),c(e,o),c(o,r),c(e,f),c(e,i),c(i,g),c(e,_),c(e,k),c(k,p)},d(v){v&&s(e)}}}function Ee(h){let e,t,a,l,o,r,f,i,g,_,k,p,v,d,P,B,A,N,H,Z,R,J,T;a=new ye({props:{fw:h[0]}}),i=new de({});function ee(u,y){return u[0]==="pt"?ze:$e}let C=ee(h),F=C(h);return{c(){e=w("meta"),t=z(),j(a.$$.fragment),l=z(),o=w("h1"),r=w("a"),f=w("span"),j(i.$$.fragment),g=z(),_=w("span"),k=x("Giri\u015F"),p=z(),v=w("p"),d=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 :"),A=z(),F.c(),N=z(),H=w("p"),Z=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."),R=w("a"),J=x("hesap olu\u015Fturun"),this.h()},l(u){const y=fe('[data-svelte="svelte-1phssyn"]',document.head);e=b(y,"META",{name:!0,content:!0}),y.forEach(s),t=E(u),X(a.$$.fragment,u),l=E(u),o=b(u,"H1",{class:!0});var S=m(o);r=b(S,"A",{id:!0,class:!0,href:!0});var te=m(r);f=b(te,"SPAN",{});var le=m(f);X(i.$$.fragment,le),le.forEach(s),te.forEach(s),g=E(S),_=b(S,"SPAN",{});var re=m(_);k=L(re,"Giri\u015F"),re.forEach(s),S.forEach(s),p=E(u),v=b(u,"P",{});var W=m(v);d=b(W,"A",{href:!0});var ae=m(d);P=L(ae,"\u0130kinci b\xF6l\xFCmde"),ae.forEach(s),B=L(W," 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 :"),W.forEach(s),A=E(u),F.l(u),N=E(u),H=b(u,"P",{});var Q=m(H);Z=L(Q,"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."),R=b(Q,"A",{href:!0,rel:!0});var ie=m(R);J=L(ie,"hesap olu\u015Fturun"),ie.forEach(s),Q.forEach(s),this.h()},h(){n(e,"name","hf:doc:metadata"),n(e,"content",JSON.stringify(xe)),n(r,"id","giri"),n(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"),n(r,"href","#giri"),n(o,"class","relative group"),n(d,"href","/course/chapter2"),n(R,"href","https://huggingface.co/join"),n(R,"rel","nofollow")},m(u,y){c(document.head,e),$(u,t,y),q(a,u,y),$(u,l,y),$(u,o,y),c(o,r),c(r,f),q(i,f,null),c(o,g),c(o,_),c(_,k),$(u,p,y),$(u,v,y),c(v,d),c(d,P),c(v,B),$(u,A,y),F.m(u,y),$(u,N,y),$(u,H,y),c(H,Z),c(H,R),c(R,J),T=!0},p(u,[y]){const S={};y&1&&(S.fw=u[0]),a.$set(S),C!==(C=ee(u))&&(F.d(1),F=C(u),F&&(F.c(),F.m(N.parentNode,N)))},i(u){T||(K(a.$$.fragment,u),K(i.$$.fragment,u),T=!0)},o(u){V(a.$$.fragment,u),V(i.$$.fragment,u),T=!1},d(u){s(e),u&&s(t),D(a,u),u&&s(l),u&&s(o),D(i),u&&s(p),u&&s(v),u&&s(A),F.d(u),u&&s(N),u&&s(H)}}}const xe={local:"giri",title:"Giri\u015F"};function Le(h,e,t){let a="pt";return he(()=>{const l=new URLSearchParams(window.location.search);t(0,a=l.get("fw")||"pt")}),[a]}class Ie extends U{constructor(e){super();O(this,e,Le,Ee,Y,{})}}export{Ie as default,xe as metadata};
