import{s as A,f as D,n as G,o as R}from"../chunks/scheduler.37c15a92.js";import{S as U,i as W,g as c,s as m,r as T,A as j,h as f,f as n,c as p,j as O,u as I,x as C,k as P,y as N,a,v as S,d as k,t as q,w as z}from"../chunks/index.7cb9c9b8.js";import{H as Q,E as B}from"../chunks/getInferenceSnippets.15b814d1.js";function F(L){let s,d,h,_,i,$,o,M="One of the most critical tasks in Deep Reinforcement Learning is to <strong>find a good set of training hyperparameters</strong>.",b,r,E,y,l,H='<a href="https://optuna.org/" rel="nofollow">Optuna</a> is a library that helps you to automate the search. In this Unit, we’ll study a <strong>little bit of the theory behind automatic hyperparameter tuning</strong>. We’ll first try to optimize the parameters of the DQN studied in the last unit manually. We’ll then <strong>learn how to automate the search using Optuna</strong>.',w,u,v,g,x;return i=new Q({props:{title:"Introduction",local:"introduction",headingTag:"h1"}}),u=new B({props:{source:"https://github.com/huggingface/deep-rl-class/blob/main/units/en/unitbonus2/introduction.mdx"}}),{c(){s=c("meta"),d=m(),h=c("p"),_=m(),T(i.$$.fragment),$=m(),o=c("p"),o.innerHTML=M,b=m(),r=c("img"),y=m(),l=c("p"),l.innerHTML=H,w=m(),T(u.$$.fragment),v=m(),g=c("p"),this.h()},l(t){const e=j("svelte-u9bgzb",document.head);s=f(e,"META",{name:!0,content:!0}),e.forEach(n),d=p(t),h=f(t,"P",{}),O(h).forEach(n),_=p(t),I(i.$$.fragment,t),$=p(t),o=f(t,"P",{"data-svelte-h":!0}),C(o)!=="svelte-x8nci8"&&(o.innerHTML=M),b=p(t),r=f(t,"IMG",{src:!0,alt:!0}),y=p(t),l=f(t,"P",{"data-svelte-h":!0}),C(l)!=="svelte-1bv2gm2"&&(l.innerHTML=H),w=p(t),I(u.$$.fragment,t),v=p(t),g=f(t,"P",{}),O(g).forEach(n),this.h()},h(){P(s,"name","hf:doc:metadata"),P(s,"content",J),D(r.src,E="https://raw.githubusercontent.com/optuna/optuna/master/docs/image/optuna-logo.png")||P(r,"src",E),P(r,"alt","Optuna Logo")},m(t,e){N(document.head,s),a(t,d,e),a(t,h,e),a(t,_,e),S(i,t,e),a(t,$,e),a(t,o,e),a(t,b,e),a(t,r,e),a(t,y,e),a(t,l,e),a(t,w,e),S(u,t,e),a(t,v,e),a(t,g,e),x=!0},p:G,i(t){x||(k(i.$$.fragment,t),k(u.$$.fragment,t),x=!0)},o(t){q(i.$$.fragment,t),q(u.$$.fragment,t),x=!1},d(t){t&&(n(d),n(h),n(_),n($),n(o),n(b),n(r),n(y),n(l),n(w),n(v),n(g)),n(s),z(i,t),z(u,t)}}}const J='{"title":"Introduction","local":"introduction","sections":[],"depth":1}';function K(L){return R(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Z extends U{constructor(s){super(),W(this,s,K,F,A,{})}}export{Z as component};
