<?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 Nibi Maouriyan on Medium]]></title>
        <description><![CDATA[Stories by Nibi Maouriyan on Medium]]></description>
        <link>https://medium.com/@maouriyan?source=rss-20d073b7a3ff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nq6G3p1XSeljXYYJapssMA.png</url>
            <title>Stories by Nibi Maouriyan on Medium</title>
            <link>https://medium.com/@maouriyan?source=rss-20d073b7a3ff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 14:07:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@maouriyan/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’s Actually Missing in the AI Market]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://maouriyan.medium.com/whats-actually-missing-in-the-ai-market-a1124fad8f19?source=rss-20d073b7a3ff------2"><img src="https://cdn-images-1.medium.com/max/2600/1*A-Z9ju6PThqVPea1R-mYzg.png" width="2816"></a></p><p class="medium-feed-snippet">And How We Can Fill the Gap Without Adding More Noise
(Yes, another article on AI, but relax, it won&#x2019;t give you eye-roll fatigue.)</p><p class="medium-feed-link"><a href="https://maouriyan.medium.com/whats-actually-missing-in-the-ai-market-a1124fad8f19?source=rss-20d073b7a3ff------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://maouriyan.medium.com/whats-actually-missing-in-the-ai-market-a1124fad8f19?source=rss-20d073b7a3ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1124fad8f19</guid>
            <category><![CDATA[agi]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[business]]></category>
            <dc:creator><![CDATA[Nibi Maouriyan]]></dc:creator>
            <pubDate>Mon, 24 Nov 2025 17:52:13 GMT</pubDate>
            <atom:updated>2025-11-24T18:04:15.538Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Are you a CTO of an early stage product ? Here is your Handbook.]]></title>
            <link>https://maouriyan.medium.com/are-you-a-cto-of-an-early-stage-product-here-is-your-handbook-aea97b502b4e?source=rss-20d073b7a3ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/aea97b502b4e</guid>
            <category><![CDATA[early-stage-startup]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[productmanagment]]></category>
            <category><![CDATA[cto]]></category>
            <category><![CDATA[tech-startups]]></category>
            <dc:creator><![CDATA[Nibi Maouriyan]]></dc:creator>
            <pubDate>Mon, 16 Oct 2023 04:42:37 GMT</pubDate>
            <atom:updated>2023-10-16T04:42:37.849Z</atom:updated>
            <content:encoded><![CDATA[<h3>Are you a CTO of an early stage product ? Here is your Handbook.</h3><p>I have listed down the activities from my journey in Building a No-code WebAR SaaS platform with 300+ users (<a href="https://xarwin.com/">Xarwin</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KxySYHmTupZBuXjkb7ht6Q.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@cgower?utm_source=medium&amp;utm_medium=referral">Christopher Gower</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you are a CXO in an early stage startup starting to build a product and if it’s your first time in building a SaaS platform, you must be as confused as I was. Thanks to my co-founders, team and users in helping me figure out all these.</p><p>I have written individual technical blogs but here is a complete handbook on a management level.</p><p>Is your idea to quickly build a MVP with limited resources? then this is the best guide you will get.</p><p>These activities may seem much if you look at them, you may even feel that its not required for a startup of your size. Or that it may slow down your development process. But trust me, not having these will cost you more time and energy so start building your product and simultaneously start setting up these on the side only by one.</p><h3>1) Hiring a tech team</h3><p>Lets start by the most basic activity, Hiring.</p><p>a) Full stack developer ( Full time) x 1<br>b) Interns x 2</p><p>If you are spending full-time on this you can consider being the full stack developer yourself, but if this is your side hustle, a full stack developer is a must.</p><p>I started with two interns who lay foundation of the product with basic features like login page, database connectivity and basic core functionality of WebAR. Then hired a Full stack developer 2 months before the launch to make it a complete production level.</p><h3>2) Communicating the product vision with stakeholders</h3><p>This is the most obvious one , you communication with your team is what is going to help your startup. From a product standpoint your team and stakeholders must know what they can expect and when.</p><h3>3) Preparing Product documents</h3><p>There are a list of documents that you need to prepare, you can take help of a <em>solutions architect.</em></p><p><strong>a) Product Scope document</strong></p><p>A detailed document of the entire product, the features, tech stack, timeline, software services being used.</p><p>Prepare this document as if you are going to outsource the development to an external agency.</p><p><strong>b) Product Architecture</strong></p><p><em>This is where you shine</em></p><p><strong>c) User flow document with diagrams</strong></p><p>This includes glossary of keywords and should be in layman terms (Typically your user must be able to understand it).</p><p>This must have all the details of each and every activity the user will perform from them moment they land on your landing page to getting the benefits of your service.</p><p><strong>d) API documentation</strong></p><p>List of APIs that you are going to build, use and publish.</p><p><strong>e) Database architecture</strong></p><p>i)Collections or tables are going to be present <br>ii)Fields or columns in each</p><h3>4) Product Roadmap</h3><p>At-least for the next six months, for each month you should have three tabs ( Priority 1, 2 and 3) and have at-most 3 tasks in each tab.</p><p>You should only plan for a MVP and any other feature must be customer driven, find early customer(s) who can act as an early adopter and can give you feedback and complaints as early in your product development.</p><h3><strong>5) Product website or Landing Page</strong></h3><p>It is more important than your actual product. This might be a marketing task but I’m including this because you are probably responsible for coding it up.</p><p>It must include but not limited to the following:<br>a) A great headline<br>b) Short video<br>c) Sign up form<br>d) Benefits of your product<br>e) FAQs <br>f) Link to join community platform<br>g) Lots and Lots of call to action button<br>h) Redirection to</p><h3>6) Project Management tools setup</h3><p>a) PM board ( Jira/Clickup/Trello)<br>b) Plan sprints and assign it to developers</p><p>Its easy to get lost in this phase when you are initially planning a product , at that time just use this as a to-do task of basic product requirements.</p><h3>7) Setup Dev, UAT and Prod servers</h3><p>Having them right from the start will help you go into production smoother.</p><h3>8) Setup code repositories and setup DevOPS</h3><p>I use Github and Github Actions for this.</p><p>a) Provide code guidelines to developers</p><p>b) Provide guidelines on when should they push , what branch names and how many branches they must use for each feature</p><p>c) Code documentation guidelines</p><h3>9) Product versioning guidelines</h3><p>a) Nomenclature of versioning, use the standard <strong><em>( Major.Minor.Patch )</em></strong></p><p>c) Release cycles or process</p><p>d) Release notes ( Internal and External)</p><p>e) Release videos , documentation - Additional ( If you have bandwidth)</p><h3>10) Plan meetings</h3><p>You can customize the intervals based on your needs.</p><p><strong>a) Product sprint planning meeting</strong> — Monthly ( Stakeholders and Developers )</p><p><strong>b) Product Demo and Feedback</strong> — Monthly ( Full team , including marketing team)</p><p><strong>c) Product Demo and Feedback</strong> — Weekly ( Tech Team)</p><p><strong>d) Weekly Planning</strong> — ( Tech Team )</p><p><strong>e) Daily Scrum</strong> — ( Once in the morning , or also in the evening if you are working on a strict deadline) I do not prefer an evening scrum because my developers usually work at midnight so I review the previous day’s work in the morning scrum itself.</p><h3>11) Software subscriptions tracker</h3><p>a) Where each of your service is hosted ? ( DNS , files , servers)<br>b) How to access them ? In case your team member needs access.<br>c)How much you pay for ( Hosting , cloud storage , External APIs ) ?<br>b)When you must pay ?<br>c)Which accounts and cards are used to pay for these subscriptions ?</p><p>I once almost lost my development server because of a guideline change in card payments. Keeping track of these will help you panic less about your product.</p><h3>12) Password manager for all the accounts that you make</h3><p>Self hosted for better security and cost saving.</p><h3>13) Feedback and complaints tracker</h3><p>This is the most important of all. You can initially use a simple excel sheet to keep track of feedback and complaints until you build a<em> </em><strong><em>Complaint ticketing system.</em></strong></p><blockquote>It is advisable to build your product for your customers and from their feedback.</blockquote><h3>14) Issue resolving guidelines</h3><p>a) Segregate issue types and their priorities<br>b) List down the activities that must be taken to resolve these issues<br>c) List down the maximum time that can be taken to resolve these issues.</p><h3>14) A google drive or any cloud storage space</h3><p>To store all the documentations , release notes , product demo videos, trackers</p><h3>15) Customer List and Usage report</h3><p>You can build an <strong>admin dashboard</strong> for to generate these reports for you.</p><p>It is hard to keep track of users in a SaaS platform but you need to understand how many customers are using your platform and how frequently, if possible, what features.</p><p>This will be a game-changer when you plan your product roadmap.</p><h3>16) Frequent communication with the customer (Along with your customer relationship manager if you have one)</h3><p>As a CTO, there is no one better than you who can get technical solutions to the practical problems your customers face. Talking to them directly based on your availability will help.</p><h3>17) Community platform</h3><p>Discord or Slack for your customers, users and potential clients so that you or your users can post</p><p>a)Tutorials <br>b)Queries and <br>c)Feedback<br>d) Any kind of product discussion</p><h3>18) Provide content to your product’s weekly technical newsletter</h3><p>Prepare a list of features or what is new in your product.</p><p>Ask your marketing person to prepare a newsletter to keep reminding your users about your product’s existence and give them reasons to use it more.</p><h3><strong>Conclusion</strong></h3><p>The depth of sub-tasks under each of these activities will grow exponentially as you scale your product. This will definitely help you build your product without much trouble. You must also consider hiring the right people to take care of these tasks when you scale.</p><p>I wish you success in the product that you are going to build.</p><p>Follow me for more technical guidelines which I share based on my experience in building tech startups. I am always open to chat about your product and the technical stuff behind it. Feel free to ping me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aea97b502b4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Networking techniques you need to know for Edge Deployments]]></title>
            <link>https://maouriyan.medium.com/networking-techniques-you-need-to-know-for-edge-deployments-d8b363cd4fa4?source=rss-20d073b7a3ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8b363cd4fa4</guid>
            <category><![CDATA[edge-computing]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[jetson-nano]]></category>
            <dc:creator><![CDATA[Nibi Maouriyan]]></dc:creator>
            <pubDate>Wed, 22 Feb 2023 06:54:01 GMT</pubDate>
            <atom:updated>2023-02-22T06:54:01.249Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FRrJkXMOWt7JfE6Kwq9Vdg.png" /></figure><p>We often forget about one of the 4 pillars of computer science when we build applications especially AI. Getting blocked before you find the IP of your device is a real hazard. This blog will help you understand the basics of tools you need to complete an edge deployment.</p><h3>1.Working with a terminal</h3><p>Get familiar with using a terminal or your command prompt (cmd). This can save a lot of time and hassle if you just knew a few commands.</p><p>For people working on Windows, install Cygwin and WinSCP tools so you can use commands of a Linux or Unix-based OS.</p><p>Commands to know for beginners:</p><ol><li>cp</li><li>mkdir</li><li>rmdir</li><li>df -h</li><li>Text editors: Vim or Nano</li><li>sh Scripts</li><li>make</li><li>ifconfig/ipconfig</li><li>crontab -e</li><li>history</li><li>ps aux</li><li>&gt; &amp; | operators on a command line</li></ol><h3>2.SSH (Secure Shell)</h3><p>Its main use is to perform remote login to a server or a remote edge device.</p><p>You can use PuTTY or just use the command and enter the password when prompted.</p><pre>ssh &lt;username&gt;@&lt;IP Addr&gt;</pre><p>This will give you command-line access to the remote server/device.</p><h3><strong>3.IP Scanner</strong></h3><p>When you plug in an edge device to a modem/router if its setting is DHCP (default) then the modem/router will assign a local IP to it.</p><p>But without you connecting a display, keyboard, and mouse to the edge device you will not be able to run the ifconfig command to know the IP.</p><p>You can connect your laptop or phone to the same internet network, by connecting your personal device to the router/modem using ethernet or Wifi.</p><p>This makes sure both the edge device and your personal device are inside the same network.</p><p>Now run an IP scanner. It will list all the devices and their IP, Mac address, and manufacturer name.</p><p>There are multiple ways to do this:</p><ol><li>Nmap :</li></ol><pre>sudo nmap -sT -O 192.168.1.0/24</pre><p>2. Advanced IP scanner ( Windows)<br>3. Network IP scanner ( Android )</p><p>Now you can use this IP to SSH into the device and take access.</p><h3>4.VPN</h3><p>What if you have to go home and still get access to this device remotely?</p><p>You need to either get a static IP from your ISP, buy a VPN service, or set up your own VPN server.</p><p>You will need a server for this, it can be AWS, Azure, or Contabo.</p><p><strong>OpenVPN</strong></p><pre>wget https://raw.githubusercontent.com/Nyr/openvpn-install/master/openvpn-install.sh<br>chmod +x ./openvpn-install.sh<br>sudo ./openvpn-install.sh<br>#select defaults except for protocol. Use TCP instead of UDP</pre><p>This will help you generate OpenVPN clients and the files generated will be of the format &lt;name&gt;.ovpn</p><p>Generate one for your personal device and one for your edge device.</p><p>Copy this .ovpn file to your edge device.</p><p>In your edge device :</p><pre>#Install Openvpn<br>sudo apt-get install openvpn <br><br>#Copy.ovpn file to home directory<br><br>#Setup crontab to start VPN on boot<br>sudo crontab -e<br><br>#In the file add this line<br>@reboot sudo openvpn /home/&lt;username&gt;/&lt;file_name&gt;.ovpn<br><br>#Reboot the device<br><br>#Check the VPN tun0 IP<br>ifconfig<br><br>#The IP next to tun0: will be your private VPN ip in the format 10.8.0.X</pre><p>On your personal device:</p><p>Install the OpenVPN client and open your .ovpn file.</p><p>Now SSH into the device using the private IP of the edge device.</p><h3>5.Bonus: RTSP</h3><p>RTSP is Real-time Streaming Protocol, just like HTTP but for video streaming.</p><p>IP cameras with/without NVR have their own RTSP URL.</p><p>You can access the camera stream by using this URL as the source in your code or application.</p><pre>rtsp://&lt;username&gt;:&lt;password&gt;@IP:RTSPPort/Streaming/Channels/Camera_ID/</pre><p>Make sure you use the right unicode and escape characters.<br>Example: if your password is admin@123 use admin%40123</p><p>This rtsp stream can also be played in a VLC media player by opening a network stream.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8b363cd4fa4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to stream messages on DeepStream using Kafka]]></title>
            <link>https://maouriyan.medium.com/how-to-stream-messages-on-deepstream-using-kafka-d7e39de53003?source=rss-20d073b7a3ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7e39de53003</guid>
            <category><![CDATA[deepstream]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[nvidia-jetson-nano]]></category>
            <dc:creator><![CDATA[Nibi Maouriyan]]></dc:creator>
            <pubDate>Sun, 19 Feb 2023 16:06:06 GMT</pubDate>
            <atom:updated>2023-02-19T16:06:06.694Z</atom:updated>
            <content:encoded><![CDATA[<p>Send the analytics data to the cloud or another microservice over Kafka</p><h3>Introduction</h3><p>Kafka is a distributed streaming platform that is used to publish and subscribe to streams of records.</p><p><strong>1. Install Kafka</strong></p><ul><li>Install Kafka: [https://kafka.apache.org/quickstart] and create the kafka topic:</li><li>tar -xzf kafka_2.13-2.6.0.tgz</li><li>cd kafka_2.13-2.6.0</li><li>bin/zookeeper-server-start.sh config/zookeeper.properties</li><li>bin/kafka-server-start.sh config/server.properties</li><li>bin/kafka-topics.sh --create --topic quickstart-events --bootstrap-server localhost:9092</li></ul><p><strong>2.Produce Kafka messages</strong></p><p>Add the following to your DeepStream config</p><pre>[sink1]<br>enable=1<br>#Type - 1=FakeSink 2=EglSink 3=File 4=UDPSink 5=nvoverlaysink 6=MsgConvBroker<br>type=6<br>msg-conv-config=dstest5_msgconv_sample_config.txt<br>#(0): PAYLOAD_DEEPSTREAM - Deepstream schema payload<br>#(1): PAYLOAD_DEEPSTREAM_MINIMAL - Deepstream schema payload minimal<br>#(256): PAYLOAD_RESERVED - Reserved type<br>#(257): PAYLOAD_CUSTOM   - Custom schema payload<br>msg-conv-payload-type=0<br>msg-broker-proto-lib=/opt/nvidia/deepstream/deepstream-5.1/lib/libnvds_kafka_proto.so<br>#Provide your msg-broker-conn-str here<br>msg-broker-conn-str=localhost;9092;quickstart-events<br>#topic=&lt;topic&gt;<br>#Optional:<br>#msg-broker-config=../../deepstream-test4/cfg_kafka.txt</pre><p><strong>3. Subscribe to Kafka messages</strong></p><p>Create a python file <strong>subscriber.py </strong>to subscribe to the Kafka topic.</p><pre>import time<br>from kafka import KafkaConsumer<br>from json import loads<br>import uuid <br><br>consumer = KafkaConsumer(<br>    &#39;test&#39;,<br>    bootstrap_servers=&#39;&lt;ADD-YOUR-HOST-IP-HERE&gt;:9092&#39;,<br>    auto_offset_reset=&#39;latest&#39;,from latest<br>    enable_auto_commit=True,<br>    group_id=str(uuid.uuid1()),<br>    value_deserializer=lambda x: loads(x.decode(&#39;utf-8&#39;))<br>)<br><br># do a dummy poll to retrieve some message<br>consumer.poll()<br><br># go to end of the stream<br>consumer.seek_to_end()<br><br>for event in consumer:<br>    event_data = event.value<br>    print(event_data)</pre><p>You will get your messages printed when you run this python file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*mUkalZNF3DAfvpNFSPYMhQ.gif" /></figure><p><strong>Reference and source:</strong></p><p><a href="https://github.com/NVIDIA-AI-IOT/deepstream-occupancy-analytics">https://github.com/NVIDIA-AI-IOT/deepstream-occupancy-analytics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7e39de53003" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to setup CI/CD for Node using GitHub Actions with SSH Keys deployed on Ubuntu Server]]></title>
            <link>https://maouriyan.medium.com/how-to-setup-ci-cd-for-node-using-github-actions-with-ssh-keys-deployed-on-ubuntu-server-a74176eeb427?source=rss-20d073b7a3ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/a74176eeb427</guid>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Nibi Maouriyan]]></dc:creator>
            <pubDate>Tue, 07 Feb 2023 14:59:35 GMT</pubDate>
            <atom:updated>2023-02-07T14:59:35.426Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zscOEmftHwxcXQ3GA0kBgQ.png" /></figure><p>Do you want to set up a CI/CD pipeline to your GitHub repository which will automatically deploy your build files on your server every time you push the code to a particular branch?</p><p>This blog will be your <em>‘Hello World’ </em>to the world of DevOps.</p><h3>Introduction</h3><p>The GitHub actions will have a .yaml file which will make sure certain commands are run when you push your code.</p><p>In this example, it will login to your server via SSH keys and copy the code to your server.</p><p>This will also build your frontend and start your backend if necessary.</p><h3>1. Create an SSH Key pair</h3><p>I’m doing it on Windows but the same can be done using Linux and Mac.</p><p>a)Download and Install PuTTYgen from <a href="https://www.puttygen.com/#Download_PuTTYgen">here</a></p><p>b) Open PuTTYgen and generate the key by hovering the mouse over the blank region</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*3sRoUFL6TLxVxZfOxzRSLg.png" /><figcaption>PuTTY Key Generator</figcaption></figure><p>c) Save the public key and private key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*h7gJrBSgwzSL70tjYL7wfw.png" /></figure><p>d) Export the private key as OpenSSH key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*NcsL0BXrXPf1wPo0baneow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*lF2voieqejmGWiGv0anB9A.png" /></figure><h3>2. Copy the Public key to your Ubuntu server</h3><p>a) SSH into your server where your code ( project) is going to be deployed</p><p>b) Create a new file</p><pre>sudo nano ~/.ssh/authorized_keys</pre><p>c) Copy the contents of the public key in this and save it</p><h3>2. Login via SSH key instead of a Password</h3><p>a) Open PuTTY and enter the IP address</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*ijWWZGkwHzRBw8skqx5HIA.png" /></figure><p>b) Load the private key you saved in step 1c</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*MPqQuW2S57-nmwVnWRIB_A.png" /></figure><p>c) Click open and login with your username.</p><p>If you have successfully logged in without a password then your SSH keys are working.</p><h3>3. Setup GitHub Secrets</h3><p>GitHub action secrets are like your environment variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6pOllAjs_Juk_FAIqfD7zg.png" /></figure><pre>HOST : &lt;Server IP Address&gt;<br>KEY: Copy contents of exported SSH private key<br>PORT : 22<br>TARGET: &lt;location inside server where you want to deploy&gt;<br></pre><h3><strong>4. Setup GitHub Actions</strong></h3><p>Go to your repository and go to actions, create a new workflow.</p><p>Here I am deploying a React web app. There are two repositories Frontend and Backend. There are workflows for each repository.</p><p>Copy these to the respective workflows.</p><pre>#FRONTEND <br>name: Build React Files &amp; Deploy to Ubuntu server<br><br>on:<br>  push:<br>    branches: [ prod ]<br>  pull_request:<br>    branches: [ prod ]<br><br>jobs:<br>  build-and-deploy:<br>    runs-on: ubuntu-latest<br>    steps:<br>    - uses: actions/checkout@v2<br>    - name: Use Node.js 14.x to Build<br>      uses: actions/setup-node@v2<br>      with:<br>        node-version: 14.x<br>        #cache: &#39;npm&#39;<br>    - run: npm install<br>    - run: REACT_APP_STAGE=production<br>    - run: CI=false npm run build<br>    - name: ssh deploy on aws ec2<br>      uses: easingthemes/ssh-deploy@v2.1.4<br>      env:<br>        SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY_PROD }}<br>        REMOTE_HOST: ${{ secrets.DEPLOY_HOST_PROD }}<br>        REMOTE_USER: ${{ secrets.DEPLOY_USER_PROD }}<br>        REMOTE_PORT: ${{ secrets.DEPLOY_PORT_PROD }}<br>        SOURCE: &quot;build/&quot;<br>        TARGET: ${{ secrets.DEPLOY_TARGET_PROD }}</pre><pre>#BACKEND<br>name: Node Github CI to Deploy on AWS Server<br><br>on:<br>  push:<br>    branches:<br>      - prod<br><br>jobs:<br>  build:<br>    runs-on: ubuntu-latest<br>    steps:<br>    - uses: actions/checkout@v2<br>    - name: ssh deploy on aws ec2<br>      uses: easingthemes/ssh-deploy@v2.1.4<br>      env:<br>        SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY_PROD}}<br>        REMOTE_HOST: ${{ secrets.DEPLOY_HOST_PROD }}<br>        REMOTE_USER: ${{ secrets.DEPLOY_USER_PROD }}<br>        REMOTE_PORT: ${{ secrets.DEPLOY_PORT_PROD }}<br>        SOURCE: &quot;./&quot;<br>        TARGET: ${{ secrets.DEPLOY_TARGET_PROD }}<br>        <br>  deploy:<br>    runs-on: ubuntu-latest<br>    needs: [build]<br><br>    steps:<br>      - name: Configure SSH<br>        run: |<br>          mkdir -p ~/.ssh/<br>          echo &quot;$SSH_KEY&quot; &gt; ~/.ssh/staging.key<br>          chmod 600 ~/.ssh/staging.key<br>          cat &gt;&gt;~/.ssh/config &lt;&lt;END<br>          Host staging<br>            HostName $SSH_HOST<br>            User $SSH_USER<br>            IdentityFile ~/.ssh/staging.key<br>            StrictHostKeyChecking no<br>          END<br>        env:<br>          SSH_USER: ${{ secrets.DEPLOY_USER_PROD }}<br>          SSH_KEY: ${{ secrets.DEPLOY_KEY_PROD }}<br>          SSH_HOST: ${{ secrets.DEPLOY_HOST_PROD }}<br>      - name: Build and Run App<br>        run: ssh staging &#39;cd /root/app/backend; npm install ; pm2 stop backend ; pm2 delete backend ; pm2 start index.js --name &quot;backend&quot;&#39;</pre><p>When you commit this change your Github action will automatically start a new workflow and you can check its progress.</p><h3>5. Disable password login ( OPTIONAL )</h3><p>Now SSH key is used by default to login but if you do not want hackers to brute force and find your password you can disable login by a password.</p><p>To disable password authentication, edit /etc/ssh/sshd_config file on the remote server. Follow the short step <a href="https://www.linuxbabe.com/linux-server/setup-passwordless-ssh-login#:~:text=Disabling%20Password%20Authentication&amp;text=To%20disable%20password%20authentication%2C%20edit,file%20on%20the%20remote%20server.&amp;text=Then%20find%20the%20ChallengeResponseAuthentication%20line,still%20use%20password%20to%20login.">here.</a></p><p><em>Now you can set up a CI/CD pipeline for severs like Digital Ocean , AWS EC2, Contabo, etc.</em></p><p>Your Friendly Neighbourhood Developer-Man,<br>Nibi Maouriyan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a74176eeb427" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Friendly Guide to build DeepStream Application]]></title>
            <link>https://maouriyan.medium.com/the-friendly-guide-to-build-deepstream-application-3e78cb36d9f2?source=rss-20d073b7a3ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e78cb36d9f2</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[edge-computing]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deepstream]]></category>
            <dc:creator><![CDATA[Nibi Maouriyan]]></dc:creator>
            <pubDate>Wed, 01 Feb 2023 16:48:29 GMT</pubDate>
            <atom:updated>2023-02-01T16:48:29.579Z</atom:updated>
            <content:encoded><![CDATA[<p>You might have read the <a href="https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_Quickstart.html">Getting Started</a> documentation or even run the sample apps from DeepStream. But are you still figuring out how to build your DeepStream application? This is a generic guide to what you can do with DeepStream.</p><p>This whole blog is a TL;DR of a 2-year journey of mine with Nvidia DeepStream.</p><p>It consists of Installation, sample applications, message brokers, custom applications, tracking, analytics, and connecting to your dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ojPbi86fKPcy9Qwj5c4dEQ.jpeg" /><figcaption>Detection and Tracking of Cars; <a href="https://developer.nvidia.com/blog/accelerate-video-analytics-deepstream-2/">source</a></figcaption></figure><h3>1. Make your Installation perfect.</h3><p>Although everything will install, it won’t run if the versions are mismatched.</p><p>In dGPU: Ubuntu OS, Nvidia Driver, TensorRT, and CUDA must be all in the correct versions as described in the getting started guide you are following.</p><p>In Jetson: Use Nvidia’s SDK manager to flash your jetson so it takes care of all the hassle.</p><p><em>Note: CUDA and CUDA toolkit are different. </em><a href="https://stackoverflow.com/questions/53422407/different-cuda-versions-shown-by-nvcc-and-nvidia-smi"><em>This</em></a><em> will give you a better understanding</em></p><p>Additionally, Install the following so everything works later.</p><pre>sudo apt-get install libgstreamer1.0-dev <br>sudo apt install libjson-glib-dev<br>sudo apt install libgstrtspserver-1.0-dev -y</pre><p>Run the App</p><pre>sudo deepstream-app -c /opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt</pre><p>If this runs and you get the FPS as outputs or a window of 4 video streams, then you can take a break! Cuz there is more.</p><h3><strong>2. Understand what is where</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*N67SPFSB48Upjhwpk8yyEA.png" /><figcaption>Directory Structure</figcaption></figure><p><strong>Samples:</strong> The folder has all that Nvidia has to provide, their sample apps folder gives you exampes for different components like doing analytics, saving frames as files and much more.</p><p>My personal favourite is <strong><em>deepstream-test5-app</em></strong> because it contains all that I want in my application.</p><p><strong>Sources: </strong>This folder contains all the components ( Plugins ) that are plugged-in to the application. These include trackers, message brokers, message convertes, their libraries etc.</p><h3><strong>3. Understand what this is all about</strong></h3><p>Nvidia DeepStream uses C and some of Cpp for their applications. There are also Python Bindings but the C ones are faster when it comes to edge devices.</p><p>DeepStream is built over the top of <a href="https://gstreamer.freedesktop.org/documentation/?gi-language=c">GStreamer</a> ( a open source, cross platform multimedia framework) which can stream and process multimedia and other file streams.</p><p>So to build a production level application understanding of GStreamer, C ( Language), CMAKE and build tools are highly recommended.</p><h3><strong>4. Configs : The easy part of this whole process</strong></h3><p>Remember you used -c and passed a .txt file as an argument ? Yes open it now.</p><p>The beauty of this is everything that you need to configure are under this file. These work like a plug and play components.</p><p><strong><em>Source :</em> </strong>The input video stream to your application, this can be a file, RTSP stream, with different encodings and more.</p><p><strong><em>Sink: </em></strong>Where the video goes at the end, stored as a file, display on monitor or create a new RTSP server which streams the processed and inferenced video output.</p><p><strong><em>Message Brokers:</em> </strong>A part of sink but if you want to just send the output of the details inside the frame to some message broker (Kafka , AWS IOT, Azure).</p><p><strong><em>Message Converters:</em> </strong>Converts the message payload that is going via the message broker in the required format.</p><p><strong><em>OSD:</em> </strong>On screen display and their settings ( text color, bounding box width )</p><p><strong><em>Streamux:</em> </strong>The muxer from GStreamer which finally combines the frame buffers in the pipeline</p><p><strong><em>Primary-gie:</em> </strong>Your models , yes finally , the model you trained to run the inference on. You plug it here</p><p><strong><em>Secondary-gie: </em></strong>A Model which you want to apply on the detections of Primary model.</p><p><strong><em>Tracker:</em></strong> NvDCF , MOT , DeepSORT all samples are available.</p><p><strong><em>Analytics: </em></strong>This requires a seperate config file which is responsible for line counting , person counting , ROI based counting and so much.</p><p><strong><em>test file loop = 1:</em></strong> Run your input file on loop until you figure out what is happening</p><p>Now you have a config file for your input , output , model , tracker and analytics.</p><h3>5. Putting it all together</h3><p>My application is a modified version of deepstream-test5-app which uses input <strong>source</strong> RTSP stream from CCTV cameras, runs People detection as <strong>Primary Inference, </strong>does tracking and analytics. The frame details of bounding boxes are modified using custom <strong>message converters</strong>. These are streamed via <strong>Kafka message broker </strong>to a python application which pre-process the Raw frame data and pushed them intoa MongoDB.</p><p>A react application is built to fetch data from the MongoDB and display the analytics in real-time using some cool,long queries.</p><p>The part where I stream these messages via Kafka are outside the scope of this blog and will have its own feautre blog.</p><h3><strong><em>If you skipped all this and directly want to use one first , check out my other blog on helmet detection.</em></strong></h3><p>Its okay to be confused even after this, please feel free to connect with me on Linkedin and ask some doubts.</p><p>Yours Truly,<br>Nibi Maouriyan<br>Nvidia Jetson AI Specialist</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e78cb36d9f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PPE Detection using Nvidia DeepStream on Jetson Nano]]></title>
            <link>https://maouriyan.medium.com/ppe-detection-using-nvidia-deepstream-on-jetson-nano-ed9dedfffe28?source=rss-20d073b7a3ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed9dedfffe28</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[edge-computing]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[deepstream]]></category>
            <dc:creator><![CDATA[Nibi Maouriyan]]></dc:creator>
            <pubDate>Mon, 28 Jun 2021 05:21:21 GMT</pubDate>
            <atom:updated>2021-06-28T07:25:59.563Z</atom:updated>
            <content:encoded><![CDATA[<p>High-performance video analytics using Nvidia Deepstream on Jetson Nano. Trained with Nvidia TLT.</p><p>Safety is the most important aspect in construction and related hazardous workplaces. Personal protective equipment(PPE) serves as the first line of defense against accidents. Occupational Safety and Health Administration (OSHA), expects industries to monitor the usage of the right Personal Protective Equipment (PPE) at the workplace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jm7XCbwFNUDRtrxxQAFVJQ.png" /><figcaption>Oops! A person entering without a helmet</figcaption></figure><p>It is difficult for the industries to monitor the use of PPE on large construction sites. However, with the CCTV cameras surveilling most of the regions, we can leverage the existing camera architecture to person real-time safety detection using Computer Vision.</p><p>Building our high-performance pipeline allows us to manage multiple camera streams locally, thus ensuring data privacy standards while providing real-time alerts and analytics.</p><p>This technical blog will guide you to run PPE-Detection applications for various use cases and also allow you to train your custom model for different safety equipment.</p><h3><strong>Introduction</strong></h3><p>A Jetson-based DeepStream application to detect, track and count people crossing with and without PPE at hazardous sites.</p><p>The application was compiled in the ubuntu 18.04 system with Nvidia Cuda 10.2 + CuDNN 8.05, TensorRT 7.0.0, and Deepstream 5.0.</p><p>Tested on Jetson Nano and TX2 with Jetpack 4.4</p><h3>Applications</h3><p>This repo contains two applications for different use cases.</p><p><strong>1. PPE-primary application</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fmy9-L_G7QXs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dmy9-L_G7QXs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fmy9-L_G7QXs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/03270d3dd10dee1ced20750a7042ab8f/href">https://medium.com/media/03270d3dd10dee1ced20750a7042ab8f/href</a></iframe><p>When a person crosses a line following labels are detected<br> 1) helmet<br> 2) person_with_helmet<br> 3) person_without_helmet</p><p>At the instance of a person crossing a user-defined line/region, the person is counted as person_with helmet or person_without_helmet.</p><p><strong>2. PPE-secondary application</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F_tozyIdYbSY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D_tozyIdYbSY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F_tozyIdYbSY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c881f32f2cebb4c28cc0da1ee2e522b/href">https://medium.com/media/3c881f32f2cebb4c28cc0da1ee2e522b/href</a></iframe><p>This application is intended when we have data only for the PPE objects. Not all the time we will be able to get images of PPE with/without a person.</p><p>It uses peoplnetv2 as the primary inference engine and our custom model to detect helmets as a secondary inference engine.</p><ul><li>People are detected using peoplenetv2.</li><li>The detected region is passed to a secondary inference engine for detecting helmets.</li><li>At the instance of a person crossing if the secondary inference detects helmet then it&#39;s counted as person_with_helmet.</li><li>At the instance of a person crossing if the secondary inference does not detect helmet then it&#39;s counted as person_without_helmet.</li></ul><h3><strong>Deepstream Setup</strong></h3><p>Documentation to setup Jetson Device can be found at (<a href="https://docs.nvidia.com/jetson/jetpack/install-jetpack/index.html">https://docs.nvidia.com/jetson/jetpack/install-jetpack/index.html</a>).</p><p><strong>1. Install System Dependencies</strong></p><blockquote><em>```sh<br>sudo apt install \<br>libssl1.0.0 \<br>libgstreamer1.0–0 \<br>gstreamer1.0-tools \<br>gstreamer1.0-plugins-good \<br>gstreamer1.0-plugins-bad \<br>gstreamer1.0-plugins-ugly \<br>gstreamer1.0-libav \<br>libgstrtspserver-1.0–0 \<br>libgstrtspserver-1.0-dev \<br>libjansson4=2.11–1 \<br>libjson-glib-dev \<br>libgstreamer1.0-dev</em></blockquote><blockquote><em>```</em></blockquote><p><strong>2. Install Deepstream</strong></p><p>Download [Deepstream 5.0](<a href="https://developer.nvidia.com/assets/Deepstream/5.0/ga/secure/deepstream_sdk_5.0.1_amd64.deb">https://developer.nvidia.com/assets/Deepstream/5.0/ga/secure/deepstream_sdk_5.0.1_amd64.deb</a>) and run <br><em>sudo apt install ./&lt;deepstream_deb_file&gt;.deb</em></p><h3>Run Application</h3><p><strong>Clone the repository.</strong></p><blockquote>````<br> $ git clone https://github.com/Maouriyan/PPE-detection-deepstream.git<br> $ cd PPE-detection-deepstream/ppe-application/<br> ````</blockquote><p><strong>Make: </strong>One Makefile will make both applications, you can also make respective applications using the Makefile in respective folders.</p><blockquote>````<br> $ sudo make<br> $ sudo make install<br> ````</blockquote><p><strong>Run the PPE-primary application.</strong></p><blockquote>````<br><em> $ cd primary-app/<br> $ sudo ./ppe-primary -c ../../configs/ppe_primary.txt -t</em><br> ````</blockquote><p><strong>Run the PPE-secondary application.</strong></p><blockquote><em>````<br> $ cd secondary-app/<br> $ sudo ./ppe-secondary -c ../../configs/ppe_secondary.txt -t</em><br> ````</blockquote><p><strong>Note:</strong> <em>If you are using the device headless, disable the EGL sink at configs/ppe_primary.txt</em></p><blockquote><em>````<br> [sink0]<br> enable=0<br> #Type — 1=FakeSink 2=EglSink 3=File<br> type=2<br> sync=1<br> source-id=0<br> <br> [osd]<br> enable=0<br> gpu-id=0</em></blockquote><blockquote><em>````</em></blockquote><h3>Test Results</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*Cl6dPJzEM26hlm5fwmlsGg.png" /></figure><h3><strong>Training</strong></h3><ul><li>To train the model, add more datasets follow (<a href="https://github.com/Maouriyan/PPE-detection-TLT-training">https://github.com/Maouriyan/PPE-detection-TLT-training</a>).</li><li>Install dependencies and Docker Container <br>On Training Machine with NVIDIA GPU:</li><li>Install NVIDIA Docker Container: [installation instructions](<a href="https://developer.nvidia.com/blog/gpu-containers-runtime/">https://developer.nvidia.com/blog/gpu-containers-runtime/</a>) [TLT Toolkit Requirements](<a href="https://docs.nvidia.com/metropolis/TLT/tlt-getting-started-guide/index.html#requirements">https://docs.nvidia.com/metropolis/TLT/tlt-getting-started-guide/index.html#requirements</a>)</li><li>[Running Transfer Learning Toolkit using Docker](<a href="https://ngc.nvidia.com/catalog/containers/nvidia:tlt-streamanalytics">https://ngc.nvidia.com/catalog/containers/nvidia:tlt-streamanalytics</a>)</li></ul><blockquote><strong>Pull docker container:</strong><br><em> ```docker pull nvcr.io/nvidia/tlt-streamanalytics:v2.0_py3```</em><br><strong>Run the docker image:</strong><br> <em>```<br> docker run — gpus all -it -v “/path/to/dir/on/host”:”/path/to/dir/in/docker” \<br> -p 8888:8888 nvcr.io/nvidia/tlt-streamanalytics:v2.0_py3 /bin/bash<br> ```</em><br> <strong>Git repo in TLT container:</strong><br> <em>```<br> git clone </em><a href="https://github.com/Maouriyan/PPE-detection-TLT-training.git"><em>https://github.com/Maouriyan/PPE-detection-TLT-training.git</em></a><em><br> ```</em><br><strong>Run Jupter Notebook in TLT container:</strong><br><em> ```<br> jupyter notebook — ip 0.0.0.0 — no-browser — allow-root<br> ```</em><br>Open helmet-detection.ipynb and follow the steps to create the engine file.</blockquote><p>To run the application, update your model in /models in <a href="https://github.com/Maouriyan/PPE-detection-deepstream">https://github.com/Maouriyan/PPE-detection-deepstream</a></p><p><strong>Add Custom Classes</strong></p><p>To add new data, you need to convert your dataset to KITTI format and add data to /images and /labels folders respectively</p><p>Edit<em> /</em><a href="https://github.com/Maouriyan/PPE-detection-TLT-training/tree/main/detectnet_v2"><em>detectnet_v2</em></a><em>/</em><a href="https://github.com/Maouriyan/PPE-detection-TLT-training/tree/main/detectnet_v2/tlt_specs"><em>tlt_specs</em></a><em>/detectnet_v2_train_resnet18_kitti.txt. </em>to add custom classes<strong>.</strong></p><p>target_class_mapping { <br>key: “vest”<br>value: “vest” }</p><p><strong><em>Now it is your time to play around! As a next step, you can attach this meta-data to a message broker and post-process them.</em></strong></p><h3><strong>Citations</strong></h3><ul><li><a href="https://ajna.ai/">https://ajna.ai/</a></li><li><a href="https://github.com/NVIDIA-AI-IOT/face-mask-detection">https://github.com/NVIDIA-AI-IOT/face-mask-detection</a></li><li><a href="https://github.com/AnshulSood11/PPE-Detection-YOLO-Deep_SORT">https://github.com/AnshulSood11/PPE-Detection-YOLO-Deep_SORT</a></li><li><a href="https://developer.nvidia.com/deepstream-sdk">https://developer.nvidia.com/deepstream-sdk</a></li><li><a href="https://www.osha.gov/">https://www.osha.gov/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed9dedfffe28" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fundamentals of Machine Learning for Beginners]]></title>
            <link>https://maouriyan.medium.com/fundamentals-of-machine-learning-for-beginners-a2922b5caf59?source=rss-20d073b7a3ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2922b5caf59</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Nibi Maouriyan]]></dc:creator>
            <pubDate>Sun, 10 Feb 2019 17:35:52 GMT</pubDate>
            <atom:updated>2019-02-13T05:31:31.796Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This post is the first of my Machine Learning series. </em>In this post, we will discuss the basics of Machine learning with the help of six major components. If you are unaware or new to ML, you will get a formal understanding of what it is.</p><h3>Expert Systems vs Machine Learning</h3><p>In an expert system, a human with good domain knowledge comes up with certain rules based on experience that could predict a solution. Eg: Doctor predicting the disease of the patient, Bank manager able to select the worthy applicant to provide the loan.</p><p>However, the world became bigger and more complex so some of these expert rules started to break down due to:</p><ul><li>Lack of common rules for the ever-growing data.</li><li>The increasing complexity of the rules in the form of IF-ELSE conditions with all its combinations and permutations.</li><li>Rules can be unknown especially when a new situation occurs (e.g. the outbreak of new diseases)</li><li>Rules can be inexpressible (e.g. how do you capture emotions in certain decisions?)</li></ul><h3>Machine Learning</h3><p>Machine learning is roughly defined as an application of artificial intelligence (AI) that provides computers with the ability to automatically learn and improve from experience without being explicitly programmed.</p><blockquote>Example: Amazon learns your product preferences and provides you with recommendations based on your data without a human explicitly going through your purchase history.</blockquote><h3>Six Jars of Machine Learning</h3><p>The process of getting input and providing output is divided into the following components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*f3JjESdhxgOxC1_xbvJAtQ.png" /><figcaption><strong>Six Jars of Machine Learning (src:</strong>Source: <a href="https://padhai.onefourthlabs.in/">https://padhai.onefourthlabs.in/</a>)</figcaption></figure><h3>Data</h3><p>Data is the fuel for Machine learning, Proper history of data on the input and the output is needed to be provided. Example: If an HR manager wants to predict whether or not an employee will leave the company, he needs to provide all the employee information and if they stayed or left.</p><h3>Task</h3><p>It specifies what we should do with the given data. It depends on the questions one has to solve with the data available. Example: A task can be to measure the performance of the employee or the happiness level of the employee based on the data.</p><h3>Model</h3><p>Based on the input and data we provide, the machine now generates a model or basically a formula which maps input to output.</p><p>A model can be like any one of these equations where (x) is input and (y) is the output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*_SkQ2YL1TM12-wTZgoz1KQ.png" /></figure><h3>Loss Function</h3><p>The loss function is the error rate or the difference between the actual output value and the output value predicted by our model. In order to solve a problem, we need to minimize the loss function.</p><h3>Learning Algorithm</h3><p>This algorithm is responsible for the minimization of error, it defines a way in which the variables in the equation are given value so the output computed is close to actual output.</p><blockquote>Example: In y = mx+c, the values of m and c are found by the learning algorithm so y (computed) is close to y (actual).</blockquote><h3>Evaluation</h3><p>In order to find how well our model performs we need to see the accuracy of the model in solving the problem that it was aimed to solve.</p><blockquote>Accuracy = Number of <strong>correct</strong> predictions/<strong>Total </strong>number of predictions</blockquote><p>The accuracy can be found by testing with some parts data which we initially gathered but did not use for training the model.</p><p><em>This series is my understanding of the course on Deep Learning of </em><a href="https://padhai.onefourthlabs.in/"><em>Padhai by One Fourth Labs</em></a><em>. The post corresponds to the topic</em><strong><em> ‘6 Jars of ML’ </em></strong><em>taught under this course.</em></p><figure><a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_image"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f2IVAl0TbsfES9cFGYr40g.png" /></a></figure><p>📝 Read this story later in <a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_read_later_text">Journal</a>.</p><p>🗞 Wake up every Sunday morning to the week’s most noteworthy Tech stories, opinions, and news waiting in your inbox: <a href="https://usejournal.com/newsletter/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_text">Get the noteworthy newsletter &gt;</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2922b5caf59" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>