<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by laxman vijay on Medium]]></title>
        <description><![CDATA[Stories by laxman vijay on Medium]]></description>
        <link>https://medium.com/@laxmanvijay24?source=rss-314f9b80c6b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7vFKvxHp5Icbb3dveBrSrg.jpeg</url>
            <title>Stories by laxman vijay on Medium</title>
            <link>https://medium.com/@laxmanvijay24?source=rss-314f9b80c6b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:49:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@laxmanvijay24/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Some of the most successful failed technology experiments]]></title>
            <link>https://medium.com/@laxmanvijay24/some-of-the-most-successful-failed-technology-experiments-5838f404fd0c?source=rss-314f9b80c6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5838f404fd0c</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[jolla]]></category>
            <category><![CDATA[amazon-fire-phone]]></category>
            <category><![CDATA[theranos]]></category>
            <category><![CDATA[failure]]></category>
            <dc:creator><![CDATA[laxman vijay]]></dc:creator>
            <pubDate>Sat, 14 Dec 2019 07:57:26 GMT</pubDate>
            <atom:updated>2023-02-22T07:42:34.704Z</atom:updated>
            <content:encoded><![CDATA[<h4>A curated list of technology experiments that have failed desperately.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hp9xnCv4Vfuak7qj" /><figcaption>Photo by <a href="https://unsplash.com/@esteejanssens?utm_source=medium&amp;utm_medium=referral">Estée Janssens</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There have been lot of technological successes all around the globe and there are equally famous tech failures.Here is a list of tech failures that have had a greater impact in the society.The list is upside down.</p><h3>5. Windows 8:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0nQ2ndSod9cswel6r_RMBA.png" /><figcaption>Windows 8</figcaption></figure><p>Windows 8 was a bold attempt by Microsoft that attempted to remove the iconic start button to embrace touch screens as the future.However the reception was extremely bad that many people went back to windows 7.</p><p>Windows 8 was a half baked version so they had to release a new version as a temporary solution. Windows 8.1 revived the start button and it achieved some success.</p><p>Their latest iteration Windows 10 proved to be the most versatile version of Windows built ever.It is suitable for desktops, tablets and also mobile phones,but they failed in mobile phone market sadly :-(</p><p>Windows 10 is a lesson learnt from Windows 8’s mistakes and it always remains to be one the greatest tech experiments.</p><h3>4.project ARA:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*aW6iNUTWq_V5YG2pujl_Ng.jpeg" /><figcaption>project ara concept device</figcaption></figure><p>Project ARA was a famous modular phone concept that was in the rounds some years ago.It was initiated by Google.It was such a futuristic concept that allowed the phone modules to be swapped with a latest version of the module. Eg: The Camera module can be swapped by the latest version of cameras.Actually this was one of my most anticipated products of that time ;-)</p><p>However the project was not heavily invested by them.The product was likely to be launched in early 2017 with developer kits to be launched in late 2016. Ara had a lot of internal disputes within the company.So they had to discontinue the project without even releasing a product but the project has sowed the seeds for a completely modular future. Just because Google failed doesn’t mean the concept is entirely failure.I hope some other corporation take this concept and revive the legacy the project has left behind.</p><p>This was the same case with Google glass.</p><h3>3. Jolla, Sailfish and Meego OS:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*81_rg6tl9MUYdR1fa3yAGQ.jpeg" /><figcaption>Jolla</figcaption></figure><p>Jolla is a Finnish tech company that developed the Sailfish OS. Jolla was a group of small people working inside Nokia in the Meego project.They left Nokia and formed a new company. Meego OS is a different story.It was developed in collaboration by Nokia and Intel.Both Sailfish and Meego were not successful and they both lacked the capability and versatility of android or ios.</p><p>Though it failed,<a href="https://www.youtube.com/watch?v=_c_BqnR_vAM"> Sailfish ui is the most beautiful ui I have ever seen in a mobile device</a>.It would have really kicked off if the makers marketed the device well.</p><h3>2.Amazon Firephone and Nokia n-gage:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*NTVXwaoCHC7rrzbiCq2DvA.jpeg" /><figcaption>Amazon Firephone</figcaption></figure><p>Smartphone market has been long dominated by giants like Apple,Google and Samsung.If there is one company that can break this domination,it is Amazon.But they failed greatly in mobile phone business.Had they succeeded in this segment of the market, they would have established complete monopoly in technology.This was a major setback to the online retailing company.</p><p>The Firephone by Amazon poor ratings by customers.Though it had all the specifications to match the day’s standards, it was not enough. A breakthrough is needed to break the domination of other companies in the smartphone market.It is not easy for customers to use the product.It is hardware and unlike software, we can’t do a try and buy thing.</p><p>However bad designs are forgivable.Many companies have made several mistakes in their products but come up with a better product over time.If Amazon has learned anything they might come up with a better Firephone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_xkuLsWdsjMFYy_IHdyVtg.jpeg" /><figcaption>Nokia n-gage</figcaption></figure><p>Nokia n-gage is yet another experimental product that attempted to combine a cell phone and a game console.Nokia assumed the device will be a huge success however they were wrong.It was a poor device in all aspects-the standard phone features and the game console features.The poorly placed buttons, the lack of games and many other reasons.Within two years, Nokia stopped its production and declared it as a commercial failure.</p><h3>1.Theranos:</h3><p>Theranos is one of history’s most hated technology companies. Theranos was very ambitious at the early days. They had a really good product idea in mind —they thought of developing a blood test machine that is so small and can fit inside one’s pocket and also provide extremely accurate test results to not one but most of the blood based tests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*ZsyuxX-L69pYVTJ23ZxdVA.jpeg" /><figcaption>Elizabeth Holmes</figcaption></figure><p>Founded by Elizabeth Holmes in 2003.She was an inspiring personality at first however her realities started to show up when the product she expected was not coming up.She thought of a much ambitious device however, the engineers who worked with her knew that it is not possible.</p><p>She used to fire all those people who were against her and her idea.The first iteration of the product was a complete failure.She fired every people who worked in that iteration.</p><p>They started to create the second iteration called as “The Edison”.Two teams were assigned the same job of creating Edison.The team that fails will be fired.However, both failed.The product Edison produced somewhat okay results only 6 times out of more than 300 tests.Due to pressure from investors, they just faked the results.They even installed the machines in hospitals and tested cancer patients.Those results were fatal.</p><p>Get the blood samples,test it with other company’s machines and produce the combined output as if it was tested with Edison.</p><p>The realities were exposed by some of the internal workers and Theranos was further sued and Elizabeth was jailed for 20 years.The company stopped functioning in 2018.</p><p>A much ambitious product however much advanced by today’s standards forms the most embarrassing tech failures of all time.</p><h3>Conclusion:</h3><p>Tech failures are not the end of the world.There have been several failures and resilient companies have come up with some of the most successful products only after learning from failures.In the tech world,failure is okay and is needed for innovation.</p><figure><a href="https://www.buymeacoffee.com/laxmanvijay"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*Dpw8-hNGI2fDmosV4E8DVQ.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5838f404fd0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Impacts of stories in Instagram,Facebook and Whatsapp]]></title>
            <link>https://medium.com/@laxmanvijay24/impacts-of-stories-in-instagram-facebook-and-whatsapp-8fe1ab28a7f4?source=rss-314f9b80c6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fe1ab28a7f4</guid>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[whatsapp]]></category>
            <category><![CDATA[instagram]]></category>
            <category><![CDATA[snapchat]]></category>
            <dc:creator><![CDATA[laxman vijay]]></dc:creator>
            <pubDate>Fri, 13 Dec 2019 14:42:49 GMT</pubDate>
            <atom:updated>2023-02-22T07:44:06.505Z</atom:updated>
            <content:encoded><![CDATA[<h3>Impacts of stories in Instagram,Facebook and WhatsApp</h3><h4>A quick case study about the story feature in major social media platforms and their impacts on the society.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JSoZw1yFQgxGiQBM" /><figcaption>Photo by <a href="https://unsplash.com/@prateekkatyal?utm_source=medium&amp;utm_medium=referral">Prateek Katyal</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>S</strong>tories are the new trend in social media.They tend to be addictive.They show off quickly.They also have much greater impacts in teenagers these days.The following is my opinion regarding the story mode.</p><p>The story feature was introduced by Snapchat but later they got inherited by tech giant Facebook into their family of apps.Called as stories in Facebook and Instagram and as status in Whatsapp.What’s the big deal?</p><p>Stories are the modern smartphone way of socializing.They are quick to post.They don’t have the famous ‘like’ feature of traditional social media.This reduces the pressure in the people’s mind about the quality of the content being posted.Thus proving to be a really fun way to connect with others.</p><p><strong>M</strong>ain features of stories include, they are only visible for 24 hours and there is no like button. This makes them really interesting and fun so that people can easily snap and share for which their friends can comment. This makes up the name Snapchat.</p><p>Though they seem fun and engaging, the real ill-effect is they are insanely addictive.People nowadays want to snap everything and share them as stories. After the acquisition of this feature in Facebook and Instagram, the usage of this feature skyrocketed, leading to millions of young individuals losing their privacy. However the young generation is not concerned about this because it allows instant updates about their life.</p><h4>The Impacts:</h4><p><em>I have seen some folks sharing more than 200 updates a day as stories.From the morning routine to bed they post everything as story but they dare not post 200 photos in a day to Facebook or Instagram. This is insane addiction. It’s like the phone is glued to the hands.</em></p><ul><li>Stories have become a really great time wasters. When a boy uploads a story,he receives some comments regarding those stories and he has to reply to those.Once every comments have been replied, the boy is not satisfied,he wants even more attention and posts another story which is just a random picture captured in his phone and waits for others to comment on his new story to which the boy replies.This cycle goes on.</li><li>These days, several youngsters want to get attention quickly and stories are a really simple way to grab attention.That’s the major reason for their quick success.They do prison the individuals inside their phone inside their stories.</li><li>They just increase the restlessness among the individuals and makes them stare at the social media screens all the time.This is just the case with all of social media however the story feature has greatly increased it.</li></ul><h4>The Reception:</h4><p>Since this is such a young feature, there is a huge hype around this feature. It is also really interesting to observe how this is going to evolve because of the massive reception amongst youngsters.</p><p><em>The regular media posting feature of traditional social media was widely accepted and also is widely criticized. It has proven effects in the psychological behaviour of individuals.It increased the mental pressure to always look beautiful and great in all the photos just to increase the likes.</em></p><p>Story feature has been massively adopted amongst all the youngsters of the world and has proved to be extremely profitable.</p><h4>Conclusion:</h4><p>Stories changed those scenarios and they seem to be the way for the future of social media.How this is going to evolve and how this insane addiction on stories by youngsters is going to affect the future society is a critical scenario to be observed.Thank you.</p><blockquote><strong>Addiction begins with the hope that something “out there” can instantly fill up the emptiness inside.</strong></blockquote><blockquote><em>-Jean Kilbourne</em></blockquote><figure><a href="https://www.buymeacoffee.com/laxmanvijay"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*Dpw8-hNGI2fDmosV4E8DVQ.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fe1ab28a7f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unconventional gadgets and tech 2019]]></title>
            <link>https://medium.com/@laxmanvijay24/unconventional-gadgets-and-tech-2019-652e8f6a9450?source=rss-314f9b80c6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/652e8f6a9450</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[5g]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[self-driving-cars]]></category>
            <category><![CDATA[gadgets]]></category>
            <dc:creator><![CDATA[laxman vijay]]></dc:creator>
            <pubDate>Fri, 12 Jul 2019 14:19:17 GMT</pubDate>
            <atom:updated>2023-02-22T07:43:23.108Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey guys, In this article I decided to have a review about the most unconventional and surprising tech releases that happened in 2019.This is a curated list of stuffs(in no particular order) that attracted me till the first half of 2019.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZKiz-7bb_kddckJx" /><figcaption>Photo by <a href="https://unsplash.com/@oria_hector?utm_source=medium&amp;utm_medium=referral">Héctor Martínez</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Table of Contents:</h3><ul><li>Autonomous drones</li><li>RED Hydrogen one</li><li>Google Stadia</li><li>Autonomous transportation</li><li>Sky Computing</li><li>AI Cameras</li><li>RISC-V</li><li>Fuchsia OS</li><li>Digital Currency</li><li>5G</li></ul><figure><a href="https://www.buymeacoffee.com/laxmanvijay"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*Dpw8-hNGI2fDmosV4E8DVQ.png" /></a></figure><h3>1) Autonomous drones:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*AaVkQQa5DOTy_K7uv4-Z0A.jpeg" /><figcaption>A killer drone</figcaption></figure><p>Drones are fascinating.They are futuristic. UAV(Unmanned aerial vehicle) as it is called is an aircraft that flies without a pilot.Usually the UAV is controlled from a ground station.But recent advancements in technology has made autonomous drones a reality.They are controlled by on-board chips and have a sophisticated navigation and planning system to guide their journey.Their main purposes include cinema, surveillance, capturing places where it is too dangerous for humans to enter.</p><p><a href="https://www.engadget.com/2019/03/27/the-air-force-is-exploring-ai-powered-autonomous-drones/">Major organizations across the globe</a> are upgrading their drones using AI technology to increase the autonomous behavior of these machines.</p><p>There are also dangers in autonomous drones like killer drones which may cause major disasters.Some governments even approve such stuffs to add them to their repertoire of weapons(look <a href="https://economictimes.indiatimes.com/news/defence/government-approves-54-killer-drones-from-israel-for-indian-air-force/articleshow/67971351.cms">here</a> and <a href="https://www.popularmechanics.com/military/weapons/a28325831/russia-drone-swarm/">here</a>).</p><p>There has been a concept of microdrones called by the famed name “slaughterbots”.They are really small that you do not see them coming.If they target a person, they quickly penetrate through the person’s forehead, splash his brain away and come out through the other end.This concept was <a href="https://www.youtube.com/watch?v=9CO6M2HsoIA">visualized first in 2017</a> and be happy as they are not real until now.</p><p>What’s even more fascinating is that these AI drones can form a group of drones(dronenet?) to either do a cooperative work or massive destruction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*sHzIU6eGoGqSf8uL0LKj_g.jpeg" /><figcaption>group of drones</figcaption></figure><h3>2) RED Hydrogen one:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*pBrqK56t5jjDO9CBVUB2xw.jpeg" /><figcaption>red hydrogen one</figcaption></figure><p>The red hydrogen one was all hype.It was the first phone in the market to have such a unique capability of 3D video recording and playback without glasses.It is more of a camera than a phone marketed by the name “holographic display”.</p><p>It is the first phone manufactured by reputed digital imaging company RED.Their attempt was brave to bring something new into the saturated mobile phone industry.But their brave attempt didn’t get the limelight because of their poor execution.The phone was all hype.</p><p>Because of this it was the most expected mobile product in the first half of 2019.The phone fell short of expectations because of little 3D content because most of the time you would be just browsing the internet or texting and there is no use for 3d there and there were issues regarding the 3D videos as blurry.The extra rendering needed to make the 3D view also makes the phone slow while playing games.</p><p>After all it’s a really good attempt to enter into the mobile industry for RED and change the way how we see phones.</p><p>Check more about red hydrogen one <a href="https://www.theverge.com/2018/10/29/18027782/red-hydrogen-one-review-all-hype">here</a> and <a href="https://www.youtube.com/watch?v=bNLgikGu4Yw">this video</a>.</p><h3>3) Google Stadia:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*amBoFo2v-6gBbg0rIR2svw.jpeg" /><figcaption>Google Stadia</figcaption></figure><p>With the advent of cloud technologies, major cloud providers across the globe are giving cloud based services and everyone is moving towards cloud based solutions and products.Google Stadia is such a cloud based gaming service capable of streaming 4k resolution games at 60 fps with support for HDR.This is a yet to be released service and will be released in major countries in this November. The games are accessible via chrome browser, smart television and Chromecast.It is integrated with youtube.Google Stadia is built on linux servers and has used vulkan api for graphics.</p><p>Game makers can integrate their games onto the Stadia platform to reach for the massive amount of gamers out there just by using only the internet connection.Anyone with a working internet can play high end games without worrying about the need for faster cpu or gpu.</p><p><a href="https://en.wikipedia.org/wiki/Google_Stadia#Games">Here is the list of games that is already supported by the platform</a>.</p><p>Similar technology has been developed by competitors including <a href="https://www.inverse.com/article/54091-project-xcloud-price-release-date-beta-microsoft-game-streaming">Xcloud by Microsoft</a>.</p><h3>4) Autonomous transportation:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*h84qTtMLe7H8jhdJG28qHQ.jpeg" /><figcaption>autonomous shuttle</figcaption></figure><p>The concept of autonomous vehicles has been around for years.We are yet to witness the majesty of autonomous transportation.Achieving self driving vehicles to work is tougher than autonomous drones because of the various number of conditions and cases to handle like road conditions etc.Big companies like Google,Tesla,Mercedez Benz are investing in artificial intelligence to achieve self driving cars.</p><p>The concept of self driving cars has been studied extensively and is taught as a <a href="https://selfdrivingcars.mit.edu/">course</a> in universities like MIT.</p><p>There is also the concept of vehicular network called as VANET which aims to connect all the vehicles on road to let them communicate and share useful road information.</p><p>Though most of the companies release some kind of self driving car every now and then, the full fledged self driving revolution is yet to occur.</p><h3>5) Sky computing:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TTnv4U18dssR-_KgBjLDcQ.jpeg" /></figure><blockquote>“The sky is the limit”</blockquote><p>The next big step in cloud computing is the sky computing where several cloud providers come together to provide services to the people for the betterment of the world as a whole rather than individual monopoly.</p><p>A sky computing solution will have near to infinite scalability. Developing a way to join several cloud infrastructures together into one massive cloud would be especially useful to academic researchers who utilize open large-scale compute resources, like the Open Science Grid or the European Grid Infrastructure, together with open source cloud computing platforms such as Nimbus, in order to create their own private clouds with rather than say Amazon’s EC2.</p><p>Learn more about sky computing in <a href="http://ijcsit.com/docs/Volume%206/vol6issue04/ijcsit20150604124.pdf">this paper.</a></p><h3>6) AI camera and computational photography:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*fwYXvqffnAGZdlAgplwerw.jpeg" /></figure><p>The new buzzword in photography is the AI-powered camera.Nowadays with the launch of every new smartphone, we hear this term and even they combine the cameras with dual or triple camera setup.</p><p>What AI has to do with photography?</p><p>Face recognition in images has been used extensively to achieve features like portrait mode.Face recognition has been made possible by Deep learning(though face recognition systems existed before deep learning, they were rule based and were brittle).</p><p>Out of the two cameras in most mobile phone these days,one lens is an IR lens that captures the depth to enable realistic shots.This lens creates a depth map and an IR image by using around 30000 infrared dots.This makes realistic FaceID possible with fool proofing. <a href="https://www.forbes.com/sites/jvchamary/2017/09/16/how-face-id-works-apple-iphone-x/#6a3e623e624d">Read more here.</a></p><p>There are also several other computational improvements in mobile photography this year including night mode, super resolution zooming, object recognition like google lens.</p><p>Computational photography performs lot of computations on the shots that you capture and allows us to achieve studio level perfection using softwares like photoshop or lightroom in the single click of a button.</p><p>Google has also released the new gadget called as google clips which is a smart camera which is smart enough to capture really good pictures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*O4tF3bHs1DEfRWiZ-G-eJw.jpeg" /><figcaption>3d depth sensing</figcaption></figure><h3>7) RISC-V:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*EGkVa-ce5eTkC6tApmE9vA.png" /></figure><p>This is one of the most exciting technological advancements in 2019.</p><p>Reduced instruction set computer(RISC) is a specification for a instruction set architecture(ISA) that allows the computer to perform minimal cycles per instruction(CPI) than the CISC(Complex Instruction Set Architecture) specification.</p><p>RISC-V is an open source implementation of the RISC ISA. The project begun in 2010 at University of California,Berkeley.</p><p>Usually,ISA are very expensive.Designing a computer requires people from various branches like digital electronics,computer science,electrical engineering to come together to form a team.Such a team is very hard to form outside of professional organizations.So companies like Intel charge heavily for their designs.They also patent their design. RISC-V was started to solve this issue.The goal was to create a ISA that is open sourced and everyone can use it.</p><p>The result is a modern computer design that is open source which means you can design your own hardware,yes you!</p><p>Many academies started developing their own design using the RISC-V architecture including Indian Institute of Science Madras(IIT Madras) which developed the <a href="https://shakti.org.in/">Shakti processor </a>based on RISC-V.It is the first microprocessor developed entirely in India.This means more security and control over the hardware.This can be readily applied in Military based applications for enhanced security.</p><p>Though IITM developed the chip in their own labs, some companies started providing chip manufacturing as a service based on risc-v where you design your own chip and order it online just like you order pizza!.<a href="https://www.sifive.com/core-designer">See about SiFive here.</a></p><h3>8) Fuchsia OS:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FWyElOhHtRTTkLSxrcp41Q.png" /><figcaption>fuchsia os logo</figcaption></figure><p>Fuchsia OS is an experimental project initiated and maintained by google currently. Fuchsia is a capability based operating system.It was first revealed to the public when google started a repository called as fuchsia back in 2016.</p><p>The OS is currently under development and not much details have been revealed but according to sources fuchsia is based on a microkernel called as zircon which is intended for embedded systems unlike android and chrome os which were derived from linux kernel.The implication is that google plans on an operating system that manages to run everywhere from cars to servers.This allows developers to create a unified code base.</p><p>This does not mean that android will no more be supported by Google once fuchsia is out because they design fuchsia to coexist with android and chrome os.</p><p>The source code for fuchsia is currently available at github and you can refer the <a href="https://fuchsia.dev/">official website for more information.</a></p><h3>9) Digital Currency:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*prk64-WG-y79vWl3hvbiSw.jpeg" /></figure><p>Digital currency is a type of currency that exist only in digital form unlike physical currency.Like traditional currency these can be used to buy commodity but can also be restricted for use only within a particular platform like online games.</p><p>The concept of digital money is interesting because it introduces a multiple points of control architecture or decentralized nature of control.The concept of cryptocurrency has also become a reality where digital signatures of transactions are chained together to form a <a href="https://en.wikipedia.org/wiki/Blockchain">blockchain.</a></p><p>What this implies for the future is that global economy can be influenced by single unified currency model rather than multiple currencies across multiple countries.This can provide equity to nations and the decentralized nature of these currencies prove to be highly secure and can be trusted.</p><p>But it is not fully accepted by major nations across the globe as of 2019.Improvements are yet to come.</p><h3>10) 5G:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VEO-F67HNdjpGUy54qtkHQ.png" /></figure><p>5G is the next generation of mobile communications which offers extremely high speed and bandwidth.This is the technology that is going to make Internet of Things and edge computing possible with high security features enabled by default.</p><p>But the amount of radiation that spreads across the transceivers is so high that questions us if we really need such high speeds. Even in existing communication systems, over exposure to these radiation can cause harms and may even kill animals.</p><p>Every technology is good until you know the limit.</p><blockquote>“The world is not for humans alone”.</blockquote><p>With this we have come to the conclusion for this article.If you like this article,please do clap and also do share.Thanks for reading!</p><figure><a href="https://www.buymeacoffee.com/laxmanvijay"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*Dpw8-hNGI2fDmosV4E8DVQ.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=652e8f6a9450" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Probability and Statistics explained in the context of deep learning]]></title>
            <link>https://medium.com/data-science/probability-and-statistics-explained-in-the-context-of-deep-learning-ed1509b2eb3f?source=rss-314f9b80c6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed1509b2eb3f</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[laxman vijay]]></dc:creator>
            <pubDate>Sun, 09 Dec 2018 17:45:05 GMT</pubDate>
            <atom:updated>2023-02-22T07:41:47.364Z</atom:updated>
            <content:encoded><![CDATA[<h4>A practical approach to get you up quickly</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KE6-jjwenkcXj0F2" /><figcaption>Photo by <a href="https://unsplash.com/@joshappel?utm_source=medium&amp;utm_medium=referral">Josh Appel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This article is intended for beginners in deep learning who wish to gain knowledge about probability and statistics and also as a reference for practitioners.</p><p>In my previous article, I wrote about the concepts of linear algebra for deep learning in a top down approach (<a href="https://towardsdatascience.com/linear-algebra-explained-in-the-context-of-deep-learning-8fcb8fca1494"> link for the article</a> ) (If you do not have enough idea about linear algebra, please read that first).The same top down approach is used here.Providing the description of use cases first and then the concepts.</p><p>All the example code uses python and numpy.Formulas are provided as images for reuse.</p><h3>Table of contents:</h3><ul><li>Introduction</li><li>Foundations of probability</li><li>Measures of central tendency and variability</li><li>Discrete probability distributions, binomial distribution</li><li>Continuous probability distributions, uniform and normal distributions</li><li>Model Accuracy measurement tools</li><li>Random process and Markov chains</li><li>Probabilistic programming</li><li>External resources</li></ul><figure><a href="https://www.buymeacoffee.com/laxmanvijay"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*Dpw8-hNGI2fDmosV4E8DVQ.png" /></a></figure><p><strong>Introduction:</strong></p><p>Probability is the science of quantifying uncertain things.Most of machine learning and deep learning systems utilize a lot of data to learn about patterns in the data.<em>Whenever data is utilized in a system rather than sole logic, uncertainty grows up and whenever uncertainty grows up, probability becomes relevant.</em></p><p>By introducing probability to a deep learning system, we introduce common sense to the system.Otherwise the system would be very brittle and will not be useful.In deep learning, several models like bayesian models, probabilistic graphical models, hidden markov models are used.They depend entirely on probability concepts.</p><p>Real world data is chaotic.Since deep learning systems utilize real world data, they require a tool to handle the chaoticness.</p><blockquote>It is always practical to use a simple and uncertain system rather than a complex but certain and brittle one.</blockquote><p>The versions of probability and statistics presented here are a highly simplified versions of the actual subjects. Both are very huge and individual research subjects. But the concepts written here is enough for a deep learning aspirant. I have left links for some great resources on these individual subjects in the end of this article.</p><p><strong>Foundations of probability:</strong></p><p>If you start deep learning, the very first example(probably), the tutor provides you is the MNIST handwritten digit recognition task.It is like the hello world of deep learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*nbOBjRK0GqUyXqlNQhEZjw.png" /><figcaption>mnist dataset</figcaption></figure><p>The task is to classify handwritten digits and label them. As I mentioned earlier, the machine learning system which you create to do this task is not accurate or certain.The images are 28*28 pixel images.For example, consider the below neural network for this task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E0TXv0DYkOMjTk4tA14osQ.png" /></figure><p>The input layer is a flattened vector of the size of the input image(28*28=784).It is passed to a layer, where the input vector is multiplied by the weights and added with the bias vector. This layer has 10 neurons. This is the implication that there are 10 digits.Then they go through a softmax activation function.</p><p>After this step they do not output the exact digit but a vector of length 10 with <strong>each element being a probability value for each digit.</strong></p><p>We use argmax to get the index of the probability with the highest value in the output vector.(which is the prediction)</p><p>Having said this, we shall revisit softmax in detail.The point here is that to understand this neural network, we have to understand some basics of probability.</p><p>vector <strong><em>y</em></strong> = [y0, y1, y2, y3, y4, y5, y6, y7, y8 , y9]</p><p>Where is probability in this?</p><p><strong>Sample space</strong>: <strong>The set of all possible values in an experiment</strong>.(In the above example, the input can be from a set of images,thus it is the sample space for the input,similarly, the output prediction can take any value from the digits 0 to 9, thus the digits are the sample space for the output prediction.)</p><p><strong>Random variable</strong>: <strong>A variable that can take different values of the sample space randomly.</strong> In the above neural network, the input vector <strong><em>x</em></strong> is a random variable, the output ‘prediction’ is a random variable, the weights of the neural network is also a random variable(because they are initialized randomly using a probability distribution.)</p><p><strong>Probability distribution:</strong> The probability distribution is a description of <strong>how likely the random variable is to take on different values of the sample space</strong>.In the neural network, the weights are initialized from a probability distribution.The output vector <strong><em>y</em></strong> follows softmax distribution which is also a probability distribution that shows the probability of X taking different digit values.(In general,softmax provides the probability of categorical values)</p><p>In this example, the probability distribution y is discrete(having 10 discrete values.) whereas in some other cases, it may be continuous(the sample space is also continuous).<strong>In a discrete distribution, the probability distribution is provided by a probability mass function(pmf) denoted by P(x=<em>x</em>)</strong>. In the above example, the softmax function is the pmf of the random variable X.</p><p><em>If you see some instance of the output vector y = [0.03,0.5,0.07,0.04,0.06,0.05,0.05,0.06,0.04,0.1]</em></p><p>What’s so special in this? If you look closely they all add up to 1.0 and the argmax shows that index 1 has maximum value of 0.5 indicating the value should be 1.</p><p>This property of adding upto 1.0 is called <strong>normalization</strong>.Also the values must be between 0 and 1. An impossible event is denoted by 0 and a sure event is denoted by 1.</p><p>The same conditions hold true for continuous variables.(We’ll see in a moment.)</p><h4>3 basic definitions:</h4><p>In any probability book or class, you will always learn these 3 basics in the very beginning.They are conditional probability, marginal probability and joint probability.</p><p><strong>Joint Probability</strong>:<em>What is the probability of two events occurring simultaneously .denoted by P(y=y,x=x) or p(y and x)</em>. Example: probability of seeing sun and moon <strong>at the same time</strong> is very low.</p><p><strong>Conditional probability</strong>:<em> What is the probability of some event y happening, given that other event x had happened .denoted by P(y = y | x =x)</em>. since the other event x had occurred, it’s probability can’t be zero. Example: probability of drinking water <strong>after</strong> eating is very high.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/208/1*5gAqHJUfKT7-ENQKQZ8XCg.png" /></figure><p><strong>Marginal probability</strong>:<em>what is the probability of a subset of random variables from a superset of them</em>.Example: probability of people having long hair is the sum of probability of men having long hair and probability of women having long hair.(Here the long hair random variable is kept constant and the gender random variable was changed.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*1UZpYMKwD2VwiEqIUNa4gg.png" /></figure><p><strong>Bayes’ theorem</strong>: It describes the probability of an event based on prior knowledge of other events related to that event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*m6blmKaCxs_R8RlN8FzN4g.png" /></figure><p>Bayes theorem exploits the concept of belief in probability. “I am 40% sure that this event will happen” is not the same as “The dice has 16% chance of showing 6”.The former utilizes belief and is called as <strong>bayesian probability </strong>while the latter depends on previous data and is called as <strong>frequentist probability. </strong><a href="https://en.wikipedia.org/wiki/Bayesian_probability"><strong>Read more</strong></a></p><p>Bayes theorem is also used in one of the most simple machine learning algorithm called the naive bayes algorithm.<a href="https://scikit-learn.org/stable/modules/naive_bayes.html">see sklearn docs.</a></p><h4>Measures of central tendency and variation:</h4><p><strong>Mean</strong>: Mean is the arithmetical average value of the data. <a href="http://lagrange.univ-lyon1.fr/docs/numpy/1.11.0/reference/generated/numpy.mean.html">numpy docs</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*wiABaiw8z4r3cOGNGGObgA.png" /></figure><pre>import numpy as np<br>a = np.array([[1,2,3,4,5,6]])<br>np.mean(a,axis=0)</pre><p><strong>Median</strong>: It is the middle value of the data. <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.median.html">numpy docs</a>.</p><pre>np.median(a,axis=0)</pre><p><strong>Mode</strong>: It is the frequently occuring value of the data. <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mode.html">scipy docs.</a></p><pre>import numpy as np<br>from scipy import stats</pre><pre>stats.mode(a)</pre><p><strong>Expected value</strong>: of some variable X with respect to some distribution P(X=<em>x</em>) is the mean value of X when <em>x is drawn from P.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*jjrgo-vcH-30n54NrLW8wQ.png" /></figure><p>The expectation is equal to the statistical mean of the dataset. <a href="https://stats.stackexchange.com/questions/30365/why-is-expectation-the-same-as-the-arithmetic-mean">look why</a>.</p><p><strong>Variance</strong>: It is the measure of variability in the data from the mean value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/1*K1cbYsg6k9Ju9IQHM4RgzA.png" /></figure><pre>import numpy as np<br>a = np.array([[1,2,3,4,5,6]])</pre><pre>np.var(a)</pre><p>For a random variable, variance is given by,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/215/1*J-ee920O-aSxalhkQeq9XQ.png" /></figure><p>this formula has the same meaning as the above formula.<a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.var.html"> numpy docs.</a></p><p><strong>Standard deviation</strong>:It is the square root of variance. <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.std.html?highlight=standard%20deviation">numpy docs.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*lqvawKrjywT597Pk2tpU4A.png" /></figure><pre>import numpy as np<br>np.std(a)</pre><p>The are also some other measures of variation like range and interquartile distance.<a href="https://www.khanacademy.org/math/probability/data-distributions-a1/summarizing-spread-distributions/a/range-and-interquartile-range-worksheet">look here</a></p><p><strong>Co variance</strong>: It shows how to two variables are linearly related to each other. Numpy outputs a covariance matrix where Cij denotes the covariance between xi and xj. <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.cov.html">numpy docs</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*jLo-MwoFo5QEqj-3HISJXA.png" /></figure><pre>np.cov(a)</pre><h4>Probability distributions:</h4><p>As I mentioned in the beginning,several components of the neural networks are random variables.The values of the random variables are drawn from a probability distribution.In many cases,we use only certain types of probability distributions.Some of them are,</p><p><strong>Binomial distribution: </strong>A binomial random variable is the number of successes in n trials of a random experiment. A random variable x is said to follow binomial distribution when, <strong>the random variable can have only two outcomes(success and failure)</strong>.Naturally , binomial distribution is for discrete random variables. <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.binomial.html">numpy docs.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*N_eErjLHzU33FZKyObmFHQ.png" /></figure><pre>import numpy as np</pre><pre>n=10 # number of trials</pre><pre>p=0.5 # probability of success<br>s=1000 # size<br>np.random.binomial(n,p,s)</pre><p><strong>Continuous distributions</strong>: These are defined for continuous random variables.In continuous distribution, we describe the distribution using probability density functions(pdf) denoted by p(x).</p><p>Their integral is equal to 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/135/1*jb1BRDXsshr-jDcrrFVi4g.png" /></figure><p>If you are not comfortable with integral or differential calculus <a href="https://www.youtube.com/playlist?list=PLZHQObOWTQDMsr9K-rj53DwVRMYO3t5Yr">look here</a>,</p><p><strong>Uniform Distribution</strong>: It is the simplest form of continuous distribution, with every element of the sample space being <strong>equally likely</strong>. <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.uniform.html">numpy docs</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*pxo1UCIv3gGqqwgWa2ynbQ.png" /></figure><pre>import numpy as np<br>np.random.uniform(low=1, high=10,size=100)</pre><p><strong>Normal distribution</strong>: “Order from Chaos”</p><p>It is <strong>the most important of all distributions</strong>.Also known as Gaussian distribution.In the absence of prior knowledge about what form a distribution over the real numbers should take, the normal distribution is a good choice because, it has <strong>high entropy and central limit theorem suggests that sum of several independent random variables is normally distributed</strong>. <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.normal.html">numpy docs</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*vAFwpeLmNzRTi57UgqdCww.png" /></figure><pre>import numpy as np<br>mu = 0<br>sigma = 1<br>np.random.normal(mu,sigma,size=100)</pre><p>In a normal distribution, <strong>if the mean is 0 and the standard deviation is 1, then it is called as standard normal distribution.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56BC2ymzm7lEFsBniTAfqg.jpeg" /><figcaption>the famous bell curve</figcaption></figure><p>In machine learning, you often encounter the word ‘ normalization’ and ‘standardization’. the process which we did above to obtain standard normal distribution is called standardization whereas the process of restricting the range of dataset <strong>values between 0.0 to 1.0 is called as normalization</strong>. However, these terms are often interchanged.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/160/1*5wa5CLsUS3pOvX7yaLnU1g.png" /></figure><pre>from sklearn.preprocessing import StandardScaler<br>import numpy as np</pre><pre>data = np.array([1,2,3,4,5])<br>scaler = StandardScaler()<br>scaler.fit_transform(data)</pre><p>At this stage, we have come across several formulae and definitions. It is very useful if you memorize all these.(Or use this article as a reference! )There are also other important distributions like exponential and poisson distribution. <a href="https://www.analyticsvidhya.com/blog/2017/09/6-probability-distributions-data-science/">refer here</a> for a quick glance.</p><p><strong>Softmax distribution</strong>:In the beginning of this article, I mentioned about softmax. It is a probability distribution kinda.It is best used to represent 1 of N class categorical distribution. It is also the most commonly used distributions in deep learning.It is very convenient to differentiate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*8ds6Uph_cV7QJrcmGkFRRg.png" /></figure><pre>def softmax(x):<br>    e_x = np.exp(x - np.max(x))<br>    return e_x / e_x.sum(axis=0)</pre><pre>##the np.max(x) is used just for numerical stability.it is Not ##formula</pre><h4>Model accuracy measurement tools:</h4><p>In order to measure the performance of a deep learning model, we use several concepts. Knowing these concepts is very important.They are called as metrics.In the above MNIST neural network, if the neural network predicted 95 of the 100 input images correctly, then it’s accuracy is said to be 95% and so on.(This part uses sklearn python library for examples.)</p><p>You can understand accuracy intuitively, but the theory is,It is <strong>the proposition of correct results in the total obtained results.</strong></p><p><strong>Accuracy</strong> is a very simple measurement and it may provide wrong insights sometimes.In some cases, higher accuracy doesn’t mean our model is working correctly.To clarify this, first look at the following definitions,</p><ul><li><strong>True Positives (TP):</strong> number of positive examples, labeled as such.</li><li><strong>False Positives (FP):</strong> number of negative examples, labeled as positive.</li><li><strong>True Negatives (TN):</strong> number of negative examples, labeled as such.</li><li><strong>False Negatives (FN):</strong> number of positive examples, labeled as negative.</li></ul><pre>Accuracy = (TP + TN)/(TP + FP + TN + FN)</pre><p><strong>Confusion matrix</strong>: It is a matrix containing the TP, FP,TN and FN values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*BTB9weIUfSsSRy5kvh_-uA.png" /><figcaption>confusion matrix</figcaption></figure><pre>from sklearn.metrics import confusion_matrix<br>y_true = [2, 0, 2, 2, 0, 1]<br>y_pred = [0, 0, 2, 2, 0, 2]<br>confusion_matrix(y_true, y_pred)</pre><p>Now, Imagine a binary classifier, that outputs 1 or 0. If everything was proper and the model was not biased, it says the actual accuracy.But if we tweak the model to say 0 all the time(or 1 all the time)(now the prediction power of the model is None).but still we would get a high accuracy! consider the table.</p><pre>                 Classified positive  Classified negative <br>Positive class         0 (TP)            25 (FN)<br>Negative class         0 (FP)           125 (TN)</pre><p>This table is obvious that the model is very bad(because all the positive class examples are incorrectly classified) but the accuracy is 83% !!</p><p><strong>Precision and recall:</strong> So we go for two other metrics-precision and recall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/212/1*1QootIgSoHB57vpTo4dCgw.png" /></figure><p><strong>Precision</strong> tells you <strong>how many of the selected objects were correct</strong></p><p>Recall tells you <strong>how many correct objects were selected.</strong></p><p>In the above example, both precision and recall are 0.0 This indicates that the model is extremely poor.</p><p><strong>F1 score</strong>: It is the harmonic average of precision and recall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*FawqqMiEn2LWF-t0DiIzdQ.png" /></figure><p><strong>F1 score of 0 means worst and 1 means best.</strong>By using this, we can resolve the chaotic behaviour of accuracy metric.</p><p>Sklearn has a classification_report function that you can invoke to get the precision, recall, f1 score.</p><pre><strong>&gt;&gt;&gt; from</strong> <strong>sklearn.metrics</strong> <strong>import</strong> classification_report<br><strong>&gt;&gt;&gt; </strong>y_true = [0, 1, 2, 2, 2]<br><strong>&gt;&gt;&gt; </strong>y_pred = [0, 0, 2, 2, 1]<br><strong>&gt;&gt;&gt; </strong>target_names = [&#39;class 0&#39;, &#39;class 1&#39;, &#39;class 2&#39;]<br><strong>&gt;&gt;&gt; </strong>print(classification_report(y_true, y_pred, target_names=target_names))<br>              precision    recall  f1-score   support<br><br>     class 0       0.50      1.00      0.67         1<br>     class 1       0.00      0.00      0.00         1<br>     class 2       1.00      0.67      0.80         3<br><br>   micro avg       0.60      0.60      0.60         5<br>   macro avg       0.50      0.56      0.49         5<br>weighted avg       0.70      0.60      0.61         5</pre><p><strong>Mean Absolute error</strong>: It is the average of difference between the original and predicted values.</p><p><strong>Mean squared error</strong>: it is the average of square of difference between the original and predicted values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*-91IOORgXEZ0bMV1W-TMJw.png" /></figure><pre><strong>from</strong> <strong>sklearn.metrics</strong> <strong>import</strong> mean_squared_error<br>y_true = [3, -0.5, 2, 7]<br>y_pred = [2.5, 0.0, 2, 8]<br>mean_squared_error(y_true, y_pred)</pre><p>Mean squared error is widely used because it is easier to compute the gradients.</p><p><strong>Receiver operating characteristic(ROC)</strong> <strong>curve</strong>:The roc curve is a <strong>graph showing the performance of classification models</strong> like our digit recognizer example.It has two parameters — True Positive rate(TPR) and False Positive rate(FPR).<strong>TPR is the same as recall and is also called as sensitivity. FPR is also 1-specificity.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/198/1*9Badas5-nF2pRORb0M2KpQ.png" /></figure><p>These two are plotted against each other to obtain the following graph(several values of plots are obtained by changing the classification threshold and predicting the results again repeatedly.).The area under this ROC curve is a measure of the accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*_eito-Nu8l7wfbvan-U3RQ.png" /></figure><p><strong>Interpretation of area under the curve(AUC)</strong>:When AUC=1.0 the model is best.When AUC=0.5 the model is worst.But if AUC=0.0 then the model is reciprocating the results.(Like classifying 1&#39;s as 0’s and 0’s as 1&#39;s).</p><pre><strong>import</strong> <strong>numpy</strong> <strong>as</strong> <strong>np</strong><br><strong>from</strong> <strong>sklearn.metrics</strong> <strong>import</strong> roc_auc_score<br>y_true = np.array([0, 0, 1, 1])<br>y_scores = np.array([0.1, 0.4, 0.35, 0.8])<br>roc_auc_score(y_true, y_scores)</pre><p>More information:<a href="https://stats.stackexchange.com/a/132832/229583">look here</a> and <a href="https://towardsdatascience.com/understanding-auc-roc-curve-68b2303cc9c5">here</a>.</p><p>Calculation of AUC using trapezoidal rule(<a href="https://scikit-learn.org/stable/modules/generated/sklearn.metrics.auc.html#sklearn.metrics.auc">sklearn uses this rule</a>):<a href="https://www.dummies.com/education/math/calculus/how-to-approximate-area-with-the-trapezoid-rule/">look here</a></p><h4>Random process, markov chains and graphical models:</h4><p>A random process is a <strong>collection of random variables that are indexed by some values</strong>.Intuitively, a random process or stochastic process is a mathematical model for a phenomenon that proceeds in an unpredictable manner to the observer.The outcome of the next event is <strong>not dependent</strong> on the outcome of the current event.Example, a series of coin tosses.</p><p>If the index set by which the random variables are indexed in a random process are from a discrete natural numbers, then the process is called as discrete time random process or <strong>random sequence</strong>.If the index set lies in real number line, then the process is <strong>continuous time random process</strong>.If the index set lies in cartesian plane or some higher dimensional euclidean planes, then the process is said to be <strong>random field</strong>.</p><p>Random processes are a really interesting part of probability.They are used to model time related stuffs like weather forecast, stock market, natural phenomenons,etc.There are several random processes.Here we focus on markov chains.For a more elaborate material, refer <a href="https://en.wikipedia.org/wiki/Stochastic_process">wikipedia</a>.</p><p><strong>Markov chains</strong>:</p><p>A markov chain is a <strong>probabilistic automaton</strong>.It has states.It describes a sequence of events in which <strong>probability of transitioning from one state to another depends only on previous event</strong>. <a href="http://setosa.io/ev/markov-chains/">Here</a> is an excellent visual explanation of markov chains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*Y-fSMWMHJc0LhuLl1dC1KQ.png" /></figure><p>This is a markov chain that describes the weather condition.The values represent the probability of transition from one state to another.</p><p>Markov chains are used for simple systems like next word prediction, language generation, sound generation and many other systems.</p><p>The extension of markov chains known as hidden markov models are used in <strong>speech recognition systems.</strong></p><p>I have stopped random processes till here and planned for an extensive article on them because of the excessive length of the concept.</p><h4>Probabilistic programming:</h4><p>A new paradigm of programming has evolved known as probabilistic programming.These languages or libraries help to model bayesian style machine learning.<strong>It is an exciting research field which is supported by both the AI community and the software engineering community</strong>.These languages readily support probabilistic functions and models like gaussian models,markov models, etc.</p><p>One such library for writing probabilistic programs was created by Uber last year known as <a href="http://pyro.ai/">pyro</a> which supports python with <a href="https://pytorch.org/">pytorch</a>(a deep learning library) as the backend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*b7rQHwgyl4qnvK-yWPZmoQ.png" /><figcaption>pyro library logo</figcaption></figure><p>If you liked this article about probability and statistics for deep learning, leave claps for the article. The content provided here are intended for beginners in deep learning and can also be used as reference material by deep learning practitioners. <em>But for beginners, I would also suggest several other awesome external resources, to reinforce their knowledge in the interesting field of probability.(</em><strong><em>Though the knowledge that you gained through this article is enough for proceeding in deep learning</em></strong><em>)</em></p><h4>External Resources:</h4><p>Awesome free course on deep learning and machine learning:<a href="https://www.fast.ai/"> fast.ai</a></p><p>Intuitive explanation of calculus: <a href="https://www.youtube.com/playlist?list=PLZHQObOWTQDMsr9K-rj53DwVRMYO3t5Yr">3blue1brown</a></p><p>Best book on deep learning: <a href="https://www.deeplearningbook.org/">the deep learning book</a></p><p>Random process: <a href="https://www.webdepot.umontreal.ca/Usagers/perronf/MonDepotPublic/mat2717/ross.pdf">Sheldon M. Ross</a></p><p>Statistics: A<a href="https://www.amazon.com/All-Statistics-Statistical-Inference-Springer/dp/0387402721/ref=as_li_ss_tl?ie=UTF8&amp;qid=1522971725&amp;sr=8-1&amp;keywords=all+of+statistics&amp;linkCode=sl1&amp;tag=inspiredalgor-20&amp;linkId=74f4d040f4106eebab7c6980f15be1a2">ll of statistics by Larry Wasserman</a></p><p>Probability theory: <a href="https://www.researchgate.net/profile/William_Balthes/post/Stronger_limit_Theorems_then_the_strong_law_of_large_numbers/attachment/59d6256e6cda7b8083a21880/AS%3A445697653776384%401483274010393/download/William+Feller-An+Introduction+To+Probability+Theory+And+Its+Applications.+Vol+II.pdf">William Feller</a></p><figure><a href="https://www.buymeacoffee.com/laxmanvijay"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*Dpw8-hNGI2fDmosV4E8DVQ.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed1509b2eb3f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/probability-and-statistics-explained-in-the-context-of-deep-learning-ed1509b2eb3f">Probability and Statistics explained in the context of deep learning</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linear Algebra explained in the context of deep learning]]></title>
            <link>https://medium.com/data-science/linear-algebra-explained-in-the-context-of-deep-learning-8fcb8fca1494?source=rss-314f9b80c6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fcb8fca1494</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[linear-algebra]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[laxman vijay]]></dc:creator>
            <pubDate>Tue, 04 Dec 2018 16:38:37 GMT</pubDate>
            <atom:updated>2023-02-22T07:39:49.309Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RVWh4RPCnEP17EML" /><figcaption>Photo by <a href="https://unsplash.com/@charlesdeluvio?utm_source=medium&amp;utm_medium=referral">Charles Deluvio 🇵🇭🇨🇦</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this article, I have used top down manner to explain linear algebra for deep learning.First providing the applications and uses and then drilling down to provide the concepts.</p><p>Definition of linear algebra in wikipedia:</p><blockquote><strong>Linear algebra</strong> is the branch of mathematics concerning <strong>linear</strong> equations and <strong>linear</strong> functions and their representations through matrices and vector spaces.</blockquote><h3>Table of contents:</h3><ul><li>Introduction.</li><li>Mathematical perspective of Vectors and matrices.</li><li>Types of matrices.</li><li>Decomposition of matrices.</li><li>Norms.</li><li>Vectorization.</li><li>Broadcasting.</li><li>External resources.</li></ul><figure><a href="https://www.buymeacoffee.com/laxmanvijay"><img alt="" src="https://cdn-images-1.medium.com/max/170/1*Dpw8-hNGI2fDmosV4E8DVQ.png" /></a><figcaption><a href="https://www.buymeacoffee.com/laxmanvijay">Laxman Vijay (buymeacoffee.com)</a></figcaption></figure><p><strong>Introduction:</strong></p><p>If you start to learn deep learning , the first thing you will be exposed to is the feed forward neural network, which is the most simple and also highly useful network in deep learning. Under the hood, the feed forward neural network is just a composite function, that multiplies some matrices and vectors together.</p><p>It is not that vectors and matrices are the only way to do these operations but they become highly efficient if you do so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*pI5c92ACX6Burmzet8uQYQ.png" /></figure><p>The image above shows a simple feed forward neural network that propagates information forwards.</p><p>The image is a beautiful representation of the neural network, but how a computer can understand this. In a computer, the layers of the neural network are represented as vectors. Consider the input layer as X and the hidden layer as H. The output layer is not concerned for now.(The computation process of feed forward neural networks is not concerned here.)</p><p>So, it can be represented as a vectors and matrices as,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*xmWCqN_VbKQXJg8veEpXug.png" /></figure><p>The above image shows the operations needed to compute the output for the first and the only hidden layer of the above neural network(the computation for the output layer is not shown). Let’s break it down.</p><p>Every single column of the network are vectors.Vectors are dynamic arrays that are a collection of data(or features).In the current neural network, the vector ‘<strong>x</strong>’ holds the input.It is not mandatory to represent inputs as vectors but if you do so, they become increasingly <strong>convenient to perform operations in parallel</strong>.</p><p>Deep learning and in specific, neural networks are computationally expensive, so they require this nice trick to make them compute faster.</p><p><strong>It’s called vectorization. They make computations extremely faster.This is one of the main reasons </strong><a href="https://www.analyticsvidhya.com/blog/2017/05/gpus-necessary-for-deep-learning/"><strong><em>why GPUs are required for deep learning</em></strong></a><strong>, as they are specialized in vectorized operations like matrix multiplication.(we’ll see this in the end in depth).</strong></p><p>The hidden layer H’s output is calculated by performing <strong>H = f( <em>W</em>.x + b ).</strong></p><p>Here W is called as the Weight matrix, b is called bias and f is the activation function.(this article does not explain about feed forward neural networks, if you need a primer about the concept of FFNN,<a href="https://towardsdatascience.com/deep-learning-feedforward-neural-network-26a6705dbdc7"> look here</a>.)</p><p>Let’s breakdown the equation,</p><p>the first component is <strong><em>W</em></strong>.<strong><em>x</em></strong> ; this is a <strong>matrix-vector product,</strong> because W is a matrix and <strong><em>x</em> </strong>is a vector.Before getting into multiplying these, let’s get some idea about the notations: <em>usually vectors are denoted by small bold italic letters(like </em><strong><em>x</em></strong><em>) and matrices are denoted by capital bold italic letters(like </em><strong><em>X</em></strong><em>).If the letter is capital and bold but not italic then it is a tensor(like </em><strong>X</strong><em>).</em></p><p><strong>In a computer science perspective:</strong></p><p>Scalar: A single number.</p><p>Vector : A list of values.(rank 1 tensor)</p><p>Matrix: A two dimensional list of values.(rank 2 tensor)</p><p>Tensor: A multi dimensional matrix with rank n.</p><p><strong>Drilling down:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*h44UirtotiOItVLZGBI6Nw.png" /></figure><p><strong>In a mathematical perspective:</strong></p><p><strong>Vector:</strong></p><p><strong>A vector is a quantity that has both magnitude and direction.It is an entity that exists in space</strong>, it’s existence is denoted by <strong><em>x∈ ℝ²</em></strong><em>if it is a 2 dimensional vector that exists in real space.(Each element denotes a coordinate along a different axis.)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*OGCWkaenQbXJ7vgWOLgAJw.png" /><figcaption>red and blue color vectors are the basis vectors.</figcaption></figure><p>All vectors in 2D space can be obtained by linear combination of the two vectors called<strong> basis vectors</strong>.( denoted by i and j )(In general, a vector in N dimensions can be represented by N basis vectors.)They are <strong>unit normal vectors because their magnitude is one and they are perpendicular to each other</strong>. One of these two vectors can’t be represented by the other vector. So they are called as <strong>linearly independent vectors</strong>. (If any vector can’t be obtained by a linear combination of a set of vectors, then the vector is linearly independent from that set). All the set of points in the 2D space that can be obtained by linear combination of these two vectors are said to be the <strong>span</strong> of these vectors.If a vector is represented by a linear combination(addition, multiplication) of set of other vectors, then it is <strong>linearly dependent</strong> on that set of vectors.(there is no use in adding this new vector to the existing set.)</p><p>Any two vectors can be added together.They can be multiplied together.Their multiplication is of two types, dot product and cross product.<a href="https://ltcconline.net/greenl/courses/107/vectors/dotcros.htm">Refer here.</a></p><p><strong>Matrix:</strong></p><p>A matrix is a 2D array of numbers. They represent <strong>transformations</strong>. Each column of a 2 * 2 matrix denotes each of the 2 basis vectors after the 2D space is applied with that transformation.Their space representation is <strong><em>W ∈ ℝ³*² having 3 rows and 2 columns.</em></strong></p><p><strong>A matrix vector product is called transformation of that vector, while a matrix matrix product is called as composition of transformations.</strong></p><p>There is only one matrix which does not does any transformation to the vector.It is the identity matrix(<strong><em>I</em></strong>). <strong><em>The columns of</em></strong> <strong><em>I represent the basis vectors.</em></strong></p><p><strong>Determinant</strong> of the matrix <strong><em>A, </em></strong>denoted by det(<strong><em>A</em></strong>)the the scaling factor of the linear transformation described by the matrix.</p><p><strong>Why is a mathematical perspective important to deep learning researchers? Because they help us understand the basic design concepts of fundamental objects</strong>.They also help in crafting creative solutions to a deep learning problems.<em>But no worries, there are a lot of languages and packages that do these implementations for us. But it’s also good to know their implementations.</em></p><p>One such library is numpy for python programming language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*zE4NFdMVbMCA0CGujquaeA.png" /></figure><p>There are lots of resources for learning numpy.(which is very important for learning deep learning, if you use python.) <a href="https://docs.scipy.org/doc/numpy-1.15.0/user/basics.html">look here</a>.</p><p><em>Here, np.array creates a numpy array.</em></p><p><em>np.random is a package that contains methods for random number generation.</em></p><p><em>the dot method is to compute product between matrix.</em></p><p><em>We can change the shape of the numpy array and also check it.</em></p><p><em>here you can see that, the product of W.x is a vector and it is added with b, which is a scalar. This automatically expands b as transpose([1,1]). </em><strong><em>This implicit copying of b to several locations is called as broadcasting. (we’ll see in depth in a moment.)</em></strong></p><p><em>Did you notice the word transpose: </em><strong><em>The transpose of a matrix is a mirror image of the matrix across the diagonal line(from top left to the bottom right of the matrix.)</em></strong></p><pre>## numpy code for transpose<br>import numpy as np<br>A = np.array([[1,2],<br>              [3,4],<br>              [5,6]])<br>B = np.transpose(A) <br>##or<br>B = A.T</pre><p><strong>Types of matrices:</strong></p><p><strong>Diagonal matrix</strong>: All the elements are zero except the main diagonal elements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/235/1*niNtr3lEec8Ng56E74NAXw.png" /><figcaption>diagonal matrix</figcaption></figure><p><strong>Identity matrix</strong>: a diagonal matrix with diagonal values as 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*h2En9F9dKvpd7PW0xTxMTA.png" /><figcaption>identity matrix</figcaption></figure><pre>## numpy code to create identity matrix<br>import numpy as np<br>a = np.eye(4)</pre><p><strong>Symmetric matrix</strong>: a matrix which is equal to it’s transpose. A = transpose(A)</p><p><strong>Singular matrix</strong>: a matrix whose determinant is zero and columns are linearly dependent.Their rank is less than the number of rows or columns of the matrix.</p><p><strong>Decomposition of matrices:</strong></p><p>a <strong>matrix decomposition</strong> or <strong>matrix factorization</strong> is a factorization of a matrix into a product of matrices. There are many different matrix decompositions; each finds use among a particular class of problems.One of the most widely used kinds of matrix decomposition is called <strong>eigen decomposition</strong>, in which we decompose a matrix into a set of eigenvectors and eigenvalues.</p><p>An Eigen vector of a square matrix <strong><em>A </em></strong>is a non zero vector <strong><em>v</em></strong> such that multiplication by <strong><em>A</em></strong> alters only the scale of <strong><em>v.</em></strong></p><p><strong><em>A . v</em></strong> = lambda . <strong><em>v</em></strong></p><p>here <strong><em>v</em></strong> is the eigen vector and lambda is the eigen value.</p><pre>## numpy program to find eigen vectors.<br><br>from numpy import array<br>from numpy.linalg import eig<br># define matrix<br>A = array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])<br>print(A)<br># calculate eigendecomposition<br>values, vectors = eig(A)<br>print(values)<br>print(vectors)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z_yGwdmC993Zs2iUjMcAQA.png" /></figure><p>Eigen decomposition is very useful in machine learning. It is particularly useful for concepts like dimensionality reduction.</p><p>For more about eigen decomposition, refer deep learning book, <a href="http://www.deeplearningbook.org/contents/linear_algebra.html">chapter 2</a></p><p>There are also several other matrix decomposition techniques used in deep learning. <a href="https://heartbeat.fritz.ai/applications-of-matrix-decompositions-for-machine-learning-f1986d03571a">Look here.</a></p><p><strong>Norms:</strong></p><p><strong>Overfitting and underfitting:</strong></p><p><strong>W</strong>hen you attend a deep learning lecture, you often hear the term overfitting and underfitting.These terms describe the state of the accuracy of the deep learning model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_7OPgojau8hkiPUiHoGK_w.png" /><figcaption>This image is the best explanation of overfitting and underfitting.</figcaption></figure><p>Overfitting refers to a model that learns the training data too well.It literally mugged up the training data.In overfit models, the training accuracy is very high and validation accuracy is very low.</p><p>Underfit models have not managed to learn the training data.In underfit models, the training and validation accuracy are both very low.</p><p>Both overfitting and underfitting can lead to poor model performance. But by far the most common problem in applied machine learning is overfitting.</p><p>To reduce overfitting, we have to use a technique called <strong>Regularization.<em> It prevents mugging up the training data, so as to avoid the risk of overfitting.</em></strong></p><p>It is the <strong>most important responsibility</strong> of the deep learning engineer to create a model which fits generally to the input. There are several methods of regularization.Most notably the <strong>L1 regularization( Lasso ) and L2 regularization( Ridge ).</strong></p><p>The details of these are not provided, but to understand these you must know what is a norm.</p><p><strong>Norm:</strong></p><p>Norm is the size of the vector.The general formula for norm of a vector <strong><em>x </em></strong>is given by,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/285/1*51aoPMb2DjeeuLCBQ0qT2Q.png" /></figure><p>the <strong>L² norm</strong> with p=2 is called the euclidean norm because it is the euclidean distance between origin and <strong><em>x.</em></strong></p><p>The <strong>L¹ norm</strong> is simply the sum of all the elements of the vector.It is used in machine learning when the system requires much more precision.To differentiate clearly between a zero and a non zero element. The L¹ norm is also known as <strong>Manhattan norm</strong>.</p><p>There is also <strong>max norm,</strong> which is the absolute value of the element with the largest magnitude.</p><p>The L² norm equivalent for a matrix is the <strong>frobenius norm.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/197/1*OTD-K5jjCklutYc-c-dkQQ.png" /><figcaption>frobenius norm.</figcaption></figure><p>Not only in regularization, norms are used also in optimization procedures.</p><p>Ok, now after all these concepts and theory, we have come to cover the most important part required for deep learning.They are vectorization and broadcasting.</p><h3><strong>Vectorization:</strong></h3><p>It is the trick of reducing execution of loops and make process execute in parallel by providing data as vectors.</p><p>Many CPUs have “vector” or “SIMD”(Single Instruction Multiple Data) instruction sets which apply the same operation simultaneously to two, four, or more pieces of data. SIMD became popular on general-purpose CPUs in the early 1990s.</p><p>For more detailed information, look for <a href="https://en.wikipedia.org/wiki/Flynn%27s_taxonomy">Flynn’s classification.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*23cQOr3db-kngEFo8l9z1w.png" /></figure><p>Vectorization is the process of rewriting a loop so that instead of processing a single element of an array N times, it processes (say) 4 elements of the array simultaneously N/4 times.</p><p>Numpy has heavily implemented vectorization into their algorithms. Here is an official note from numpy.</p><blockquote>Vectorization describes the absence of any explicit looping, indexing, etc., in the code — these things are taking place, of course, just “behind the scenes” in optimized, pre-compiled C code. Vectorized code has many advantages, among which are:</blockquote><blockquote>vectorized code is more concise and easier to read</blockquote><blockquote>fewer lines of code generally means fewer bugs</blockquote><blockquote>the code more closely resembles standard mathematical notation (making it easier, typically, to correctly code mathematical constructs)</blockquote><blockquote>vectorization results in more “Pythonic” code. Without vectorization, our code would be littered with inefficient and difficult to read for loops.</blockquote><p><strong>Code example:</strong></p><pre>## to add two arrays together.</pre><pre>## consider two basic python lists.<br>a = [1,2,3,4,5]<br>b = [2,3,4,5,6]<br>c = []</pre><pre>## without vectorization.</pre><pre>for i in range(len(a)): <br>    c.append(a[i]+b[i])</pre><pre>## using vectorization.</pre><pre>a = np.array([1,2,3,4,5])<br>b = np.array([2,3,4,5,6])<br>c = a+b</pre><p>The above code example is an overly simplified example of vectorization.And <strong>vectorization really comes into picture when the input data becomes large.</strong></p><p>For more details about vectorization, <a href="https://en.wikipedia.org/wiki/Array_programming">look here.</a></p><h3>Broadcasting:</h3><p>The next important concept is broadcasting. Sir Jeremy Howard in one of his machine learning lectures, told that broadcasting is probably the most important tool and a skill to have for a machine learning programmer.</p><p>From the <a href="https://docs.scipy.org/doc/numpy-1.10.0/user/basics.broadcasting.html">Numpy Documentation</a>:</p><pre>The term broadcasting describes how numpy treats arrays with <br>different shapes during arithmetic operations. Subject to certain <br>constraints, the smaller array is “broadcast” across the larger <br>array so that they have compatible shapes. Broadcasting provides a <br>means of vectorizing array operations so that looping occurs in C<br>instead of Python. It does this without making needless copies of <br>data and usually leads to efficient algorithm implementations.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*AbfEjGON0C52GcwQ18bvTw.jpeg" /></figure><p>code example:</p><pre><strong> </strong>a = np.array([1.0, 2.0, 3.0])<br><strong> </strong>b = 2.0<br> a * b<br> array([ 2.,  4.,  6.])</pre><pre>this is similar to</pre><pre>a = np.array([1.0, 2.0, 3.0])<br>b = np.array([2.0, 2.0, 2.0])<br>a * b<br>array([ 2.,  4.,  6.])</pre><p>The array b is expanded so that arithmetic operation can be applied.</p><p>Broadcasting is not a new concept. It is a relative old tool that dates back to 50’s. In his paper <a href="http://www.eecg.toronto.edu/~jzhu/csc326/readings/iverson.pdf">“<strong>Notation as a tool of thought</strong>”</a>, <a href="https://en.wikipedia.org/wiki/Kenneth_E._Iverson">Kenneth Iverson</a> describes several tools for mathematical usage that allows us to think in new perspectives. Broadcasting was first mentioned by him not as a computer algorithm but as a mathematical procedure.He implemented many of these tools in a software called <a href="https://en.wikipedia.org/wiki/APL_(programming_language)">APL</a>.</p><p>His son later extended his ideas and went on to create another software called <a href="http://www.jsoftware.com/http://www.jsoftware.com/">J software</a>. This gesture means that with software what we get is over 50 years of deep research and using these we can implement very complex mathematical functions in a small piece of code.</p><p>It is also very handy that these researches have also found their way into languages we use today like python and numpy.</p><p><em>So bear in mind that these are not very simple ideas that came overnight. These are like the fundamental ways to think of mathematics and it’s implementation in software. (The above content is extracted from fast.ai machine learning course.)</em></p><p>for more details about numpy version of broadcasting, <a href="https://docs.scipy.org/doc/numpy-1.13.0/user/basics.broadcasting.html">look here</a>.</p><p>Ok, that’s enough, this article introduced a lot of new words and terminologies to the beginner.But I have also skipped several in depth concepts of vector algebra.This can be overwhelming but still I made the concepts as practical as possible,(feedbacks welcome!).</p><p>As I have just started in deep learning stuff, I decided to help others who have started, by providing them intuitive articles about deep learning terminologies and stuffs. So if you feel any mistake in these articles, please post it in comments.</p><p><strong>Below are some of the useful resources:</strong></p><p>In depth intuitive linear algebra videos: <a href="https://www.youtube.com/playlist?list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab">3blue1brown</a></p><p>e book: <a href="https://www.math.ucdavis.edu/~linear/linear-guest.pdf">https://www.math.ucdavis.edu/~linear/linear-guest.pdf</a></p><p>Best site to learn deep learning: <a href="https://www.fast.ai/">fast.ai</a></p><p>A complete learning book: <a href="https://www.deeplearningbook.org/">deep learning book by Ian Goodfellow.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/170/1*Dpw8-hNGI2fDmosV4E8DVQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fcb8fca1494" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/linear-algebra-explained-in-the-context-of-deep-learning-8fcb8fca1494">Linear Algebra explained in the context of deep learning</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Education, Then and Now.]]></title>
            <link>https://medium.com/@laxmanvijay24/education-then-and-now-e0abde1fb217?source=rss-314f9b80c6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0abde1fb217</guid>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[laxman vijay]]></dc:creator>
            <pubDate>Wed, 07 Mar 2018 16:47:08 GMT</pubDate>
            <atom:updated>2018-03-07T16:47:08.379Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello guys,</p><p>Since the dawn of mankind, humans have constantly kept learning new things. They also teach others what they have learnt.</p><p>This culture has been adopted for several thousands of years.</p><p>As days passed by, and humans became more civilized, they became more disciplined. This ignited the idea of schools. The gurus of the schools used to teach their disciples, their experience and their knowledge.</p><p>In India, during those days, the schools were available only for the chatriyas and brahmins. This made children of other castes, move away from learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QyvYUDX1lBp3ATJt." /><figcaption>Photo by <a href="https://unsplash.com/@aaronburden?utm_source=medium&amp;utm_medium=referral">Aaron Burden</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Gone are those days. Now in this technologically advances society, everyone can learn and to say in better words, everyone <strong>should</strong> study.</h4><h4><strong>Education in the 21st century:</strong></h4><p>Now in this era, education is not seen as a service, in fact education has become one of the most rewarding businesses in India!</p><p>The talent of a kid is judged by his marks and not on his abilities. This may create equality but also prevents uniqueness of a kid from getting the limelight.</p><p>In India, the students are shown only some three to four paths for the future by the parents and the teachers, some of them are the engineering field and the medical field. If the student cannot get a satisfactory university after his/her high schools,then the student is considered as unfit for the society.</p><p>This thought makes the students mentally pressurized.This makes the institutions to be greedy and they make this as their business investment.They claim to provide the best results and impose heavy fees on the students.</p><p>Furthermore, even after completing several degree courses, the students are again pressurized for jobs. With all the pressure students have to overcome the competition.</p><p>The students have become the business investments for huge business people.They are not allowed to study the subject of their wishes.</p><p>This also has reduced the creativity among the Indian students and made them to follow the herd.</p><p>CONCLUSION:</p><p>In the future, the same situation must not prevail and every student must realize that they are blindly following the herd, and must come out of that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0abde1fb217" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The concept of tunneling in Internet of things]]></title>
            <link>https://medium.com/@laxmanvijay24/the-concept-of-tunneling-in-internet-of-things-d2d5289bbd31?source=rss-314f9b80c6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2d5289bbd31</guid>
            <category><![CDATA[tunneling]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[tcp-ip]]></category>
            <dc:creator><![CDATA[laxman vijay]]></dc:creator>
            <pubDate>Sun, 25 Feb 2018 06:47:57 GMT</pubDate>
            <atom:updated>2018-02-25T06:50:56.831Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fXWFWiiSYfik-a6L." /><figcaption>“Modern abstract sculpture of metal net structure against white background, San Francisco Museum of Modern Art” by <a href="https://unsplash.com/@williambout?utm_source=medium&amp;utm_medium=referral">William Bout</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In computer networks, a <strong>tunneling protocol</strong> allows a network end user to access network service that the network does not provide directly. One important use of a tunneling protocol is to allow a foreign protocol to run over a network that does not support that particular protocol.</p><p>The tunneling technology is one of the most promising but unexposed technology that deserves some huge attention especially in the field of Iot. The promise of this technology is that the internet will not influence iot and so physical devices won’t be hacked and they are secure. At the same time they are robust enough as they are backed up by existing protocols.</p><p>This technology also has the potential to create private Iot blocks in the internet that can communicate with each other and they could share relevant data between themselves. This would automate several tasks within the Iot block.</p><p>Iot blocks are a kind of yet to come idea that will glue up several physical objects inside a specific area and monitored by a man power or an AI. This kind of blocking up of the physical devices provide the necessary security and also the limit that any device could access data from.</p><p>Tunneling makes this process of Iot Blocking possible by creating a tunnel for all the devices inside the block. Tunnels could possibly share certain amount of data. The level of data abstraction that every tunnel shows depends upon the need for data. Thus tunnels could make the entire Iot world private and separated from the vision of hackers.</p><p>In the enterprise level Iot blocks could be monitored individually using separate monitors. These monitors could also have the power to change and organise the level of data abstraction that every Iot block should show up to the immediate tunnel.</p><p>The monitoring of data is made possible by using tunneling the data through a global server once for a required period of time. This kind of exposure of data may result in a security breach. So during the time of tunneling the data to a central server, all the Iot blocks connected to the tunnel should be disconnected just to prevent any control hijack by any anonymous user.</p><p>The monitors which are used in the central server may be human or AI or both and is capable of performing analytics of the data that was received from the tunnel. By the analyzed result we could make some useful outcomes of the resources.</p><p>For example,</p><p>If the analysis of a hospital Iot block shows that it used only 60% of the devices connected to the tunnel, then the administrator could remove unnecessary overhead in the tunnel.</p><p>Thus tunneling of a Iot block proves to be a private and secure solution for implementation of Iot.</p><p>Tunnels also reduce the risk of cloud dependency of the physical world.</p><p>Thus they make everyone democratic and responsible for their Iot block.</p><p>Cloud dependency also increases the risk of exposure of Iot block to the rest of the world. This is reduced greatly by using tunnels.</p><p>Locally created tunnels are entirely responsible to the enterprise that created it. So this creates true ownership of the Iot device in the same way physical devices are truly owned now.</p><p>CONCLUSION:</p><p>In the future, this technology may be even used in the brain computer interaction technologies to control physical devices with just thoughts! So the tunneling technology has to be developed even further and exposed further to unlock it’s complete potentials.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2d5289bbd31" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>