import{s as D,a as G,n as R,o as U}from"../chunks/scheduler.ef843396.js";import{S as W,i as j,e as c,s as u,c as T,h as A,a as h,d as n,b as p,f as O,g as I,j as C,k as x,l as N,m as a,n as S,t as k,o as q,p as z}from"../chunks/index.05ef1181.js";import{H as Q,E as B}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.ef6649bf.js";function F(L){let s,d,f,_,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,m,v,g,P;return i=new Q({props:{title:"Introduction",local:"introduction",headingTag:"h1"}}),m=new B({props:{source:"https://github.com/huggingface/deep-rl-class/blob/main/units/en/unitbonus2/introduction.mdx"}}),{c(){s=c("meta"),d=u(),f=c("p"),_=u(),T(i.$$.fragment),$=u(),o=c("p"),o.innerHTML=M,b=u(),r=c("img"),y=u(),l=c("p"),l.innerHTML=H,w=u(),T(m.$$.fragment),v=u(),g=c("p"),this.h()},l(t){const e=A("svelte-u9bgzb",document.head);s=h(e,"META",{name:!0,content:!0}),e.forEach(n),d=p(t),f=h(t,"P",{}),O(f).forEach(n),_=p(t),I(i.$$.fragment,t),$=p(t),o=h(t,"P",{"data-svelte-h":!0}),C(o)!=="svelte-x8nci8"&&(o.innerHTML=M),b=p(t),r=h(t,"IMG",{src:!0,alt:!0}),y=p(t),l=h(t,"P",{"data-svelte-h":!0}),C(l)!=="svelte-1bv2gm2"&&(l.innerHTML=H),w=p(t),I(m.$$.fragment,t),v=p(t),g=h(t,"P",{}),O(g).forEach(n),this.h()},h(){x(s,"name","hf:doc:metadata"),x(s,"content",J),G(r.src,E="https://raw.githubusercontent.com/optuna/optuna/master/docs/image/optuna-logo.png")||x(r,"src",E),x(r,"alt","Optuna Logo")},m(t,e){N(document.head,s),a(t,d,e),a(t,f,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(m,t,e),a(t,v,e),a(t,g,e),P=!0},p:R,i(t){P||(k(i.$$.fragment,t),k(m.$$.fragment,t),P=!0)},o(t){q(i.$$.fragment,t),q(m.$$.fragment,t),P=!1},d(t){t&&(n(d),n(f),n(_),n($),n(o),n(b),n(r),n(y),n(l),n(w),n(v),n(g)),n(s),z(i,t),z(m,t)}}}const J='{"title":"Introduction","local":"introduction","sections":[],"depth":1}';function K(L){return U(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Z extends W{constructor(s){super(),j(this,s,K,F,D,{})}}export{Z as component};
