<?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 Bhavesh Ugemuge on Medium]]></title>
        <description><![CDATA[Stories by Bhavesh Ugemuge on Medium]]></description>
        <link>https://medium.com/@bhavesh.ugemuge05?source=rss-89dfd205f88e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*R3e25yycAR4llolu</url>
            <title>Stories by Bhavesh Ugemuge on Medium</title>
            <link>https://medium.com/@bhavesh.ugemuge05?source=rss-89dfd205f88e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 22:46:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhavesh.ugemuge05/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[AWS Lambda Use Cases]]></title>
            <link>https://medium.com/@bhavesh.ugemuge05/aws-lambda-use-cases-ba639b57b4dd?source=rss-89dfd205f88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba639b57b4dd</guid>
            <dc:creator><![CDATA[Bhavesh Ugemuge]]></dc:creator>
            <pubDate>Mon, 18 Apr 2022 14:34:56 GMT</pubDate>
            <atom:updated>2022-04-18T14:34:56.029Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone after so long I am writing a blog on AWS Lambda and serverless computing.</p><p><strong>CLOUD COMPUTING</strong></p><p>In simpler terms , as per the company’s nomenclature, cloud is nothing but the data centers or availability zones or lab’s of the companies that are available to the public users ,which are over the internet , which provides their own physical hardwares like RAM ,CPU , etc. according to the needs of the user , for computing hence ‘cloud computing’. It comes with pay-as-we-go type of pricing model . Here we have to pay only for the resources that we use and that too for the amount of time we’re using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*-MrpNxc2ltfREuf4zvia3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*IWXp4zraxTt7-KpTKUl0Jg.png" /></figure><p>We have many big company’s which provides their own data centers such as Amazon , Google , Microsoft ,etc. We have cloud computing product AWS by amazon , Azure by Microsoft , etc.</p><blockquote><strong><em>Benefits of cloud computin</em></strong></blockquote><ul><li>Agility</li><li>Elasticity</li><li>Cost savings</li><li>Deploy globally in minutes</li></ul><blockquote><strong><em>Types of cloud computin</em></strong></blockquote><ul><li>Infrastructure as a Service (IaaS)</li><li>Platform as a Service (PaaS)</li><li>Software as a Service (SaaS)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wwY8CQz2O5-WBYXXH8Px9Q.png" /></figure><blockquote><strong><em>What is AWS Lambda?</em></strong></blockquote><p>AWS Lambda is an event-driven computing cloud service from <a href="https://www.techtarget.com/searchaws/definition/Amazon-Web-Services">A</a>mazon Web Services that allows developers to program functions on a pay-per-use basis without having to provision storage or compute resources to support them. This is sometimes referred to function-as-a-service (FaaS). It is a compute service that runs code in response to events and automatically manages the compute resources required by that code.</p><p>AWS supports code written in a variety of programming languages. AWS Lambda languages include Node.js, Python, Java and C#.</p><p>A function is a small piece of programming that carries out a specific task. Developers use AWS Lambda to code and run functions in response to specific events in other Amazon cloud services, such as the creation of an object in an Amazon Simple Storage Service (S3) bucket. Each Lambda function runs in an isolated computing environment with its own resources and view of the file system.</p><p>When AWS Lambda functions are called, the storage and compute resources for that function spin up automatically as a metered service.</p><p>AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume — there is no charge when your code is not running.</p><p>With Lambda, you can run code for virtually any type of application or backend service. Just upload your code and Lambda takes care of everything required to run and scale your code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*zwaEY1_MmL85CbeE0hphDg.png" /></figure><h3>1. Swift document conversion</h3><p>For those who are providing documents to users, there is always a problem because there is <strong>no standard document format that will satisfy the desires of all users</strong>. Some would want it in HTML format, while others would like to download it as a PDF file or even in some more specialized document format.</p><p>You can, of course, make and store copies of all document formats that are most likely to be requested by a user. However, soon you will find out that this <strong>takes a substantial amount of storage capacity</strong>, which you can extend for a considerable <strong>cost</strong>, or you can just save your resources by using AWS Lambda. AWS Lambda can <strong>swiftly retrieve the required document, format and convert it</strong>, and finally, serve it back to the user for a download or a display on a page.</p><h3>2. Processing video</h3><p>This case is helpful for those of you who have <strong>stored video files on an S3 bucket</strong>. For now, you have an instance that polls the bucket regularly. It idles until a new file is uploaded, then it downloads the file, processes it somehow, and then drives it back to your origin server.</p><p>The problem is you have an instance that’s <strong>sitting idle for a good part of the day</strong>. It’s doing nothing when no new video is uploaded and costs you money, and your computer resources are used 24/7 for no reason.</p><p>Using Lambda, in this case, allows you to <strong>upload your script</strong> (Java, JavaScript, Python, etc.) and <strong>design code to provoke an event when a new file is uploaded to the bucket</strong>, which will lead to the file being processed and pushed back to your origin server. And that’s how easily Lambda can <strong>save your resources</strong>.</p><h3>3. Operating Serverless websites</h3><p>This might be the best way to take advantage of the <a href="https://dashbird.io/blog/aws-lambda-pricing-model-explained/">pricing model of Lambda</a> and S3 hosted static websites.</p><p>Think about hosting the web frontend on S3 and accelerating content transmission with CloudFront caching. The web frontend can send requests to Lambda functions using the API Gateway HTTPS endpoints. Lambda can handle the application logic and persist data to a fully managed database service (RDS for relational or DynamoDB for a non-relational database).</p><p>Your Lambda functions and databases can be hosted within a VPC to separate them from other networks. As for Lambda, S3, and API Gateway, you get charged after the traffic incurred, and the <strong>only fixed expense will be running the database</strong></p><h3>4. Security alerts</h3><p>Do you need to be aware of any security breaches in your cloud infrastructure?</p><p>Is it imperative to your overall cloud strategy to monitor your logs and to keep an audit trail?</p><p>Lambda could help you a lot in this situation.</p><p>You can <strong>write a Lambda function to send an alert on a specific event</strong> from Cloudwatch/CloudTrail AWS activity logs. It will notify your designated on-call staff via email, or you could even write a code that will trigger the AWS Lambda to call you on your phone.</p><h3>5. Automated file synchronization</h3><p>If you have a repository that needs to be <strong>regularly synchronized </strong>to several locations several times a day, you might find AWS Lambda very useful. Many people don’t use a dedicated instance for things like this. Often they go and double or even triple up on another instance and just assign this task to it. Depending on a security policy or contention for resources at specific periods during the day, this will prove not to be the best option.</p><p>Instead of keeping an instance up and running all day long, chewing away at your budget every month, <strong>you can use a Lambda function</strong> that a scheduled event will trigger, run your synchronization job, and then just go away until the next cycle that it needs to run.</p><h3>6. Predictive page rendering</h3><p>Are you using predictive page rendering to ready web pages for display based on the user’s probability of selecting them? You can use a <strong>Lambda-based application to retrieve documents and multimedia files</strong>, which might be used by the next page requested, and conduct the beginning stages of rendering them for display.</p><p>If an outside source is serving multimedia data, the AWS Lambda application can even check for its availability and attempt to use alternate sources if they are not available.</p><h3>Does your use case fit Lambda’s limits?</h3><p>Now, these were all pretty compelling use cases, but obviously, you need to take care of your own, probably rather specific, tasks.</p><p>The <a href="https://dashbird.io/blog/exploring-lambda-limitations/">limits around AWS Lambda</a> usage were increased every year since its release, and things that couldn’t be done in 2014 are now in the realm of possibility.</p><p>If you can solve your use-case within the following limits, then go for it:</p><ul><li>Custom runtime support for the programming language of your choice</li><li>10 GB function size as Docker image</li><li>50 MB function size as ZIP archives</li><li>10 GB of memory</li><li>6 vCPU cores (x86_64/arm64)</li><li>15 minutes execution time</li><li>6 MB API event payload</li><li>265 KB non-API event payload</li><li>512 MB temporary storage</li><li>1,000 concurrent invocations</li></ul><h3>Conclusion</h3><p>In the end, AWS Lambda should be one of your prime <strong>go-to resources for approaching repetitive or time-exhausting tasks</strong>, along with the other heavy-lifting jobs of the data-processing world. It frees your prime online services to target crucial frontend tasks, such as responding promptly to user requests, and it allows you to offload a lot of processes that would otherwise significantly decelerate your system.</p><p>AWS Lambda would provide you with even <strong>more granular control over the services</strong> you wish to deliver to your customers, with a presumption that they can be split out into specific tasks that can be run as functions inside Lambda. It would be well worth your while to master the capabilities of this service, as it can immensely reduce the expenditure of your cloud operations while allowing you to scale your applications to much higher levels formerly not possible and to evaluate how this fits into your overall strategy to provide value to your customers.</p><p>In combination with AWS Lambda, you should use some monitoring and error tracking tools like <a href="https://dashbird.io/">Dashbird</a> to even more secure your data and improve your system’s overall stability.</p><p>his was my short article on one of the services provided by AWS. I hope you understand something about cloud computing and AWS . I f you want to explore more about cloud computing and cloud computing products provided by other Companies like Google , Microsoft , etc. as well you can visit their platforms and increase you skills and learning. Let’s meet in the new blog with other new tools and technologies , till then take care and enjoy learning…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba639b57b4dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[K-Means Clustering And Its Real Use-Cases In The Security Domain]]></title>
            <link>https://medium.com/@bhavesh.ugemuge05/k-means-clustering-and-its-real-use-cases-in-the-security-domain-bc6f8fdb90d1?source=rss-89dfd205f88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc6f8fdb90d1</guid>
            <dc:creator><![CDATA[Bhavesh Ugemuge]]></dc:creator>
            <pubDate>Thu, 17 Feb 2022 17:49:07 GMT</pubDate>
            <atom:updated>2022-02-17T17:58:58.387Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello folks, I am learning machine learning in that I come across one interesting topic K-Mean clustering which is a very interesting topic and I got curious about real use cases in the Security domain and many more. It’s always fascinating to see any technology or algorithm real use case. So I decided to write a blog about it ….</p><p>Lets Begin With Understanding with basics</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*WYAZy6lTB5H9cHA0pv6img.png" /></figure><blockquote><strong>K-Means Clustering</strong></blockquote><p>K-Means Clustering is an Unsupervised Learning algorithm, which groups the unlabeled dataset into different clusters.</p><p>let’s break down this statement into sub terminologies to understand better what K-mean clustering means.</p><blockquote><strong>Unsupervised Learning algorithm</strong></blockquote><p>Unsupervised learning, also known as <a href="https://www.ibm.com/cloud/learn/machine-learning">unsupervised machine learning</a>, uses machine learning algorithms to analyze and cluster unlabeled datasets. These algorithms discover hidden patterns or data groupings without the need for human intervention. Its ability to discover similarities and differences in information make it the ideal solution for exploratory data analysis, cross-selling strategies, customer segmentation, and image recognition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RPm3_5LxdudLbROImxb9NA.png" /></figure><blockquote><strong>Clustering</strong></blockquote><p>Clustering is a data mining technique which groups unlabeled data based on their similarities or differences. Clustering algorithms are used to process raw, unclassified data objects into groups represented by structures or patterns in the information. Clustering algorithms can be categorized into a few types, specifically exclusive, overlapping, hierarchical, and probabilistic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w91UQ8DRzozzYpGIMmIkWQ.png" /><figcaption>Clustering</figcaption></figure><blockquote><strong>Understanding Deeply K-Means Clustering</strong></blockquote><p>he k-means <a href="https://www.javatpoint.com/clustering-in-machine-learning">clustering</a> algorithm mainly performs two tasks:</p><ul><li>Determines the best value for K center points or centroids by an iterative process.</li><li>Assigns each data point to its closest k-center. Those data points which are near to the particular k-center, create a cluster.</li></ul><p>Hence each cluster has datapoints with some commonalities, and it is away from other clusters.</p><p>The below diagram explains the working of the K-means Clustering Algorithm:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/0*MaJf05d3hzochdHV.png" /></figure><h3>How does the K-Means Algorithm Work?</h3><p>The working of the K-Means algorithm is explained in the below steps:</p><p><strong>Step-1:</strong> Select the number K to decide the number of clusters.</p><p><strong>Step-2:</strong> Select random K points or centroids. (It can be other from the input dataset).</p><p><strong>Step-3:</strong> Assign each data point to their closest centroid, which will form the predefined K clusters.</p><p><strong>Step-4:</strong> Calculate the variance and place a new centroid of each cluster.</p><p><strong>Step-5:</strong> Repeat the third steps, which means reassign each datapoint to the new closest centroid of each cluster.</p><p><strong>Step-6:</strong> If any reassignment occurs, then go to step-4 else go to FINISH.</p><p><strong>Step-7</strong>: The model is ready.</p><blockquote><strong><em>Real Use-Cases In The Security Domain</em></strong></blockquote><p><strong>1 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>2. 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>3. 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>4. 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>5. Automatic clustering of it alerts</strong></p><p>Large enterprise use 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><p>There are many but As per my knowledge I covered all use-cases, Hope you all understand and loved my blog…</p><p>Thank you….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc6f8fdb90d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Queue Using Artificial Intelligence]]></title>
            <link>https://medium.com/@bhavesh.ugemuge05/queue-using-artificial-intelligence-e93c4c3e798d?source=rss-89dfd205f88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e93c4c3e798d</guid>
            <dc:creator><![CDATA[Bhavesh Ugemuge]]></dc:creator>
            <pubDate>Tue, 15 Feb 2022 11:38:12 GMT</pubDate>
            <atom:updated>2022-02-15T11:42:58.378Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Folks, It’s a long time since I haven’t posted a blog but from now blogs would be regular and on very interesting topics. So today’s topic is queue using AI. Ai is always fascinating and one of the most useful in today’s world. Oh! some of you might not be familiar with the queue or AI, No worry you would be having good knowledge after reading this blog…….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*7xyi050HW3fikC8Ie0YjOg.png" /></figure><p>So Firstly we will start with basic….</p><h3>What is Queue?</h3><p>Queues are popular, linear data structures — or more abstractly a sequential collection. Modifications to the queue data structure are performed in a First In First Out (FIFO) order.</p><p>So much technical definition lets make it easy In simple word queue is <strong>to wait in a line of people</strong>, vehicles, etc. in order to do something, get something or go somewhere similarly queue is a data structure in which data is collected in sequence.</p><p><strong>Features :</strong></p><ol><li>Like stack, queue is also an ordered list of elements of similar data types.</li><li>Queue is a FIFO( First in First Out ) structure.</li><li>Once a new element is inserted into the Queue, all the elements inserted before the new element in the queue must be removed, to remove the new element.</li><li>peek() function is often used to return the value of first element without dequeuing it.</li><li>We can divide the queue basically into two categories fixed capacity and non-fixed capacity queue. As the name suggests you can not store number the elements more than the capacity of the queue. The queue also follows FIFO (first-in-first-out) rule for storing and removing elements from the queue is a fixed capacity queue and in non-fixed capacity queue we can there is no limit or capacity it increases according to our need.</li></ol><p><strong>Application:</strong></p><ol><li>Serving requests on a single shared resource, like a printer, CPU task scheduling etc.</li><li>In real life scenario, Call Center phone systems uses Queues to hold people calling them in an order, until a service representative is free.</li><li>Handling of interrupts in real-time systems. The interrupts are handled in the same order as they arrive i.e First come first served.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8fGKJ_b6CIJBsOWkhyLx5A.png" /></figure><h3>Basic operation’s of a queue</h3><ul><li>Enqueue ( ) : Adding items to a queue.</li><li>Dequeue( ) : Using the first item and removing it from queue.</li><li>Peek ( ) : retreving the first item from the queue</li><li>isEmpty ( ) : If queue is empty it return True else False</li><li>isTrue ( ) : if queue is full it return True else False</li><li>Delete ( ) : Deleting all the items from the queue</li></ul><h3>Differences between fixed capacity queue and no fixed limit queue</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FqJKXwiTYdK8klSr.png" /></figure><h3>Simple python code to construct a fixed capacity queue</h3><pre>class Queue:<br>    def __init__(self,Qlen):<br>        self.maxsize = Qlen<br>        self.items = [None] * self.maxsize<br>        self.start = -1<br>        self.end = -1<br>        <br>    def isEmpty(self):<br>        if self.start == -1 and self.end == -1:<br>            return True<br>        else:<br>            return False <br>        <br>    def isFull(self):<br>        if self.end == self.start - 1:<br>            return True<br>        elif self.start == 0 and self.end == self.maxsize - 1:<br>            return True<br>        else:<br>            return False<br>        <br>    #the value of start is fixed and only end changes<br>    def enque(self,value):<br>        if not self.isFull():<br>            if self.end + 1 == self.maxsize:<br>                self.end = -1<br>            elif self.isEmpty():<br>                self.start = 0<br>            self.end = self.end + 1<br>            self.items[self.end] = value<br>        else:<br>            print(&quot;Queue is full...&quot;)<br>    <br>    #here end_pos is fixed and start_pos changes<br>    def deque(self):<br>        if not self.isEmpty():<br>            first_pos = self.items[self.start]    #we are using a temporary variable to store our data<br>            self.items[self.start] = None<br>            if self.start == self.end:<br>                self.start = -1<br>                self.end = -1<br>            elif self.start + 1 == self.maxsize:<br>                self.start = 0<br>            else:<br>                self.start += 1<br>            return first_pos<br>        else:<br>            print(&quot;No item to deque&quot;)def peek(self):<br>        if self.isEmpty():<br>            print(&quot;Queue is Empty...&quot;)<br>        else:<br>            return self.items[self.start]<br>        <br>    def delete(self):<br>        self.start = -1<br>        self.end = -1<br>        self.items = [None] * self.maxsize<br>        <br>    def printQueue(self):<br>        for i in self.items:<br>            print(i)print(i</pre><h3>What is Artificial Intelligence</h3><p><strong>artificial intelligence (AI)</strong>, the ability of a digital <a href="https://www.britannica.com/technology/computer">computer</a> or computer-controlled <a href="https://www.britannica.com/technology/robot-technology">robot</a> to perform tasks commonly associated with intelligent beings. The term is frequently applied to the project of developing systems endowed with the <a href="https://www.merriam-webster.com/dictionary/intellectual">intellectual</a> processes characteristic of humans, such as the ability to reason, discover meaning, generalize, or learn from past experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*eFQ4iOFK1z2Iie3BQpmAkA.png" /></figure><p>So How queue can use artificial intelligence might be your question.</p><h4>Queue Using Artificial Intelligence</h4><p>As I have mentioned above queues are of two types fixed capacity and non-fixed capacity you might have to wonder who and how decides the capacity of the queue, It is decided according to our need us but it is generally approximate and has so many limitations. If the data size is not huge it’s easy but in a real case scenario manually deciding queue size is not possible you might say we can use a non-fixed capacity queue but it is also not possible as we have limited resources.</p><p>So what might be the solution for this problem, What if we use ML &amp; AI for this. ML is used for making models which are used for predicting using past records. So according to our data past records and machine learning we can create an ML model which will predict the capacity, we will require and it can minimize our work which works very efficiently. And in a non-fixed capacity queue we can predict our data size and analyze it with our resources and use the size of the queue accordingly.</p><p>One more use case of integrating AI with the queue is that in today’s world humans are replaced with bots where queue plays important role in solving problems providing service or whom to give priority all are the use-case where we use a queue for AI.</p><p>Hope you like the blog let me know your thoughts in comments and also connect me with my linkedin for any sort of feedback or suggestions. Thank you Stay Safe…..</p><p>Happy Learning…………………</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e93c4c3e798d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker inside Docker]]></title>
            <link>https://medium.com/@bhavesh.ugemuge05/docker-inside-docker-8de2aca1ecbe?source=rss-89dfd205f88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8de2aca1ecbe</guid>
            <dc:creator><![CDATA[Bhavesh Ugemuge]]></dc:creator>
            <pubDate>Mon, 03 Jan 2022 03:41:26 GMT</pubDate>
            <atom:updated>2022-01-03T04:17:04.572Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, guys, Today I am writing on a very interesting topic which is docker rather it is doubly interesting because it is docker inside docker. I am sure if you know the docker tool. At least once you have thought of starting docker inside docker, might be tried also but some of you might get failed if you have tried directly to start, Or else if you don&#39;t know the docker tool then it is not the thing to worry we already have many things to worry. I am sure by the end of this blog you will be a good person in docker</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*Y5lf-3MyvaGSMC3M4NvOig.png" /></figure><p>So first of all What is docker?</p><p>Docker is a tool that helps you launch a new operating system in less than a second. How this works is:</p><p>First, we have our physical hardware(like storage, RAM, etc.) on top of which our operating system(let’s say Linux) is running. This operating system is called a Docker Host/Container Host. On top of this operating system, we create an imaginary layer(called Docker or Docker Engine), and on the top of this imaginary layer, we launch our operating system(s). These operating systems are called containers.</p><p>ok, now we are good to go for today’s topic which is docker inside docker \</p><p>What you have to do is just follow these simple steps-</p><p>1. Docker launches OS, But what we need to know is that for launching OS we need OS software or in docker world we call it as docker image for running docker inside docker we need a special type of docker image which is ”jpetazzo/dind” we also used privileged command as will automatically launch ‘Docker Daemon’ inside the operating system launched from jpetazzo/dind image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OhyEwJ5sapEOiOJW-lP32g.jpeg" /></figure><p>2. Now you can run docker inside docker using the simple command “docker run -it centos” where we use -it for an interactive terminal using image centos</p><p>It is clear when we exit once then we come out secondary docker and the second time we exit for come out primary docker</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jaF5xobtk5Nfv4s7D1cfMw.jpeg" /></figure><p>See how easy it is ….</p><p>Hope you like this blog please check out my blog on docker and I also keep on writing blogs on the technical topic so stay tuned and also thank you all for your support .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8de2aca1ecbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GUI Applications in a Docker Container]]></title>
            <link>https://medium.com/@bhavesh.ugemuge05/gui-applications-in-a-docker-container-35eeb9b4bc43?source=rss-89dfd205f88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/35eeb9b4bc43</guid>
            <dc:creator><![CDATA[Bhavesh Ugemuge]]></dc:creator>
            <pubDate>Sat, 01 Jan 2022 15:49:17 GMT</pubDate>
            <atom:updated>2022-01-01T15:49:17.969Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, guys, I am here with a new blog on, Docker which is so interesting to work on.</p><p>Mostly we run our servers or tasks inside Docker Container, but ever imagined — we can even launch GUI applications inside Docker Container &amp; can access them from the Docker Host system. Stick with me till the end of this blog to learn the basics of Docker &amp; how to achieve this fantastic practical…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gh2t0o2Fea8J8VM9_EWnTA.png" /></figure><p>First of all, I would like to give you some basics of docker and its related words</p><p>Containerization is a technology that created a virtual OS environment where we can work like we usually do in our system. It launches the new OS, Install the OS and boot the OS in seconds and it saves lots of time and solves many use ccases</p><p>The tool or software that wocases Containerization is Docker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*5-gSlIK-9N8zsGeo.jpg" /></figure><h3>Prerequisite:</h3><ul><li>Linux OS</li><li>Docker installed</li><li>First, start the docker container</li><li>Start container-To start docker container the use command systemctl start docker</li><li>Make a docker file</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*dta1h9kkTj1ohIBDQq6LIg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jd0DHWs9YHmxnkGwS-_Tgg.jpeg" /></figure><ul><li>Build the docker file</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nm7U6qgeTRuC8bgES260NQ.jpeg" /></figure><ul><li>Run the following command</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/0*q_NZyR2vQxK7wh2D.png" /></figure><p>In the above command, ‘<em>-e=“DISPLAY”</em>’ is used to pass the environmental variable to the container. ‘<em>- -net=host</em>’ is used to connect our container network card with the docker host’s main network card.</p><p>The container we launched now can run GUI applications. But we can only run two GUI applications (i.e. firefox and gedit) in our container because we’ve installed these two applications only.</p><p>I hope you like my blog……</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35eeb9b4bc43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making A Painting Using NumPy]]></title>
            <link>https://medium.com/@bhavesh.ugemuge05/making-a-painting-using-numpy-8327a6995d10?source=rss-89dfd205f88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8327a6995d10</guid>
            <dc:creator><![CDATA[Bhavesh Ugemuge]]></dc:creator>
            <pubDate>Sat, 01 Jan 2022 06:40:25 GMT</pubDate>
            <atom:updated>2022-01-01T06:40:25.313Z</atom:updated>
            <content:encoded><![CDATA[<p>Hola Guys, Today I am here with a new blog, Not much technical but a fun way from which we get to know more of NumPy array.</p><p>First of all, I would thank you all for the support shown by you all guys for my previous blog, I have been writing blogs on technical topics and your love for my blog overwhelmed me and I hope you will like today’s blog also.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MF38Er9HYwlZNzJHdwYuHw.png" /></figure><p>We have been drawing painting in paint or on-page but I made a try to draw a painting using NumPy array in python. A painting of a human (As if now same as the first-grade kid )</p><p>First Of all, let me show you the code,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*faq46Pbo5yxmHNq1xHJUaA.png" /></figure><p>in this code, it is clear that we imported modules Numpy, cv2, and matplot.lib I forgot to put in code “matplotlib.pyplot as plt”</p><p>As we know that images are 3D arrays, so the above array will also be an image that will be all black since images contain elements in the form of <strong><em>RGB</em></strong> or other channels and every channel range from 0 to 255. Here 0 means black and 255 will give white color and since we have created an array with the ones() fn. , every channel will contain 1 which is close to 0 which will give black color.</p><p>then I’ve tried to create a painting with the help of functions provided by the cv2 module.</p><p>So we’ll create a rectangle in the pic1image with the help of rectangle<strong><em>()</em></strong> fn. with image, co-ordinates, the colour of the rectangle is red i.e [255,0,0] and similarly we have drawn face with a circle() fn . with center (50,25), radius 10, colour of the circle green i.e [0,255,0] and thickness -1( thickness is always given positive no. but if we give -1 then the circle will get filled with colour provided to draw the circle.)</p><p>Then I’ve tried to draw legs and hands in blue color with the help of<strong><em> line() </em></strong>fn. in which we have to provide an image as obvious, two points, color and thickness.</p><p>So finally the image will look like -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*EsqjbzO0I0TEoBsNiocI-w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8327a6995d10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Something Suspicious of Malloc()]]></title>
            <link>https://medium.com/@bhavesh.ugemuge05/something-suspicious-of-malloc-31aea29028b0?source=rss-89dfd205f88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/31aea29028b0</guid>
            <dc:creator><![CDATA[Bhavesh Ugemuge]]></dc:creator>
            <pubDate>Sat, 18 Dec 2021 10:57:16 GMT</pubDate>
            <atom:updated>2021-12-18T10:57:16.527Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello folks , Amazed to see your reviews on my previous blog, I would like to thank you all keep giving suggestions . So I am here with new blog on malloc function .</p><p>So basically, What is Mallaoc function ?</p><p>The malloc() function stands for memory allocation. It is a function which is used to allocate a block of memory dynamically. It reserves memory space of specified size and returns the null pointer pointing to the memory location. The pointer returned is usually of type void. It’ means that we can assign malloc function to any pointer.</p><p>Syntax</p><pre>ptr = (cast_type *) malloc (byte_size);</pre><p>Here ,</p><ul><li>ptr is a pointer of cast_type.</li><li>The malloc function returns a pointer to the allocated memory of byte_size.</li></ul><p>Simple But you guys may be wondering what is suspicious .</p><p>Do you have ever tried that whether we are able to store more data than the allocated space by malloc without giving error ?</p><p>Technically it should not work and it should give error,</p><p>Bu the malloc function gives more space than the allocated space</p><p>So this is suspicious and its answer is</p><p>You allocate storage with malloc. This returns you the address of where you may store your data. However, neither C, nor malloc or the heap will check if you store <em>only</em> in the area given to you. If you write beyond the area allocated, you are writing in an area that is &quot;not yours&quot;. This can lead to various types of undefined behavior.</p><p>Some memory managers will intercept your attempt and will abort your program. Other memory managers don’t do that, but since you write to an area that is not yours, you may be overwriting data from the memory manager and any next attempt to allocate memory may fail because the memory manager’s data is corrupt. Or you are overwriting memory that belongs to someone else.</p><p>So the fact that it seems you can write more than you allocated, does not mean your program is correct. In fact, it is hopelessly wrong and will lead to an error somewhere else. So your program could make for example invalid calculations and your airplane crashes… This is called <em>undefined behavior</em> and you as a programmer must take care you always allocate what you need and that you never go out of the bounds of what you allocated.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31aea29028b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is SIEM?]]></title>
            <link>https://medium.com/@bhavesh.ugemuge05/what-is-siem-85c99d1a106e?source=rss-89dfd205f88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/85c99d1a106e</guid>
            <dc:creator><![CDATA[Bhavesh Ugemuge]]></dc:creator>
            <pubDate>Wed, 08 Dec 2021 15:58:19 GMT</pubDate>
            <atom:updated>2021-12-08T15:59:11.576Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello folks, I am blissed with your reviews and suggestions its make me feel happy and keep doing it . This gives me motivation of doing more research on new topics and writing more blogs .</p><p>So I am here with a new blog on SIEM. You might be wondering ,What is SIEM ? What is the use of SIEM ? Everything about SIEM will be there in this blog .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FsgTeIqzYEdMaQXcFjOGCQ.png" /></figure><p><strong>Security Information and Event Management </strong>(<a href="https://www.exabeam.com/siem-guide/">SIEM</a>) solutions use rules and statistical correlations to turn log entries, and events from security systems, into actionable information. This information can help security teams detect threats in real time, manage incident response, perform forensic investigation on past security incidents, and prepare audits for compliance purposes.</p><p>The term SIEM was coined in 2005 by Mark Nicolett and Amrit Williams, in Gartner’s SIEM report, Improve IT Security with Vulnerability Management. They proposed a new security information system, on the basis of two previous generations given below.</p><ol><li><em>Security Information Management (SIM)</em></li></ol><p><em>2. Security Event Management (SEM)</em></p><p>The main focus of SIEM is on security-related incidents and events, such as succeeded or failed logins, malware activities or escalation of privileges. These insights can be sent as notifications or alerts, or discovered by security analysts using the SIEM platform’s visualization and dashboarding tools.</p><h3>SIEM Help With -</h3><h4>Data aggregation</h4><p>Aggregates data from network, security, servers, databases, applications, and other security systems like firewalls, anti virus and Intrusion Detection Systems (IDS)</p><h4>Threat intelligence feeds</h4><p>Combines internal data with threat intelligence feeds containing data on vulnerabilities, threat actors and attack patterns</p><h4>Correlation</h4><p>Links events and related data into meaningful bundles which represent a real security incident, threat, vulnerability or forensic finding</p><h4>Analytics</h4><p>Uses statistical models and machine learning to identify deeper relationships between data elements, and anomalies compared to known trends, and tie them to security concerns</p><h4>Alerting</h4><p>Analyses events and sends out alerts to notify security staff of immediate issues, either by email, other types of messaging, or via security dashboards</p><h4>Compliance</h4><p>Automates the gathering of compliance data, producing reports that adapt to security, governance and auditing processes for standards like HIPAA</p><h4>Retention</h4><p>Stores long-term historical data to enable analysis, tracking, and data for compliance requirements. Especially important in forensic investigations, which happen after the fact</p><h4>Threat hunting</h4><p>Allows security staff to run queries on SIEM data, filter and pivot the data, to proactively uncover threats or vulnerabilities</p><h4>SOC Automation</h4><p>Integrates with other security solutions using APIs, and lets security staff define automated playbooks and workflows that should be executed in response to specific incidents.</p><h4>Incident Response</h4><p>Provides case management, collaboration and knowledge sharing around security incidents, allowing security teams to quickly synchronize on the essential data and respond to a threat.</p><h3>SIEM working</h3><h4>Data Collection</h4><p>Most SIEM systems collect data by deploying collection agents on end-user devices, servers, network equipment, or other security systems like firewalls and antivirus, or via protocols syslog forwarding, SNMP or WMI. Advanced SIEMs can integrate with cloud services to obtain log data about cloud-deployed infrastructure or SaaS applications, and can easily ingest other non-standard data sources.</p><p>Pre-processing may happen at edge collectors, with only some of the events and event data passed to centralized storage.</p><h4>Data Storage</h4><p>Traditionally, SIEMs relied on storage deployed in the data center, which made it difficult to store and manage large data volumes.</p><p>As a result, only some log data was retained. Next-generation SIEMs are built on top of modern data lake technology such as Amazon S3 or Hadoop, allowing nearly unlimited scalability of storage at low cost. This makes it possible to retain and analyze 100% of log data across even more platforms and systems.</p><h4>Policies and Rules</h4><p>The SIEM allows security staff to define profiles, specifying how enterprise systems behave under normal conditions.</p><p>They can then set rules and thresholds to define what type of anomaly is considered a security incident. Increasingly, SIEMs leverage machine learning and automated behavioral profiling to automatically detect anomalies, and autonomously define rules on the data, to discover security events that require investigation.</p><h4>Data Consolidation and Correlation</h4><p>The central purpose of a SIEM is to pull together all the data and allow correlation of logs and events across all organizational systems.</p><p>An error message on a server can be correlated with a connection blocked on a firewall, and a wrong password attempted on an enterprise portal. Multiple data points are combined into meaningful security events, and delivered to analysts by notifications or dashboards. Next-gen SIEMs are getting better and better at learning what is a “real” security event that warrants attention.</p><h3>SIEMs future</h3><p><strong>Complex threat identification</strong> — correlation rules can’t capture many complex attacks, because they lack context, or can’t respond to new types of incidents. With automatic behavioral profiling, SIEMs can detect behavior that suggests a threat.</p><p><strong>Detection without rules or signatures</strong> — many threats facing your network can’t be captured with manually-defined rules or known attack signatures. SIEMs can use machine learning to detect incidents without pre-existing definitions.</p><p><strong>Lateral movement</strong> — attackers move through a network by using IP addresses, credentials and machines, in search of key assets. By analyzing data from across the network and multiple system resources, SIEMs can detect this lateral movement.</p><p><strong>Entity behavior analysis</strong> — critical assets on the network such as servers, medical equipment or machinery have unique behavioral patterns. SIEMs can learn these patterns and automatically discover anomalies that suggest a threat.</p><p>Hope you like the blog SIEM is quite complex topic but I have tried you to explain in simple words and I will be soon posting new blogs so stay tuned f you like this post, a tad of extra motivation will be helpful by giving this post some claps 👏. I am always open to your questions and suggestions.</p><p>Happy learning ……</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85c99d1a106e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Image Editing Using CV and Python]]></title>
            <link>https://medium.com/@bhavesh.ugemuge05/image-editing-using-cv-and-python-1ecec993aeb8?source=rss-89dfd205f88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ecec993aeb8</guid>
            <dc:creator><![CDATA[Bhavesh Ugemuge]]></dc:creator>
            <pubDate>Wed, 08 Dec 2021 06:55:53 GMT</pubDate>
            <atom:updated>2021-12-08T14:43:05.294Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello folks, We have already have done one blog on this it is very interesting so here there is yet another blog you will be amaze to see the code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*GOS7AzgBFytwXciCUyeCLg.png" /></figure><p>Basically in this blog I will show you how we can replace the face of two images feeling tough not really lets see how we can do the task</p><p>Let we take this two photos</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*8LmgLh9R3RRX6K3Ejd1OeA.jpeg" /><figcaption>Real Milka singh</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*TSDd4NFL0O_Xz7UJatDH6w.jpeg" /><figcaption>Reel Milka singh</figcaption></figure><p>lets see the code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XRse7Rs0oZjh7KTxPzbohQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w6mh4eypkcnqO7S7-ZvZHA.png" /><figcaption>The two images where we replaced the faces</figcaption></figure><p>In this we used <strong>haarcascade</strong> model for detecting the face in the image which gives the co-ordinates of face and then we resized the face image according our need and then merge the cropped face</p><h4>it was not as difficult as it seems…..</h4><p>Hope you all like this blog I will be soon posting new blogs so stay tuned f you like this post, a tad of extra motivation will be helpful by giving this post some claps 👏. I am always open to your questions and suggestions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ecec993aeb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Confusion Matrix?]]></title>
            <link>https://medium.com/@bhavesh.ugemuge05/what-is-confusion-matrix-738a1e926a82?source=rss-89dfd205f88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/738a1e926a82</guid>
            <dc:creator><![CDATA[Bhavesh Ugemuge]]></dc:creator>
            <pubDate>Tue, 07 Dec 2021 19:26:29 GMT</pubDate>
            <atom:updated>2021-12-07T19:26:29.104Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello folks here is yet another blog on confusion matrix which confuses everyone hope you will be clear after reading this blog .</p><p>Those who don’t know confusion matrix or heard the word for first time you will be resource person in confusion matrix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jbeeWY6aU9m4bcr-0kzBmw.jpeg" /></figure><p>When we get the data, after data cleaning, pre-processing, and wrangling, the first step we do is to feed it to an outstanding model and of course, get output in probabilities. But hold on! How in the hell can we measure the effectiveness of our model. Better the effectiveness, better the performance, and that is exactly what we want. And it is where the Confusion matrix comes into the limelight. Confusion Matrix is a performance measurement for machine learning classification.</p><h3><strong>Topic Covered</strong></h3><ol><li>Introduction to the confusion matrix</li><li>Ture Positive, True Negative, False Positive, and False Negative</li><li>Precision, Recall, Accuracy and F-Measure in Confusion Matrix</li></ol><h3><strong>Introduction to Confusion Matrix</strong></h3><p>A confusion matrix is a summarized table of the number of correct and incorrect predictions (or actual and predicted values) yielded by a classifier (or classification model) for binary classification tasks.</p><p>In simple words,<strong><em> “ A confusion matrix is a performance measurement of machine learning algorithm or ml model”</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JMtMpJvEL7S-FXrvJUK11Q.jpeg" /><figcaption>confusion matrix</figcaption></figure><p>Getting confused with confusion matrix so let me make it easy what else the blog is for the below image will make it clear</p><p>Let’s understand TP, FP, FN, TN in terms of pregnancy analogy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*2FPa8OfqM4-iOXkZkw-VJw.jpeg" /></figure><p><strong>True Positive:</strong></p><p>Interpretation: You predicted positive and it’s true.</p><p>You predicted that a woman is pregnant and she actually is.</p><p><strong>True Negative:</strong></p><p>Interpretation: You predicted negative and it’s true.</p><p>You predicted that a man is not pregnant and he actually is not.</p><p><strong>False Positive: (Type 1 Error)</strong></p><p>Interpretation: You predicted positive and it’s false.</p><p>You predicted that a man is pregnant but he actually is not.</p><p><strong>False Negative: (Type 2 Error)</strong></p><p>interpretation: You predicted negative and it’s false.</p><p>You predicted that a woman is not pregnant but she actually is.</p><p>Just Remember, We describe predicted values as Positive and Negative and actual values as True and False.</p><p><strong>Case 2: An example of cricket</strong></p><p><strong>Making definition</strong></p><ul><li><em>The batsman is NOT OUT, a positive class or logic 1.</em></li><li><em>The batsman is OUT, a negative class or logic 0.</em></li></ul><p>Now in terms with the 2x2 confusion matrix;</p><ol><li><strong>True positive:</strong> An umpire gives a batsman <strong>NOT OUT</strong> when he is actually <strong>NOT OUT</strong>.</li><li><strong>True Negative: </strong>When an umpire gives a batsman <strong>OUT</strong> when he is actually <strong>OUT</strong>.</li><li><strong>False Positive (Type 1 error): </strong>This is the condition a batman is given <strong>NOT OUT</strong> when he is actually <strong>OUT</strong>.</li><li><strong>False Negative (Type 2 error): </strong>When an umpire gives a batman <strong>OUT</strong> when he is actually <strong>NOT OUT</strong>.</li></ol><h3><strong>Precision, Recall, Accuracy and F-Measure in Confusion Matrix</strong></h3><h4><strong>Precision</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/249/0*F6XqgwOA_rf3ujw1.png" /><figcaption>Precision formula</figcaption></figure><p>The above equation can be explained by saying, from all the classes we have predicted as positive, how many are actually positive.</p><p>Precision should be high as possible.</p><h4>Recall</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/0*HeBq2_APuJxqL9Sn.png" /><figcaption>Recall formula</figcaption></figure><p>The above equation can be explained by saying, from all the positive classes, how many we predicted correctly.</p><p>Recall should be high as possible.</p><h4>Accuracy</h4><h4>Accuracy = (TP+TN)/(TP+TN+FP+FN)</h4><p>One of the significant parameters in determining the accuracy of the classification problems, it explains how regularly the model predicts the correct outputs and can be measured as the ratio of the number of correct predictions made by the classifier over the total number of predictions made by the classifiers.</p><p>Accuracy should be high as possible.</p><h4><strong>F-measure</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/0*YBY8kah8X4VTkpoW.png" /><figcaption>F-measure formula</figcaption></figure><p>The F-score, also called the F1-score, is a measure of a model’s accuracy on a dataset. It is used to evaluate binary classification systems, which <a href="https://deepai.org/machine-learning-glossary-and-terms/classifier">classify</a> examples into ‘positive’ or ‘negative’.</p><p>The F-score is a way of combining the precision and recall of the model, and it is defined as the harmonic mean of the model’s precision and recall.</p><p>I hope I’ve given you some basic understanding of what exactly is the confusion matrix. If you like this post, a tad of extra motivation will be helpful by giving this post some claps 👏. I am always open to your questions and suggestions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=738a1e926a82" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>