The post will help you to quickly undertand on how to manage a MongoDB instance using Python.

Topics covered

  1. Connect to DB instace
  2. Query DB
  3. Insert row(s)
  4. Update row(s)
  5. Sort the results
  6. Delete rows
  7. Delete Collection

First download and install Mongo DB from below link.

https://www.mongodb.com/try/download/community .

Let’s get started.

Install python module for Mongod DB.

Connect to the MongoDB

Connecting to the database named demoDB present in the mongoDB
if the database is not present, it’ll autoamtically create it.

Show all the…


Deploying Machine Learning Model to Heroku using Flask

Are you a beginner in the field of machine learning and wondering how to bring your project to life. I was in the same situation when I started learning ML. Most of the ML courses focus on EDA, feature engineering, and model tuning and ignore the model deployment.

The end goal of any machine learning model is making it available for end-user for consumption. However deploying model has its own challenges and it also differs where you are going to deploy the model (Azure, AWS, GCP, Heroku etc.).

In this blog I will help you to deploy your model using…


Photo by Format from Pexels

Have you ever wondered how google image search works or How amazon can retrieve products similar to the image that we upload in the app/site?

To achieve this task we will be using one simple method.

We are going to pick a pre-trained deep learning model, remove the top layers, and extract the convolutional features for the images in our dataset. Then we will use these feature vectors to find similar images by using sklearn’s nearest neighbor algorithm.

Let’s get started.

Import libraries

Mani Kanta

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store