<?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 Reuban zacker on Medium]]></title>
        <description><![CDATA[Stories by Reuban zacker on Medium]]></description>
        <link>https://medium.com/@reubanzacker?source=rss-2cd0dc3b2bbc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-YF9h6nbACU1ClvuJ1sjug.jpeg</url>
            <title>Stories by Reuban zacker on Medium</title>
            <link>https://medium.com/@reubanzacker?source=rss-2cd0dc3b2bbc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:52:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@reubanzacker/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[What is uploaded intelligence, and why is this the new hot topic in town?]]></title>
            <link>https://reubanzacker.medium.com/what-is-uploaded-intelligence-and-why-is-this-the-new-hot-topic-in-town-47ab25c9c41b?source=rss-2cd0dc3b2bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/47ab25c9c41b</guid>
            <category><![CDATA[brain-computer-interface]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[metaverse]]></category>
            <category><![CDATA[industrial-revolution]]></category>
            <category><![CDATA[uploaded-intelligence]]></category>
            <dc:creator><![CDATA[Reuban zacker]]></dc:creator>
            <pubDate>Fri, 09 Sep 2022 04:59:58 GMT</pubDate>
            <atom:updated>2022-09-09T04:59:58.523Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*Q0q3BzaoOk9vwacz8r9A4A.jpeg" /></figure><p>Uploaded Intelligence — Is the process of uploading Human Minds to the Parallel supercomputer and Quantum clouds.</p><p>Uploaded Intelligence is the digital emulation of human minds that will behave like a whole person, a whole brain, and every neuron. so that someone can live as a machine and in a machine and our minds would be the same even after uploading. It would just exist electronically rather than organically. also, they will be free from disease, decay, and death.</p><p>Uploaded intelligence will be a new hot topic in town. when we heading into the new Industrial Revolution 5.0. currently, we are still yet to achieve a lot more in Artificial intelligence, Brian Computer Interface, Augmented and Virtual Reality, and Quantum computing under the need for Industrial revolution 4.0</p><p>There is a show called <a href="https://www.youtube.com/watch?v=G5kArIAZkXg"><strong>Upload from amazon prime </strong></a>is the best visionary example for uploaded intelligence</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*9Zm4bgwa1Pl1jzLaNwGtUA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47ab25c9c41b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[500+ Artificial intelligence project source code and solution]]></title>
            <link>https://reubanzacker.medium.com/500-artificial-intelligence-project-source-code-and-solution-8a42422c5d13?source=rss-2cd0dc3b2bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a42422c5d13</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Reuban zacker]]></dc:creator>
            <pubDate>Sat, 05 Jun 2021 17:54:11 GMT</pubDate>
            <atom:updated>2021-06-05T17:54:11.358Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/277/0*9ZPsEvWfn0iPd7gb" /></figure><ol><li><a href="https://medium.com/coders-camp/180-data-science-and-machine-learning-projects-with-python-6191bc7b9db9">80 Machine learning Project</a></li><li><a href="https://amankharwal.medium.com/12-machine-learning-projects-on-object-detection-46b32adc3c37">12 Machine learning Object Detection</a></li><li><a href="https://medium.com/coders-camp/20-machine-learning-projects-on-nlp-582effe73b9c">20 NLP Project with Python</a></li><li><a href="https://medium.com/coders-camp/10-machine-learning-projects-on-time-series-forecasting-ee0368420ccd">10 Machine Learning Projects on Time Series Forecasting</a></li><li>2<a href="https://medium.com/coders-camp/20-deep-learning-projects-with-python-3c56f7e6a721">0 Deep Learning Projects Solved and Explained with Python</a></li><li><a href="https://amankharwal.medium.com/20-machine-learning-projects-for-portfolio-81e3dbd167b1">20 Machine learning Project</a></li><li><a href="https://thecleverprogrammer.com/2020/12/05/python-projects/">30 Python Project Solved and Explained</a></li><li><a href="https://thecleverprogrammer.com/2020/09/24/machine-learning-course/">Machine learning Course for Free</a></li><li><a href="https://amankharwal.medium.com/5-web-scraping-projects-with-python-4bcc25ff039">5 Web Scraping Projects with Python</a></li><li><a href="https://amankharwal.medium.com/20-machine-learning-projects-on-future-prediction-with-python-93932d9a7f7f">20 Machine Learning Projects on Future Prediction with Python</a></li><li><a href="https://thecleverprogrammer.com/2020/11/29/chatbot-projects-with-python/">4 Chatbot Project With Python</a></li><li><a href="https://amankharwal.medium.com/7-python-gui-projects-for-beginners-87ae2c695d78">7 Python Gui project</a></li><li><a href="https://thecleverprogrammer.com/2020/11/15/machine-learning-projects/">All Unsupervised learning Projects</a></li><li><a href="https://thecleverprogrammer.com/2020/11/27/regression-projects-with-python/">10 Machine learning Projects for Regression Analysis</a></li><li><a href="https://medium.datadriveninvestor.com/10-machine-learning-projects-on-classification-with-python-9261add2e8a7">10 Machine learning Project for Classification with Python</a></li><li><a href="https://thecleverprogrammer.com/2020/11/25/sentiment-analysis-projects-with-python/">6 Sentimental Analysis Projects with python</a></li><li><a href="https://medium.com/coders-camp/4-recommendation-system-projects-with-python-5934de32ba7d">4 Recommendations Projects with Python</a></li><li><a href="https://medium.com/coders-camp/20-deep-learning-projects-with-python-3c56f7e6a721">20 Deep learning Project with python</a></li><li><a href="https://thecleverprogrammer.com/2020/11/21/covid-19-projects-with-python-and-machine-learning/">5 COVID19 Projects with Python</a></li><li><a href="https://thecleverprogrammer.com/2020/09/17/computer-vision-projects-with-python/">9 Computer Vision Project with python</a></li><li><a href="https://thecleverprogrammer.com/2020/09/03/neural-networks-projects-for-machine-learning/">8 Neural Network Project with python</a></li><li><a href="https://medium.datadriveninvestor.com/5-machine-learning-projects-for-healthcare-bbd0eac57b4a">5 Machine learning Project for healthcare</a></li><li><a href="https://medium.datadriveninvestor.com/5-nlp-projects-for-machine-learning-72d3234381d4">5 NLP Project with Python</a></li><li><a href="https://data-flair.training/blogs/machine-learning-project-ideas/">47 Machine Learning Projects for 2021</a></li><li><a href="https://data-flair.training/blogs/artificial-intelligence-project-ideas/">19 Artificial Intelligence Projects for 2021</a></li><li><a href="https://data-flair.training/blogs/machine-learning-project-ideas/">28 Machine learning Projects for 2021</a></li><li><a href="https://data-flair.training/blogs/data-science-project-ideas/">16 Data Science Projects with Source Code for 2021</a></li><li><a href="https://data-flair.training/blogs/deep-learning-project-ideas/">24 Deep learning Projects with Source Code for 2021</a></li><li><a href="https://data-flair.training/blogs/computer-vision-project-ideas/">25 Computer Vision Projects with Source Code for 2021</a></li><li><a href="https://data-flair.training/blogs/iot-project-ideas/">23 Iot Projects with Source Code for 2021</a></li><li><a href="https://data-flair.training/blogs/django-project-ideas/">27 Django Projects with Source Code for 2021</a></li><li><a href="https://data-flair.training/blogs/python-project-ideas/">37 Python Fun Projects with Code for 2021</a></li><li><a href="https://github.com/aymericdamien/TopDeepLearning">500 + Top Deep learning Codes</a></li><li><a href="https://github.com/josephmisiti/awesome-machine-learning">500 + Machine learning Codes</a></li><li><a href="https://www.kdnuggets.com/2020/03/20-machine-learning-datasets-project-ideas.html">20+ Machine Learning Datasets &amp; Project Ideas</a></li><li><a href="https://github.com/jbhuang0604/awesome-computer-vision">1000+ Computer vision codes</a></li><li><a href="https://github.com/ashishpatel26/Real-time-ML-Project">300 + Industry wise Real world projects with code</a></li><li><a href="https://github.com/vinta/awesome-python">1000 + Python Project Codes</a></li><li><a href="https://github.com/fighting41love/funNLP">363 + NLP Project with Code</a></li><li><a href="https://github.com/likedan/Awesome-CoreML-Models">50 + Code ML Models (For iOS 11) Projects</a></li><li><a href="https://github.com/PaddlePaddle/PaddleHub">180 + Pretrained Model Projects for Image, text, Audio and Video</a></li><li><a href="https://github.com/benedekrozemberczki/awesome-graph-classification">50 + Graph Classification Project List</a></li><li><a href="https://github.com/Separius/awesome-sentence-embedding">100 + Sentence Embedding(NLP Resources)</a></li><li><a href="https://github.com/EthicalML/awesome-production-machine-learning">100 + Production Machine learning Projects</a></li><li><a href="https://github.com/ujjwalkarn/Machine-Learning-Tutorials">300 + Machine Learning Resources Collection</a></li><li><a href="https://github.com/NirantK/awesome-project-ideas">70 + Awesome AI</a></li><li>150 + Machine learning Project Ideas with code</li><li><a href="https://github.com/hibayesian/awesome-automl-papers">100 + AutoML Projects with code</a></li><li><a href="https://github.com/jphall663/awesome-machine-learning-interpretability">100 + Machine Learning Model Interpretability Code Frameworks</a></li><li><a href="https://github.com/pliang279/awesome-multimodal-ml">120 + Multi Model Machine learning Code Projects</a></li><li><a href="https://github.com/fendouai/Awesome-Chatbot">Awesome Chatbot Projects</a></li><li><a href="https://github.com/applicable-ml/awesome-ml-demos-with-ios">Awesome ML Demo Project with iOS</a></li><li><a href="https://github.com/prateekiiest/Code-Sleep-Python">100 + Python based Machine learning Application Projects</a></li><li><a href="https://github.com/leipzig/awesome-reproducible-research">100 + Reproducible Research Projects of ML and DL</a></li><li><a href="https://github.com/saadhaxxan/Awesome-Python-Projects">25 + Python Projects</a></li><li><a href="https://github.com/moadmmh/Awesome-OpenCV">8 + OpenCV Projects</a></li><li><a href="https://github.com/ChristosChristofidis/awesome-deep-learning">1000 + Awesome Deep learning Collection</a></li><li><a href="https://github.com/keon/awesome-nlp">200 + Awesome NLP learning Collection</a></li><li><a href="https://notebooks.quantumstat.com/">200 + The Super Duper NLP Repo</a></li><li><a href="https://index.quantumstat.com/">100 + NLP dataset for your Projects</a></li><li><a href="https://projectworlds.in/free-projects/machine-learning-projects-with-source-code/">364 + Machine Learning Projects definition</a></li><li><a href="https://github.com/giswqs/earthengine-py-notebooks">300+ Google Earth Engine Jupyter Notebooks to Analyze Geospatial Data</a></li><li><a href="https://1000projects.org/projects/machine-learning-projects">1000 + Machine learning Projects Information</a></li><li><a href="https://github.com/akshaybhatia10/ComputerVision-Projects">11 Computer Vision Projects with code</a></li><li><a href="https://github.com/anuragreddygv323/computer-vision-projects">13 Computer Vision Projects with Code</a></li><li><a href="https://machinelearningknowledge.ai/cool-computer-vision-github-projects-to-inspire-you/">13 Cool Computer Vision GitHub Projects To Inspire You</a></li><li><a href="https://www.theclickreader.com/open-source-computer-vision-projects-with-tutorials/">Open-Source Computer Vision Projects (With Tutorials)</a></li><li><a href="https://github.com/PacktPublishing/OpenCV-Computer-Vision-Projects-with-Python">OpenCV Computer Vision Projects with Python</a></li><li><a href="https://github.com/gmalivenko/awesome-computer-vision-models">100 + Computer vision Algorithm Implementation</a></li><li><a href="https://github.com/spmallick/learnopencv">80 + Computer vision Learning code</a></li><li><a href="https://github.com/kmario23/deep-learning-drizzle">Deep learning Treasure</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a42422c5d13" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create a Cryptocurrency: Tips and Tricks]]></title>
            <link>https://reubanzacker.medium.com/how-to-create-a-cryptocurrency-tips-and-tricks-41ceb0081787?source=rss-2cd0dc3b2bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/41ceb0081787</guid>
            <category><![CDATA[hash]]></category>
            <category><![CDATA[token]]></category>
            <category><![CDATA[coins]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Reuban zacker]]></dc:creator>
            <pubDate>Mon, 17 May 2021 06:26:22 GMT</pubDate>
            <atom:updated>2021-05-17T06:26:22.765Z</atom:updated>
            <content:encoded><![CDATA[<p>Wish to know how to create a cryptocurrency? Learn top tips on how to make a cryptocurrency. Start now &amp; find out how to create a cryptocurrency with ease!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*xSO2-LHwuEyCUVcC.jpg" /></figure><p>You might have heard of Bitcoin or Ethereum, and maybe even Ripple, but in fact, there are over a thousand different coins and tokens available. In fact, according to <a href="https://en.wikipedia.org/wiki/List_of_cryptocurrencies">Wikipedia</a>, there are over 1,384 cryptocurrencies in use worldwide. That’s a <em>lot</em> of cryptos! So, why not add to the pack? Well, you might be able to after I teach you how to create a cryptocurrency.</p><p>Before we get started though, there are three things you need to know:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/98/0*zwWKsGNgph5BqOLN.jpg" /></figure><p>YOU NEED<br>A GOOD IDEA</p><p>Building a token/coin for the sake of building a token/coin is doomed to fail. It needs to have a purpose (it needs to add value to the world).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/136/0*GnjsMiVPXQcXR3hG.jpg" /></figure><p>YOU NEED TO EARN<br>PEOPLE’S TRUST</p><p>To do this you need to build a ‘community. This is a following for your cryptocurrency. Maintaining a crypto community is hard work, so pay a good amount of attention to this point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/96/0*y0hhn8lNVp3s27bi.jpg" /></figure><p>YOU NEED CODING &amp; CRYPTO SECURITY KNOWLEDGE</p><p>Yes, you can hire ‘talent’, but you need to understand how your token/coin is going to work.</p><p>By the end of this guide: you’ll understand the basics of how to create a cryptocurrency and the importance of building trust with the people who support your cryptocurrency!</p><p>This guide will also help you understand how important it is to have a good idea and purpose for your crypto (and why you’ll need a lot of spare cash to help fund this project!).</p><p>However, if you decide that instead of creating a cryptocurrency, you want to buy some, I have a few different platforms for you to offer: <a href="https://www.bitdegree.org/crypto/goon/coinbase">Coinbase</a>, <a href="https://www.bitdegree.org/crypto/goon/binance">Binance</a> and <a href="https://www.bitdegree.org/crypto/goon/coinmama">Coinmama</a>. Whilst using these platforms you’ll be able to <em>buy Bitcoin, Ethereum or any other cryptocurrency instantly</em>!</p><p>Also, always choose a <a href="https://www.bitdegree.org/crypto/best-cryptocurrency-wallet">reliable and secure cryptocurrency wallet</a> to keep your assets protected, whether you decide to create a cryptocurrency or simply buy some coins. It’s recommended to go for <a href="https://www.bitdegree.org/crypto/cold-wallet">hardware wallets</a>, such as <a href="https://www.bitdegree.org/crypto/goon/ledger-nano-x">Ledger Nano X</a> and <a href="https://www.bitdegree.org/crypto/goon/trezor-model-t">Trezor Model T</a>.</p><h3>Table of Contents</h3><ul><li><strong>1.</strong> How to Get Started</li><li><strong>2.</strong> Ethereum vs NEO: The Most Popular Choice for Tokens</li><li><strong>3.</strong> Building a ‘Coin’ vs. Building a ‘Token’</li><li><strong>4.</strong> Initial Coin Offerings (ICOs)</li><li><strong>5.</strong> The Beginning</li><li><strong>5.1.</strong> The Big Idea of How to Create a Cryptocurrency</li><li><strong>5.2.</strong> The Development Team</li><li><strong>5.3.</strong> Smart Contract</li><li><strong>5.4.</strong> A Professional External Audit</li><li><strong>5.5.</strong> Well-Written Whitepaper of How to Create a Cryptocurrency</li><li><strong>5.6.</strong> Marketing for your ICO</li><li><strong>5.7.</strong> Managing your Community</li><li><strong>6.</strong> The Money Aspect in How to Create a Cryptocurrency</li><li><strong>7.</strong> Conclusion: The Most Important Part and Your First Step!</li></ul><h3>How to Get Started</h3><p>The real ‘getting started’ begins with your idea, but we will get to that later. First, let’s talk a bit about technology.</p><h4>There are two primary ways of creating a cryptocurrency:</h4><ul><li>Build your blockchain — this will have its own ‘coin’</li><li>Use NEO, Ethereum or a similar platform to create an application — this will have its own ‘token’</li></ul><p>So, the first thing you need to decide when figuring out how to create a cryptocurrency is whether you’re going to build a “token” or a “coin”. Are you going to start from scratch? Or build a token on technology that is already trusted and available?</p><p>Coins and tokens are both cryptocurrencies. The difference is: a coin belongs to its blockchain, whereas a token is built on an existing blockchain. So, there can be thousands of tokens built onto a blockchain, whereas there can only be one coin.</p><p>Here are some of the most popular coins:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/0*LBPg92Ywqp1w8WCB.jpg" /></figure><p>Some of these blockchain technologies can be used to help create tokens. The most popular blockchain for building applications and tokens is Ethereum.</p><h3>Ethereum vs NEO: The Most Popular Choice for Tokens</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/87/0*PLcpu-jWi2WYf-3h.jpg" /></figure><p>ETH</p><p>✓ Native Virtual Machine<br>✗ Runs on Proof of Work mining until<br>for Proof of Stake network upgrade<br>✓ Average desktop wallet<br>✓ Quality 3rd party options<br>✓ Hardware wallet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/118/0*ETgqOppjSkgUZPgR.jpg" /></figure><p>NEO</p><p>✓ Native Virtual Machine<br>✗ Node, delegate and voting systems<br>currently incomplete, plans unknown<br>✓ Average desktop wallet<br>✗ Minimal 3rd party options<br>✗ No hardware wallet</p><p>The tokens built on Ethereum are called ERC-20 tokens. The Ethereum blockchain is a great playing field for people who are trying to learn how to create a cryptocurrency because the Ethereum blockchain was the first to offer this service and is very well trusted.</p><p>NEO is very similar, but instead uses the <a href="https://github.com/neo-project/proposals/issues/3">NEP-5 standard</a> token, and allows people to use the NEO blockchain to create applications and tokens. It is the second most popular platform!</p><p>Ethereum may have the trust and popularity advantage, but NEO has an advantage of its own. On NEO, you can build with many different programming languages, including <a href="https://www.bitdegree.org/course/c-plus-plus-for-beginners">C++</a> and <a href="https://www.bitdegree.org/course/learn-java">Java</a>. On Ethereum, you can only build using <a href="https://www.bitdegree.org/learn/solidity-tutorial">Solidity</a> (Ethereum’s programming language).</p><p>This means that developers using NEO do not have to learn a new language, and instead can use a language they are already familiar with.</p><p>So, which would you prefer to learn how to create a cryptocurrency? If you’d like to use Ethereum, you’ll need to learn Solidity. If you use NEO, you can use a pre-existing language that you may already be familiar with.</p><p>The good news is: Solidity doesn’t have to be difficult to learn. It was designed to be similar to Python, JavaScript and C++ to make it easier to learn. Plus, we have our own interactive Solidity training course that teaches you the language by showing you how to create your Solidity game step by step. It’s a new, fun way to learn: it’s called <a href="https://www.bitdegree.org/course/learn-solidity-space-doggos"><em>Space Doggos</em></a>.</p><p>Also, if you’re interested in buying these cryptocurrencies, you can do that on <a href="https://www.bitdegree.org/crypto/goon/coinbase">Coinbase</a> or <a href="https://www.bitdegree.org/crypto/goon/binance">Binance</a>.</p><h3>Building a ‘Coin’ vs. Building a ‘Token’</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/107/0*hyhJt2RhkFxr7AsC.jpg" /></figure><p>COIN:</p><p>✓ Has its Blockchain<br>✗ Very Expensive<br>✗ Takes a Lot Of Time</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/94/0*X9MFqkpLu2ueb0-v.jpg" /></figure><p>TOKEN:</p><p>✓ Built On An Existing Blockchain<br>✓ Not Expensive<br>✓ Doesn’t Take a Lot Of Time</p><p>Deciding whether you need a coin or a token is a big choice: it determines a lot of things for your project, including the amount of money you need to spend.</p><p>Learning how to create a cryptocurrency (which requires building a blockchain from scratch) is very expensive and takes a lot of time. You also need an amazing team of developers!</p><p>However, if you don’t need your blockchain, you can just create a <em>token</em>. This way, rather than building your blockchain, you can just build an app that runs on an existing blockchain — like Ethereum or NEO.</p><p>Yes, creating a token and app (dApp/decentralized application) does still require a lot of time, money and a great team of developers. But, it is much easier and cheaper to do than creating a coin/building your blockchain!</p><h3>Initial Coin Offerings (ICOs)</h3><p>When a traditional company decides to go public on a stock exchange, the company offers an Initial Public Offering — which is a way to raise funds in exchange for shares.</p><p>Well, Initial Coin Offerings (ICOs) are very similar. ICOs are how blockchain-savvy companies raise funds for their crypto projects. But instead of the investors buying shares, they receive “tokens”.</p><p>INTERESTING FACT</p><p>Trying to figure out how to create a cryptocurrency, so ICOs can be very, very helpful. And because the crypto sector is currently very popular, now could be a great time to start one!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/0*sosnrDiQygtINUPR.jpg" /></figure><p>Gaining trust plays a huge role in the success of an ICO. The most successful ICOs are the ones that have a strong team of developers/founders and a solid roadmap. A roadmap tells investors what the project plans to achieve in the future, and how they plan to use the funds.</p><p>Now, let’s take a deeper look creation of cryptocurrency. But first, I’ll make some assumptions.</p><ol><li>You don’t have millions of dollars in the bank to create your own blockchain cryptocurrency “coin”</li><li>You’d rather take the easier route and create dApp and token by building on an existing, trusted blockchain</li></ol><p>So, I’ll stick with the less technical, less expensive and less extreme version of how to create a cryptocurrency. Here’s how to create a ‘token’.</p><h3>The Beginning</h3><p>ICOs offer a quick way to raise funds for your project, but it won’t be easy. To successfully start a new cryptocurrency via an ICO, here is what you’ll need:</p><ul><li>A ‘big idea’ — how will your blockchain project help a specific industry? What problem will it solve?</li><li>A strong development team to create your ERC-20 or NEP-5 tokens</li><li>A strong development team to create your ICO smart contract — when users send crypto to your smart contract, the smart contract sends the right amount of your token to them</li><li>A professional external audit — this is to check that your token and smart contract is secure so that you don’t get hacked</li><li>A well-written whitepaper — this is a document that presents your idea, the problem it solves, its roadmap and how it works/the technology it uses</li><li>A marketing campaign — website, social media, pre-&amp;-post-sale community development, forums, and media</li><li>A community management team</li></ul><p>Let’s look at why you need all these things to create a successful cryptocurrency project.</p><h3>The Big Idea of How to Create a Cryptocurrency</h3><p>This is the center of your project! You need to think about how your dApp will help in the industry you’re targeting. Are you planning to remove a current middleman (like a bank or a broker)? Are you looking to solve real-world problems (such as poverty or lack of education)?</p><p>You need to think about a real problem and how blockchain technology can solve it. If your project has no real benefit, then why will anyone want to invest or use it? If you want to <em>create</em> value, you must<em> add</em> value.</p><p>Here are some industries that might get your brain flowing with ideas: File Storage, Content Services, Insurance, Marketing Peer-to-Peer Communications, Finance, Medical and Energy/Electricity. All of these industries can be helped massively using blockchain technology via dApps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/120/0*QfXqWbzH7fNL2Ptp.gif" /></figure><h3><strong>The Development Team</strong></h3><p>One of the biggest parts of how to create a cryptocurrency is choosing the right developer(s) for your token and smart contract can be the difference between success and failure. You must be very careful and choose a developer that you can trust to do a good job.</p><p>The idea is the first key factor, but it’s useless without a good team. You need a talented team to help bring your idea to life! I would recommend only hiring people with years of experience working with blockchain technology.</p><p>To make the contacts you need, you should aim to become more involved in the blockchain community. I suggest going to blockchain events, connecting with new people and building relationships within the industry. This will help you to find the right people to join your project!</p><h3>Smart Contract</h3><p>Smart contracts play a huge role when it comes to how to create a cryptocurrency. For those who don’t know what a smart contract is, let me briefly explain:</p><p>A smart contract is like a traditional contract; except it is digital, runs on the blockchain, is executed automatically, and cannot be changed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/0*kVb6Bb7xaO8n5TNY.jpg" /></figure><p>Inside a smart contract, rules are written. In an ICO smart contract, the rules may be something like <em>IF a user sends 1 ETH to the smart contract, THEN the smart contract sends 100 tokens to that user.</em></p><p>Because the smart contract operates automatically, there is no third party controlling it. This means the user does not have to trust you.</p><p>Instead, they trust the smart contract, which is just code. If the code is correct, it cannot cheat you. So, the user knows they will always be paid the right number of tokens and that they will receive them on time.</p><p>The rules of the smart contract are written by your developers, so you must decide these rules depending on how you want your ICO to work.</p><p>For more on smart contracts, see my <a href="https://www.bitdegree.org/tutorials/what-is-a-smart-contract">What is a Smart Contract</a> guide.</p><h3>A Professional External Audit</h3><p>Like I said a moment ago, smart contracts are just code. This is the same for tokens. Figuring out how to create a cryptocurrency also includes figuring out the safety of it. So, for a user to trust the code, they need to know it is secure. This is why you need a professional audit.</p><p>Not only does it mean the user/investor can feel safe, but it also means that you can feel safe — you wouldn’t want to spend all that money on smart contracts and token development only for it to get hacked, would you?</p><p>It is an important step that brings legitimacy to your project. These audits are often referred to as ICO security audits, and you can get them from companies like <a href="https://practicalassurance.com/ico-security-audit">Practical Assurance</a>. Always ensure that the audit company you choose is credible and has a long history.</p><p>Getting your ICO verified with a professional audit will help promote your cryptocurrency project. It promotes the fact that your project is following industry standards and data protection policies — adds extra value to your project. It’s a crucial step!</p><h3>Well-Written Whitepaper of How to Create a Cryptocurrency</h3><p>If you want to learn how to create your cryptocurrency, you’ll need to know how to make a good whitepaper. When I say good, I mean good — a whitepaper is what investors will use to judge your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/0*p3NqfhiNdpfqMti6.jpg" /></figure><p>INTERESTING FACT</p><p>Creating a good whitepaper to present to the public should be one of your top priorities. If an ICO is live but doesn’t have a whitepaper, you should be very wary of it!</p><p>So, let’s look at what makes a brilliant ICO whitepaper. According to <a href="https://venturebeat.com/2017/11/05/how-to-write-a-cryptocurrency-white-paper/">VentureBeat research</a>, a whitepaper should follow this format:</p><ul><li>All whitepapers should be in PDF format — PDF white papers are accessible on different systems and browsers without worrying about format/structure and layout problems.</li><li>Page count — all white papers must have two versions. A regular whitepaper (20–100 pages) and a lite paper (around 2–8 pages). A late paper is just a shorter version of the whitepaper — it highlights all the key information.</li><li>Good grammar is a must — If you have problems with this, why not hire external whitepaper proofreaders?</li><li>Languages — your whitepaper should be in multiple languages. Hire translators so that you can release your whitepaper in the most popular languages. I recommend English, Mandarin, Spanish, Japanese and Korean. If you can do more, go for it!</li><li>Answer the following questions:</li><li>What is your idea?</li><li>Why is your idea/solution needed?</li><li>What are the ICO funds going to be used for?</li><li>When will the tokens be released so that they can be traded and listed on exchanges?</li><li>When will the project be completed? (Show a detailed timeline of the steps you will take from ICO to project a success!)</li><li>Who are your team? What have they done in the past? How are they qualified for the job?</li></ul><h3>Marketing for your ICO</h3><p>Another great part of how to create a cryptocurrency is creating a marketing strategy for it. You need to build support and trust from a local community. You will need a website, a good domain, and a good social media presence. Also, there are plenty of various <a href="https://geniebelt.com/blog/the-master-list-of-marketing-and-sales-tools">marketing and sales tools</a> online that can help you advertise your ICO.</p><p>Social Media</p><p>I’d recommend Facebook, Twitter, and LinkedIn at a minimum. If you’re serious about social media, I’d also advise Instagram and Snapchat, although it all depends on the nature of your project.</p><p>You can either manage this yourself or hire a team to do it for you. Either way, you should create a strong social media campaign that boosts the popularity of your ICO.</p><p>Social Media Site of B2B Marketers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/0*mL37uX5VVq-iHe1b.jpg" /></figure><p>Press &amp; Media</p><p>This is where your ICO gains real credibility, and since ICO is a huge part of how to create a cryptocurrency successfully, the creditability is crucial. If articles about your project are published to well-known, well-respected media websites (such as Forbes, Business Insider, etc.), your ICO will be much more trustable.</p><p>You can try to create this deals yourself, or again, you can hire a team to do it for you. The more popular the website, the more the article will cost (usually). So, see what’s available and then decide what is best for you.</p><p>Sponsored Content</p><p>Facebook ads and Google ads used to be great for ICOs, however, crypto-related ads have now been banned by these two providers. This is due to irresponsible spending from users into ICOs that haven’t performed very well. I would recommend looking into LinkedIn and Twitter advertising instead. Since these two platforms are more business-orientated than the others, it can benefit greatly for your plan on how to create a cryptocurrency.</p><p>Blogging</p><p>This is super important! You need to keep your community updated, and this is a great way to do it. You can either post to a site like Medium, or simply post to a blog on your website. Either way, the content you post should be relevant to the progress of your project.</p><p>Email Marketing</p><p>This is very effective, and I would always recommend doing this from the beginning of your project.</p><p>You need to collect your supporters’ email addresses so that you can keep them up to date via email. Any time you have news or a new promotion, you can contact them directly by sending them an email.</p><p>To collect their email addresses, there are many different methods you can use. I would recommend inserting a newsletter sign-up for your website. That way, anyone that is interested in your ICO, can submit their email address and receive your updates straight to their email inbox.</p><p>Promotions</p><p>On your path how to create a cryptocurrency you’ll need to promote it a lot. Promotions could include things like new bonuses on your ICO and new bounty rewards. By ‘bonuses’, I mean that ICOs often structure their token sale to include a bonus (like a discount) to early buyers.</p><p>For example, you might set a 20% bonus for the first week of your ICO. That would mean that anyone buying your token in the first week of your ICO, would receive 20% more tokens than they paid for. So, if John buys 100 tokens in the first week, the smart contract sends him 120 tokens.</p><p>By ‘bounty rewards’, I mean that you could offer free tokens to people that promote your ICO. For example, you could offer 5 tokens to anyone who shares your ICO link to Facebook and Twitter.</p><p>This can be a very low-cost way to market your ICO! Especially because it does not require any upfront cost.</p><h3>Managing your Community</h3><p>The community can be a powerful thing to surround yourself with while learning how to create a cryptocurrency. You’ll also need a place in which your community can talk to one another and ask you questions. The most popular app to use for this is Telegram. It is an instant messaging app, like WhatsApp or Facebook Messenger. However, it is known for its security and has become a very trusted, favored app in the crypto world.</p><p>Telegram is not intended to bring revenue,<br>it will never sell ads.</p><p><em>Telegram</em></p><p>So, in my opinion, setting up a well-managed Telegram group is essential! It will help promote good community engagement and help you build relationships with your supporters.</p><p>You should use forums too. Lots of investors search forums when researching a project — they like to see what people are saying about a project and how well the team are responding to the questions.</p><p>Whether you use forums to share your path of how to create a cryptocurrency, group chats, or both: you’ll probably need a community management team. This depends on how popular your ICO will be, but either way, it’s better to save yourself the time. Would you rather manage it yourself or spend some of your budget on getting a team to manage it for you?</p><p>You should consider the fact that your community will trust you more if you are quick to respond to messages. It seems more credible and trustworthy!</p><p>As your community will probably be made up of people from all around the world, you may want a team that is based all around the world too. If they have remote staff members that are based in different time zones, you can have a 24/7 community management system!</p><p>One company that offers this service is <a href="http://www.gosocialpr.com/">Go Social</a>. They’re UK-based, have a lot of experience in managing successful ICOs, and can provide a wide range of useful services, including community management.</p><p>I’d recommend finding a company like Go Social that has a good reputation — otherwise, you could end up with a company that represents you poorly and makes you look bad!</p><h3>The Money Aspect in How to Create a Cryptocurrency</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/0*kdjrfQAesT-wiRxr.jpg" /></figure><p>Money, money, money. You’ll need money to pay for the smart contract and token development, the website, the audit, the whitepaper, the marketing, and the PR (community management).</p><p>I can’t lie to you — it’s expensive. Smart contract and token developers can charge a lot of money because there aren’t many of them in comparison to how many ICOs they are. You can expect rates to start from around $100/hour, although some can charge a lot more.</p><p>How long it takes for a developer to finish the smart contract and token can vary depending on what you require. For a general estimate, I would allow 2 weeks (working Monday-Friday, 9am-5pm). That’s a total of $8,000 if you were paying $100/hour!</p><p>The audits are not cheap either — typically ranging from $3,000-$10,000. Again, it all depends on what you require.</p><p>I could go on and on about prices and give you average costs etc., but there is no point. It all depends on what you want and who you know.</p><p>If you connect with the right people, you can make the process of how to create a cryptocurrency a lot cheaper. So, what I’d advise is to do plenty of research and talk to plenty of people.</p><h3>Conclusion: The Most Important Part and Your First Step!</h3><p>This ‘<em>make your cryptocurrency’ </em>tutorial has gone through the technical and non-technical work you need to do to create a successful cryptocurrency via an ICO. But we keep going back to one key point. Your project will only succeed if you have a good idea! According to <a href="http://www.coinmarketcap.com/">coinmarketcap</a>, there are over 1,500 cryptocurrencies at the moment (03.15.18). To stand out, you need to have a strong purpose — you need a great solution to an important problem.</p><p>In case, after reading this guide, you decide to choose an easier way to get cryptocurrencies, you should make sure to go for the most reliable cryptocurrency exchanges, such as <a href="https://www.bitdegree.org/crypto/goon/coinbase">Coinbase</a> and <a href="https://www.bitdegree.org/crypto/goon/binance">Binance</a>. Also, keep your assets in <a href="https://www.bitdegree.org/crypto/cold-wallet">secure hardware wallets</a> at all times!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41ceb0081787" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn How Alibaba Cloud HPC Is Helping the Race towards Developing a Drug Treatment for COVID-19]]></title>
            <link>https://reubanzacker.medium.com/learn-how-alibaba-cloud-hpc-is-helping-the-race-towards-developing-a-drug-treatment-for-covid-19-80aebdbdde5e?source=rss-2cd0dc3b2bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/80aebdbdde5e</guid>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[alibabacloud]]></category>
            <dc:creator><![CDATA[Reuban zacker]]></dc:creator>
            <pubDate>Fri, 03 Apr 2020 16:39:57 GMT</pubDate>
            <atom:updated>2020-04-03T16:39:57.437Z</atom:updated>
            <content:encoded><![CDATA[<p><em>In order to win this inevitable battle and fight against COVID-19, we must work together and share our experiences around the world. Join us in the fight against the outbreak through the Global MediXchange for Combating COVID-19 (GMCC) program. Apply now at </em><a href="https://covid-19.alibabacloud.com/"><em>https://covid-19.alibabacloud.com/</em></a></p><p><em>A complete words from Sun Xiangzheng, nicknamed Yunshang at Alibaba.</em></p><p><strong>Note</strong>: I just copy paste from Alibaba cloud white papers so that it could help some people in hurry to find a related blogs on COVID-19</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/0*8jZdhirkajvPjoKx.png" /></figure><p>As part of a global effort to combat the novel coronavirus disease (Covid-19), Alibaba Cloud provided relevant technologies in the construction of the Global Health Drug Discovery Institute Open Sharing Platform for the research to produce the drugs and treatments that will save countless lives. These technologies include high-performance computing (HPC) — the technology we will discuss today — as well as supercomputing clusters, and CPU and GPU hosts, cloud supercomputing, and artificial intelligence (AI).</p><p>Research institutions and universities can migrate their computing systems that are connected to drug and treatment development to Alibaba Cloud’s <a href="https://www.alibabacloud.com/product/ehpc">Elastic High-performance Computing</a> (E-HPC) solution. For this, Alibaba Cloud’s relevant teams have worked around the clock to provide technical support and assistance along with follow-up services for these institutions.</p><p>In this article, we will be looking at just how E-HPC helps researchers in their work to process massive libraries concerning small molecules quickly in the drug candidate screening stages of research. We will also take a look at Alibaba Cloud’s computing solution for the <a href="https://www.gatesfoundation.org/Where-We-Work/China-Office/Promoting-Chinese-Innovation/Global-Health-Drug-Discovery-Institute">Global Health Drug Discovery Institute</a> (GHDDI) and its open results sharing platform designed to help speed up research so that frontline medical teams can save more lives.</p><h3>Virus and Treatment Research and How It Relates to HPC</h3><p>The drug development cycle is very lengthy, typically taking at least 10 years from the initial stages of research to when a drug is put on the market and made available to the public.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/0*kayxP9M3zvWjDKca.png" /></figure><p>However, when responding to an epidemic, time is of the essence, as the health and security of the world is at risk. Therefore, scientists need to discover drug therapies quickly in order to save lives. One way to do this is by reviewing existing drugs that show promise as treatments for an epidemic disease. By using existing drug therapies, scientist can omit several of the steps typically involved with developing new drugs.</p><p>In the past, to discover promising compounds, researchers would need to conduct a large number of experiments. However, by using machines to simulate the interaction between molecular compounds and targets, scientists can quickly pinpoint potentially effective compounds, speeding up the process of finding promising leads faster.</p><p>High-performance computing or HPC, often also referred to as supercomputing, is an important tool for this kind of research. Moreover, the rise of cloud computing and high-performance computing, among other technologies and advancements, has in many ways fundamentally changed the way that scientists obtain computing power and use supercomputing services. As an example of this, Alibaba Cloud’s E-HPC cloud supercomputing product allows scientists to build their own high-performance cluster systems in the cloud, allowing them to be able to build their desired computing platforms quickly and easily.</p><p>A huge amount of computing power is available in the cloud, and this computing power can be allocated flexibly. Scientists can purchase computing resources on demand, so they no longer have to worry about limited computing power as being a possible obstacle in their research for a new drug therapy.</p><p>However, you still may be wondering, how exactly does HPC related to viruses and drug research? To answer this question, we’ll be taking a brief look into how viruses replicate and spread in hosts, how drugs can be used to inhibit the replicative capabilities of viruses, and finally we will discuss the role of HPC in drug research and development.</p><h3>A Brief Introduction to Viruses and Relevant Drug Research</h3><p>A virus consists of non-functional nucleic acid molecules, specifically DNA or RNA, which is surrounded by a protein coating. For an illustration of this, consider the diagram below of the tobacco mosaic virus, which is a virus that commonly infects the tobacco plant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/0*wnYUnfdq2AckrRTQ.png" /></figure><p>Viral populations cannot grow through cell division because they are acellular compounds. Instead, they use the machinery and metabolisms of a host cell to replicate.</p><p>Coronaviruses, in particular, are a family of positive-sense single-stranded RNA viruses that have a lipid envelope studded with club-shaped projections. This family of viruses can cause diseases of varying severity in the respiratory tract, intestinal tract, liver, and nervous systems. Before the novel coronavirus, formally named SARS-CoV-2 , was discovered, two other types of coronaviruses were identified in the past twelve years, Severe Acute Respiratory Syndrome (SARS-CoV) and Middle East Respiratory Syndrome (MERS-CoV). Below is an illustration of the novel coronavirus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/0*vsZjxrFyIfrLqvlo.png" /></figure><p>Now, let’s discuss the viral replication process in detail. After a virus particle, or virion, enters a host cell, from a virus, the virus RNA is replicated and the virus protein is synthesized. Then, the RNA and protein are assembled into multiple new virions. Pictured below is an illustration of the molecular structure of viral protein.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/0*vXozOhr1YZjikZom.png" /></figure><p>A simplified diagram of the virus replication process is also shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*PcF7Ra8HZEn9sYnG.png" /></figure><p>Drugs can be used to interfere with, or rather inhibit, the virus replication process to effectively prevent damage to the body. For example, in the synthesis process of viral proteins, protease intervention, such as 3CL protease and ProPL protease, can suppress the protease function. This is one method of virus inhibition. Other substances, such as ligand or drug treatments, can identify or bind with the protease. This process is called biological targeting. A ligand, which is a small molecule drug, can bind with the target of the viral protease, which in turn changes the three-dimensional structure of the protease, changing its function and inhibiting viral protein synthesis, thus preventing virus replication.</p><h3>Drug Development and How It Relates to HPC</h3><p>Drug development is a very complex and time-consuming process, and drug candidate screening is only one of the early stages in this lengthy process. In the search for small molecules that can bind to the viral protease structure, there is a large number of ligand libraries created by different research institutions, which contain massive amounts of data. Each library contains thousands of ligands. It is impossible to test them one by one in a timely manner. However, through computer value simulation, we can score the binding performance of different ligands and test the most promising ligands as candidate drugs, effectively accelerating the drug development process.</p><p>Due to the massive data volumes of ligand libraries, it is extremely difficult to filter promising ligands in a limited amount of time. For instance, if a ligand library has 10,000 candidate ligands and the average processing time is 1.5 hours for each candidate, it would take around 15,000 hours (or 625 days, almost 2 years’ time) to process the entire library. Therefore, to complete the calculations within the specified time, the following conditions must be met:</p><ul><li>A computing platform with powerful computing capabilities is available.</li><li>Large-capacity storage is available to store processing data and computing results.</li></ul><p>To ensure efficient and smooth candidate screening, some computing services are also required, such as:</p><ul><li>Cluster software runtime environments to ensure software running and data access in a multi-host environment.</li><li>A concurrent computing solution to support the concurrent processing of multiple tasks in a multi-host environment.</li></ul><p>In addition to a computing platform, relative high-performance application software is required for drug candidate screening. Simulated drug candidate screening computation includes docking and molecular dynamics computation. Docking takes a relatively small amount of time and is often used for the preliminary screening of a large number of ligands. Popular docking software includes DOCK6, Autodock Vina, and Glide. Molecular dynamics simulation computing is time-consuming, and the time a test takes can vary. This process is used to further analyze the potential candidates selected in the docking process. Popular molecular dynamics software programs include Gromacs, Namd, and Amber. In this process, general-purpose GPUs (GPCGPUs) can provide a significant level of acceleration.</p><h3>The E-HPC High-Throughput Drug Screening Solution</h3><p>Cloud computing can serve as a means for drug research institutions to obtain the computing resources and services that are needed to build powerful high-performance clusters. As a part of tis solution, Alibaba Cloud provides several products and services, which are powerful tools for drug research and development. Besides Elastic High Performance Computing (E-HPC), Alibaba Cloud also offers cluster-based file sharing systems such as <a href="https://www.alibabacloud.com/product/nas">Network-Attached Storage</a> (NAS) and <a href="https://www.alibabacloud.com/help/doc-detail/111755.html">Cloud Parallel File System</a> (CPFS), along with several database management systems, which can be used in combination with E-HPC. Alibaba Cloud E-HPC on its own can allow users to quickly develop their own high-performance cluster systems in the cloud. Then, the other products can be used to configure the high-performance servers and large-capacity storage to be connected to these systems. This product also provides multi-node software runtime and high-throughput task processing solutions. In other words, E-HPC is ready to meet the computing platform requirements of drug researchers and developers across the globe.</p><h3>E-HPC Cloud Supercomputing</h3><p>The Alibaba Cloud E-HPC cloud supercomputing product is a cloud-native high-performance computing cluster solution. E-HPC integrates multiple Alibaba Cloud products, including:</p><ul><li>Computing products such as Alibaba Cloud <a href="https://www.alibabacloud.com/product/ecs">Elastic Compute Service</a> (ECS), <a href="https://www.alibabacloud.com/product/gpu">Elastic GPU Service</a> (EGS), <a href="https://www.alibabacloud.com/product/ebm">ECS Bare Metal Instances</a>, and <a href="https://www.alibabacloud.com/product/scc">Super Computing Clusters</a> (SCC).</li><li>Networking products like <a href="https://www.alibabacloud.com/product/vpc">Virtual Private Cloud</a> (VPC) and RDMA over Converged Ethernet (RoCE).</li><li>Storage products such as NAS, <a href="https://www.alibabacloud.com/product/oss">Object Storage Service</a> (OSS), and CPFS.</li></ul><p>E-HPC configures HPC job management and account management and integrates common HPC applications to provide users with a webpage-based operation interface. This allows users to obtain their own HPC clusters, hold root permissions, and manage and configure their clusters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*JRJ5qn4o3HwoUAhe.png" /></figure><p>In addition to these functions, Alibaba Cloud provides a variety of computing instance types with diverse computing capabilities (including 1vCPU, 2vCPU, 4vCPU, up to 104vCPU), different memory ratios (including 1vCPU:2 GB, 1vCPU:4 GB, and 1vCPU:8 GB), and optional GPU or FPGA accelerator cards. Most of our CPU models use Intel’s latest CPU architecture. Entirely developed by Alibaba Cloud, ECS Bare Metal instances serve as a new type of computing server product that is based on next-generation virtualization technology. ECS Bare Metal instances provide the elasticity of virtual machines and the performance and functionality of physical machines, putting the computing performance of the entire machine at the user’s service. An ECS Bare Metal instance is equipped with a RoCE high-speed network that supports remote direct memory access (RMDA). This makes it a supercomputing cluster product, which can be used in large-scale and high-concurrency scenarios.</p><h3>The E-HPC High-throughput Task Solution</h3><p>The HPC environment provides researchers with the computing platform they will need for drug research. However, to achieve efficient drug candidate screening, a high-throughput task solution is also required.</p><p>In the case, for instance, that we use DOCK6 to process a ligand library, a folder, such as mol2, stores a large number of small molecule files. The processing procedure for each small molecule file is the same, and all the files need to be calculated with the same receptor, such as a viral protease.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/0*6d8X3jVPZDwz58Vd.png" /></figure><p>The code for a serial processing method is shown in the following figure. Here, dock.in is the file input using the DOCK6 command, and the corresponding parameter values need to be modified according to the small molecule file name. This code snippet traverses each molecule file in the mol2 folder, generating an input file named dock.in for each file, and then runs the DOCK6 command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/0*YZhbY8BBX9fXTYGq.png" /></figure><p>Serial execution takes a long time and cannot utilize the computing power of high-performance clusters. Therefore, we need to find a way to speed up the process by using multiple nodes and CPU cores of a cluster. This can be done in a variety of ways. For example, we can manually divide the mol2 folder into several subfolders, each of which contains a few small molecule files. Then, we can execute the files in each subfolder serially. This method requires a large amount of manual intervention. In particular, if a task encounters an error and needs to be re-submitted, this can easily lead to repeated or omitted computations.</p><h4>Step 1: Defining and Starting up E-HPC High-Throughput Tasks</h4><p>E-HPC provides a high-throughput task solution. In this example, a large number of small molecule files can be concurrently processed in three steps.</p><p>1. Save the names of the molecule files under the mol2 folder to a text file, such as molin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/0*FU87Ki0HTENge0d0.png" /></figure><p>2. Develop a script named task.sh for processing individual small molecule files and replace the small molecule file name with $molin. Unlike the serial logic, you can see that the processing code is directly copied from the for loop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/0*D-i-wKDWr-5ZxwXt.png" /></figure><p>3. Run the E-HPC high-throughput task processing command ehpcarr to execute task.sh. The job number 2[].manager is returned. Now, the tasks are concurrently processed by using 96 CPU cores. If the node contains less than 96 CPU cores, the tasks are automatically assigned to multiple nodes. For example, when you use instances with 12 CPU cores, all molecule processing tasks run on 8 nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/0*zYLG1gR3uI6_rB-i.png" /></figure><h4>Step 2: Querying of the Status of E-HPC high-Throughput Tasks</h4><p>Run the ehpcarr command to query the concurrent execution status of tasks by job number. From the query results, you can obtain the current processing status of each task and its start and end times. Possible task states are DONE, RUNNING, FAILED, and INIT in queue. You can estimate the computing resources to be used for the next task execution based on the task execution duration. The query results show that:</p><ul><li>The E-HPC job scheduler started eight nodes for drug candidate screening.</li><li>Different tasks were assigned to different computing nodes, for example, task 0 was assigned to compute001, and task 10520 was assigned to compute008.</li><li>A single node concurrently processed different tasks, for example, tasks 0 to 111 are processed concurrently on compute001.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/0*d5aMtsbaAGZz3fog.png" /></figure><p>The E-HPC solution is an array job solution based on the high-performance cluster job scheduler. It provides the following enhancements:</p><ul><li>It limits the number of concurrent tasks to avoid one task or one job from causing a backup in the cluster job queue, which can affect the running of the jobs of other cluster users.</li><li>It enables dynamic task scheduling and makes full use of the available computing resources.</li></ul><h3>The Global Health Drug Discovery Institute Open-Sharing Platform</h3><p>In the face of the current epidemic, sharing resources and research results is necessary as it can greatly accelerate the research progress and avoid repeated work. Understanding this, we helped to establish the <a href="https://www.gatesfoundation.org/Where-We-Work/China-Office/Promoting-Chinese-Innovation/Global-Health-Drug-Discovery-Institute">Global Health Drug Discovery Institute</a> (GHDDI).</p><p>The <a href="https://www.gatesfoundation.org/">Bill and Melinda Gates Foundation</a>, together with Tsinghua University and the Beijing municipal government jointly established GHDDI as an independent and non-profit drug research and development organization, and open sharing platform for drug research and development. The open sharing platform of GHDDI was built on Alibaba Cloud, developed wih E-HPC and build high-performance computing clusters for simulation computing in drug development. In addition, it creates different supercomputing sub-accounts for partners to allow the sharing of research results and computing resources.</p><p>At the same time, to facilitate the sharing and publishing of computing results on the E-HPC supercomputing cluster, storage using Alibaba Cloud Object Storage Service (OSS) is directly attached to the E-HPC supercomputing cluster. This means that the results are stored in OSS instances in the cloud. In addition, an ECS computing instance is created in the cloud to build a web server, and OSS access links are listed on the web server, allowing users to easily browse and download the stored results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*w5RQXpwCJfRIo7XQ.png" /></figure><h3>Summary</h3><p>To speed up drug research and development, high-performance computing clusters can serve as an important tool as they can provide powerful computing capabilities to speed up the research process. Researchers can use Alibaba Cloud’s E-HPC cloud supercomputing product to quickly build high-performance clusters in the cloud, giving them access to high-performance computing instances that can meet their computing power requirements.</p><p>At the same time, E-HPC provides a high-throughput task processing solution that enables drug candidate screening to be concurrently performed on multiple computing nodes and with multiple CPU cores, reducing the overall task execution time. In addition, E-HPC is a cloud-native supercomputing product. So, it can be integrated with other cloud products, such as OSS, allowing you to quickly and conveniently build computing and information publication platforms .</p><p><em>While continuing to wage war against the worldwide outbreak, Alibaba Cloud will play its part and will do all it can to help others in their battles with the coronavirus. Learn how we can support your business continuity at </em><a href="https://www.alibabacloud.com/campaign/supports-your-business-anytime"><em>https://www.alibabacloud.com/campaign/supports-your-business-anytime</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80aebdbdde5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are Convolutional Neural Networks and why are they important?]]></title>
            <link>https://reubanzacker.medium.com/what-are-convolutional-neural-networks-and-why-are-they-important-cd1851eb1f68?source=rss-2cd0dc3b2bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd1851eb1f68</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Reuban zacker]]></dc:creator>
            <pubDate>Mon, 01 Jul 2019 05:47:37 GMT</pubDate>
            <atom:updated>2019-07-01T05:47:37.239Z</atom:updated>
            <content:encoded><![CDATA[<p>Convolutional Neural Networks (<strong>ConvNets</strong> or <strong>CNNs</strong>) are a category of <a href="https://ujjwalkarn.me/2016/08/09/quick-intro-neural-networks/">Neural Networks</a> that have proven very effective in areas such as image recognition and classification. ConvNets have been successful in identifying faces, objects and traffic signs apart from powering vision in robots and self driving cars.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*aLc_PGR9Itr6C2cq" /><figcaption>Figure 1: Source [<a href="http://cs.stanford.edu/people/karpathy/neuraltalk2/demo.html">1</a>]</figcaption></figure><p>In <strong>Figure 1</strong> above, a ConvNet is able to recognize scenes and the system is able to suggest relevant captions (“a soccer player is kicking a soccer ball”) while <strong>Figure 2</strong> shows an example of ConvNets being used for recognizing everyday objects, humans and animals. Lately, ConvNets have been effective in several Natural Language Processing tasks (such as sentence classification) as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*bdKdzuV_HG7z_cjS" /><figcaption>Figure 2: Source [<a href="https://arxiv.org/pdf/1506.01497v3.pdf">2</a>]</figcaption></figure><p>ConvNets, therefore, are an important tool for most machine learning practitioners today. However, understanding ConvNets and learning to use them for the first time can sometimes be an intimidating experience. The primary purpose of this blog post is to develop an understanding of how Convolutional Neural Networks work on images.</p><p>If you are new to neural networks in general, I would recommend reading <a href="https://ujjwalkarn.me/2016/08/09/quick-intro-neural-networks/">this short tutorial on Multi Layer Perceptrons</a> to get an idea about how they work, before proceeding. Multi Layer Perceptrons are referred to as “Fully Connected Layers” in this post.</p><h4>The LeNet Architecture (1990s)</h4><p>LeNet was one of the very first convolutional neural networks which helped propel the field of Deep Learning. This pioneering work by Yann LeCun was named <a href="http://yann.lecun.com/exdb/publis/pdf/lecun-01a.pdf">LeNet5</a> after many previous successful iterations since the year 1988 [<a href="https://medium.com/towards-data-science/neural-network-architectures-156e5bad51ba">3</a>]. At that time the LeNet architecture was used mainly for character recognition tasks such as reading zip codes, digits, etc.</p><p>Below, we will develop an intuition of how the LeNet architecture learns to recognize images. There have been several new architectures proposed in the recent years which are improvements over the LeNet, but they all use the main concepts from the LeNet and are relatively easier to understand if you have a clear understanding of the former.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*ETE1LrUSnhvIVsC1" /><figcaption>Figure 3: A simple ConvNet. Source [<a href="https://www.clarifai.com/technology">5</a>]</figcaption></figure><p>The Convolutional Neural Network in <strong>Figure 3 </strong>is similar in architecture to the original LeNet and classifies an input image into four categories: dog, cat, boat or bird (the original LeNet was used mainly for character recognition tasks). As evident from the figure above, on receiving a boat image as input, the network correctly assigns the highest probability for boat (0.94) among all four categories. The sum of all probabilities in the output layer should be one (explained later in this post).</p><p>There are four main operations in the ConvNet shown in <strong>Figure 3</strong> above:</p><ol><li>Convolution</li><li>Non Linearity (ReLU)</li><li>Pooling or Sub Sampling</li><li>Classification (Fully Connected Layer)</li></ol><p>These operations are the basic building blocks of <em>every</em> Convolutional Neural Network, so understanding how these work is an important step to developing a sound understanding of ConvNets. We will try to understand the intuition behind each of these operations below.</p><h4>An Image is a matrix of pixel values</h4><p>Essentially, every image can be represented as a matrix of pixel values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/0*PwDknjJLYbf4IO1p" /><figcaption>Figure 4: Every image is a matrix of pixel values. Source [<a href="https://medium.com/@ageitgey/machine-learning-is-fun-part-3-deep-learning-and-convolutional-neural-networks-f40359318721">6</a>]</figcaption></figure><p><a href="https://en.wikipedia.org/wiki/Channel_(digital_image)">Channel</a> is a conventional term used to refer to a certain component of an image. An image from a standard digital camera will have three channels — red, green and blue — you can imagine those as three 2d-matrices stacked over each other (one for each color), each having pixel values in the range 0 to 255.</p><p>A <a href="https://en.wikipedia.org/wiki/Grayscale">grayscale</a> image, on the other hand, has just one channel. For the purpose of this post, we will only consider grayscale images, so we will have a single 2d matrix representing an image. The value of each pixel in the matrix will range from 0 to 255 — zero indicating black and 255 indicating white.</p><h4>The Convolution Step</h4><p>ConvNets derive their name from the <a href="http://en.wikipedia.org/wiki/Convolution">“convolution” operator</a>. The primary purpose of Convolution in case of a ConvNet is to extract features from the input image. Convolution preserves the spatial relationship between pixels by learning image features using small squares of input data. We will not go into the mathematical details of Convolution here, but will try to understand how it works over images.</p><p>As we discussed above, every image can be considered as a matrix of pixel values. Consider a 5 x 5 image whose pixel values are only 0 and 1 (note that for a grayscale image, pixel values range from 0 to 255, the green matrix below is a special case where pixel values are only 0 and 1):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/127/0*Qg6DKUrjsMSu7MHs" /></figure><p>Also, consider another 3 x 3 matrix as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/74/0*z2TxaswKHVB1BMtD" /></figure><p>Then, the Convolution of the 5 x 5 image and the 3 x 3 matrix can be computed as shown in the animation in <strong>Figure 5</strong> below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/0*ZR7vnbCSQzr68tlZ" /><figcaption>Figure 5: The Convolution operation. The output matrix is called Convolved Feature or Feature Map. Source [<a href="http://deeplearning.stanford.edu/wiki/index.php/Feature_extraction_using_convolution">7</a>]</figcaption></figure><p>Take a moment to understand how the computation above is being done. We slide the orange matrix over our original image (green) by 1 pixel (also called ‘stride’) and for every position, we compute element wise multiplication (between the two matrices) and add the multiplication outputs to get the final integer which forms a single element of the output matrix (pink). Note that the 3×3 matrix “sees” only a part of the input image in each stride.</p><p>In CNN terminology, the 3×3 matrix is called a ‘<strong>filter</strong>‘ or ‘kernel’ or ‘feature detector’ and the matrix formed by sliding the filter over the image and computing the dot product is called the ‘Convolved Feature’ or ‘Activation Map’ or the ‘<strong>Feature Map</strong>‘. It is important to note that filters acts as feature detectors from the original input image.</p><p>It is evident from the animation above that different values of the filter matrix will produce different Feature Maps for the same input image. As an example, consider the following input image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/67/0*p4OL5Ej1U6Xy8yYy" /></figure><p>In the table below, we can see the effects of convolution of the above image with different filters. As shown, we can perform operations such as Edge Detection, Sharpen and Blur just by changing the numeric values of our filter matrix before the convolution operation [<a href="https://en.wikipedia.org/wiki/Kernel_(image_processing)">8</a>] — this means that different filters can detect different features from an image, for example edges, curves etc. More such examples are available in Section 8.2.4 <a href="http://docs.gimp.org/en/plug-in-convmatrix.html">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/0*4ZhHWPkLq__6KbxY" /></figure><p>Another good way to understand the Convolution operation is by looking at the animation in <strong>Figure 6</strong> below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*3veoRdJEa2ABzryN" /><figcaption>Figure 6: The Convolution Operation. Source [<a href="http://cs.nyu.edu/~fergus/tutorials/deep_learning_cvpr12/">9</a>]</figcaption></figure><p>A filter (with red outline) slides over the input image (convolution operation) to produce a feature map. The convolution of another filter (with the green outline), over the same image gives a different feature map as shown. It is important to note that the Convolution operation captures the local dependencies in the original image. Also notice how these two different filters generate different feature maps from the same original image. Remember that the image and the two filters above are just numeric matrices as we have discussed above.</p><p>In practice, a CNN <em>learns</em> the values of these filters on its own during the training process (although we still need to specify parameters such as number of filters, filter size, architecture of the network etc. before the training process). The more number of filters we have, the more image features get extracted and the better our network becomes at recognizing patterns in unseen images.</p><p>The size of the Feature Map (Convolved Feature) is controlled by three parameters [<a href="http://cs231n.github.io/convolutional-networks/">4</a>] that we need to decide before the convolution step is performed:</p><ul><li><strong>Depth:</strong> Depth corresponds to the number of filters we use for the convolution operation. In the network shown in <strong>Figure 7</strong>, we are performing convolution of the original boat image using three distinct filters, thus producing three different feature maps as shown. You can think of these three feature maps as stacked 2d matrices, so, the ‘depth’ of the feature map would be three.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/0*7aBCMdbnAZgv_sRG" /><figcaption>Figure 7</figcaption></figure><ul><li><strong>Stride: </strong>Stride is<strong> </strong>the number of pixels by which we slide our filter matrix over the input matrix. When the stride is 1 then we move the filters one pixel at a time. When the stride is 2, then the filters jump 2 pixels at a time as we slide them around. Having a larger stride will produce smaller feature maps.</li><li><strong>Zero-padding: </strong>Sometimes, it is convenient to pad the input matrix with zeros around the border, so that we can apply the filter to bordering elements of our input image matrix. A nice feature of zero padding is that it allows us to control the size of the feature maps. Adding zero-padding is also called <em>wide convolution</em><strong>,</strong> and not using zero-padding would be a<em> narrow convolution</em>. This has been explained clearly in [<a href="http://www.wildml.com/2015/11/understanding-convolutional-neural-networks-for-nlp/">14</a>].</li></ul><h4>Introducing Non Linearity (ReLU)</h4><p>An additional operation called ReLU has been used after every Convolution operation in <strong>Figure 3</strong> above. ReLU stands for Rectified Linear Unit and is a non-linear operation. Its output is given by:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/0*Sic8c2kR-TxjQ1Fe" /><figcaption>Figure 8: the ReLU operation</figcaption></figure><p>ReLU is an element wise operation (applied per pixel) and replaces all negative pixel values in the feature map by zero. The purpose of ReLU is to introduce non-linearity in our ConvNet, since most of the real-world data we would want our ConvNet to learn would be non-linear (Convolution is a linear operation — element wise matrix multiplication and addition, so we account for non-linearity by introducing a non-linear function like ReLU).</p><p>The ReLU operation can be understood clearly from <strong>Figure 9</strong> below. It shows the ReLU operation applied to one of the feature maps obtained in <strong>Figure 6</strong> above. The output feature map here is also referred to as the ‘Rectified’ feature map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*JEUp1qRfLne96lC4" /><figcaption>Figure 9: ReLU operation. Source [<a href="http://mlss.tuebingen.mpg.de/2015/slides/fergus/Fergus_1.pdf">10</a>]</figcaption></figure><p>Other non linear functions such as <strong>tanh </strong>or <strong>sigmoid</strong> can also be used instead of ReLU, but ReLU has been found to perform better in most situations.</p><h4>The Pooling Step</h4><p>Spatial Pooling (also called subsampling or downsampling) reduces the dimensionality of each feature map but retains the most important information. Spatial Pooling can be of different types: Max, Average, Sum etc.</p><p>In case of Max Pooling, we define a spatial neighborhood (for example, a 2×2 window) and take the largest element from the rectified feature map within that window. Instead of taking the largest element we could also take the average (Average Pooling) or sum of all elements in that window. In practice, Max Pooling has been shown to work better.</p><p><strong>Figure 10</strong> shows an example of Max Pooling operation on a Rectified Feature map (obtained after convolution + ReLU operation) by using a 2×2 window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/0*oIzsoS1NkNIh6GYL" /><figcaption>Figure 10: Max Pooling. Source [<a href="http://cs231n.github.io/convolutional-networks/">4</a>]</figcaption></figure><p>We slide our 2 x 2 window by 2 cells (also called ‘stride’) and take the maximum value in each region. As shown in <strong>Figure 10</strong>, this reduces the dimensionality of our feature map.</p><p>In the network shown in <strong>Figure 11,</strong> pooling operation is applied separately to each feature map (notice that, due to this, we get three output maps from three input maps).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/0*uhXd2_GygtP2Y1fQ" /><figcaption>Figure 11: Pooling applied to Rectified Feature Maps</figcaption></figure><p><strong>Figure 12</strong> shows the effect of Pooling on the Rectified Feature Map we received after the ReLU operation in <strong>Figure 9</strong> above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*qS2dGYW4Ai7WZr_4" /><figcaption>Figure 12: Pooling. Source [<a href="http://mlss.tuebingen.mpg.de/2015/slides/fergus/Fergus_1.pdf">10</a>]</figcaption></figure><p>The function of Pooling is to progressively reduce the spatial size of the input representation [<a href="http://cs231n.github.io/convolutional-networks/">4</a>]. In particular, pooling</p><ul><li>makes the input representations (feature dimension) smaller and more manageable</li><li>reduces the number of parameters and computations in the network, therefore, controlling <a href="https://en.wikipedia.org/wiki/Overfitting">overfitting</a> [<a href="http://cs231n.github.io/convolutional-networks/">4</a>]</li><li>makes the network invariant to small transformations, distortions and translations in the input image (a small distortion in input will not change the output of Pooling — since we take the maximum / average value in a local neighborhood).</li><li>helps us arrive at an almost scale invariant representation of our image (the exact term is “equivariant”). This is very powerful since we can detect objects in an image no matter where they are located (read [<a href="https://github.com/rasbt/python-machine-learning-book/blob/master/faq/difference-deep-and-normal-learning.md">18</a>] and [<a href="https://www.quora.com/How-is-a-convolutional-neural-network-able-to-learn-invariant-features">19</a>] for details).</li></ul><h4>Story so far</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*ndnQbrjPmDMNCmFe" /><figcaption>Figure 13</figcaption></figure><p>So far we have seen how Convolution, ReLU and Pooling work. It is important to understand that these layers are the basic building blocks of any CNN. As shown in <strong>Figure 13</strong>, we have two sets of Convolution, ReLU &amp; Pooling layers — the 2nd Convolution layer performs convolution on the output of the first Pooling Layer using six filters to produce a total of six feature maps. ReLU is then applied individually on all of these six feature maps. We then perform Max Pooling operation separately on each of the six rectified feature maps.</p><p>Together these layers extract the useful features from the images, introduce non-linearity in our network and reduce feature dimension while aiming to make the features somewhat equivariant to scale and translation [<a href="https://github.com/rasbt/python-machine-learning-book/blob/master/faq/difference-deep-and-normal-learning.md">18</a>].</p><p>The output of the 2nd Pooling Layer acts as an input to the Fully Connected Layer, which we will discuss in the next section.</p><h4>Fully Connected Layer</h4><p>The Fully Connected layer is a traditional Multi Layer Perceptron that uses a softmax activation function in the output layer (other classifiers like SVM can also be used, but will stick to softmax in this post). The term “Fully Connected” implies that every neuron in the previous layer is connected to every neuron on the next layer. I recommend <a href="https://ujjwalkarn.me/2016/08/09/quick-intro-neural-networks/">reading this post</a> if you are unfamiliar with Multi Layer Perceptrons.</p><p>The output from the convolutional and pooling layers represent high-level features of the input image. The purpose of the Fully Connected layer is to use these features for classifying the input image into various classes based on the training dataset. For example, the image classification task we set out to perform has four possible outputs as shown in <strong>Figure 14</strong> below (note that Figure 14 does not show connections between the nodes in the fully connected layer)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/0*hdruL6G0P65R-RbD" /><figcaption>Figure 14: Fully Connected Layer -each node is connected to every other node in the adjacent layer</figcaption></figure><p>Apart from classification, adding a fully-connected layer is also a (usually) cheap way of learning non-linear combinations of these features. Most of the features from convolutional and pooling layers may be good for the classification task, but combinations of those features might be even better [<a href="https://stats.stackexchange.com/questions/182102/what-do-the-fully-connected-layers-do-in-cnns/182122#182122">11</a>].</p><p>The sum of output probabilities from the Fully Connected Layer is 1. This is ensured by using the <a href="http://cs231n.github.io/linear-classify/#softmax">Softmax</a> as the activation function in the output layer of the Fully Connected Layer. The Softmax function takes a vector of arbitrary real-valued scores and squashes it to a vector of values between zero and one that sum to one.</p><h4>Putting it all together — Training using Backpropagation</h4><p>As discussed above, the Convolution + Pooling layers act as Feature Extractors from the input image while Fully Connected layer acts as a classifier.</p><p>Note that in <strong>Figure 15</strong> below, since the input image is a boat, the target probability is 1 for Boat class and 0 for other three classes, i.e.</p><ul><li>Input Image = Boat</li><li>Target Vector = [0, 0, 1, 0]</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*EZKbMsxDyG9-exyw" /><figcaption>Figure 15: Training the ConvNet</figcaption></figure><p>The overall training process of the Convolution Network may be summarized as below:</p><ul><li><strong>Step1:</strong> We initialize all filters and parameters / weights with random values</li><li><strong>Step2: </strong>The network takes a training image as input, goes through the forward propagation step (convolution, ReLU and pooling operations along with forward propagation in the Fully Connected layer) and finds the output probabilities for each class.</li><li>Lets say the output probabilities for the boat image above are [0.2, 0.4, 0.1, 0.3]</li><li>Since weights are randomly assigned for the first training example, output probabilities are also random.</li><li><strong>Step3:</strong> Calculate the total error at the output layer (summation over all 4 classes)</li><li><strong>Total Error = ∑ ½ (target probability — output probability) ²</strong></li><li><strong>Step4:</strong> Use Backpropagation to calculate the <em>gradients</em> of the error with respect to all weights in the network and use <em>gradient descent</em> to update all filter values / weights and parameter values to minimize the output error.</li><li>The weights are adjusted in proportion to their contribution to the total error.</li><li>When the same image is input again, output probabilities might now be [0.1, 0.1, 0.7, 0.1], which is closer to the target vector [0, 0, 1, 0].</li><li>This means that the network has <em>learnt</em> to classify this particular image correctly by adjusting its weights / filters such that the output error is reduced.</li><li>Parameters like number of filters, filter sizes, architecture of the network etc. have all been fixed before Step 1 and do not change during training process — only the values of the filter matrix and connection weights get updated.</li><li><strong>Step5:</strong> Repeat steps 2–4 with all images in the training set.</li></ul><p>The above steps <em>train</em> the ConvNet — this essentially means that all the weights and parameters of the ConvNet have now been optimized to correctly classify images from the training set.</p><p>When a new (unseen) image is input into the ConvNet, the network would go through the forward propagation step and output a probability for each class (for a new image, the output probabilities are calculated using the weights which have been optimized to correctly classify all the previous training examples). If our training set is large enough, the network will (hopefully) generalize well to new images and classify them into correct categories.</p><p><strong>Note 1:</strong> The steps above have been oversimplified and mathematical details have been avoided to provide intuition into the training process. See [<a href="http://cs231n.github.io/convolutional-networks/">4</a>] and [<a href="http://andrew.gibiansky.com/blog/machine-learning/convolutional-neural-networks/">12</a>] for a mathematical formulation and thorough understanding.</p><p><strong>Note 2:</strong> In the example above we used two sets of alternating Convolution and Pooling layers. Please note however, that these operations can be repeated any number of times in a single ConvNet. In fact, some of the best performing ConvNets today have tens of Convolution and Pooling layers! Also, it is not necessary to have a Pooling layer after every Convolutional Layer. As can be seen in the <strong>Figure 16</strong> below, we can have multiple Convolution + ReLU operations in succession before having a Pooling operation. Also notice how each layer of the ConvNet is visualized in the Figure 16 below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*unrba-w9oYWjSI9H" /><figcaption>Figure 16: Source [<a href="http://cs231n.github.io/convolutional-networks/">4</a>]</figcaption></figure><h4>Visualizing Convolutional Neural Networks</h4><p>In general, the more convolution steps we have, the more complicated features our network will be able to learn to recognize. For example, in Image Classification a ConvNet may learn to detect edges from raw pixels in the first layer, then use the edges to detect simple shapes in the second layer, and then use these shapes to deter higher-level features, such as facial shapes in higher layers [<a href="http://www.wildml.com/2015/11/understanding-convolutional-neural-networks-for-nlp/">14</a>]. This is demonstrated in <strong>Figure 17</strong> below — these features were learnt using a <a href="http://web.eecs.umich.edu/~honglak/icml09-ConvolutionalDeepBeliefNetworks.pdf">Convolutional Deep Belief Network</a> and the figure is included here just for demonstrating the idea (this is only an example: real life convolution filters may detect objects that have no meaning to humans).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*M8tQYbmcDg8a_xDp5aXZxA.png" /><figcaption>Figure 17: Learned features from a Convolutional Deep Belief Network. Source [<a href="http://web.eecs.umich.edu/~honglak/icml09-ConvolutionalDeepBeliefNetworks.pdf">21</a>]</figcaption></figure><p><a href="http://scs.ryerson.ca/~aharley/">Adam Harley</a> created amazing visualizations of a Convolutional Neural Network trained on the MNIST Database of handwritten digits [<a href="http://scs.ryerson.ca/~aharley/vis/harley_vis_isvc15.pdf">13</a>]. I highly recommend <a href="http://scs.ryerson.ca/~aharley/vis/conv/flat.html">playing around with it</a> to understand details of how a CNN works.</p><p>We will see below how the network works for an input ‘8’. Note that the visualization in <strong>Figure 18</strong> does not show the ReLU operation separately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*9FKcCIhXlGRrGlgw" /><figcaption>Figure 18: Visualizing a ConvNet trained on handwritten digits. Source [<a href="http://scs.ryerson.ca/~aharley/vis/conv/flat.html">13</a>]</figcaption></figure><p>The input image contains 1024 pixels (32 x 32 image) and the first Convolution layer (Convolution Layer 1) is formed by convolution of six unique 5 × 5 (stride 1) filters with the input image. As seen, using six different filters produces a feature map of depth six.</p><p>Convolutional Layer 1 is followed by Pooling Layer 1 that does 2 × 2 max pooling (with stride 2) separately over the six feature maps in Convolution Layer 1. You can move your mouse pointer over any pixel in the Pooling Layer and observe the 2 x 2 grid it forms in the previous Convolution Layer (demonstrated in <strong>Figure 19</strong>). You’ll notice that the pixel having the maximum value (the brightest one) in the 2 x 2 grid makes it to the Pooling layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*VxSImbjjbqyUL8JC" /><figcaption>Figure 19: Visualizing the Pooling Operation. Source [<a href="http://scs.ryerson.ca/~aharley/vis/conv/flat.html">13</a>]</figcaption></figure><p>Pooling Layer 1 is followed by sixteen 5 × 5 (stride 1) convolutional filters that perform the convolution operation. This is followed by Pooling Layer 2 that does 2 × 2 max pooling (with stride 2). These two layers use the same concepts as described above.</p><p>We then have three fully-connected (FC) layers. There are:</p><ul><li>120 neurons in the first FC layer</li><li>100 neurons in the second FC layer</li><li>10 neurons in the third FC layer corresponding to the 10 digits — also called the Output layer</li></ul><p>Notice how in <strong>Figure 20</strong>, each of the 10 nodes in the output layer are connected to all 100 nodes in the 2nd Fully Connected layer (hence the name Fully Connected).</p><p>Also, note how the only bright node in the Output Layer corresponds to ‘8’ — this means that the network correctly classifies our handwritten digit (brighter node denotes that the output from it is higher, i.e. 8 has the highest probability among all other digits).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*do86PC79nsLaty5f" /><figcaption>Figure 20: Visualizing the Filly Connected Layers. Source [<a href="http://scs.ryerson.ca/~aharley/vis/conv/flat.html">13</a>]</figcaption></figure><p>The 3d version of the same visualization is available <a href="http://scs.ryerson.ca/~aharley/vis/conv/">here</a>.</p><h4>Other ConvNet Architectures</h4><p>Convolutional Neural Networks have been around since early 1990s. We discussed the LeNet above which<strong> </strong>was one of the very first convolutional neural networks. Some other influential architectures are listed below [<a href="https://medium.com/towards-data-science/neural-network-architectures-156e5bad51ba">3</a>] [<a href="http://cs231n.github.io/convolutional-networks/">4</a>].</p><ul><li><strong>LeNet (1990s): </strong>Already covered in this article.</li><li><strong>1990s to 2012:</strong> In the years from late 1990s to early 2010s convolutional neural network were in incubation. As more and more data and computing power became available, tasks that convolutional neural networks could tackle became more and more interesting.</li><li><strong>AlexNet (2012) — </strong>In 2012, Alex Krizhevsky (and others) released <a href="https://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks.pdf">AlexNet</a> which was a deeper and much wider version of the LeNet and won by a large margin the difficult ImageNet Large Scale Visual Recognition Challenge (ILSVRC) in 2012. It was a significant breakthrough with respect to the previous approaches and the current widespread application of CNNs can be attributed to this work.</li><li><strong>ZF Net (2013) </strong>— The ILSVRC 2013 winner was a Convolutional Network from Matthew Zeiler and Rob Fergus. It became known as the <a href="http://arxiv.org/abs/1311.2901">ZFNet</a> (short for Zeiler &amp; Fergus Net). It was an improvement on AlexNet by tweaking the architecture hyperparameters.</li><li><strong>GoogLeNet (2014) — </strong>The ILSVRC 2014 winner was a Convolutional Network from <a href="http://arxiv.org/abs/1409.4842">Szegedy et al.</a> from Google. Its main contribution was the development of an <em>Inception Module</em> that dramatically reduced the number of parameters in the network (4M, compared to AlexNet with 60M).</li><li><strong>VGGNet (2014) </strong>— The runner-up in ILSVRC 2014 was the network that became known as the <a href="http://www.robots.ox.ac.uk/~vgg/research/very_deep/">VGGNet</a>. Its main contribution was in showing that the depth of the network (number of layers) is a critical component for good performance.</li><li><strong>ResNets (2015) — </strong><a href="http://arxiv.org/abs/1512.03385">Residual Network</a> developed by Kaiming He (and others) was the winner of ILSVRC 2015. ResNets are currently by far state of the art Convolutional Neural Network models and are the default choice for using ConvNets in practice (as of May 2016).</li><li><strong>DenseNet (August 2016) — </strong>Recently published by Gao Huang (and others), the <a href="http://arxiv.org/abs/1608.06993">Densely Connected Convolutional Network</a> has each layer directly connected to every other layer in a feed-forward fashion. The DenseNet has been shown to obtain significant improvements over previous state-of-the-art architectures on five highly competitive object recognition benchmark tasks. Check out the Torch implementation <a href="https://github.com/liuzhuang13/DenseNet">here</a>.</li></ul><h4>Conclusion</h4><p>In this post, I have tried to explain the main concepts behind Convolutional Neural Networks in simple terms. There are several details I have oversimplified / skipped, but hopefully this post gave you some intuition around how they work.</p><p>This post was originally inspired from <a href="http://www.wildml.com/2015/11/understanding-convolutional-neural-networks-for-nlp/">Understanding Convolutional Neural Networks for NLP</a>by Denny Britz (which I would recommend reading) and a number of explanations here are based on that post. For a more thorough understanding of some of these concepts, I would encourage you to go through the <a href="http://cs231n.github.io/">notes</a> from <a href="http://cs231n.stanford.edu/">Stanford’s course on ConvNets</a> as well as other excellent resources mentioned under References below. If you face any issues understanding any of the above concepts or have questions / suggestions, feel free to leave a comment below.</p><p>All images and animations used in this post belong to their respective authors as listed in References section below.</p><h4>References</h4><ol><li><a href="https://github.com/karpathy/neuraltalk2">karpathy/neuraltalk2</a>: Efficient Image Captioning code in Torch, <a href="http://cs.stanford.edu/people/karpathy/neuraltalk2/demo.html">Examples</a></li><li>Shaoqing Ren, <em>et al, </em>“Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks”, 2015, <a href="http://arxiv.org/pdf/1506.01497v3.pdf">arXiv:1506.01497</a></li><li><a href="https://medium.com/towards-data-science/neural-network-architectures-156e5bad51ba">Neural Network Architectures</a>, Eugenio Culurciello’s blog</li><li><a href="http://cs231n.github.io/convolutional-networks/">CS231n Convolutional Neural Networks for Visual Recognition, Stanford</a></li><li><a href="https://www.clarifai.com/technology">Clarifai / Technology</a></li><li><a href="https://medium.com/@ageitgey/machine-learning-is-fun-part-3-deep-learning-and-convolutional-neural-networks-f40359318721#.2gfx5zcw3">Machine Learning is Fun! Part 3: Deep Learning and Convolutional Neural Networks</a></li><li><a href="http://deeplearning.stanford.edu/wiki/index.php/Feature_extraction_using_convolution">Feature extraction using convolution, Stanford</a></li><li><a href="https://en.wikipedia.org/wiki/Kernel_(image_processing)">Wikipedia article on Kernel (image processing)</a></li><li><a href="http://cs.nyu.edu/~fergus/tutorials/deep_learning_cvpr12">Deep Learning Methods for Vision, CVPR 2012 Tutorial</a></li><li><a href="http://mlss.tuebingen.mpg.de/2015/slides/fergus/Fergus_1.pdf">Neural Networks by Rob Fergus, Machine Learning Summer School 2015</a></li><li><a href="http://stats.stackexchange.com/a/182122/53914">What do the fully connected layers do in CNNs?</a></li><li><a href="http://andrew.gibiansky.com/blog/machine-learning/convolutional-neural-networks/">Convolutional Neural Networks, Andrew Gibiansky</a></li><li>A. W. Harley, “An Interactive Node-Link Visualization of Convolutional Neural Networks,” in ISVC, pages 867–877, 2015 (<a href="http://scs.ryerson.ca/~aharley/vis/harley_vis_isvc15.pdf">link</a>). <a href="http://scs.ryerson.ca/~aharley/vis/conv/flat.html">Demo</a></li><li><a href="http://www.wildml.com/2015/11/understanding-convolutional-neural-networks-for-nlp/">Understanding Convolutional Neural Networks for NLP</a></li><li><a href="http://andrew.gibiansky.com/blog/machine-learning/convolutional-neural-networks/">Backpropagation in Convolutional Neural Networks</a></li><li><a href="https://adeshpande3.github.io/adeshpande3.github.io/A-Beginner&#39;s-Guide-To-Understanding-Convolutional-Neural-Networks-Part-2/">A Beginner’s Guide To Understanding Convolutional Neural Networks</a></li><li>Vincent Dumoulin, <em>et al</em>, “A guide to convolution arithmetic for deep learning”, 2015, <a href="http://arxiv.org/pdf/1603.07285v1.pdf">arXiv:1603.07285</a></li><li><a href="https://github.com/rasbt/python-machine-learning-book/blob/master/faq/difference-deep-and-normal-learning.md">What is the difference between deep learning and usual machine learning?</a></li><li><a href="https://www.quora.com/How-is-a-convolutional-neural-network-able-to-learn-invariant-features">How is a convolutional neural network able to learn invariant features?</a></li><li><a href="http://journal.frontiersin.org/article/10.3389/frobt.2015.00036/full">A Taxonomy of Deep Convolutional Neural Nets for Computer Vision</a></li><li>Honglak Lee, <em>et al</em>, <a href="http://web.eecs.umich.edu/~honglak/icml09-ConvolutionalDeepBeliefNetworks.pdf">“Convolutional Deep Belief Networks for Scalable Unsupervised Learning of Hierarchical Representations”</a> .</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd1851eb1f68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handling and Investing Customer Segmentation for Arvato Financial Services]]></title>
            <link>https://reubanzacker.medium.com/handling-and-investing-customer-segmentation-for-arvato-financial-services-6094c8361e34?source=rss-2cd0dc3b2bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6094c8361e34</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Reuban zacker]]></dc:creator>
            <pubDate>Thu, 20 Jun 2019 16:51:56 GMT</pubDate>
            <atom:updated>2019-06-21T10:31:26.267Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A report for Udacity Data Scientist Capstone Project: Create a Customer Segmentation Report for Arvato Financial Services.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*PYQxXBYVzuIfhSB05zDNRw.jpeg" /></figure><h3>Project Overview</h3><p>By creating customer segmentation and comparing to general population, one can know which part of the general population are more likely to be customer and which part are not. I analyzed demographics data for customers of a mail-order sales company in Germany, comparing it to demographics information for the general population.</p><p>Firstly, I used different approaches to pre-process the data, and then I used unsupervised learning techniques, PCA (Principle Componets Analysis) and k-NN (k-nearest neighbor algorithm), to perform customer segmentation and to identify the core customer traits of the company.</p><p>Secondly, with demographics information for targets of a marketing campaign for the company, I used different models to predict which individuals are most likely to convert into customers.</p><p>Finally, I also tested the model in competition through kaggle, where the competition is <a href="https://www.kaggle.com/c/udacity-arvato-identify-customers">here</a>, and all the contents discussed is based on the jupyter notebook uploaded to <a href="https://github.com/HuangKY/DSND_Term2_Capstone_Arvato">Github repository here</a>.</p><h3>Problem Statement</h3><p>The goal includes four parts as follows:</p><ol><li>Data pre-processing: clean and re-encode data.</li><li>Segmentation: use unsupervised learning techniques to create clusterings of customer and general population, and then identify the difference.</li><li>Prediction: use the demographic features to predict whether or not a person became a customer after a mailout campaign.</li><li>Use the same algorithm to predict and submit to Kaggle competition to get evaluation.</li></ol><h3>Metrics</h3><p>In the segmentation part, explained variance ratio is be used in the PCA process. Explained variance accounts for the ability to describe the whole feature variance, the more the explained variance, the more import of the component.</p><p>In the supervised model prediction parts, precision is mainly used as main metric.</p><h3>Analysis and Methodology — Data Exploration, Visualization and Preprocessing</h3><p>There are four datasets, all of which have identical demographics features (only part of them are different)</p><ul><li><strong><em>Udacity_AZDIAS_052018.csv</em></strong>: Demographics data for the general population of Germany; 891 211 persons (rows) x 366 features (columns)</li><li><strong><em>Udacity_CUSTOMERS_052018.csv</em></strong>: Demographics data for customers of a mail-order company; 191 652 persons (rows) x 369 features (columns)</li><li><strong><em>Udacity_MAILOUT_052018_TRAIN.csv</em></strong>: Demographics data for individuals who were targets of a marketing campaign; 42 982 persons (rows) x 367 (columns).</li><li><strong><em>Udacity_MAILOUT_052018_TEST.csv</em></strong>: Demographics data for individuals who were targets of a marketing campaign; 42 833 persons (rows) x 366 (columns).</li></ul><p>In addition to the above data, there are two additional meta-data:</p><ul><li><strong><em>DIAS Information Levels — Attributes 2017.xlsx</em></strong>: a top-level list of attributes and descriptions, organized by informational category</li><li><strong><em>DIAS Attributes — Values 2017.xlsx</em></strong>: a detailed mapping of data values for each feature in alphabetical order</li></ul><p>Also, I created a file called <strong><em>DIAS_Attributes_Values_2017_details.csv</em></strong> based on the <strong><em>DIAS Attributes — Values 2017.xlsx</em></strong> file, so that I can map each attribute to its type or missing value coding.</p><h4>Deal with Missing/Unknown Value</h4><p>During the Data pre-processing process, I re-encode the missing or unknown value as Nan to make sure the value are all encoded consistently. For example, the ‘-1’ value means unknown in AGER_TYP attribute, I substitute it with <em>np.nan.</em></p><h4>Evaluate missing data in each attribute</h4><p>In each attribute, the proportion of missing value is calculated. Looking into the distribution of missing ratio, most attribute are below 20%. Therefore, I deleted the outliers based on this criterion. (Fig. 1)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*D9l4DzEQ3AnUMVmYoC0slg.png" /><figcaption>Fig. 1 Distribution of missing ratio for each attribute</figcaption></figure><h4>Evaluate missing data in each row</h4><p>Missing data in each row is also evaluted. It can be seen that most rows have no missing value, so I will drop all the rows that have at least one missing value. (Fig. 2) However, in order to make sure the data I drop have no big inference to the whole data, I will check the distribution for some features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*EfNZudSu-KCHnJf1XVj4fg.png" /><figcaption>Fig. 2 Distribution of missing ratio in each row</figcaption></figure><p>By comparing the distribution of values for at least five attributes between the two subsets: the data that does not include deleted rows and the data that only include the rows deleted, there is no large difference between the two. (Fig. 3) So I will preserve this criterion in dealing with the missing value in rows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*OYW_XaRUEEIfTXC3y_Yg3w.png" /><figcaption>Fig. 3 Comparison of distribution of two data set on specific attributes (see Github for all graphs)</figcaption></figure><h4>Re-Encode and pick up features</h4><p>There are four types of data in the data: <em>ordinal, numeric, categorical and mixed</em>. For ordinal variables, although the values might not be linearly related, I assume the ordinal variables as interval variables here. The remaining categorical and mixed variables will be re-encoded and selected.</p><p>Regarding categorical variables, for instance, the OST_WEST_KZ feature includes values of ‘W’ and ‘O’, which is binary. I re-encode it as 0 and 1 numerical binary variable. On the other hand, the CAMEO_DEUG_2015 feature includes ‘X’ value that is not described in the details documents so I re-encode it as Nan. For the remaining categorical variables, I plotted the correlation graph to understand whether the features that shared common characteristics. (Fig. 4)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*OPIbpL16JQAbZ8lPE7_aSQ.png" /><figcaption>Fig. 4 Correlation heat-map between categorical features</figcaption></figure><p>Based on the graph above, LP_FAMILIE_FEIN and LP_FAMILIE_GROB are highly correlated, and LP_STATUS_FEIN and LP_STATUS_GROB are also highly correlated. Since LP_FAMILIE_FEIN and LP_STATUS_FEIN are too detailed, I dropped those two here. In addition, although CAMEO_DEUG_2015and CAMEO_DEU_2015 are not plotted in the graph above, based on the description file both of them are very similar. So I dropped CAMEO_DEU_2015 to simplify. Finally, there is another feature EINGEFUEGT_AM that is not described in the document, I dropped this one as well. After re-encoding and selecting the categorical variables, I used <em>get_dummies </em>method in Pandas to transform to dummy value.</p><p>In addition to the categorical variables, there are six mixed features as follows:</p><ol><li>CAMEO_INTL_2015</li><li>LP_LEBENSPHASE_FEIN</li><li>LP_LEBENSPHASE_GROB</li><li>PLZ8_BAUMAX</li><li>PRAEGENDE_JUGENDJAHRE</li><li>WOHNLAGE</li></ol><p>By looking into CAMEO_INTL_2015 attribute, it seemed the attribute can be separated into two interval variables: one is related to wealth and the other one is related to lifestage, so I used map method to re-encode that feature. Regarding LP_LEBENSPHASE_FEIN and LP_LEBENSPHASE_GROB, since both of them describe the life stage of a person which shares similar traits to CAMEO_INTL_2015, I dropped the two attributes here. On the other hand, the PLZ8_BAUMAX and WOHNLAGE attributes can be regarded as interval variables to some extent, I preserved them here. Finally, looking in to PRAEGENDE_JUGENDJAHRE feature, it looks it can also be separated into two parts: decades and movement. Therefore I created two functions to process this variable.</p><p>After all the pre-processing and re-encoding process, the <em>Udacity_AZDIAS_052018.csv </em>is cleaned and transformed to pandas daframe object <em>azdias_informative_dummy.</em> I also create a function <em>clean_data</em> that includes all the process mentioned above, so that for each demographic data, the cleaning process is assured and remain the same.</p><p>Finally, some features got Nans during the re-encoding process, so I used <em>Imputer</em> to subsitute<em> with means</em>.Then I used <em>StandardScaler</em> to scale all the features. To have a check for the final output, I have count the number of Nans (missing ratio) in each attribute. (Fig. 5)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*cL81xP75bwDgCD7A5LDVdQ.png" /><figcaption>Fig 5. The missing ratio in each attribute (parial)</figcaption></figure><h4>Implementation and Refinement</h4><p><strong>Customer Segmentation Report Part</strong></p><p>From almost 425 features, I conducted PCA to extract import features of the general population. Knowing the main explained variance for each attribute, I decided to use first 6 components in that after 6th componets, the accumulated variance increases slowly. (Fig. 6 and Fig. 7)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*KAs9jrxWbTAXycdBfdRbaA.png" /><figcaption>Fig. 6 (Top): Explained variance across different PCA components. (Bottom): Accumulated</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*OuRghnld4Rzt1_T18qglXg.png" /><figcaption>Fig. 7 Accumulated explained variance for top 100 PCA components</figcaption></figure><p>After selecting the main PCA componets, I used KMeans method to apply clustering. In order to decide how many clusters I should use, I investigate the number of clusterings to the KMeans score. It is showed that when the number of clusterings increases to about 30, the error (score) gets low enough and does not change rapidly. Therefore, I chose 30 as the number of clusterings. (Fig. 8)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*h9CADgdxdRZ1WHktEZJF5g.png" /><figcaption>Fig. 8 The change of score (error) to k (number of clusterings)</figcaption></figure><p>All the process and methods used above are also applied to customer data. Therefore, I can get the clusterings labels for both general population data and customer data.(Fig. 9) By plotting the distribution of the clusterings, I got the results of difference across the two datasets. (Fig. 10)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*0M7A7jWUcb8PddA0kASesg.png" /><figcaption>Fig. 9 The distribution of the clusterings across two populations</figcaption></figure><p>Here in the table where gp_portion means the proportion of of the clusterings in general population and cs_portion means the proportion of of the clustering in customer population showed that the difference between customers and general population is largest in clusters 21 and 28, and lowest in clusters 6 and 20.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*K2VLQUmSvVwP7JCjTI2Lmg.png" /><figcaption>Fig. 10 The difference of clustering distribution in the two datasets</figcaption></figure><p><strong>Supervised Learning Model Part</strong></p><p>In the supervised learning model part, since the data shares the same demographic features from the general population, all the pre-processing is the same as in the customer segmentation parts. However, in order to assure the cleaned columns are the same and all the rows are preserved, the clean_data function is revised to <em>clean_data_preserve_row</em>. After the preprocessing process, I used the same algorithm in the segmentation report part to get the PCA values and clusterings.</p><p>The independent variables are the original cleaned features, the 6 PCA components and the clustering label. The dependent variable is the RESPONSE column in the dataset. In order to predict the the RESPONSE value, which is 0 or 1 binary value, I used three models: logistic regression, random forest and k-NN to predict. GridSearch is also conducted to get the best parameters.</p><h3>Results</h3><h4>Interpretation, Model Evaluation and Validation</h4><p><strong>Customer Segmentation Report Part</strong></p><p>Firstly, I will discuss the 6 PCA components, and then I will use the clustering results above to understand the difference between general population and the customers.</p><p>For each PCA components, I showed the top feature details in order to get know to the characteristics. (Fig. 11 and Fig. 12) The first column shows the importance for each feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*BV_FLYs1q32MRq4RyuAxYg.png" /><figcaption>Fig. 11 The details of PCA components 1 to 3</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*P7lKbDkzxcOSGnQk1CZP8g.png" /><figcaption>Fig. 12 The details of PCA components 4 to 6</figcaption></figure><p>Here is the summary based on the details of each component. For convenience, I will name each component and explain in behind.</p><p><strong><em>PCA component 1</em></strong> : <strong><em>Rich People Index. </em></strong>Due to low mobility (moving patterns), high share of 1–2 family houses in the PLZ8, high share of cars per household, lots of buildings in the microcell and high financial interest. It might be some people who care about financial news or products, and living in a busy city area and tend to live alone or live with partner only.</p><p><strong><em>PCA component 2: Young and Wandering Index. </em></strong>The person’s birth is mainly in 90s with digital media, not a money saver, has high online affinity, not a financial investor, and not traditional minded.</p><p><strong><em>PCA compoent 3: Car Brand Mania Index.</em></strong> Due to high share of BMW &amp; Mercedes Benz, upper class cars or sportscars, and high share of top German manufacturer (Mercedes, BMW).</p><p><strong><em>PCA compoent 4: Online Shopper Index.</em></strong> Due to high transaction activity, high transaction activity MAIL-ORDER, high density of inhabitants per square kilometer, and large number of 6–10 family houses.</p><p><strong><em>PCA component 5: Car Life Index.</em></strong> Due to high share of cars with an engine power between 61 and 120 KW, high share of cars with no preowner, large number of cars with 5 seats, high share of Asian Manufacturers, and high share of newbuilt cars</p><p><strong><em>PCA compoent 6: Anti-society Index.</em></strong> Due to low dreamily affinity, low familiar minded, low cultural and social minded, and not religious.</p><p>In addition to the PCA components, I also compared the difference between the general population and customers. As mentioned in the previous section, I got the results below from Fig. 9 and Fig. 10.</p><ul><li>General population that are <strong><em>more</em></strong> likely to be part of the mail-order company’s main customer: cluster 21 and 28</li><li>General population that are <strong><em>less</em></strong> likely to be part of the mail-order company’s main customer: cluster 6 and 20</li></ul><p>Looking into each clusters, here is the characteristic for each (take the criterion of absolute value of 3 for convenience):</p><ul><li>cluster 21: PCA component 2 (<em>Young and Wandering Index</em>) is negatively related.</li><li>cluster 28: PCA component 4 (<em>Online Shopper Index</em>) is positively related.</li><li>cluster 6: PCA component 1 (<em>Rich People Index</em>) and 3 (<em>Car Brand Mania Index</em>) are negatively related while PCA component 5 (<em>Car Life Index</em>) is positively related</li><li>cluster 20: PCA component 1 (<em>Rich People Index</em>) is negatively related while 6 (<em>Anti-society Index</em>) are positively related</li></ul><p>Combining all the information above, here is the summary.</p><ul><li>The population who tend to be customer: The people who may be adults and usually shop online.</li><li>The population who might not be customer: The people who are not rich, nor focusing on the brand of cars. However, they tend to use cars often. Some of them might have some anti-society characteristics.</li></ul><p>To sum up, the target of the campaign should focus on the users who are not young and shops online often. On the other hand, for those who are very rich or interested to cars a lot or have anti-society traits, there might be no need to send the campaign to them.</p><p><strong>Supervised Learning Model Part</strong></p><p>Data was separated into training data and test data. However, the results were not good. For the three models (logistic regression, random forest and k-NN), none of them has good precision. I will discuss it in the next justification part.</p><h4>Justification</h4><p><strong>Supervised Learning Model Part</strong></p><p>Because the origin data is unbalanced (most RESPONSE is 0, value 1 is below 1 %), I have tried the following parts to solve the issue:</p><ol><li>Use GridSearch method.</li><li>Set ‘class_weight’ parameter.</li><li>Set the stratify parameter in train_test_split process.</li><li>Try more than 6 PCA components to 20 PCA components.</li></ol><p>However, none of them increased the precision. I will leave this part in the improvement section in the end.</p><p>Also, I would like to thank <strong>Udacity</strong>, <strong>Arvato Bertelsmann</strong> and collaborate company to provide such wonderful datasets for me to learn and practice my machine learning and data science skills. Thank you for your time and hope you enjoyed this blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6094c8361e34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Quick Picture of Boston and Seattle Airbnb Data]]></title>
            <link>https://reubanzacker.medium.com/a-quick-picture-of-boston-and-seattle-airbnb-data-20e5e5c8cc60?source=rss-2cd0dc3b2bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/20e5e5c8cc60</guid>
            <category><![CDATA[airbnb]]></category>
            <dc:creator><![CDATA[Reuban zacker]]></dc:creator>
            <pubDate>Mon, 10 Jun 2019 06:27:02 GMT</pubDate>
            <atom:updated>2019-06-10T06:27:02.256Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*le2lhaunTt1j2KW5qhXwNQ.jpeg" /></figure><h3>Introduction</h3><p>Are you wondering how Airbnb host set up rental price for their apartment/house? What can we discover from Boston and Seattle Airbnb dataset?</p><p>There are several questions I found interesting before diving into the data, hope we can figure them out by the end of the blog:</p><blockquote>Is there any noticeable difference between Seattle and Boston Airbnb?</blockquote><blockquote>What are the most important features to estimate Airbnb rental price?</blockquote><blockquote>What are the top amenities people needs most?</blockquote><p>We might be able to answer these questions based on our own understanding, but let’s also take a look at the answer from data.</p><h3>Quick Glance at Seattle and Boston</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*2A3IchN_Pv2F3u1khYb8iQ.png" /><figcaption>Seattle Airbnb Listings</figcaption></figure><p>From the data provided by mid August 2018, Boston has 6036 listings with an average of $184/night while Seattle has 8494 listings with an average of $152/night.</p><p>To give a more detailed sense of price range, 75% of Boston listings lies below $219/night while 75% of Seattle listings lies below $189/night which suggests the rental price for Airbnb in Seattle is slightly cheaper than in Boston.</p><p>The most expensive list in Boston is $3999/night while in Seattle the most expensive one is $5400/night.</p><p>Airbnb hosts can list entire homes/apartments (red), private (green) or shared rooms (blue). In Boston, hosts listed their room type as 62.2%, 36.6% and 1.2% respectively for the above three room types. While in Seattle the room type percentage is 66.6%, 30.4% and 3.1% respectively.</p><p>Let’s take a deeper look at data and try to use them to estimate the rental price of Airbnb in Boston and Seattle.</p><h3>Predicting Rental Price in Boston and Seattle</h3><p>As 99% of the listing price are below 500, so I drop the rows above 500 to get a more stable prediction. Missing values were filled by median value or most frequent value based on some other related features.</p><p>GradientBoostingRegressor was used as clasiifier for both datasets and a five-fold GridSearchCV was applied to find the best hyperparameter for the classifier.</p><p>On the other hand, 1/5 of the preprocessed dataset was used as test data and the remaining 4/5 are used to train machine learning model.</p><h3>What are the Most Important Features to Predict Rental Price?</h3><p>I listed top 20 features for both cities which plays the most important role in predicting rental price. Let’s take a look how they look like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*s2P5Jf2FuTPaDiDMjqKo2w.png" /><figcaption>Top 20 Features to predict Boston Rental Price</figcaption></figure><p>In Seattle, features are more equally important. There are some new features such as <em>host_response_rate, extra_people and guest_included. </em>But most of the top features are shared with Boston machine learning model. We can see cleaning_fee is the most important feature here, as more cleaning needs result from larger room, probably more bathrooms and more services.</p><h3>What are the Top Amenities to Pay Attention?</h3><p>After training machine learning model, we can also check how amenities influence the price prediction/how important are they.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g7CK9p8V9iSvkMiwgG-C8A.png" /><figcaption>Boston Top 10 Important Amenities</figcaption></figure><p>In Boston, amenities such as TV, Internet lockbox and hangers are important as expected. Familiy/kid friendly is also a feature which most traveller will consider. We can see if you have a pool in your property, you might have more confident to raise your rental price.</p><p>One interesting phenomenon is Airbnb has more amenities listed in Seattle (168) than Boston (120).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LOyQAYM0nwzBueSWV0Bpyg.png" /><figcaption>Seattle Top 10 Important Amenities</figcaption></figure><p>Seattle hosts have some extra amenities than Boston’s such as <strong><em>Amazon Echo, Heated Floors, Formal Dinning Area and Memory Foam Mattress. </em></strong>Noting that they are very host dependent and not a lot of hosts provide these amenities so they might not influence the prediction a lot. We can see the importance of amenities are not as high as other features in the last section. As there are more than 100 amenities provided by the hosts and most of them are always provided as they are needed by most guest.</p><p>In Seattle, the most important amenities seems to be <em>First aid kit</em>, while TV and Internet are also in the top 10 as they should be.</p><h4>Conclusion</h4><p>In this blog, we dive into the most recent Airbnb Boston and Seattle dataset and found many interesting phenomenom. Here I listed what we have done:</p><blockquote>We gathered the Boston and Seattle Airbnb data, and compare the two dataset.We established a machine learning model to predict the rental price for both cities.We took a look at the feature importance of the trained model and check if they make sense.We list all the important amenities to get a better feeling how host can make more money by providing better services to meet customers’ need.</blockquote><blockquote>There’s a lot can be done in the future such as studying the reviews provided by the customer. This is my first data science blog, hope you enjoy it, thank you for your attention.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20e5e5c8cc60" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Growing role of Artificial Intelligence in HR Tech]]></title>
            <link>https://reubanzacker.medium.com/growing-role-of-artificial-intelligence-in-hr-tech-93cc399ce597?source=rss-2cd0dc3b2bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/93cc399ce597</guid>
            <dc:creator><![CDATA[Reuban zacker]]></dc:creator>
            <pubDate>Sun, 10 Mar 2019 04:32:02 GMT</pubDate>
            <atom:updated>2019-03-10T04:32:02.782Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*0wpbP75bpI4EyjEvxAcgMQ.png" /></figure><p>As a concept, Artificial Intelligence (AI) has been around for decades. However, it was in the last 20 years that the successful application of Machine Learning (ML) enabled the boom of AI. The ability of a machine to perform cognitive functions associated with the human mind, AI is used everywhere from Siri conversing with a user to IBM Watson’s autonomous weaponry.</p><p><strong>AI for business</strong></p><p>Today, AI has begun to infiltrate board rooms and engage the workforce. It is helping employees manage their time better and add strategic value to the business. It includes a range of capabilities that can solve several business problems. In fact, AI has the potential to make a tectonic shift in the efficiency and productivity of various industries by introducing full-scale automation for tedious, time-consuming tasks and augmenting various human capabilities and functions.</p><p>According to a new McKinsey Global Survey, most organisations are implementing AI devices across their standard business processes or are at least contemplating it. However, the adoption of AI is still in its nascent stages. Roughly 30 percent of the respondents of the McKinsey survey claimed to pilot the use of AI.</p><p>Many others are exploring ways of utilising it to improve their productivity, ease and efficiency. The organisations already using AI have confirmed that it has resulted in a progressive transformation of their core processes such as manufacturing, marketing, human resources, etc.</p><p><strong>The relevance and scope of AI in HR Tech</strong></p><p>HR is one of the core functions of any organisation. AI adoption can spell transformation for this function too. A Deloitte survey confirmed that 40 percent of respondent companies were using some form of AI in HR. However, the benefits are not immediate in nature.</p><p>Keeping that in mind, adoption of AI-based HR technology can yield both short-term and long-term benefits. Some of them are already being witnessed while others are expected with growing investments in AI and its adoption.</p><p>A growing number of startups are providing AI-based technology and services to HR functions for various activities. Some of the key ways in which AI can play a significant role in HR technology are given below:</p><p><strong>1. Talent management</strong></p><p>Every organisation has human capital needs and talent management refers to the organisational planning done to meet the workforce needs. As part of it, HR undertakes activities such as talent acquisition, employee management, performance management, succession management, etc.</p><p>For example, organisations like Greenhouse Software are integrating IBM-AI capabilities through the IBM Watson Candidate Assistant, a suite of AI-powered tools that matches jobs to the candidates and vice-versa based on their personalities, skills and interest areas. Greenhouse collects candidate data through various funnels including social media.</p><p>For example, it would observe minute details such as whether an employee submitted their work sample through LinkedIn or Glassdoor. It maintains scorecards for all the employees based on its own analysis with zero human intervention. This helps the interviewers sort through the applications ahead of time and keep the talent funnel ready.</p><p><strong>2. Recruitment</strong></p><p>AI helps companies through the process of pre-hire assessments. While assessments are nothing new, in the era of AI, a company can predict which candidate will be a better hire in the future. Sample this, a candidate applies for a role in a company by entering his resume. An AI-powered system analyses the resume and compares it to the successful employees in the same role.</p><p>A chatbot reaches out to the candidate and asks some pre-screening questions. The candidate data is collected, and AI uses it to score the candidate and present the result to a recruiter.</p><p>The recruiter then decides whether to move forward to the interview stage or not. Such data cumulatively collected can be used along with employee performance and retention data to evaluate how well a candidate will perform on the job. In this way, AI capabilities minimise the scope of human bias and speed up the recruitment process.</p><p><strong>3. Scheduling</strong></p><p>Already, AI personal assistants like Amy Ingramare scheduling meetings, interviews and even ordering food. Amy is a human-like AI assistant who learns from observing employee preferences over time and then manages it in an automated manner for them. Similarly, AI based tools like zoom.ai allow employees to offload and automate regular tasks like look for a file and schedule meetings. By automating the repetitive and low value add tasks, employees can focus on more strategic work. It means the employees do not have to get involved in unproductive tasks that hamper employee productivity and waste organisational time.</p><p>4. Onboarding Process</p><p>Studies suggest that employees who go through structured onboarding are 58 percent more likely to remain with the organisation after 3 years. HR can automate the many tasks of onboarding that would take hours otherwise. AI tools like zoom.aican collect relevant data from new employees as well as generate their offer, send out the documents and answer the queries. The queries may range from how to fix the printer to setting up passwords, etc.</p><p>Not only does it save HR’s time and energy, but it also makes all the above processes swift for the new employee. Once such issues are taken care of, HR teams can focus on integrating the employee into the mainstream of the organisation.</p><p><strong>5. Sentiment analysis</strong></p><p>A company called Ultimate Software has built an AI platform-based sentiment analysis system ‘Perception’ to gauge employee sentiments and solve Valvoline’s workplace issues.</p><p>A sentiment analysis software is an AI-based tool that can give organisations an insight into their work processes and issues. This can help them resolve the problems that can nag the employees and impact their performance.</p><p>Perception’s system uses machine language processing algorithms – a sub-domain of AI. By collecting and analysing the languages accumulated over a period of time, Perception gauges employee feelings through it. The company then uses the learnings in order to iron out any issues related to employee well-being, boosting employee engagement.</p><p>Factors required for successful AI implementation in HR</p><p>While there is no denying that AI can lead to a significant impact on the HR value chain, there needs to be a facilitation of some fundamental factors. These factors should create a value proposition for future HR processes and workforce. The organisations need to begin with the right mindset towards AI adoption with a clear business vision. The responsibility of which does not lie only with the HR heads, but with the overall leadership. The leadership also needs to propagate AI technology adoption at every level.</p><p>For HR processes, there has to be a change management strategy in place as well to deal with the workforce’s emotional and work-related issues resulting from an organisation’s focus in this space. The initial AI pilots in HR technology need to be leveraged as examples of AI success within the HR sphere. This can be done by scaling them into initiatives that can impact the entire workforce.</p><p>The purpose of AI adoption in HR tech is to improve the productivity and efficiency of HR so that it can meet its core objectives. Employee engagement and improved employee experience are at the heart of any successful HR operation. This should be borne in mind that the ultimate role of AI in HR technology is to facilitate employee experience at all levels.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93cc399ce597" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I'm so amazed and impressed of AWS Firecracker]]></title>
            <link>https://reubanzacker.medium.com/why-im-so-amazed-and-impressed-of-aws-firecracker-920525494b4?source=rss-2cd0dc3b2bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/920525494b4</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Reuban zacker]]></dc:creator>
            <pubDate>Fri, 22 Feb 2019 02:58:23 GMT</pubDate>
            <atom:updated>2019-02-22T02:58:23.362Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*_0S_od_0x4j-oQhKptJW_A.png" /></figure><p>AWS Firecracker is tiny, efficient, fast, and might redefine the virtual machine. Here’s what you need to know about this AWS product.Cloud-based virtual computing has been the go-to for years, and AWS has been <a href="https://www.techrepublic.com/article/state-of-the-cloud-union-how-aws-microsoft-google-and-alibaba-stack-up/">the reigning champion</a> for most of that time. AWS has noticed that modern serverless cloud computer users focus on two things: Containers and functions. In other words, lots of small impacts, segmented virtual machines (VMs).</p><p>Enter <a href="https://aws.amazon.com/blogs/aws/firecracker-lightweight-virtualization-for-serverless-computing/">Firecracker</a>, the latest VM product from <a href="https://www.techrepublic.com/article/amazon-web-services-the-smart-persons-guide/">Amazon Web Services</a>. Firecracker, in the words of AWS Chief Evangelist Jeff Barr, is “what a virtual machine would look like if it was designed for today’s world of containers and functions.”</p><p>Firecracker is a very different kind of product — it acts as a combination of a VM and a container. Here are 10 things tech pros should know about AWS Firecracker.</p><h3>1. AWS Firecracker is a Kernel-based Virtual Machine</h3><p>Also known (a bit confusingly) as a KVM, <a href="https://www.linux-kvm.org/page/Main_Page">Kernel-based Virtual Machines</a> are VMs that run in the Linux kernel and treat the kernel as their hypervisor. Multiple KVMs can be run at once, and like typical VMs each has its own virtualized hardware.</p><p>AWS calls each instance of Firecracker a “microVM.”</p><h3>2. AWS designed Firecracker to be secure</h3><p>Firecracker is built with multiple layers of security, including the following:</p><ul><li>A <a href="https://aws.amazon.com/blogs/aws/firecracker-lightweight-virtualization-for-serverless-computing/">simple guest model</a> that allows Firecracker users access to minimal elements of the KVM: “a network device, a block I/O device, a Programmable Interval Timer, the KVM clock, a serial console, and a partial keyboard (just enough to allow the VM to be reset).”</li><li>Firecracker is jailed through the use of <a href="https://www.kernel.org/doc/html/latest/userspace-api/seccomp_filter.html">seccomp BPF</a> and control groups. Also, it has access to only a limited list of system calls.</li><li>The Firecracker process is statically linked, which means all the libraries it needs to run are included in its executable code. This makes new Firecracker environments safer by eliminating outside libraries.</li></ul><h3>3. AWS Firecracker VMs have an incredibly small footprint</h3><p>Each Firecracker microVM only uses about 5 <a href="https://en.wikipedia.org/wiki/Mebibyte">MiB</a>, or roughly 5.24 MB, of memory. According to AWS, that means thousands of Firecracker microVMs can be run on a single virtual CPU.</p><p>AWS users who want to deploy Firecracker in their own AWS instances won’t have to worry about using much processing power, even with lots of Firecracker VMs running.</p><h3>4. AWS Firecracker is a fast, high-performance system designed for short-lived tasks</h3><p>AWS sees Firecracker as the next generation of event-driven computing, and its quick launch, minimal resource design is built for doing quick computations that require a container-like microVM to spin up, execute, and spin down in order to wait for a new task.</p><p>A single Firecracker microVM can be launched in 125 ms, and AWS said that launch times should get even shorter in 2019. You’d be hard-pressed to find something faster.</p><h3>5. AWS Firecracker is very stripped down</h3><p>As mentioned in the security section of this article, Firecracker microVMs don’t contain much. You’ll only find <a href="https://www.linux-kvm.org/page/Virtio">Virtio</a> network drivers, Virtio block drivers, a Programmable Interval Timer, the KVM clock, a serial console, and a single-button keyboard.</p><p>Firecracker isn’t a complete device model, it doesn’t have any emulated BIOS, and it gives potential attackers very little to work with. Its lack of features also makes it incredibly fast.</p><h3>6. AWS Firecracker doesn’t support Kubernetes, Docker, or non-Intel chips</h3><p>As The Register points out, Firecracker <a href="https://www.theregister.co.uk/2018/11/27/aws_sets_firecracker/">has a few shortcomings</a>, especially for those using AMD or ARM systems: Neither of those chipsets will support Firecracker yet, though AWS <a href="https://aws.amazon.com/about-aws/whats-new/2018/11/firecracker-lightweight-virtualization-for-serverless-computing/">has said</a> support for both is coming in 2019.</p><p>Neither Kubernetes or Docker are supported either, but AWS is working on something similar: Its “containerd” container runtime has some prototype code that allows it to manage containers as Firecracker microVMs. The Register said that, with further work, Docker and Kubernetes support may emerge.</p><h3>7. Amazon is already using Firecracker</h3><p>Those concerned about the practicality, stability, or usability of Firecracker need not be concerned: Amazon <a href="https://aws.amazon.com/blogs/opensource/firecracker-open-source-secure-fast-microvm-serverless/">is already using it</a> in places you’re likely familiar with: AWS Lambda and AWS Fargate.</p><p>In Lambda, Firecracker is used to provision and run sandboxes where Lambda functions are executed, which AWS said makes Lambda faster and more secure.</p><p>In Fargate, Firecracker has actually replaced AWS EC2 as the dedicated environment for executing Fargate tasks. Now all of those Fargate instances run inside dedicated Firecracker microVMs.</p><h3>8. AWS Firecracker is open source</h3><p>Those interested in being part of the development process of AWS Firecracker are in luck: It’s open source, <a href="https://github.com/firecracker-microvm/firecracker">available on GitHub</a>, and ready for contribution.</p><p>AWS said it’s “ready to review and accept pull requests and look forward to collaborating with contributors from all over the world.” Not only that, but organizations that want to build custom Firecracker deployments can start today as well.</p><h3>9. You can run AWS Firecracker on a local machine</h3><p>Firecracker is designed to run on AWS .metal instances, as well as on any bare-metal servers.</p><p>Running AWS Firecracker in the cloud isn’t required — it can run in on-premise servers and even on developer laptops.</p><h3>10. You can learn to get started with AWS Firecracker on GitHub</h3><p>The Firecracker GitHub repository has a thorough <a href="https://github.com/firecracker-microvm/firecracker/blob/master/docs/getting-started.md">getting started</a> page that includes Firecracker prerequisites, how to get the Firecracker binary, how to run it, how to build it from source, and more.</p><p><strong><em>That’s all, I have summarized the knowledge I acquired from TechRepublic and AWS. I would be happy if it helps some to kick-start in the AWS Firecracker. It is no more a Buzzword. It is happening. please share your thoughts and hit that clap button if you feel good about this-thanks!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=920525494b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Structure and Algorithm]]></title>
            <link>https://medium.com/series/data-structure-and-algorithm-b8a66fb374fb?source=rss-2cd0dc3b2bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8a66fb374fb</guid>
            <dc:creator><![CDATA[Reuban zacker]]></dc:creator>
            <pubDate>Mon, 10 Dec 2018 17:44:24 GMT</pubDate>
            <atom:updated>2018-12-10T17:44:24.333Z</atom:updated>
            <content:encoded><![CDATA[<h3>Data structure and Algorithm part 1 — overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sMryEXZVPKFjGNcfSzE8Mw.jpeg" /></figure><p>A data structure is a systematic way to organize data in order to use it efficiently. Following terms are the foundation of a data structure.</p><ul><li><strong>Interface </strong>— Each data structure has an interface. Interface represents the set of operations that a data structure supports. An interface only provides a list of supported operations. type of parameters they can accept and return type of these operations.</li><li><strong>Implementation </strong>— Implementation provides the internal representation of data structure. Implementation also provides the definition of the algorithm used in the operations used in the operations of the data structures.</li></ul><h3>Characteristics of a Data Structure</h3><ul><li><strong>Correctness </strong>— Data structure implementation should implement its interface correctly.</li><li><strong>Time Complexity</strong> — Running time or the execution time of operation of the data structure must be as small as possible.</li><li><strong>Space Complexity</strong> — Memory usage of a data structure operation should be as little as possible.</li></ul><h3>Need for Data Structure</h3><p>As applications are getting complex and data rich, there are three common problems that applications face nowadays.</p><ul><li><strong>Data Search </strong>— Consider an inventory of 1 million items of a store. if the application is to search an item, it has to search an item in 1 million items every time slowing down the search. as data grows, a search will become slower.</li><li><strong>Processor speed</strong> — Processor speed although being very high, falls limited if the data grows to billion records.</li><li><strong>Multiple requests</strong> — As thousands of user can search data simultaneously on a web server, even the fast server fails while searching the data.</li></ul><p>To solve the above-mentioned problems, data structures come to rescue. Data can be organized in a data structure in such a way that all items may not be required to be searched, and the required data can be searched almost instantly.</p><h3>Execution Time Cases</h3><p>There are three cases which are usually used to compare various data structure execution time in a relative manner.</p><ul><li><strong>worst case</strong> — This is the scenario where a particular data structure operation takes the maximum time it can take. if an operation’s worst-case time is <em>f</em>n then this operations will not take more than <em>f</em>n time where fn represents function of n.</li><li><strong>Average case</strong> — This is the scenario depicting the average execution time of an operation of a data structure. If an operation takes Fn time in execution, then m operations will take m <em>f</em>n time.</li><li><strong>Best case</strong> — This is the scenario depicting the least possible execution time of an operation of a data structure. If an operation takes <em>f</em>n time in execution, then the actual operation may take as the random number which would be maximum as <em>f</em>n.</li></ul><h3>Basic Terminology</h3><ul><li><strong>Data </strong>— Data are values or set of values.</li><li><strong>Data Item</strong> — Data item refers to a single unit of values.</li><li><strong>Group Items</strong> — Data items that are divided into sub-items are called as Group Items</li><li><strong>Elementary Items</strong> — Data items that cannot be divided are called Elementry Items.</li><li><strong>Attribute and Entity </strong>— An entity is that which contains certain attributes or properties, which may be assigned values.</li><li><strong>Entity Set</strong> — Entities of similar attributes from an entity set.</li><li><strong>Field </strong>— Field is a single elementary unit of information representing an attribute of an entity.</li><li><strong>Record</strong> — Record is a collection of field values of a given entity.</li><li><strong>File</strong> — File is a collection of records of the entities in a given entity set.</li></ul><p><strong><em>That’s all, I have summarized the knowledge I acquired. I would be happy if it helps some to kick-start the learning of Data structure and algorithm and do wait for the part 2. It is no more a Buzzword. It is happening. please share your thoughts and hit that clap button if you feel good about this-thanks!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8a66fb374fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>