<?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 Nikhil on Medium]]></title>
        <description><![CDATA[Stories by Nikhil on Medium]]></description>
        <link>https://medium.com/@nikhil-st8?source=rss-81db8728576f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qQJ7OgyvFjJ9bANI590FyA.png</url>
            <title>Stories by Nikhil on Medium</title>
            <link>https://medium.com/@nikhil-st8?source=rss-81db8728576f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:29:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nikhil-st8/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[Approximate & Exact Inference in Bayesian Networks]]></title>
            <link>https://nikhil-st8.medium.com/approximate-exact-inference-in-bayesian-networks-b682ed19fbbf?source=rss-81db8728576f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b682ed19fbbf</guid>
            <category><![CDATA[bayesian]]></category>
            <category><![CDATA[bayesian-inference]]></category>
            <category><![CDATA[bayesian-networks]]></category>
            <dc:creator><![CDATA[Nikhil]]></dc:creator>
            <pubDate>Mon, 04 Jul 2022 17:24:11 GMT</pubDate>
            <atom:updated>2022-07-04T17:24:11.034Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/464/0*OPAlEfJ-JnHD-M7Q.png" /></figure><h3><strong>Introduction</strong></h3><p><strong>Bayesian networks</strong> are a type of probabilistic graphical model which represents a set of variables and their conditional dependencies using a Directed Acyclic Graph (DAG). It uses Bayesian inference for probability computations. Bayesian networks aim to model conditional dependence, and therefore causation, by representing conditional dependence by edges in a directed graph. Through these relationships, one can efficiently conduct inference on the random variables in the graph through the use of factors.</p><h4>The Bayesian Network</h4><p>Using the relationships specified by our Bayesian network, we can obtain a compact, factorized representation of the joint probability distribution by taking advantage of conditional independence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/0*NdyJ8ZjzrCt_Iwc6.jpeg" /></figure><p>A Bayesian network is a<strong> directed acyclic graph</strong> in which each edge corresponds to a conditional dependency, and each node corresponds to a unique random variable. Formally, if an edge (A, B) exists in the graph connecting random variables A and B, it means that P(B|A) is a <strong>factor</strong> in the joint probability distribution, so we must know P(B|A) for all values of B and A in order to conduct inference. In the above example, since Rain has an edge going into WetGrass, it means that P(WetGrass|Rain) will be a factor, whose probability values are specified next to the WetGrass node in a conditional probability table.</p><p>Bayesian networks satisfy the <strong>local Markov property</strong>, which states that a node is conditionally independent of its non-descendants given its parents. In the above example, this means that P(Sprinkler|Cloudy, Rain) = P(Sprinkler|Cloudy) since Sprinkler is conditionally independent of its non-descendant, Rain, given Cloudy. This property allows us to simplify the joint distribution, obtained in the previous section using the chain rule, to a smaller form. After simplification, the joint distribution for a Bayesian network is equal to the product of P(node|parents(node)) for all nodes, stated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/0*m4w4_S__aNNA0EPt.png" /></figure><p>In larger networks, this property allows us to greatly reduce the amount of required computation, since generally, most nodes will have few parents relative to the overall size of the network.</p><h3>Inference</h3><p>Inference is one key objective in a Bayesian network (BN), and it aims to estimate the <strong><em>posterior distributions</em></strong> of state variables based on evidence (observations).</p><h3>- Exact Inference</h3><p>Inference over a Bayesian network can come in two forms.</p><p>The first is simply evaluating the joint probability of a particular assignment of values for each variable (or a subset) in the network. For this, we already have a factorized form of the joint distribution, so we simply evaluate that product using the provided conditional probabilities. If we only care about a subset of variables, we will need to marginalize out the ones we are not interested in. In many cases, this may result in underflow, so it is common to take the logarithm of that product, which is equivalent to adding up the individual logarithms of each term in the product.</p><p>The second, more interesting inference task, is to find P(x|e), or, to find the probability of some assignment of a subset of the variables (x) given assignments of other variables (our evidence, e). In the above example, an example of this could be to find P(Sprinkler, WetGrass | Cloudy), where {Sprinkler, WetGrass} is our x, and {Cloudy} is our e. In order to calculate this, we use the fact that P(x|e) = P(x, e) / P(e) = αP(x, e), where α is a normalization constant that we will calculate at the end such that P(x|e) + P(¬x | e) = 1. In order to calculate P(x, e), we must marginalize the joint probability distribution over the variables that do not appear in x or e, which we will denote as Y.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*s8H-ZUnuNF7ZJ8g3.png" /></figure><blockquote>Note: Note that in larger networks, Y will most likely be quite large, since most inference tasks will only directly use a small subset of the variables. In cases like these, exact inference as shown above is very computationally intensive, so methods must be used to reduce the amount of computation. One more efficient method of exact inference is through <a href="https://en.wikipedia.org/wiki/Variable_elimination">variable elimination</a>, which takes advantage of the fact that each factor only involves a small number of variables. This means that the summations can be rearranged such that only factors involving a given variable are used in the marginalization of that variable. Alternatively, many networks are too large even for this method, so approximate inference methods such as <a href="https://en.wikipedia.org/wiki/Markov_chain_Monte_Carlo">MCMC</a> are instead used; these provide probability estimations that require significantly less computation than exact inference methods.</blockquote><h3>- Approximate Inference</h3><p><strong><em>What is approximate inference?</em></strong></p><ul><li>It is a method of estimating probabilities in Bayesian networks also called ‘Monte Carlo’ algorithms.</li><li>We will discuss two types of algorithms: <strong><em>Direct sampling </em></strong>and<strong><em> Markov chain sampling.</em></strong></li></ul><p><strong><em>Why use approximate inference?</em></strong></p><ul><li>Exact inference becomes intractable for large multiply-connected networks</li><li>Variable elimination can have exponential time and space complexity</li><li>Exact inference is strictly HARDER than NP-complete problems (#P-hard)</li></ul><h4>Direct Sampling</h4><p>In direct sampling we take samples of events. We expect the frequency of the samples to converge on the probability of the event.</p><p><strong>Rejection Sampling —</strong></p><ul><li>Used to compute conditional probabilities P(X|e)</li><li>Generate samples as before</li><li>Reject samples that do not match evidence</li><li>Estimate by counting the how often event X is in the resulting samples</li></ul><p><strong>Likelihood Weighting —</strong></p><ul><li>Avoid inefficiency of rejection sampling</li><li>Fix values for evidence variables and only sample the remaining variables</li><li>Weight samples with regard to how likely they are</li></ul><h4>Markov Chain Sampling</h4><ul><li>Generate events by making a random change to the preceding event</li><li>This change is made using the Markov Blanket of the variable to be changed</li><li>Markov Blanket = parents, children, children’s parents</li><li>Tally and normalize results</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b682ed19fbbf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploratory Data Analysis]]></title>
            <link>https://nikhil-st8.medium.com/exploratory-data-analysis-ae98ba8ae36b?source=rss-81db8728576f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae98ba8ae36b</guid>
            <dc:creator><![CDATA[Nikhil]]></dc:creator>
            <pubDate>Sat, 30 Oct 2021 16:32:06 GMT</pubDate>
            <atom:updated>2021-10-30T16:32:06.625Z</atom:updated>
            <content:encoded><![CDATA[<h4>What is Exploratory Data Analysis?</h4><p>Exploratory Data Analysis is an approach in analyzing data sets to summarize their main characteristics, often using statistical graphics and other data visualization methods, but primarily EDA is for seeing what the data can tell us beyond the formal modelling or hypothesis testing task.</p><h4>Example</h4><p>Now take for example you got an opportunity to go out on a dinner date with your crush and you have to decide on the place, so you start looking for someplace nice. There is absolutely no debate about that, it will lead to a state where you find yourself puzzled with a lot of questions that need to be answered in order to make a decision. Being a good date you would ask the girl/boy about what kind of food she/he likes? As a practice, you would also look out for expensive restaurants. Furthermore, you’d find out ratings and reviews the restaurant has received from the customers.</p><p>Whatever investigating measures you would take before finally going out on a date is nothing but what data scientists in their lingo call ‘Exploratory Data Analysis ’.</p><p>EDA assists Data science professionals in various ways:-</p><ol><li>Getting a better understanding of data</li><li>Identifying various data patterns</li><li>Getting a better understanding of the problem statement</li></ol><h3><strong>EDA Explained with a Dataset</strong></h3><h4>Introductory Details About Data</h4><p>To share my understanding of the concept and techniques I know, we will take <a href="https://www.kaggle.com/uciml/iris">Iris Species Dataset</a> to explore them and try to catch hold of as many insights from the data set using EDA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CP_hVuW_anUlb6waH_3kIA.png" /></figure><p>To start with, I imported the necessary libraries (for this example pandas, NumPy, matplotlib and seaborn) and loaded the data set.</p><p>The first and foremost step of any data analysis, after loading the data file, should be about checking a few introductory details<strong><em> </em></strong>like, no. Of columns, no. of rows, types of features(Categorical or Numerical), data types of column entries.</p><p>I found out the total number of rows and columns in the data set using “.shape”.</p><blockquote>df. shape</blockquote><pre>(150, 6)</pre><blockquote>The dataset comprises 150 observations and 6 characteristics.</blockquote><blockquote>Out of which one is the dependent variable and the rest 5 are independent variables.</blockquote><p>Now to get a concise summary of data we will be using the info() function. This method prints information about a DataFrame including the index dtype and column dtypes, non-null values and memory usage</p><blockquote>df.info()</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*gQnXPKIaomKvEzr5NW-a4A.png" /></figure><p>Now to take a closer look at the data took the help of the “ .head()” function of the pandas library which returns the first five observations of the data set. Similarly “.tail()” returns the last five observations of the data set.</p><blockquote>df.head()</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*Ay7GLBN5xiZ9K4UF-oFXQg.png" /></figure><blockquote>df.tail()</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*aiExt_HcnI8KpaWMUG_mig.png" /></figure><h4>Data cleaning</h4><p>This is the most important step in EDA involving removing duplicate rows/columns, filling the void entries with values like mean/median of the data, dropping various values, removing null entries.</p><h4>Statistical Insights</h4><blockquote>df.describe()</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*Z4qySiN7bmJZSYIibjhXqA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae98ba8ae36b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confusion Matrix & Cyber Crime]]></title>
            <link>https://nikhil-st8.medium.com/confusion-matrix-cyber-crime-e3f588674370?source=rss-81db8728576f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3f588674370</guid>
            <dc:creator><![CDATA[Nikhil]]></dc:creator>
            <pubDate>Wed, 11 Aug 2021 14:06:24 GMT</pubDate>
            <atom:updated>2021-08-11T14:06:24.329Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/611/0*Cis82fO1E7k6UneD" /></figure><h4>Two types of error.</h4><p>When I first learned about the concept of a confusion matrix I was left with one overwhelming feeling: confusion. They are called confusion matrices, after all. In fact, I’m convinced that they are named as such because they are often so confusing (don’t quote me). But, when you dig deeper into the construction of a confusion matrix, it isn’t actually that confusing.</p><p>The most important thing to know is that it is based entirely upon the <strong>outcome.</strong></p><h3>True, False, Positive, Negative</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*y2Qta1iXPq7cbvx_.png" /></figure><p>How you should look at a confusion matrix</p><p>The Positive/Negative label refers to the <em>predicted</em> outcome of an experiment, while the True/False refers to the <em>actual </em>outcome. So if I predicted that someone was pregnant, but they weren’t, then that would be a False Positive because the <em>actual</em> outcome was false but the <em>prediction</em> was positive.</p><h3>Types of Errors</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*A-10PHMZFlBdeAGE.png" /></figure><p>Types of Errors</p><p>Confusion matrices have two types of errors: Type I and Type II.</p><p>I was taught two ways to keep Type I and Type II straight. If you know of any others that have helped you over the years, please leave them in the comments — I love a good mnemonic!</p><p>The first way is to re-write False Negative and False Positive. False Positive is a Type I error because False Positive = <strong>F</strong>alse True and that only has one F. False Negative is a Type II error because False Negative = <strong>F</strong>alse <strong>F</strong>alse so thus there are two F’s making it a Type II. (Kudos to Riley Dallas for this method!)</p><p>The second way is to consider the meanings of these words. False Positive contains one negative word (False) so it’s a Type I error. False Negative has two negative words (False + Negative) so it’s a Type II error.</p><h4>Now let’s talk about Cyber Crime</h4><p>Cybercrime is any criminal activity that involves a computer, networked device or a network. While most cybercrimes are carried out to generate profit for the cybercriminals, some cybercrimes are carried out against computers or devices directly to damage or disable them, while others use computers or networks to spread malware, illegal information, images or other materials.</p><blockquote><strong><em>Cybercrime can be anything like:</em></strong></blockquote><ul><li>Stealing of personal data</li><li>phishing</li><li>Leak Your private photos</li><li>Hack emails for gaining information.</li></ul><h3>Confusion Matrix’s implementation in monitoring Cyber Attacks:</h3><p>The data set was used for The Third International Knowledge Discovery and Data Mining Tools Competition, which was held in conjunction with KDD-99 The Fifth International Conference on Knowledge Discovery and Data Mining. The competition task was to build a <strong>network intrusion detector, a predictive model capable </strong>of distinguishing between ``bad’’ connections, called intrusions or attacks, and good normal connections. This database contains a standard set of data to be audited, which includes a wide variety of intrusions simulated in a military network environment.</p><p>In the KDD99 dataset these four attack classes <strong>(DoS, U2R, R2L, and probe) </strong>are divided into 22 different attack classes that tabulated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/0*09BU6yeEpkpIQVfa" /></figure><p>In the KDD Cup 99, the <strong>criteria used for evaluation </strong>of the participant entries is the Cost Per Test (CPT) computed using the confusion matrix and a given cost matrix.</p><ul><li>True Positive (TP): The amount of attack detected when it is actually attacked.</li><li>True Negative (TN): The amount of normal detected when it is actually normal.</li><li>False Positive (FP): The amount of attack detected when it is actually normal (False alarm).</li><li>False Negative (FN): The amount of normal detected when it is actually attacked.</li></ul><h3>Conclusion</h3><p>A <strong>confusion matrix </strong>is a tabular summary of the number of <strong>correct and incorrect predictions </strong>made by a classifier. It is used to measure the performance of a classification model. It can be used to evaluate the performance of a classification model through the calculation of performance metrics like accuracy, precision, recall, and F1-score.</p><blockquote>Thank you for Reading..! : -)</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3f588674370" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript And its Industry Use-Cases]]></title>
            <link>https://nikhil-st8.medium.com/javascript-and-its-industry-use-cases-da535158c769?source=rss-81db8728576f------2</link>
            <guid isPermaLink="false">https://medium.com/p/da535158c769</guid>
            <dc:creator><![CDATA[Nikhil]]></dc:creator>
            <pubDate>Wed, 11 Aug 2021 10:56:29 GMT</pubDate>
            <atom:updated>2021-08-11T10:56:29.556Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*GN0ntKlB6c8AYDn6.jpg" /></figure><h4>What is Javascript?</h4><p>JavaScript is a scripting or programming language that allows you to implement complex features on web pages every time a web page does more than just sit there and display static information for you to look at displaying timely content updates, interactive maps, animated 2D/3D graphics, scrolling video jukeboxes, etc. You can bet that JavaScript is probably involved. It is the third layer of the layer cake of standard web technologies, two of which (<a href="https://developer.mozilla.org/en-US/docs/Learn/HTML">HTML</a> and <a href="https://developer.mozilla.org/en-US/docs/Learn/CSS">CSS</a>) we have covered in much more detail in other parts of the Learning Area.</p><p>There are many beneficial Javascript frameworks and libraries available:</p><ul><li>Angular</li><li>React</li><li>jQuery</li><li>Vue.js</li><li>Node.js</li><li>Next.js</li></ul><p>etc and many more to come. Over the years, the popularity and demand for JavaScript have remained high.</p><p>A <a href="https://research.hackerrank.com/student-developer/2018#skills"><strong>report by HackerRank</strong></a>, meanwhile, found that the global demand for JavaScript outweighs the expertise available on the market. According to the report, 48% of employers worldwide say they need JavaScript skills, yet only 42% of student developers say they are proficient in the language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*34RA8a2qWYyNBJgqldDoiQ.png" /></figure><p>Demand for JavaScript has always remained by most of the programming languages. Because some of its features like lightweight, dynamic, functional and interpreted.</p><ul><li>Light Weight Scripting language</li><li>Dynamic Typing</li><li>Object-oriented programming support</li><li>Functional Style</li><li>Platform Independent</li><li>Prototype-based</li><li>Interpreted Language</li><li>Async Processing</li><li>Client-Side Validation</li><li>More control in the browser</li></ul><h4>Industry Use-Cases</h4><p><strong>Facebook</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*BIOQZN1IUFdSSpBu" /></figure><p>Almost every website uses JavaScript, even if we try to use facebook’s website after disabling JavaScript, it wouldn’t allow us to log in, this may show the importance of JavaScript in Facebook. The dynamic aspect to its website is provided by JavaScript, even if we inspect the code, we will end up getting only JavaScript code. These multiple scripts help to render various other pages of Facebook quickly. Additionally, Facebook is the one who created React.js, the most reactive framework of JavaScript which is also used in Facebook, Instagram, and WhatsApp.</p><p><strong>Google</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*QMj99FjTVCuzqzP5" /></figure><p>Google of course uses JavaScript, whenever we start typing in the search box, it gives us suggestions. It’s all because of JavaScript. Nobody can ever imagine using the Internet without Google and the dynamic nature of Google is provided by JavaScript. Google is also the creator of one of the most popular front-end frameworks, Angular.</p><h4><strong>Microsoft Edge</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/0*R0LSiGgIYVxyDBKr" /></figure><p>Microsoft Edge is one of the most used web browsers and, it needs to work closely with JavaScript to build the web browser. All browsers need to process and execute JavaScript efficiently, so Microsoft has developed and maintains its JavaScript engine for Edge. All the dynamic aspects and various features on the web page need JavaScript to function efficiently.</p><p>These are some of the use cases of Javascript in the Industry but this does not stop, Javascript goes way beyond these scopes to other Industries.</p><blockquote>Thank you for Reading ….!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da535158c769" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[K-Means Clustering and its Use Cases in Security Domain]]></title>
            <link>https://nikhil-st8.medium.com/k-means-clustering-and-its-use-cases-in-security-domain-7bd6e78bfa6a?source=rss-81db8728576f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bd6e78bfa6a</guid>
            <dc:creator><![CDATA[Nikhil]]></dc:creator>
            <pubDate>Sun, 08 Aug 2021 14:30:21 GMT</pubDate>
            <atom:updated>2021-08-08T14:30:21.603Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*ebVF6F5QgkemC1WO6_dLpg.png" /></figure><h4>What is K-Means Clustering and How does it work?</h4><p>K-means clustering is one of the simplest and popular unsupervised machine learning algorithms.</p><p>Typically, unsupervised algorithms make inferences from datasets using only input vectors without referring to known or labelled outcomes.</p><p>K-means clustering is a Machine Learning algorithm that helps in making groups or clusters in our data. A cluster refers to a collection of data points aggregated together because of certain similarities. You’ll define a target number <em>k</em>, which refers to the number of centroids you need in the dataset. A centroid is the imaginary or real location representing the centre of the cluster.</p><p>In other words, the K-means algorithm identifies <em>k</em> number of centroids, and then allocates every data point to the nearest cluster, while keeping the centroids as small as possible.</p><p>The <em>‘means’</em> in the K-means refers to averaging of the data; that is, finding the centroid.</p><h4>Security Domain Use Cases:</h4><ul><li>Cyber profiling criminal</li></ul><p>Cyber profiling is the process of collecting data from individuals and groups to identify significant correlations. 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. here is an interesting white paper on how to cyber-profile users in an academic environment based on user data preferences.</p><p>Through K-mean Clustering algorithms, the data can be grouped by the number of websites visited. This grouping aims to see what the user frequently accesses websites.</p><p>The data of internet users access at an institution can be categorized as a large data type so that the analysis can be done with data mining. In this case, the clustering algorithm as one of the data mining techniques can be used to find groups (clusters) of a useful object, which the users depend on the purpose of data analysis.</p><p>Clustering analysis is one of the most useful methods for the acquisition of knowledge and is used to find clusters that are a fundamental and important pattern for the distribution of the data itself</p><ul><li>Insurance fraud detection</li></ul><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 their 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><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bd6e78bfa6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GUI Application on Top of Docker]]></title>
            <link>https://nikhil-st8.medium.com/gui-application-on-top-of-docker-2400ff2bbd84?source=rss-81db8728576f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2400ff2bbd84</guid>
            <dc:creator><![CDATA[Nikhil]]></dc:creator>
            <pubDate>Tue, 01 Jun 2021 12:28:12 GMT</pubDate>
            <atom:updated>2021-06-01T12:28:12.967Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s-YgL1NW7evYyCBWI-7w8Q.png" /></figure><p>In this blog, we will launch two GUI applications (Firefox and Juypter Nootbook) inside a docker container.</p><h3>Pre-requisites :-</h3><ul><li>Docker installed in OS.(here, We will be using Redhat8 as the base OS)</li></ul><h3>Steps</h3><ul><li><strong>Now let’s install a GUI application like firefox inside the container.</strong></li></ul><p>yum install firefox -y</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2400ff2bbd84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Containerizing ML Model in “Docker”]]></title>
            <link>https://nikhil-st8.medium.com/contenarizing-ml-model-e9e4371aa3d0?source=rss-81db8728576f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9e4371aa3d0</guid>
            <dc:creator><![CDATA[Nikhil]]></dc:creator>
            <pubDate>Fri, 28 May 2021 14:53:38 GMT</pubDate>
            <atom:updated>2021-05-28T15:55:27.469Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vQK4s0lOiK1ZkcXxFNIMDQ.png" /></figure><h3>Let’s see how to make ML on containers:</h3><p>I will show step-by-step how to set up container that can run Machine Learning code:</p><p>👉 Pull the Docker container image of CentOS image from Docker Hub and create a new container</p><p>👉 Install the Python software on the top of the docker container</p><p>👉 In Container you need to copy/create a machine learning model which you have created in the Jupyter notebook.</p><h4>Step 1: Configure Docker</h4><p>Docker.repo</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bBJo42Xa5wjGKRPQb9GbjQ.png" /></figure><p>yum install docker-ce — nobest</p><p>systemctl start docker</p><p>systemctl enable docker</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KXacLngMdI2yQSoPo3SHLw.png" /></figure><p>systemctl status docker</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m0dbmkWtA6R3jQ6B7qhrpg.png" /></figure><p>Step 3: Pull Docker Image from docker hub</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZjsZapSPKS_MAt0EHlI_PQ.png" /></figure><p>Step 4: Launch Docker container</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_-F6Q3ABepgHfcVJG1DOAA.png" /></figure><p>Step 5: Transfer dataset from GitHub to docker container</p><p>yum install python3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e3dUJ6UnUqIjTaMyx6MKXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e3dUJ6UnUqIjTaMyx6MKXw.png" /></figure><p>pip3 install pandas</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KzXsOol_StLfK2KsdkzO7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GS4Uh7nb-os2Mv4ScyqhaQ.png" /></figure><p>pip3 install scikit-learn</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1hgPXxNCjvRcEyB6ANfkgw.png" /></figure><p>Step 7: Create a file with py extension using vi and write code there.</p><p>model.py</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xB9ExSFiP4modY7oAuORKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jThAYKjwRbNOVKDstw7kkw.png" /></figure><p>result.py</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EoVW3vVh8ZzFMWIBgfOBXQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AlB1blLMPmVBPxSdZkQLpg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9e4371aa3d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>