import{s as V,n as W,o as X}from"../chunks/scheduler.37c15a92.js";import{S as Z,i as ee,g as r,s as a,r as b,A as te,h as l,f as n,c as s,j as J,u as _,x as L,k as Q,y as ne,a as i,v as T,d as M,t as U,w as H}from"../chunks/index.7cb9c9b8.js";import{H as q,E as ie}from"../chunks/EditOnGithub.858acfec.js";function ae(z){let o,x,$,C,m,A,u,D="<strong>You can create your own reinforcement learning environments with Unity and MLAgents</strong>. Using a game engine such as Unity can be intimidating at first, but here are the steps you can take to learn smoothly.",S,h,k,c,G='<li>The best way to learn Unity is to do <a href="https://learn.unity.com/course/create-with-code" rel="nofollow">“Create with Code” course</a>: it’s a series of videos for beginners where <strong>you will create 5 small games with Unity</strong>.</li>',P,p,E,f,O='<li>Then, when you know how to use Unity, you can create your <a href="https://github.com/Unity-Technologies/ml-agents/blob/release_20_docs/docs/Learning-Environment-Create-New.md" rel="nofollow">first basic RL environment using this tutorial</a>.</li>',I,d,K,w,Y='<li>Now that you’ve created your first simple environment you can iterate to more complex ones using the <a href="https://github.com/Unity-Technologies/ml-agents/blob/release_20_docs/docs/" rel="nofollow">MLAgents documentation (especially Designing Agents and Agent part)</a></li> <li>In addition, you can take this free course <a href="https://learn.unity.com/course/ml-agents-hummingbirds" rel="nofollow">“Create a hummingbird environment”</a> by <a href="https://twitter.com/aktwelve" rel="nofollow">Adam Kelly</a></li>',B,g,F="Have fun! And if you create custom environments don’t hesitate to share them to the <code>#rl-i-made-this</code> discord channel.",N,y,R,v,j;return m=new q({props:{title:"Bonus: Learn to create your own environments with Unity and MLAgents",local:"bonus-learn-to-create-your-own-environments-with-unity-and-mlagents",headingTag:"h1"}}),h=new q({props:{title:"Step 1: Know how to use Unity",local:"step-1-know-how-to-use-unity",headingTag:"h2"}}),p=new q({props:{title:"Step 2: Create the simplest environment with this tutorial",local:"step-2-create-the-simplest-environment-with-this-tutorial",headingTag:"h2"}}),d=new q({props:{title:"Step 3: Iterate and create nice environments",local:"step-3-iterate-and-create-nice-environments",headingTag:"h2"}}),y=new ie({props:{source:"https://github.com/huggingface/deep-rl-class/blob/main/units/en/unit5/bonus.mdx"}}),{c(){o=r("meta"),x=a(),$=r("p"),C=a(),b(m.$$.fragment),A=a(),u=r("p"),u.innerHTML=D,S=a(),b(h.$$.fragment),k=a(),c=r("ul"),c.innerHTML=G,P=a(),b(p.$$.fragment),E=a(),f=r("ul"),f.innerHTML=O,I=a(),b(d.$$.fragment),K=a(),w=r("ul"),w.innerHTML=Y,B=a(),g=r("p"),g.innerHTML=F,N=a(),b(y.$$.fragment),R=a(),v=r("p"),this.h()},l(e){const t=te("svelte-u9bgzb",document.head);o=l(t,"META",{name:!0,content:!0}),t.forEach(n),x=s(e),$=l(e,"P",{}),J($).forEach(n),C=s(e),_(m.$$.fragment,e),A=s(e),u=l(e,"P",{"data-svelte-h":!0}),L(u)!=="svelte-11yliiw"&&(u.innerHTML=D),S=s(e),_(h.$$.fragment,e),k=s(e),c=l(e,"UL",{"data-svelte-h":!0}),L(c)!=="svelte-1odfop5"&&(c.innerHTML=G),P=s(e),_(p.$$.fragment,e),E=s(e),f=l(e,"UL",{"data-svelte-h":!0}),L(f)!=="svelte-1piftp1"&&(f.innerHTML=O),I=s(e),_(d.$$.fragment,e),K=s(e),w=l(e,"UL",{"data-svelte-h":!0}),L(w)!=="svelte-1hvdtvi"&&(w.innerHTML=Y),B=s(e),g=l(e,"P",{"data-svelte-h":!0}),L(g)!=="svelte-mxbk0v"&&(g.innerHTML=F),N=s(e),_(y.$$.fragment,e),R=s(e),v=l(e,"P",{}),J(v).forEach(n),this.h()},h(){Q(o,"name","hf:doc:metadata"),Q(o,"content",se)},m(e,t){ne(document.head,o),i(e,x,t),i(e,$,t),i(e,C,t),T(m,e,t),i(e,A,t),i(e,u,t),i(e,S,t),T(h,e,t),i(e,k,t),i(e,c,t),i(e,P,t),T(p,e,t),i(e,E,t),i(e,f,t),i(e,I,t),T(d,e,t),i(e,K,t),i(e,w,t),i(e,B,t),i(e,g,t),i(e,N,t),T(y,e,t),i(e,R,t),i(e,v,t),j=!0},p:W,i(e){j||(M(m.$$.fragment,e),M(h.$$.fragment,e),M(p.$$.fragment,e),M(d.$$.fragment,e),M(y.$$.fragment,e),j=!0)},o(e){U(m.$$.fragment,e),U(h.$$.fragment,e),U(p.$$.fragment,e),U(d.$$.fragment,e),U(y.$$.fragment,e),j=!1},d(e){e&&(n(x),n($),n(C),n(A),n(u),n(S),n(k),n(c),n(P),n(E),n(f),n(I),n(K),n(w),n(B),n(g),n(N),n(R),n(v)),n(o),H(m,e),H(h,e),H(p,e),H(d,e),H(y,e)}}}const se='{"title":"Bonus: Learn to create your own environments with Unity and MLAgents","local":"bonus-learn-to-create-your-own-environments-with-unity-and-mlagents","sections":[{"title":"Step 1: Know how to use Unity","local":"step-1-know-how-to-use-unity","sections":[],"depth":2},{"title":"Step 2: Create the simplest environment with this tutorial","local":"step-2-create-the-simplest-environment-with-this-tutorial","sections":[],"depth":2},{"title":"Step 3: Iterate and create nice environments","local":"step-3-iterate-and-create-nice-environments","sections":[],"depth":2}],"depth":1}';function oe(z){return X(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ue extends Z{constructor(o){super(),ee(this,o,oe,ae,V,{})}}export{ue as component};
