<?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 Aditi Awasthi on Medium]]></title>
        <description><![CDATA[Stories by Aditi Awasthi on Medium]]></description>
        <link>https://medium.com/@aditi-awasthi11-aa?source=rss-1e130b9501e2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1TfZqQ0b40UfV3WfJfqq4g.jpeg</url>
            <title>Stories by Aditi Awasthi on Medium</title>
            <link>https://medium.com/@aditi-awasthi11-aa?source=rss-1e130b9501e2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 22:48:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aditi-awasthi11-aa/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[eSpeak NG]]></title>
            <link>https://aditi-awasthi11-aa.medium.com/espeak-ng-b1123f1bc489?source=rss-1e130b9501e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1123f1bc489</guid>
            <category><![CDATA[redhat-linux]]></category>
            <category><![CDATA[espeak]]></category>
            <dc:creator><![CDATA[Aditi Awasthi]]></dc:creator>
            <pubDate>Fri, 17 Sep 2021 13:27:54 GMT</pubDate>
            <atom:updated>2021-09-23T05:47:35.665Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*9lnNMLi4QkuLNXX4" /></figure><blockquote><strong><em>eSpeakNG</em></strong><em> is a compact, open-source, software speech synthesizer for Linux, Windows, and other platforms. It uses a formant synthesis method, providing many languages in a small size. Much of the programming for eSpeakNG’s language support is done using rule files with feedback from native speakers.</em></blockquote><blockquote><em>Because of its small size and many languages, it is included as the default speech synthesizer in the NVDA open source screen reader for Windows, as well as Android, Ubuntu and other Linux distributions. Its predecessor eSpeak was recommended by Microsoft in 2016 and was used by Google Translate for 27 languages in 2010; 17 of these were subsequently replaced by commercial voices.</em></blockquote><blockquote><em>The quality of the language voices varies greatly. Some languages have had more work or feedback from native speakers than others. Most of the people who have helped to improve the various languages are blind users of text-to-speech.</em></blockquote><h4><strong>espeak-ng is a software speech synthesizer for English, and some other languages.</strong></h4><h3>OPTIONS</h3><ul><li>-h, --help: Show summary of options.</li><li>--version: Prints the espeak library version and the location of the espeak voice data.</li><li>-f &lt;text file&gt;: Text file to speak.</li><li>--stdin: Read text input from stdin till to the end of a stream at once.</li></ul><p>If neither -f nor — stdin are provided, then &lt;words&gt; from parameter are spoken, or text is spoken from stdin, read separately one line by line at a time.</p><ul><li>-d &lt;device&gt;: Use the specified device to speak the audio on. If not specified, the default audio device is used.</li><li>-q: Quiet, don&#39;t produce any speech (may be useful with -x).</li><li>-a &lt;integer&gt;: Amplitude, 0 to 200, default is 100.</li><li>-g &lt;integer&gt;: Word gap. Pause between words, units of 10ms at the default speed.</li><li>-k &lt;integer&gt;: Indicate capital letters with: 1=sound, 2=the word &quot;capitals&quot;, higher values = a pitch increase (try -k20).</li><li>-l &lt;integer&gt;: Line length. If not zero (which is the default), consider lines less than this length as end-of-clause.</li><li>-p &lt;integer&gt;: Pitch adjustment, 0 to 99, default is 50.</li><li>-s &lt;integer&gt;: Speed in words per minute, default is 175.</li><li>-v &lt;voice name&gt;: Use voice file of this name from espeak-ng-data/voices. A variant can be specified using +, such as af+m3.</li><li>-w &lt;wave file name&gt;: Write output to this WAV file, rather than speaking it directly.</li><li>--split=&lt;minutes&gt;: Used with -w to split the audio output into &lt;minutes&gt; recorded chunks.</li><li>-b: Input text encoding, 1=UTF8, 2=8 bit, 4=16 bit.</li><li>-m: Indicates that the text contains SSML (Speech Synthesis Markup Language) tags or other XML tags. Those SSML tags which are supported are interpreted. Other tags, including HTML, are ignored, except that some HTML tags such as &lt;hr&gt; &lt;h2&gt; and &lt;li&gt; ensure a break in the speech.</li><li>-x: Write phoneme mnemonics to stdout.</li><li>-X: Write phonemes mnemonics and translation trace to stdout. If rules files have been built with --compile=debug, line numbers will also be displayed.</li><li>-z: No final sentence pause at the end of the text.</li><li>--stdout: Write speech output to stdout.</li><li>--compile=voicename: Compile the pronunciation rules and dictionary in the current directory. =&lt;voicename&lt; is optional and specifies which language is compiled.</li><li>--compile-debug=voicename: Compile the pronunciation rules and dictionary in the current directory as above, but include line numbers, that get shown when -X is used.</li><li>--ipa: Write phonemes to stdout using International Phonetic Alphabet. --ipa=1 Use ties, --ipa=2 Use ZWJ, --ipa=3 Separate with _.</li><li>--tie=&lt;character&gt;: The character to use to join multi-letter phonemes in -x and --ipa output.</li><li>--path=&lt;path&gt;: Specifies the directory containing the espeak-ng-data directory.</li><li>--pho: Write mbrola phoneme data (.pho) to stdout or to the file in --phonout.</li><li>--phonout=&lt;filename&gt;: Write output from -x -X commands and mbrola phoneme data to this file.</li><li>--punct=&quot;&lt;characters&gt;&quot;: Speak the names of punctuation characters during speaking. If =&lt;characters&gt; is omitted, all punctuation is spoken.</li><li>--sep=&lt;character&gt;: The character to separate phonemes from the -x and --ipa output.</li><li>--voices[=&lt;language code&gt;]: Lists the available voices. If =&lt;language code&gt; is present then only those voices which are suitable for that language are listed. If xx-yy language code is passed, then voices with yy of xx language variants are shown with higher priority than just xx. If variant is passed, then all voice variants are shown. If mb or mbrola is passed, then all voices using the MBROLA voice synthesizer are shown. If all is passed, then all eSpeak NG voices, voice variants and MBROLA voices are shown.</li><li>--voices=&lt;directory&gt;: Lists the voices in the specified subdirectory.</li></ul><h3>EXAMPLES</h3><ul><li>espeak-ng &quot;This is a test&quot;: Speak the sentence &quot;This is a test&quot; using the default English voice.</li><li>espeak-ng -f hello.txt: Speak the contents of hello.txt using the default English voice.</li><li>cat hello.txt | espeak-ng: Speak the contents of hello.txt using the default English voice.</li><li>espeak-ng -x hello: Speak the word &quot;hello&quot; using the default English voice, and print the phonemes that were spoken.</li><li>espeak-ng -ven-us &quot;[[h@&#39;loU]]&quot;: Speak the phonemes &quot;h@&#39;loU&quot; using the American English voice.</li><li>espeak-ng --voices: List all voices supported by eSpeak.</li><li>espeak-ng --voices=en: List all voices that speak English (en).</li><li>espeak-ng --voices=mb: List all voices using the MBROLA voice synthesizer.</li></ul><p>THANK YOU!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1123f1bc489" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zenity & Its Command]]></title>
            <link>https://aditi-awasthi11-aa.medium.com/zenity-its-command-66d31747f689?source=rss-1e130b9501e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/66d31747f689</guid>
            <category><![CDATA[commands]]></category>
            <category><![CDATA[redhat-linux]]></category>
            <category><![CDATA[zenity]]></category>
            <dc:creator><![CDATA[Aditi Awasthi]]></dc:creator>
            <pubDate>Fri, 17 Sep 2021 13:16:15 GMT</pubDate>
            <atom:updated>2021-09-17T13:16:15.170Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/524/0*s047ryRbvpYxBEKS.png" /></figure><blockquote>What is Zenity?</blockquote><blockquote>Zenity is free software and a cross-platform program that allows the execution of GTK dialog boxes in command-line and shell scripts. Zenity is a very useful utility which let us create graphical user interfaces for our shell scripts. Several widgets exists, and can be used by invoking the program with the respective options. The widgets are based on the <strong>GTK</strong> toolkit, and return the result of the user interaction either on the standard output or as a return code.</blockquote><p><strong>Lets move on to various command and option it offers</strong></p><p><em>#zenity — calendar</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*j_g5iSuCGl2l_-zUnp3EyA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*XQhsnis7OyiOt8V7SaUOBg.png" /></figure><p><em>#zenity — entry</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*kpPnM-F96ybSVAZ9Uhca4Q.png" /></figure><p><em>#x=$(zenity — entry)</em></p><p>#echo $x</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*8jvOq6tM3o0U0lnLB0K1JA.png" /></figure><p><em>#zenity — info — text=”heya aditi here”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*Vy7N75Ryontpc4pgSNdwag.png" /></figure><p><em>#zenity — info — text=”heya aditi here” — title=”this is title”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*uznmsYYU8gS29sOogtXujA.png" /></figure><p><em>#zenity — info — text=$(date)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*-q9JlxpNgBsalYAV3NsSgA.png" /></figure><p><em>#zenity — scale</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*2D7WCXhRhZ8mk8knOeJxOQ.png" /></figure><p><em>#zenity — password</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*Mhnjx3b94aZUexQRylYuEA.png" /></figure><p>THANK YOU!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66d31747f689" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integration of Flutter with Deep Learning model]]></title>
            <link>https://aditi-awasthi11-aa.medium.com/integration-of-flutter-with-deep-learning-model-b1c499baf41?source=rss-1e130b9501e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1c499baf41</guid>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[lstm]]></category>
            <dc:creator><![CDATA[Aditi Awasthi]]></dc:creator>
            <pubDate>Wed, 25 Aug 2021 03:47:59 GMT</pubDate>
            <atom:updated>2021-08-25T03:47:59.608Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n914WwpY93LLID1O.png" /></figure><h3>Back End : LSTM MODEL</h3><p>Long Short Term Memory networks — usually just called “LSTMs” — are a special kind of RNN, capable of learning long-term dependencies. They work tremendously well on a large variety of problems, and are now widely used.</p><p>LSTMs are explicitly designed to avoid the long-term dependency problem. Remembering information for long periods of time is practically their default behavior, not something they struggle to learn!</p><p>All recurrent neural networks have the form of a chain of repeating modules of neural network. In standard RNNs, this repeating module will have a very simple structure, such as a single tanh layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iqb5lPZPYltUBmQQIVZxog.png" /><figcaption>litecoin preprocessing throught LSTM</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DJGdodI1Vn5lUQmrMzew9Q.png" /><figcaption>Graphical representation of loss</figcaption></figure><h3>Front End : FLUTTER</h3><p>Flutter is an open-source UI software development kit created by Google. It is used to develop cross-platform applications for Android, iOS, Linux, Mac, Windows, Google Fuchsia, and the web from a single codebase.</p><blockquote>Code for FLUTTER</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*43zk8ZiPoyD3cv1xS9Dp0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*RH0uzMbparsAxYSiaFqmZw.png" /></figure><blockquote>Demo:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*WxR-xtiQmYucGPfrd7V9sg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*F53NgtFwkG9gGiZwocaqbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*CMF-RAOvdjZ9c2K3Fz7mBg.png" /></figure><p>THANK YOU!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1c499baf41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Number Plate detection Model]]></title>
            <link>https://aditi-awasthi11-aa.medium.com/number-plate-detection-model-36207f3b3694?source=rss-1e130b9501e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/36207f3b3694</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Aditi Awasthi]]></dc:creator>
            <pubDate>Wed, 11 Aug 2021 08:25:39 GMT</pubDate>
            <atom:updated>2021-08-11T08:25:39.607Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*-CyDRm5V25S4zivq.jpeg" /></figure><blockquote><strong>In this model we will be detecting a car in a live stream or video and recognize characters on number plate of the car then further more we will use the characters and fetch the owners information using RTO API’s .<br>For the display we will create a Web portal where all this information will be displayed (using html,css,and js)</strong></blockquote><h3>So lets begin with our model end to end implementation:</h3><ol><li>training our model.</li></ol><p>We have trained the model on the dataset to detect the characters in an image. this is needed since we are not detecting characters from strings but rather from images. and number-plates have slight variations too</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RvYbx7uF532xI1QBfFV4jQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rw76-9RgZW2pQjhahLwOtg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7jfcgeVFK3rk5WSYjnZEVg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*STBunr8ceFuCA-mi8_yAfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5yW4m7OEf5OOljIGxxlAkA.png" /></figure><p>2. Passing the video:</p><p>When we pass the video as an argument to the model. The cv2 module goes through the video frame by frame and tries to find the characters in the image that are on the number-plate. Until all the frames are completed the for loop keeps on running so that model can keep detecting new and new number-plates.</p><p>3. Exceptions which might occur:<br>There are chances that our model is unable to detect all the characters of number-plate in one frame so I have put a constraint that if the characters are at least more than 6 then only we need to get the output. This is vital since it reduces the useless detection where we are not able to get the data of the complete number-plate.</p><p>The model can perform only when it gets the video in the desired size and dimension so for each frame we need to fix it’s size and shape so that it can be given as an input to the model</p><p>So finally we have our detection model ready. Now lets test in on any random video. I have added a video through my GitHub profile:</p><p><a href="https://github.com/asquare-el/-numberplate_detection/blob/main/carvideo.mp4">-numberplate_detection/carvideo.mp4 at main · asquare-el/-numberplate_detection</a></p><p>To check out the complete code of Web portal where all this information will be displayed you may check out my GitHub profile link is:</p><p><a href="https://github.com/asquare-el/-numberplate_detection">GitHub - asquare-el/-numberplate_detection</a></p><p>THANK YOU!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36207f3b3694" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[K-means Clustering and its real use-case in the Security Domain]]></title>
            <link>https://aditi-awasthi11-aa.medium.com/k-means-clustering-and-its-real-use-case-in-the-security-domain-fe7802ef5817?source=rss-1e130b9501e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe7802ef5817</guid>
            <category><![CDATA[clustering-algorithm]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[k-means]]></category>
            <category><![CDATA[clustering]]></category>
            <dc:creator><![CDATA[Aditi Awasthi]]></dc:creator>
            <pubDate>Thu, 15 Jul 2021 15:34:21 GMT</pubDate>
            <atom:updated>2021-07-15T15:34:21.954Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/576/0*dsqwloTBuPgAy5jH.gif" /></figure><blockquote><strong>Clustering</strong></blockquote><blockquote>Clustering is one of the most common exploratory data analysis technique used to get an intuition about the structure of the data. It can be defined as the task of identifying subgroups in the data such that data points in the same subgroup (cluster) are very similar while data points in different clusters are very different.</blockquote><blockquote>Unlike supervised learning, clustering is considered an unsupervised learning method since we don’t have the ground truth to compare the output of the clustering algorithm to the true labels to evaluate its performance. We only want to try to investigate the structure of the data by grouping the data points into distinct subgroups.</blockquote><p>In this post, we will cover only <strong>K-means and its real use-case in the Security Domain</strong> which(K-means) is considered as one of the most used clustering algorithms due to its simplicity.</p><h3>K-means Algorithm</h3><p>K-means is a centroid-based algorithm, or a distance-based algorithm, where we calculate the distances to assign a point to a cluster. In K-Means, each cluster is associated with a centroid.</p><p><strong><em>The main objective of the K-Means algorithm is to minimize the sum of distances between the points and their respective cluster centroid.</em></strong></p><p>K-means algorithm is an iterative algorithm that tries to partition the dataset into <em>K</em>pre-defined distinct non-overlapping subgroups (clusters) where each data point belongs to only one group. It tries to make the intra-cluster data points as similar as possible while also keeping the clusters as different (far) as possible. It assigns data points to a cluster such that the sum of the squared distance between the data points and the cluster’s centroid (arithmetic mean of all the data points that belong to that cluster) is at the minimum. The less variation we have within clusters, the more homogeneous (similar) the data points are within the same cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*V756jvQZ13yrzkBY.png" /></figure><p><strong>The way k-means algorithm works is as follows:</strong></p><ol><li>Specify number of clusters <em>K</em>.</li><li>Initialize centroids by first shuffling the dataset and then randomly selecting <em>K </em>data points for the centroids without replacement.</li><li>Keep iterating until there is no change to the centroids. i.e assignment of data points to clusters isn’t changing.</li></ol><ul><li>Compute the sum of the squared distance between data points and all centroids.</li><li>Assign each data point to the closest cluster (centroid).</li><li>Compute the centroids for the clusters by taking the average of the all data points that belong to each cluster.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/0*xU9bx9dXudffRRjF.png" /></figure><h3>Use-Cases in the Security Domain</h3><p>Here is a list of some of the interesting use cases of K-means in Security Domain:</p><p><strong>1. Identifying crime localities</strong></p><p>With data related to crimes available in specific localities in a city, the category of crime, the area of the crime, and the association between the two can give quality insight into crime-prone areas within a city or a locality.</p><p><strong>2. Insurance fraud detection</strong></p><p>Machine Learning has a critical role to play in fraud detection and has numerous applications in automobile, healthcare, and insurance fraud detection. utilizing past historical data on fraudulent claims, it is possible to isolate new claims based on its proximity to clusters that indicate fraudulent patterns. Since insurance fraud can potentially have a multi-million dollar impact on a company, the ability to detect frauds is crucial.</p><p><strong>3. Cyber-profiling criminals</strong></p><p>Cyber-profiling is the process of collecting data from individuals and groups to identify significant co-relations. The idea of cyber profiling is derived from criminal profiles, which provide information on the investigation division to classify the types of criminals who were at the crime scene.</p><p><strong>4. Call record detail analysis</strong></p><p>A call detail record (cdr) is the information captured by telecom companies during the call, sms, and internet activity of a customer. This information provides greater insights about the customer’s needs when used with customer demographics. We can cluster customer activities for 24 hours by using the unsupervised k-means clustering algorithm. It is used to understand segments of customers with respect to their usage by hours.</p><p><strong>5. Automatic clustering of it alerts</strong></p><p>Large enterprise it infrastructure technology components such as network, storage, or database generate large volumes of alert messages. Because alert messages potentially point to operational issues, they must be manually screened for prioritization for downstream processes. Clustering of data can provide insight into categories of alerts and mean time to repair, and help in failure predictions.</p><p><strong>6. Rideshare data analysis</strong></p><p>the publicly available uber ride information dataset provides a large amount of valuable data around traffic, transit time, peak pickup localities, and more. Analyzing this data is useful not just in the context of uber but also in providing insight into urban traffic patterns and helping us plan for the cities of the future.</p><p><strong>7. Crime document classification</strong></p><p>Cluster documents in multiple categories based on tags, topics, and the content of the document. This is a very standard classification problem and k-means is a highly suitable algorithm for this purpose. The initial processing of the documents is needed to represent each document as a vector and uses term frequency to identify commonly used terms that help classify the document. the document vectors are then clustered to help identify similarity in document groups.</p><blockquote>These were few use cases but the list goes on be it in Security Domain or any other, K-means is very effective as well as easy way of Clustering in machine learning.</blockquote><p><strong>THANK YOU!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe7802ef5817" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All about JavaScript & Industry use -cases]]></title>
            <link>https://aditi-awasthi11-aa.medium.com/all-about-javascript-industry-use-cases-7acfb3471fee?source=rss-1e130b9501e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/7acfb3471fee</guid>
            <category><![CDATA[industrial]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Aditi Awasthi]]></dc:creator>
            <pubDate>Sun, 20 Jun 2021 17:42:01 GMT</pubDate>
            <atom:updated>2021-06-20T17:42:01.458Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VEwQw-c0jPdCLrbo.jpg" /></figure><blockquote><strong>To begin with let’s know what is JavaScript…</strong></blockquote><p><strong>JavaScript</strong> (<strong>JS</strong>) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Apache CouchDB and Adobe Acrobat. JavaScript is a prototype-based, multi-paradigm, single-threaded, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles.</p><blockquote><strong>Why is JavaScript so popular?</strong></blockquote><p>JavaScript is the number one choice for the financial/industrial and many more sectors. And this comes as no surprise. Moving on to more specific tools, the usage of JavaScript frameworks varies greatly across industries. While Angular is relatively popular across all industries, it is definitely winning in popularity among developers in the financial sector. Entertainment seems to fancy React the most while Vue.js is most popular in the advertising and marketing industry.</p><p><strong><em>There’s no denying that JavaScript is everywhere, but just how are some of the world’s largest tech companies using JavaScript amazes us! Lets know about them…</em></strong></p><h3>Microsoft</h3><p>Okay, so you’re probably not going to find JavaScript powering Windows anytime soon, but Microsoft relies on JavaScript for a whole lot else.</p><p>First off, Microsoft needs to work closely with JavaScript to built its Edge web browser. All browsers need to process and execute JavaScript efficiently, so Microsoft has developed and maintains its own JavaScript engine for Edge. Actually, there has been talk of them creating an alternate version of NodeJS with the Edge engine.</p><p>Recently, Microsoft has really embraced NodeJS. They thoroughly support Node on the Azure cloud platform. Its one of Azure’s major features, and they’ve integrated Visual Studio support for Node.</p><p>Microsoft has also developed a version of Node for <strong>I</strong>nternet <strong>O</strong>f <strong>T</strong>hings(IoT) applications. NodeJS is great of IoT because it’s light weight and efficient.</p><h3>PayPal</h3><p>PayPal has obviously been using JavaScript on the front end of their website for a long time, but that’s only the beginning.</p><p>The online payment giant was one of the earliest adopters of NodeJS. During an overhaul of their account overview page, they decided to try building the page in Node at the same time as their usual Java development. The NodeJS version worked out so well, that they chose to use it in production and build all client-facing applications in Node going forward. That means that most of what you see in your account is running on Node.</p><p>PayPal even went as far as to create and maintain their own version of Express, called <a href="http://krakenjs.com/">KrakenJS</a>. It’s pretty obvious that they like JavaScript over at PayPal.</p><h3>Netflix</h3><p>Like PayPal, Netflix started out using Java for just about everything. They too ran into problems with Java’s size and the time it required to develop.</p><p>Over time, Netflix moved away from its more traditional structure into the cloud and started to introduce NodeJS. With Node, Netflix was able to break down pieces of their user interface into individual services. This more distributed approach was able to speed things up an alleviate stress on their servers. Today, a large portion of Netflix’s interface is running on Node.</p><h3>Groupon</h3><p>Groupon used to be infamously slow. Why? They were powered by Ruby on Rails. That’s the same framework that brought you the Twitter fail whale.</p><p>Groupon was all one gigantic Ruby on Rails application. Thanks to difficulties in speed and maintainability, they decided to change over to NodeJS. Node allowed Groupon to rebuild their entire US website by breaking down everything into individual NodeJS web applications. Now, Groupon is made up of over 20 Node applications, and it moves much faster as a whole.</p><p>Groupon is currently moving all of their international sites to NodeJS and has joined the NodeJS Foundation. It’s pretty clear that they are happy with their change.</p><h3>Uber</h3><p>Uber needs to handle loads of data in real time. They have millions of requests coming in continuously, and that’s not just hits on a page. Uber needs to track driver locations, rider locations, and incoming ride requests. It has to seamlessly sort that data and match riders as fast as possible.</p><p>All of that plays to NodeJS’s and JavaScript’s strengths. Node is designed to handle requests and hand off data quickly. It’s asynchronous capabilities are a huge part of that. Node is central to Uber’s user facing stack for just that reason.</p><h3>Facebook</h3><p>You’re probably aware that Facebook uses JavaScript. It’s kind of hard to miss. What’s probably not as obvious is exactly how much JavaScript goes into making Facebook and how much Facebook is involved in JavaScript development.</p><p>Try disabling JavaScript in your web browser and going to Facebook. The website will actually stop you from logging in because it won’t work without JavaScript.</p><p>You may have noticed the way that Facebook loads. Each piece of the page is separate. Facebook has invented its own way of breaking down and delivering sections of JavaScript separately. In an odd way, each section of your Facebook page is a collection of independent JavaScript applications.</p><p>It doesn’t stop there. Facebook created <a href="https://facebook.github.io/react/">React</a>, one of the most popular front end frameworks. Facebook uses React on Facebook.com as well as Instagram and WhatsApp.</p><h3>Google</h3><p>How doesn’t Google use JavaScript? Seriously, it’s everywhere. Google’s search results that spring up as your typing get there with JavaScript. The Gmail web client is powered by JavaScript. Google Docs? Yeah, that’s JavaScript too.</p><p>Google develops and usually open sources it’s own JavaScript tools. The most obvious example is AngularJS. Angular is used most prominently in Google’s DoubleClick advertising platform, but it’s also one of the most popular front end frameworks available. It’s even part of the MEAN stack.</p><p>Google’s more intensive services, like Google Docs, use Closure Tools. This set of tools compiles JavaScript into a lower-level faster form more suited for rich and highly responsive web applications.</p><p>There’s another big point to touch on. Google developed Chrome. Chrome, being a web browser, needed a JavaScript engine, so Google also made V8. V8 not only powers Chrome, it’s at the heart of NodeJS. So, without Google, there would be no Node.</p><h3>eBay</h3><p>eBay’s story is a lot like Netflix’s. For a long time, just about everything in eBay’s tech stack was based on Java. A few years ago, eBay encountered a problem that Java wasn’t the right solution for. They decided to give NodeJS a shot instead.</p><p>Node worked so well that eBay not only kept using it for that particular service, they began migrating their entire user facing stack to NodeJS. Now, just about everything that you interact with on eBay is powered by Node. Sure, beneath Node, Java is still dealing with their databases, but eBay still places a lot of trust in NodeJS.</p><h3>Walmart</h3><p>Most people probably don’t think of Walmart as a tech company, but because they’re one of the largest retailers in the world, their online retail business is gigantic. It’s not much of a stretch to see how they need build a technologically advanced web application do drive their online business.</p><p>Walmart started out with Java. It’s a solid enterprise-grade platform that has been the de facto choice for years. However, Walmart needed something faster and lighter weight for their mobile site. So, they turned to NodeJS.</p><p>Once again, Walmart began to see Node as a valid Java replacement in loads of other places. Today, the Walmart.com that you see is powered by Node. NodeJS was also the ideal choice for other web applications within their marketplace that require multiple users to be able to access management interfaces simultaneously.</p><h3>LinkedIn</h3><p>LinkedIn relies on NodeJS for its mobile site. A few years back, LinkedIn used Rails for its mobile site. As with other other large Rails applications, it was slow, monolithic, and it scaled poorly.</p><p>LinkedIn switched over to NodeJS to solve its scaling problems. Node’s asynchronous capabilities allowed the LinkedIn mobile site to perform more quickly than before while using fewer resources. Node also made data sharing and building APIs easier for the LinkedIn developers.</p><p>There is a long list of these top notch industries and companies which use <strong><em>JavaScript </em></strong>extensively and make amazing outcomes for its users. All in all, JavaScript use across industries shows some interesting variations. Afterall, everyone has their own needs and preferences.</p><p>THANK YOU!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7acfb3471fee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confusion Matrix & Cyber World]]></title>
            <link>https://aditi-awasthi11-aa.medium.com/confusion-matrix-cyber-world-b848ce16139e?source=rss-1e130b9501e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b848ce16139e</guid>
            <category><![CDATA[confusion-matrix]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Aditi Awasthi]]></dc:creator>
            <pubDate>Thu, 03 Jun 2021 09:36:45 GMT</pubDate>
            <atom:updated>2021-06-03T09:36:45.714Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QOFmbesHOBJ-VO8XnuATxg.jpeg" /></figure><p>As we know, the Supervised Machine Learning algorithm can be broadly classified into Regression and Classification Algorithms. In Regression algorithms, we have predicted the output for continuous values, but to predict the categorical values, we need Classification algorithms.</p><blockquote>What is the Classification Algorithm?</blockquote><blockquote>The Classification algorithm is a Supervised Learning technique that is used to identify the category of new observations on the basis of training data. In Classification, a program learns from the given dataset or observations and then classifies new observation into a number of classes or groups.</blockquote><h3>Confusion Matrix</h3><p>The confusion matrix is a matrix used to determine the performance of the classification models for a given set of test data. It can only be determined if the true values for test data are known. A confusion matrix is not a metric to evaluate a model, but it provides insight into the predictions. It is important to learn confusion matrix in order to comprehend other classification metrics such as <strong>precision </strong>and <strong>recall</strong>.</p><p>Confusion matrix goes deeper than classification accuracy by showing the correct and incorrect (i.e. true or false) predictions on each class. In case of a binary classification task, a confusion matrix is a 2x2 matrix. If there are three different classes, it is a 3x3 matrix and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/0*AN2qise-RETE_Drj.png" /></figure><p>Let’s assume class A is positive class and class B is negative class. The key terms of confusion matrix are as follows:</p><ul><li><strong>True positive (TP)</strong>: Predicting positive class as positive (ok)</li><li><strong>False positive (FP)</strong>: Predicting negative class as positive (not ok)</li><li><strong>False negative (FN)</strong>: Predicting positive class as negative (not ok)</li><li><strong>True negative (TN)</strong>: Predicting negative class as negative (ok)</li></ul><h3>Now let’s understand TP, TN, FP, and FN in a Confusion Matrix</h3><p><strong>True Positive (TP)</strong></p><blockquote>The predicted value matches the actual value</blockquote><blockquote>The actual value was positive and the model predicted a positive value</blockquote><p><strong>True Negative (TN)</strong></p><blockquote>The predicted value matches the actual value</blockquote><blockquote>The actual value was negative and the model predicted a negative value</blockquote><p><strong>False Positive (FP) — Type 1 error</strong></p><blockquote>The predicted value was falsely predicted</blockquote><blockquote>The actual value was negative but the model predicted a positive value</blockquote><p><strong>False Negative (FN) — Type 2 error</strong></p><blockquote>The predicted value was falsely predicted</blockquote><blockquote>The actual value was positive but the model predicted a negative value</blockquote><p><strong>Confusion matrix is used to calculate precision and recall.</strong></p><p>Precision and recall metrics take the classification accuracy one step further and allow us to get a more specific understanding of model evaluation. Which one to prefer depends on the task and what we aim to achieve.</p><blockquote><strong>Precision</strong> measures how good our model is when the prediction is positive. It is the ratio of correct positive predictions to all positive <strong>predictions</strong>:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/60/0*ffy9c12tNhmGwqMh" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/0*PNPgTbMce0BFaJm7.png" /></figure><blockquote><strong>Recall</strong> measures how good our model is at correctly predicting positive classes. It is the ratio of correct positive predictions to all positive <strong>classes</strong>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/60/0*8UxYQHVwvk6ipGWG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/0*JX7Na0he0O3UUog7.png" /></figure><blockquote>The focus of precision is <strong>positive predictions </strong>so it<strong> </strong>indicates how many positive predictions are true. The focus of recall is <strong>actual positive classes </strong>so it indicates how many of the positive classes the model is able to predict correctly.</blockquote><h3>Confusion matrix in cyber world</h3><blockquote><strong>Positive : System is secure</strong></blockquote><blockquote><strong>Negative : System is insecure</strong></blockquote><p>TP: In this case, our system is secure, which means no action must be taken by the cybersecurity officers.</p><p>TN: In this case, our model detects the moment when our system is insecure and now the cybersecurity officers are sure about taking some action.</p><p>FP(Type-1 error): In this case, our model predicts the system is secure but our system is actually under attack. Therefore, the cybersecurity officers have no clue about the attack which may cause a major Cyberattack.</p><p>FN(Type-2 error): In this case, our model predicts that the system is insecure which makes the cybersecurity officers more active in detecting the issue. However, this does not lead to any actual harm to the system.</p><p>From the above discussion, we could conclude that the Type-1 error is more dangerous than the Type-2 error.</p><h3><strong>Sensitivity and Specificity</strong></h3><p>Sensitivity, also known as the true positive rate (TPR), is the same as recall. Hence, it measures the proportion of positive class that is correctly predicted as positive.</p><p>Specificity is similar to sensitivity but focused on negative class. It measures the proportion of negative class that is correctly predicted as negative.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/0*6xfjrb_94OILvYbM.png" /></figure><p><em>Hope linking confusion matrix with cyber world through my blog made it little less confusing.</em></p><p>THANK YOU!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b848ce16139e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GUI Container on the Docker]]></title>
            <link>https://aditi-awasthi11-aa.medium.com/gui-container-on-the-docker-856f80dd4d12?source=rss-1e130b9501e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/856f80dd4d12</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[firefox]]></category>
            <category><![CDATA[jupyter-notebook]]></category>
            <category><![CDATA[gui]]></category>
            <dc:creator><![CDATA[Aditi Awasthi]]></dc:creator>
            <pubDate>Sun, 30 May 2021 10:21:48 GMT</pubDate>
            <atom:updated>2021-05-30T10:21:48.201Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*irqCNSO3nrRyT5gDxBfO9A.png" /><figcaption>Launch GUI Inside Docker</figcaption></figure><p>Docker is an open source containerization platform. Docker enables developers to package applications into containers — standardized executable components that combine application source code with all the operating system (OS) libraries and dependencies required to run the code in any environment. While developers can create containers without Docker, Docker makes it easier, simpler, and safer to build, deploy, and manage containers. It’s essentially a toolkit that enables developers to build, deploy, run, update, and stop containers using simple commands and work-saving automation.</p><blockquote>Let’s begin with the demonstration</blockquote><h4>Launch Graphical User Interface Inside Docker Container</h4><blockquote>Step 1: Create a directory where your code will be saved. In our case dockergui is a directory inside which we will create Dockerfile.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*tgY8v5-xSeFAXi2bAWqIjQ.png" /></figure><p><em>Step 2: Now after creating Dockerfile write the following code:</em></p><blockquote><strong>FROM centos</strong></blockquote><blockquote><strong>RUN yum install firefox -y</strong></blockquote><blockquote><strong>CMD [“/user/bin/firefox”]</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*S9BqnKSnyFAPIZgilHe3Kw.png" /></figure><p><em>Step 3: Build the image.</em></p><blockquote><strong>docker build -t &lt;give any name&gt;</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*UUPSZwGzEGgB16nE3azSCg.png" /></figure><p><em>Step 5: Check the Build image.</em></p><blockquote><strong>docker images</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*Rs91GT6ynriN4Aihoelvag.png" /></figure><p><em>Step 5: Run the Command</em></p><blockquote><strong>docker run -it — -env= “DISPLAY” — -net=host — -name&lt;give any name &gt; &lt;image name&gt;</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*8frnIvQO1U_HNZXL2qgmxA.png" /></figure><p><em>Step 6: Firefox launched successfully.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*O70c6gWlMp8I061-ANRIgg.png" /></figure><h3><strong>Now lets launch jupyter notebook as well.</strong></h3><p>Firstly install jupyter notebook inside the container.</p><blockquote><strong>pip3 install jupyter notebook</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*y9aTkZ9tXA3jQCpyGg8b4A.png" /></figure><blockquote><strong>jupyter notebook — allow-root</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*wnvU3RX18D5SpI8WJwqzMg.png" /></figure><p>Jupyter notebook running in GUI inside docker container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*Pj3BuliisAiyhNadZtuphw.png" /></figure><h3>THANK YOU!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=856f80dd4d12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to load a Machine Learning model in Docker]]></title>
            <link>https://aditi-awasthi11-aa.medium.com/how-to-load-a-machine-learning-model-in-docker-f15a2f8217ae?source=rss-1e130b9501e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f15a2f8217ae</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Aditi Awasthi]]></dc:creator>
            <pubDate>Thu, 27 May 2021 04:22:52 GMT</pubDate>
            <atom:updated>2021-05-27T05:23:28.816Z</atom:updated>
            <content:encoded><![CDATA[<p>How to load a Machine Learning model in Docker</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*Z2N3YdEpP4FqtIyawcHaZw.png" /></figure><p>Docker is a software platform for building applications based on <em>containers </em>— small and lightweight execution environments that make shared use of the operating system kernel but otherwise run in isolation from one another. While containers as a concept have been around for some time, Docker, an open source project launched in 2013, helped popularize the technology, and has helped drive the trend towards <em>containerization </em>and <em>microservices</em> in software development that has come to be known as cloud native development.</p><p>We will be performing below mentioned steps to load a machine learning model on Docker:</p><ol><li>Pull the Docker container image of CentOS image from DockerHub.</li><li>Create container with the help of centos image.</li><li>Install the Python software on the top of docker container.</li></ol><p>4. Install the required Python packages on the top of docker container.</p><p>5. Now inside this container we need to copy/create our machine learning model on whichever dataset we want.</p><p>6. Create model file.</p><p>7. Run your model.</p><p><strong>Step 1: Pull the Centos Image from Dockerhub.</strong></p><p>“docker pull centos:latest”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*lGsI8RCPGHtxh_mqwhg-6w.png" /></figure><p><strong>Step 2 : Create container with the help of centos image.</strong></p><p>“docker run -i -t — name=container_name centos:latest”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*i92jzQnr26A99uuSo1Jc-Q.png" /></figure><p><strong>Step 3 : Install the Python software on the top of docker container.</strong></p><p>“yum install python3”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*0C3ALS4TMbR27jcLXWCHsw.png" /></figure><p><strong>Step 4: Install the required Python packages on the top of docker container.</strong></p><p>“pip3 install numpy”</p><p>“pip3 install pandas”</p><p>“pip3 install scikit-learn”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*QwUuF0DhsSNKsOBMxrCpTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*S1c_j4D1Sq2gtsY5XgqMVg.png" /></figure><p><strong>Step 5 : Now inside this container we need to copy/create our machine learning model on whichever dataset we want.</strong></p><p>“ docker cp salary_data.csv ml:/salary_data.csv”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*jIonTwBo7yR8ddG6oFlRrA.png" /></figure><p><strong>Step 6 : Create a predict.py file.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*K6x1YO0_AHsiJakxEyadFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*iUh_VsemcyWF_2HiTjyQNQ.png" /></figure><p><strong>Step 7 : Run the model.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*lEjYF3_O_HMr6eyO_xkgWg.png" /></figure><h3>THANK YOU!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f15a2f8217ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>