<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4617316590897782384</id><updated>2011-08-22T10:17:45.309-07:00</updated><title type='text'>Everyone Else Is Robots</title><subtitle type='html'>Day to day musings of a computer science graduate student</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://everyoneelseisrobots.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://everyoneelseisrobots.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>jhero</name><uri>http://www.blogger.com/profile/01703675106693878251</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_s-otSrP7cvA/SbsOshTNORI/AAAAAAAAAAM/AZWLrZ86xPw/S220/delapresse.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4617316590897782384.post-4456014577953504513</id><published>2011-02-15T16:48:00.000-08:00</published><updated>2011-02-15T16:48:59.005-08:00</updated><title type='text'>Collapsing v. Deleting</title><content type='html'>I am in the midst of implementing my own CART decision tree and ran into a semantic snag. In Hastie's book, &lt;i&gt;The Elements of Statistical Learning&lt;/i&gt;, it is stated that the best way to determine the size of the decision tree is to grow a large tree and then prune it afterwards.&lt;br /&gt;&lt;br /&gt;In this process, internal nodes are "collapsed". It wasn't until I started implementing this that I realized I was not clear on what was meant by collapsing. Initially I thought it meant deleting a node from the tree, which is wrong.&lt;br /&gt;&lt;br /&gt;I had to grab Brieman's original book, &lt;i&gt;Classification and Regression Trees &lt;/i&gt;to find out what was meant, and feel a little foolish now knowing how simple the answer is. Collapsing a node simply means removing the entire subtree below, but not including, that node. -_____-&lt;br /&gt;&lt;br /&gt;The book includes a nice diagram which I figure would be helpful for anyone whoever reads this. Basically the following is a demonstration of collapsing the tree at node T2, i.e., T-T2.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-sT8R8aj_OjM/TVsezPEYOQI/AAAAAAAAAB0/JbSlNBWM0LM/s1600/collapse.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="77" src="http://2.bp.blogspot.com/-sT8R8aj_OjM/TVsezPEYOQI/AAAAAAAAAB0/JbSlNBWM0LM/s320/collapse.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4617316590897782384-4456014577953504513?l=everyoneelseisrobots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://everyoneelseisrobots.blogspot.com/feeds/4456014577953504513/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://everyoneelseisrobots.blogspot.com/2011/02/collapsing-v-deleting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default/4456014577953504513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default/4456014577953504513'/><link rel='alternate' type='text/html' href='http://everyoneelseisrobots.blogspot.com/2011/02/collapsing-v-deleting.html' title='Collapsing v. Deleting'/><author><name>jhero</name><uri>http://www.blogger.com/profile/01703675106693878251</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_s-otSrP7cvA/SbsOshTNORI/AAAAAAAAAAM/AZWLrZ86xPw/S220/delapresse.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-sT8R8aj_OjM/TVsezPEYOQI/AAAAAAAAAB0/JbSlNBWM0LM/s72-c/collapse.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4617316590897782384.post-1187447837192277931</id><published>2010-11-24T10:46:00.000-08:00</published><updated>2010-11-24T10:46:33.079-08:00</updated><title type='text'>Words of WIsdom</title><content type='html'>I am nearing the end of my machine learning coarse and felt it was time to share different quotes my professor has said throughout the quarter. They are both deep and provacative:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. [Said very dramatically] "You can't get around the noise!"&lt;br /&gt;&lt;br /&gt;2. "There are worse things than gradient descent to take on faith."&lt;br /&gt;&lt;br /&gt;3. "Son, you need to avoid gradient descent algorithms."&lt;br /&gt;&lt;br /&gt;4. "There is a good chance today's lecture won't come out well."&lt;br /&gt;&lt;br /&gt;5. "They're sexy because they have the word neural in them."&lt;br /&gt;&lt;br /&gt;6. "Why do math classes take so long?"&lt;br /&gt;&lt;br /&gt;7. "And how do you do that? Don't worry. It's just math, you don't have to implement it."&lt;br /&gt;&lt;br /&gt;8. "It doesn't really exist but that isn't going to stop us from writing it down."&lt;br /&gt;&lt;br /&gt;9. "It's about exactly approximate to it, not approximately approximate to it."&lt;br /&gt;&lt;br /&gt;10. "Now I want to show you a picture. Why? Because I like this picture. It makes me happy."&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4617316590897782384-1187447837192277931?l=everyoneelseisrobots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://everyoneelseisrobots.blogspot.com/feeds/1187447837192277931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://everyoneelseisrobots.blogspot.com/2010/11/words-of-wisdom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default/1187447837192277931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default/1187447837192277931'/><link rel='alternate' type='text/html' href='http://everyoneelseisrobots.blogspot.com/2010/11/words-of-wisdom.html' title='Words of WIsdom'/><author><name>jhero</name><uri>http://www.blogger.com/profile/01703675106693878251</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_s-otSrP7cvA/SbsOshTNORI/AAAAAAAAAAM/AZWLrZ86xPw/S220/delapresse.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4617316590897782384.post-8002115096264777541</id><published>2010-11-19T14:21:00.000-08:00</published><updated>2010-11-19T14:32:28.610-08:00</updated><title type='text'>Android - Live Wallpapers</title><content type='html'>I have decided to waste my time noodling with developing a live wallpaper for Android. Here's where I am at.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. ADK downloaded and working. This process can really only be described as delightful. I cannot believe how easy it was.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. Get the samples. The ADK comes with a number of examples that can be downloaded through eclipse. Window -&gt; Android SDK and AVD Manager -&gt; Available Packages -&gt; Download all that noize. Everything that gets downloaded into wherever you unzipped the ADK tarball. In that directory there should now be a samples directory filled with all kinds of goodies.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3. Run sample live wallpaper. File -&gt; New -&gt; Project -&gt; Android -&gt; Android Project -&gt; Next. Select the "Create project from existing source" radio button. Browse -&gt; &lt;sdk-folder&gt;/samples/android-8/CubeLiveWallpaper. Finish. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4. Right click the project that appears -&gt; Run as -&gt; Android Application.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;5. Under Live Wallpapers on the emulator, the cube examples will now be available. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;6. Collect the cash.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Making my own wallpaper is now as easy as modifying the template that has been provided. The next step is to figure out what the heck I want the wallpaper to do.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4617316590897782384-8002115096264777541?l=everyoneelseisrobots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://everyoneelseisrobots.blogspot.com/feeds/8002115096264777541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://everyoneelseisrobots.blogspot.com/2010/11/android-live-wallpapers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default/8002115096264777541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default/8002115096264777541'/><link rel='alternate' type='text/html' href='http://everyoneelseisrobots.blogspot.com/2010/11/android-live-wallpapers.html' title='Android - Live Wallpapers'/><author><name>jhero</name><uri>http://www.blogger.com/profile/01703675106693878251</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_s-otSrP7cvA/SbsOshTNORI/AAAAAAAAAAM/AZWLrZ86xPw/S220/delapresse.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4617316590897782384.post-2801892824699729683</id><published>2009-12-18T00:54:00.000-08:00</published><updated>2009-12-21T08:44:40.971-08:00</updated><title type='text'>Jai in eclipse</title><content type='html'>I find java's website an atrocity. Here is my approach to get JAI working with eclipse.&lt;br /&gt;&lt;br /&gt;1. Download the platform independent JAI,  &lt;span style="font-weight: bold;"&gt;jai-1_1_3-lib.zip&lt;/span&gt;, by going &lt;a href="https://jai.dev.java.net/"&gt;here&lt;/a&gt;, and clicking on the binary builds link under Downloads.&lt;br /&gt;&lt;br /&gt;2. Open the .zip that was downloaded, open the folder called lib within, and extract both the .jar files(jai_codec and jai_core) there to any convenient location.&lt;br /&gt;&lt;br /&gt;3. Within eclipse right click the java project which needs to use the JAI library and click properties.&lt;br /&gt;&lt;br /&gt;4. Click on the build path option and select the Libraries tab.&lt;br /&gt;&lt;br /&gt;5. Click the Add External Jars... button.&lt;br /&gt;&lt;br /&gt;6. Select jai_codec.jar and press OK. Click the Add External Jars... button again, select jai_core.jar and press OK.&lt;br /&gt;&lt;br /&gt;7. JAI is now accessible from within the project but there will be no included documentation. To get the API documentation, begin by downloading the .zip containing said documentation &lt;a href="http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1-mr-doc.zip"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;8. Under the java project, click the Referenced Libraries pull down.&lt;br /&gt;&lt;br /&gt;9. Right click jai_core.jar and select Properties.&lt;br /&gt;&lt;br /&gt;10. Click the Javadoc Location option.&lt;br /&gt;&lt;br /&gt;11. Click the Javadoc in archive option.&lt;br /&gt;&lt;br /&gt;12. Under Archive path click Browse... Find and select the .zip that was downloaded and press OK.&lt;br /&gt;&lt;br /&gt;13. Repeat steps 9-12 replacing jai_core.jar with jai_codec.jar and using the same javadoc .zip file.&lt;br /&gt;&lt;br /&gt;14. Finished&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4617316590897782384-2801892824699729683?l=everyoneelseisrobots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://everyoneelseisrobots.blogspot.com/feeds/2801892824699729683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://everyoneelseisrobots.blogspot.com/2009/12/jai-in-eclipse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default/2801892824699729683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default/2801892824699729683'/><link rel='alternate' type='text/html' href='http://everyoneelseisrobots.blogspot.com/2009/12/jai-in-eclipse.html' title='Jai in eclipse'/><author><name>jhero</name><uri>http://www.blogger.com/profile/01703675106693878251</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_s-otSrP7cvA/SbsOshTNORI/AAAAAAAAAAM/AZWLrZ86xPw/S220/delapresse.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4617316590897782384.post-5211636854518491300</id><published>2009-12-11T15:19:00.000-08:00</published><updated>2009-12-11T15:28:22.284-08:00</updated><title type='text'>Libtiff in eclipse</title><content type='html'>I recently started on a project that involves reading form .tiff files. The first step is to get the libtiff API up and running. This package contains several functions that handle simple operations, such as opening and reading data from a .tiff file.&lt;br /&gt;&lt;br /&gt;1. I am using Ubuntu so downloading the libtiff library is as simple as:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;     sudo apt-get install libtiff4-dev&lt;/span&gt;&lt;br /&gt;2. This will put the library in /usr/local. The eclipse editor is smart enough to look at this directory so you can call auto-complete on functions from the library but when it comes time to compile, any function calls will not be recognized by the G++ compiler. We need to include the library for the linker.&lt;br /&gt;&lt;br /&gt;3. Go to project-&gt;properties-&gt; .&lt;br /&gt;&lt;br /&gt;4. In the window that opens up, open up the C/C++ Build option.&lt;br /&gt;&lt;br /&gt;5. Click the Settings option that pops down.&lt;br /&gt;&lt;br /&gt;6. Under the Tool Settings tab open up the GCC C++ Linker option.&lt;br /&gt;&lt;br /&gt;7. Click on the Libraries option.&lt;br /&gt;&lt;br /&gt;8. Under the Libraries (-l) pane that opened click the add icon (page with a + sign on it).&lt;br /&gt;&lt;br /&gt;9. Type in tiff and click OK.&lt;br /&gt;&lt;br /&gt;10. Click OK of the properties window.&lt;br /&gt;&lt;br /&gt;11. We can now build without any unrecognized TIFF functions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4617316590897782384-5211636854518491300?l=everyoneelseisrobots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://everyoneelseisrobots.blogspot.com/feeds/5211636854518491300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://everyoneelseisrobots.blogspot.com/2009/12/libtiff-in-eclipse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default/5211636854518491300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default/5211636854518491300'/><link rel='alternate' type='text/html' href='http://everyoneelseisrobots.blogspot.com/2009/12/libtiff-in-eclipse.html' title='Libtiff in eclipse'/><author><name>jhero</name><uri>http://www.blogger.com/profile/01703675106693878251</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_s-otSrP7cvA/SbsOshTNORI/AAAAAAAAAAM/AZWLrZ86xPw/S220/delapresse.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4617316590897782384.post-2546747070200398309</id><published>2009-09-22T11:49:00.000-07:00</published><updated>2009-09-22T11:56:39.054-07:00</updated><title type='text'>Weka in Eclipse</title><content type='html'>I succeeded in opening Weka source as a project in Eclipse today, and I found a much easier way to do so than the method posted on Weka's homepage.&lt;br /&gt;&lt;br /&gt;1. Get Weka from the internets &lt;a href = "http://prdownloads.sourceforge.net/weka/weka-3-7-0.zip"&gt; here &lt;/a&gt;. Extract the contents to a destination of your choosing.&lt;br /&gt;&lt;br /&gt;2. In the extracted folder extract the contents weka-src.jar to yet another destination of your choosing.&lt;br /&gt;&lt;br /&gt;2. Open Eclipse&lt;br /&gt;&lt;br /&gt;3. File -&gt; New -&gt; Project...&lt;br /&gt;&lt;br /&gt;4. Select Java Project from an Existing Ant Buildfile. Hit Next.&lt;br /&gt;&lt;br /&gt;5. Hit the Browse... button next to the Ant Buildfile: text box. Locate the folder to which you extracted the files in weka-src.jar. Select the build.xml file that is there.&lt;br /&gt;&lt;br /&gt;7. Click finish&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4617316590897782384-2546747070200398309?l=everyoneelseisrobots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://everyoneelseisrobots.blogspot.com/feeds/2546747070200398309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://everyoneelseisrobots.blogspot.com/2009/09/weka-in-eclipse.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default/2546747070200398309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default/2546747070200398309'/><link rel='alternate' type='text/html' href='http://everyoneelseisrobots.blogspot.com/2009/09/weka-in-eclipse.html' title='Weka in Eclipse'/><author><name>jhero</name><uri>http://www.blogger.com/profile/01703675106693878251</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_s-otSrP7cvA/SbsOshTNORI/AAAAAAAAAAM/AZWLrZ86xPw/S220/delapresse.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4617316590897782384.post-5196206678966430809</id><published>2009-07-16T11:38:00.000-07:00</published><updated>2009-07-16T11:44:29.403-07:00</updated><title type='text'>Eclipse breakpoint conditions</title><content type='html'>Today was the first time I needed to set multiple conditions on a single break point.&lt;br /&gt;&lt;br /&gt;To start, double click the line at which you wish to have the break point set. Then right click the resulting blue dot and select Breakpoint Properties... Click the box for Enable Condition, and then fill in the desired condition.&lt;br /&gt;&lt;br /&gt;To set a single condition is easy. Given you want to stop the program at the line when the user number is 8:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;       user == 8&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;No semicolon or anything required. To do more than that you treat the condition as one big boolean expression. Lets say I wanted the user number to be 8 but I also wanted the exercise number to be 3:&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;br /&gt;      user == 8 &amp;amp;&amp;amp; exercise == 3&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;It is just like filling in the insides of an if statement.&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4617316590897782384-5196206678966430809?l=everyoneelseisrobots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://everyoneelseisrobots.blogspot.com/feeds/5196206678966430809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://everyoneelseisrobots.blogspot.com/2009/07/eclipse-breakpoint-conditions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default/5196206678966430809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4617316590897782384/posts/default/5196206678966430809'/><link rel='alternate' type='text/html' href='http://everyoneelseisrobots.blogspot.com/2009/07/eclipse-breakpoint-conditions.html' title='Eclipse breakpoint conditions'/><author><name>jhero</name><uri>http://www.blogger.com/profile/01703675106693878251</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_s-otSrP7cvA/SbsOshTNORI/AAAAAAAAAAM/AZWLrZ86xPw/S220/delapresse.jpg'/></author><thr:total>0</thr:total></entry></feed>
