<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Machine Learning | Xuanhao</title><link>https://www.xh-zhang.com/tags/machine-learning/</link><atom:link href="https://www.xh-zhang.com/tags/machine-learning/index.xml" rel="self" type="application/rss+xml"/><description>Machine Learning</description><generator>Source Themes Academic (https://sourcethemes.com/academic/)</generator><language>en-us</language><lastBuildDate>Tue, 01 Oct 2019 16:40:57 -0400</lastBuildDate><image><url>https://www.xh-zhang.com/img/icon-192.png</url><title>Machine Learning</title><link>https://www.xh-zhang.com/tags/machine-learning/</link></image><item><title>Adversarial Video Generation</title><link>https://www.xh-zhang.com/project/gan/</link><pubDate>Tue, 01 Oct 2019 16:40:57 -0400</pubDate><guid>https://www.xh-zhang.com/project/gan/</guid><description>
&lt;h2 id=&#34;adversarial-video-generation&#34;&gt;Adversarial Video Generation&lt;/h2&gt;
&lt;p&gt;This project was forked from &lt;a href=&#34;https://github.com/dyelax/Adversarial_Video_Generation&#34; target=&#34;_blank&#34;&gt;dyelax’s work&lt;/a&gt; and immigrated to TensorFlow1.2 and Python3, in order to be compatible to GTX1080 or later version GPU.&lt;/p&gt;
&lt;p&gt;Adversarial generation uses two networks – a generator and a discriminator – to improve the sharpness of generated images. Given the past four frames of video, the generator learns to generate accurate predictions for the next frame. Given either a generated or a real-world image, the discriminator learns to correctly classify between generated and real. The two networks &amp;ldquo;compete,&amp;rdquo; with the generator attempting to fool the discriminator into classifying its output as real. This forces the generator to create frames that are very similar to what real frames in the domain might look like.&lt;/p&gt;
&lt;h3 id=&#34;results&#34;&gt;Results&lt;/h3&gt;
&lt;p&gt;We collected the data from a basketball game and a video game Snake.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://media.giphy.com/media/PlxrWSwTTjA3KFW8Rp/giphy.gif&#34; width=&#34;425&#34; height=&#34;350&#34;&gt; &lt;img src=&#34;https://media.giphy.com/media/L0xNHleHM9K0gWvV2u/giphy.gif&#34; width=&#34;425&#34; height=&#34;350&#34;&gt;&lt;/p&gt;
&lt;p&gt;After the first 10000 times training, the last frame of the Snake Game looked still fuzzy.&lt;/p&gt;
&lt;p&gt;The detailed results is shown at &lt;a href=&#34;https://docs.google.com/presentation/d/1dSCPw3_T-7nOAzeLDiZp9Sbr--sUO0bDb7_78sKT2_U/edit?usp=sharing&#34; target=&#34;_blank&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After another 40000 times training, the basketball sence looked like still fuzzy, while the Snake sence looked better.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://media.giphy.com/media/SwsdL2k2C3VeIjrDZb/giphy.gif&#34; width=&#34;425&#34; height=&#34;350&#34;&gt; &lt;img src=&#34;https://media.giphy.com/media/H75iw0JhdyNN3eUBro/giphy.gif&#34; width=&#34;425&#34; height=&#34;350&#34;&gt;&lt;/p&gt;
&lt;p&gt;An interesting finding was that when the snake met the cherry, which was used to earn points, it felt &amp;ldquo;puzzled&amp;rdquo; about which direction to take. This &amp;ldquo;puzzled&amp;rdquo; also exists when the snake went close to the wall or its own body.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://media.giphy.com/media/H75J2Ivi8hGyh3iken/giphy.gif&#34; width=&#34;425&#34; height=&#34;350&#34;&gt; &lt;img src=&#34;https://media.giphy.com/media/KEG5UGA79Vc2q4Of97/giphy.gif&#34; width=&#34;425&#34; height=&#34;350&#34;&gt;&lt;/p&gt;</description></item><item><title>Reinforcement Learning in Game Scenarios</title><link>https://www.xh-zhang.com/project/qlearning/</link><pubDate>Fri, 01 Sep 2017 16:40:57 -0400</pubDate><guid>https://www.xh-zhang.com/project/qlearning/</guid><description>
&lt;h2 id=&#34;reinforcement-learning-in-game-scenarios&#34;&gt;Reinforcement Learning in Game Scenarios&lt;/h2&gt;
&lt;p&gt;Implemented agents to play games automatically based on reinforcement learning (Q-learning). The game scenarios include a basic Taxi game, Flappy Birds and an Atari Game: Space Invader.&lt;/p&gt;
&lt;h3 id=&#34;interesting-result&#34;&gt;Interesting Result&lt;/h3&gt;
&lt;p&gt;&lt;blockquote class=&#34;imgur-embed-pub&#34; lang=&#34;en&#34; data-id=&#34;fctnJ7I&#34;&gt;&lt;a href=&#34;https://imgur.com/fctnJ7I&#34;&gt;&lt;/a&gt;&lt;/blockquote&gt;&lt;script async src=&#34;//s.imgur.com/min/embed.js&#34; charset=&#34;utf-8&#34;&gt;&lt;/script&gt;&lt;/p&gt;</description></item></channel></rss>