Posts

Showing posts from 2020

How Two Irish brothers 7 Lines of Code Turned Into a $36 Billion Empire

Image
Two Irish brothers in their 20s outplayed the finance industry with seven lines of code On June 24 last year, Patrick Collison, the co-founder of Stripe, posted a Tweet saying   Hit our engagement metrics this weekend! The Tweet was accompanied by an engagement ring — which explained the kind of metrics Patrick was talking about. Suhail Doshi, the founder of Mixpanel, was quick with a response:   That’s one way to increase user retention.   Yeah, it’s safe to say these guys have a great sense of humor. Which isn’t surprising, considering their seemingly absurd solution to online payments.   Instead of chasing 1000-hour programming contracts to build clunky payments solutions for each individual client, the Collison brothers built 7 lines of code that developers could simply plug into their websites. The result is Stripe — a company that has more cash than it knows what to do with. Here are the two main reasons why this worked so well.   1. They empowered develo...

Face Mask Detector using Deep Learning (PyTorch) and Computer Vision (OpenCV)

Image
Overview The World Health Organization (WHO) reports suggest that the two main routes of transmission of the COVID-19 virus are respiratory droplets and physical contact. Respiratory droplets are generated when an infected person coughs or sneezes. Any person in close contact (within 1 m) with someone who has respiratory symptoms (coughing, sneezing) is at risk of being exposed to potentially infective respiratory droplets. Droplets may also land on surfaces where the virus could remain viable; thus, the immediate environment of an infected individual can serve as a source of transmission (contact transmission). Wearing a medical mask is one of the prevention measures that can limit the spread of certain respiratory viral diseases, including COVID-19. In this study, medical masks are defined as surgical or procedure masks that are flat or pleated (some are shaped like cups); they are affixed to the head with straps. They are tested for balanced high filtration, adequate breathability a...

Selenium : Element is not clickable at point (X,Y)

Now a days most of them using selenium as one of the scraping tool due to its build in library and community support. Even though many of us feel its hard to implement in selenium.  In my previous post  explained how  effectively we can use the selenium in different use cases. Most of us known selenium is a automation testing tool. Currently people using this as most successful scraping methodology.  The most scraping tools are developed with the help of selenium only.  For example Scrapy . To know more about how to crawl a website follow this post http://ramakavanan.blogspot.com/2017/09/website-crawl-or-scraping-with-selenium.html. Issue: One day I started to crawl  Cricbuzz website. In the middle of crawling, The crawler should move to the next page. So I want not click the " next "  button in the pagination list.  But the crawler throws the issue like WebDriverException : Message : Element is not clickable at point ( 91...

Decision Tree Algorithm in Machine Learning

Image
Decision Tree in ML Decision Tree algorithm belongs to the family of supervised machine learning algorithm. It is simple and popular and is based on choices as suggested by its name. This algorithm works both for continuous as well as choice variables i.e. it can be used for both classification as well as regression problems. The article unfolds in three sections, commencing with a general introduction of the algorithm, followed by the mathematical concepts that builds the blocks for the same and we shall conclude with a code walk through on building a  Decision Tree model in Python using Loan approval data set. 1. Introduction Decision Tree learns decision rules inferred from prior data that we use to train it. The motive is to predict the target variables or predict the class based on these decision rules. As the name suggests, the algorithm solves problems by using a tree representation. Each internal node of the tree are attributes and the leaf nodes corresponds to the...