Free AI web copilot to create summaries, insights and extended knowledge, download it at here
1421
Abstract
:800/1*JeZFUO4AJZLrZmHnDAjJlQ.png"><figcaption></figcaption></figure><p id="805f">Save your folder path for convenience</p><figure id="784e"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*0Q6kw9gar7PTMOruVUJXKQ.png"><figcaption></figcaption></figure><h1 id="72b0">Connect to Weights and Biase</h1><p id="c329">Install the package and log in, paste the API key pop up from your WB page.</p><div id="2a16"><pre><span class="hljs-addition">!pip install wandb</span>
<span class="hljs-addition">!wandb login</span></pre></div><figure id="3aeb"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*PFhWMq73EDpSI2Vcd-laSg.png"><figcaption></figcaption></figure><figure id="90b3"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*T0jB-fqGK9_wKoI95SLjug.png"><figcaption></figcaption></figure><div id="5287"><pre><span class="hljs-comment">#initial a project for record</span>
<span class="hljs-keyword">import</span> wandb</pre></div><div id="89d8"><pre>wandb.init(<span class="hljs-attribute">project</span>=<span class="hljs-string">"my-test-project"</span>)</pre></div><figure id="d4be"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*ddG2S2ORMJowH71KSo1z7g.png"><figcaption></figcaption></figure><p id="8cdb">Press display, you could track the information directly from the notebook</p><figure id="9bfd"><img src="https://cdn-images-1.readmedium.com/v2/resiz
Options
e:fit:800/1*Zay8p0Ho3Y1meMg3ewvo3A.png"><figcaption></figcaption></figure><p id="6c31"><b>Now you can log and visualise the value easily</b></p><div id="18ca"><pre>wandb.log({<span class="hljs-string">"Critic"</span><span class="hljs-symbol">:critic_loss</span>, <span class="hljs-string">"Actor"</span><span class="hljs-symbol">:actor_loss</span>})</pre></div><p id="b934">Here is a simple example:</p><figure id="5ac7"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*tfeQu6N7uDQr8YoIbqzQ2Q.png"><figcaption></figcaption></figure><p id="416b">We could check the progress, I must have done something wrong with my model, the loss is increasing…</p><figure id="1f53"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*Deg4ducrFJuXfn69jKMGcQ.png"><figcaption></figcaption></figure><div id="ebff" class="link-block">
<a href="https://readmedium.com/mlearning-ai-submission-suggestions-b51e2b130bfb">
<div>
<div>
<h2>Mlearning.ai Submission Suggestions</h2>
<div><h3>How to become a writer on Mlearning.ai</h3></div>
<div><p>medium.com</p></div>
</div>
<div>
<div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*ib0DX0UzRoFcNuZILb7rNA.jpeg)"></div>
</div>
</div>
</a>
</div></article></body>