<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nupoor Shetye</title>
    <description>The latest articles on DEV Community by Nupoor Shetye (@nupoorshetye).</description>
    <link>https://dev.to/nupoorshetye</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F961138%2F9c4c8012-f1ff-45e9-94f8-4eb2ea8fa11f.png</url>
      <title>DEV Community: Nupoor Shetye</title>
      <link>https://dev.to/nupoorshetye</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nupoorshetye"/>
    <language>en</language>
    <item>
      <title>Lingo: Learn English With AI✨</title>
      <dc:creator>Nupoor Shetye</dc:creator>
      <pubDate>Sun, 14 Apr 2024 23:21:46 +0000</pubDate>
      <link>https://dev.to/nupoorshetye/lingo-learn-english-with-ai-4h51</link>
      <guid>https://dev.to/nupoorshetye/lingo-learn-english-with-ai-4h51</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/devteam/join-us-for-the-cloudflare-ai-challenge-3000-in-prizes-5f99"&gt;Cloudflare AI Challenge&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;English has become the universal language of communication, yet many struggle to learn it, especially non-native speakers. This inspired me to create Lingo, an AI-powered English language learning app. Lingo offers basic English lessons and advanced features to help users refine their language skills.&lt;/p&gt;

&lt;h3&gt;
  
  
  Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Learn: Lingo's Learn feature offers a curated selection of bite-sized English concepts, carefully crafted to help new learners grasp the basics quickly and effectively. Whether you're just starting your journey or looking to brush up on your skills, our Learn feature provides a solid foundation to build upon.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Objects: There have been countless times when I've struggled to find the right word in English for something. With Lingo's Objects feature, describing unfamiliar objects in English becomes a breeze. Simply upload an image, and the &lt;strong&gt;resnet-50&lt;/strong&gt; image classification model, will detect and identify objects, helping users learn their English names effortlessly.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Summarize: Reading lengthy texts can be daunting, especially for English learners. Lingo's Summarize feature streamlines this process by offering a quick and efficient way to summarize complex texts. Powered by the state-of-the-art &lt;strong&gt;bart-large-cnn&lt;/strong&gt; model, users can easily get key information from long passages either by entering the text directly or even by uploading an image.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Grammar: Good grammar is essential for effective communication, and Lingo's Grammar feature ensures that users can polish their writing skills with ease. Our AI-powered grammar checker, leveraging the cutting-edge &lt;strong&gt;llama-2-7b-chat-fp16&lt;/strong&gt; model, provides instant feedback on grammar and spelling mistakes, helping users refine their language proficiency.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Concepts: Understanding complex concepts is made simpler with Lingo's Concepts feature. Users can explore a wide range of topics, from science to literature, with simplified explanations and visually engaging content generated by AI. Whether you're struggling with static electricity or photosynthesis, our Concept feature has you covered. For this, I have used the &lt;strong&gt;llama-2-7b-chat-fp16&lt;/strong&gt; and &lt;strong&gt;stable-diffusion-xl-lightning&lt;/strong&gt; models.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Translate: For efficient language learning, nothing beats comparing sentences in your native language to English. Lingo's Translate feature allows users to do just that, utilizing the powerful &lt;strong&gt;m2m100-1.2b&lt;/strong&gt; model for accurate translation. Whether you're practicing conversation or expanding your vocabulary, our Translate feature is your go-to tool.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Home Page of the website&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs83hw01qkmp1gmaoyr60.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs83hw01qkmp1gmaoyr60.png" alt="Home Page" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Features section listing all features of the website&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff630jdkkhhh5vcyj450m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff630jdkkhhh5vcyj450m.png" alt="Features Section" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Learn Page showing bite-sized concepts for new learners&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8ysgzhpkvbezy0qipw35.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8ysgzhpkvbezy0qipw35.png" alt="Learn Page" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;English Tenses lesson teaching tenses by examples&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpui5w3285vsqvmawat11.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpui5w3285vsqvmawat11.png" alt="English Lesson" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Object Detection page that returns the object detected from the image upload&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn2noa0sjuklmo83ho7sy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn2noa0sjuklmo83ho7sy.png" alt="Object Detection page" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Summarize Page allows user to either enter text or upload an image for summarization&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2206xqoj8ub27313fm2b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2206xqoj8ub27313fm2b.png" alt="Summarize Page" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F167y1y0k8ficl5h1u3s2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F167y1y0k8ficl5h1u3s2.png" alt="Summarize Page" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Grammar Page checks for spelling and grammar mistakes in the text&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwhwylpt0lfxazsba2mrb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwhwylpt0lfxazsba2mrb.png" alt="Grammar Page" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Concepts Page explains difficult concepts in simple words and visualizations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb2ooxtultgvv5h73fl8f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb2ooxtultgvv5h73fl8f.png" alt="Concepts Page" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Translate Page translates various languages into English&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxi3d5qpzy91j1idagdjd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxi3d5qpzy91j1idagdjd.png" alt="Translate Page" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You can find link to the website &lt;a href="https://lingo.pages.dev/"&gt;here&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;NOTE : If the AI tasks do not return a result please wait for some time and try again. &lt;/p&gt;

&lt;h2&gt;
  
  
  My Code
&lt;/h2&gt;

&lt;p&gt;For creating Lingo, I went with a web application since it can be easily accessed on all devices. I used React as the frontend framework and Cloudflare Pages to create as well as deploy my project. Pages Functions also allows you to add bindings for Workers AI allowing you to seamlessly use AI in your applications.&lt;/p&gt;

&lt;h3&gt;
  
  
  Technology Stack:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Frontend: React&lt;/li&gt;
&lt;li&gt;Deployment: &lt;a href="https://developers.cloudflare.com/pages/"&gt;Cloudflare Pages&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;AI Integration: &lt;a href="https://developers.cloudflare.com/workers-ai/"&gt;Cloudflare Workers AI&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can find the link to the Github repo &lt;a href="https://github.com/Nupoor10/lingo"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Journey
&lt;/h2&gt;

&lt;p&gt;I had never used Cloudflare before, so getting started with it took some time as well as experimentation, but I am glad I was able to deliver a functioning website that utilizes a large variety of task types. Moving ahead I wish to integrate database storage and expand the website functionality for users.&lt;/p&gt;

&lt;p&gt;Here are all the models I used:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Text Generation: For the Text Generation feature, I used the

&lt;code&gt;llama-2-7b-chat-fp16&lt;/code&gt;

model.&lt;/li&gt;
&lt;/ul&gt;

&lt;ul&gt;
&lt;li&gt;Image Classification: Initially I tried experimenting with the Object Detection model but the Image classification model give me better results so I finally decided to go with the

&lt;code&gt;resnet-50&lt;/code&gt;

model.&lt;/li&gt;
&lt;/ul&gt;

&lt;ul&gt;
&lt;li&gt;Text Summarization: For the Text Summarization feature, I used the

&lt;code&gt;bart-large-cnn&lt;/code&gt;

model.&lt;/li&gt;
&lt;/ul&gt;

&lt;ul&gt;
&lt;li&gt;Text-to-Image Generation: For the Text-to-Image Generation feature, I used the

&lt;code&gt;stable-diffusion-xl-lightning&lt;/code&gt;

model.&lt;/li&gt;
&lt;/ul&gt;

&lt;ul&gt;
&lt;li&gt;Translation: For the Translation feature, I used the

&lt;code&gt;m2m100-1.2b&lt;/code&gt;

model.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Multiple Models and/or Triple Task Types&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;My project utilizes more than three task types&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Text Generation:

&lt;code&gt;llama-2-7b-chat-fp16&lt;/code&gt;

model.&lt;/li&gt;
&lt;/ul&gt;

&lt;ul&gt;
&lt;li&gt;Image Classification:

&lt;code&gt;resnet-50&lt;/code&gt;

model.&lt;/li&gt;
&lt;/ul&gt;

&lt;ul&gt;
&lt;li&gt;Text Summarization:

&lt;code&gt;bart-large-cnn&lt;/code&gt;

model.&lt;/li&gt;
&lt;/ul&gt;

&lt;ul&gt;
&lt;li&gt;Text-to-Image Generation:

&lt;code&gt;stable-diffusion-xl-lightning&lt;/code&gt;

model.&lt;/li&gt;
&lt;/ul&gt;

&lt;ul&gt;
&lt;li&gt;Translation:

&lt;code&gt;m2m100-1.2b&lt;/code&gt;

model.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>cloudflarechallenge</category>
      <category>devchallenge</category>
      <category>ai</category>
      <category>react</category>
    </item>
    <item>
      <title>Tutorial to Predict Amsterdam Housing Prices Using MindsDB and MongoDB</title>
      <dc:creator>Nupoor Shetye</dc:creator>
      <pubDate>Tue, 01 Nov 2022 03:28:03 +0000</pubDate>
      <link>https://dev.to/nupoorshetye/tutorial-to-predict-amsterdam-housing-prices-using-mindsdb-and-mongodb-nha</link>
      <guid>https://dev.to/nupoorshetye/tutorial-to-predict-amsterdam-housing-prices-using-mindsdb-and-mongodb-nha</guid>
      <description>&lt;h2&gt;
  
  
  ☑️ What is MindsDB?
&lt;/h2&gt;

&lt;p&gt;Most businesses today utilize machine learning to power their decisions. From recommendation systems, to optimized shipping routes to customer sentiment analysis, companies have now incorporated machine learning and artificial intelligence into all aspects of business. And the data generated by the companies serves as the backbone of all these ML algorithms and models. Handling and processing data for preparing machine learning models can be expensive and cumbersome. This is where MindsDB comes into the picture. MindsDB brings machine learning to your database allowing you to leverage machine learning techniques on the data stored inside your database. With the help of MindsDB, you can create, train and optimize ML models right in your database without requiring additional platforms making machine learning more accessible and efficient. &lt;/p&gt;

&lt;h2&gt;
  
  
  ☑️ What will we be learning in this tutorial?
&lt;/h2&gt;

&lt;p&gt;📚 &lt;strong&gt;Part 1 : Setting up the requirements&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;First and foremost, we will prepare our setup that is essential to start forecasting with MindsDB and MongoAPI.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Download MongoDB and MongoDB Compass&lt;/li&gt;
&lt;li&gt;Getting started with MindsDB&lt;/li&gt;
&lt;li&gt;Integrating MindsDB with MongoDB&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;📚 &lt;strong&gt;Part 2 : Generating ML Models&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We will see how to create and train ML models in our database. In this tutorial, we will be predicting the Housing Prices of Amsterdam using &lt;a href="https://www.kaggle.com/datasets/thomasnibb/amsterdam-house-price-prediction"&gt;this dataset&lt;/a&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Preparing the database&lt;/li&gt;
&lt;li&gt;Understanding our Problem Statement&lt;/li&gt;
&lt;li&gt;Creating the Predictor Model&lt;/li&gt;
&lt;li&gt;Querying the Predictor Model&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ☑️ Part 1 : Setting up the requirements
&lt;/h2&gt;

&lt;p&gt;We will be explaining this section briefly, so that we can move on to our predictions. For a more detailed explanation please refer to &lt;a href="https://dev.to/nupoorshetye/tutorial-to-predict-the-weather-using-mindsdb-and-mongodb-3blm"&gt;this article&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;📌 &lt;strong&gt;Download MongoDB and MongoDB Compass&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To get started we must have both &lt;a href="https://www.mongodb.com/try/download/community"&gt;MongoDB Community Edition&lt;/a&gt; and &lt;a href="https://www.mongodb.com/try/download/compass"&gt;MongoDB Compass&lt;/a&gt; installed and working in our systems.  &lt;/p&gt;

&lt;p&gt;Once you are done with the installation of both MongoDB and MongoDB Compass we can get going with our tutorial.&lt;/p&gt;

&lt;p&gt;📌 &lt;strong&gt;Getting started with MindsDB&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;MindsDB provides all users with a free MindsDB Cloud version that they can access to generate predictions on their database. You can sign up for the free &lt;a href="https://cloud.mindsdb.com/"&gt;MindsDB Cloud Version&lt;/a&gt; by following the &lt;a href="https://docs.mindsdb.com/setup/cloud/"&gt;setup guide&lt;/a&gt;. Verify your email and log into your account and you are ready to go. Once done, you should be seeing a page like this : &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gN_bENRk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wqpzyfhmsnqx1awhq84o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gN_bENRk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wqpzyfhmsnqx1awhq84o.png" alt="MindsDB Cloud Sign Up" width="880" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you wish, you can choose to install &lt;a href="https://pypi.org/project/MindsDB/"&gt;MindsDB&lt;/a&gt; on your local system using docker image or by using &lt;a href="https://pypi.org/project/MindsDB/"&gt;PyPI&lt;/a&gt;. However, we will be working with Minds DB Cloud in this tutorial.&lt;/p&gt;

&lt;p&gt;📌 &lt;strong&gt;Integrating MindsDB with MongoDB&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;MindsDB provides us the ability to integrate with MongoDB using the MongoAPI. We can do so by following the given steps.&lt;/p&gt;

&lt;p&gt;Open your MongoDB Compass. On the left navigation panel, You will have an option for a New Connection. Click on that Option and you will be provided with the details of your connection.&lt;/p&gt;

&lt;p&gt;In the URI Section enter the following :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mongodb://cloud.mindsdb.com/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Click on the Advanced Connection Options dropdown. Here your host will be detected as MindsDB Cloud. &lt;/p&gt;

&lt;p&gt;In the Authentication option enter your MindsDB Username and Password. Then click on Save and Connect, give your connection a name and select and color. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GEj3zNAK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cdjwx58l86xi17sh4ikc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GEj3zNAK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cdjwx58l86xi17sh4ikc.png" alt="MongoDB Compass" width="880" height="676"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you successfully create a connection you will be displayed a page similar to this : &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--APDnb7TM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dhj19wvfcbzc9l0aer2h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--APDnb7TM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dhj19wvfcbzc9l0aer2h.png" alt="MongoDB Compass  Connection" width="880" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the bottom panel of this page, you will see the the Mongo Shell bar, enlarge it and type the following queries and click Enter.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt; use mindsdb
&amp;gt; show collections
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qvlX1b7l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qwjf3uw4vas3a4mc14vn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qvlX1b7l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qwjf3uw4vas3a4mc14vn.png" alt="Mongo Shell Code" width="880" height="198"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you get a result like this, it means that we have succeeded in integrating MindsDB with MongoDB. Now let us move to the second part of our tutorial where we will be generating an ML model.&lt;/p&gt;

&lt;h2&gt;
  
  
  ☑️ Part 2 : Generating ML Models
&lt;/h2&gt;

&lt;p&gt;📌 &lt;strong&gt;Preparing the database&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We will be preparing our database on which we can run our queries and perform our forecasts. On the MindsDB Cloud console, click on the last icon in the left navigation bar. You will see a 'Select Your Data Sources' page. We can add a variety of data sources, however, for this tutorial we will be working with .csv files.&lt;/p&gt;

&lt;p&gt;Go to the files section and click on Import File. Import your csv file and provide a name for your database table in which the contents of the .csv file will be stored. Click on Save and Continue. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7snGzLJ7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u5rcamqnd8tt08dpk6si.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7snGzLJ7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u5rcamqnd8tt08dpk6si.png" alt="Database Upload" width="880" height="415"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we have to save this database that we have just created in our MongoDB database. We can use the databases.insertOne() command for this purpose.&lt;/p&gt;

&lt;p&gt;To do so, go to the Mongo Shell and type the following command :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;db.databases.insertOne({
    name: "HousePricingDB", // database name
    engine: "mongodb", // database engine 
    connection_args: {
        "port": 27017, // default connection port
        "host": "mongodb://cloud.mindsdb.com:27017", // connection host
        "database": "files" // database connection          
    }
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On clicking Enter, you must receive the following response : &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2jOeln99--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1ainlkoggo7xq4h1sqt1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2jOeln99--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1ainlkoggo7xq4h1sqt1.png" alt="Database MongoDB" width="880" height="280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you get such a response, that means your database is successfully created!&lt;/p&gt;

&lt;p&gt;📌 &lt;strong&gt;Understanding our Problem Statement&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We saw earlier that we will be predicting the housing prices of Amsterdam using &lt;a href="https://www.kaggle.com/datasets/thomasnibb/amsterdam-house-price-prediction"&gt;this Kaggle dataset&lt;/a&gt;. Let us take a closer look into our database that we have set up. Our database consists of the following fields :&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Id&lt;/strong&gt; : Gives the serial number of the data entry&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Address&lt;/strong&gt; : Gives the address of the particular property/house&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Zip&lt;/strong&gt; : Gives the Zip Code of the house&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Price&lt;/strong&gt; : Gives the total cost of the house&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Area&lt;/strong&gt; : Gives the total area of the house we are looking into&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Room&lt;/strong&gt; : Gives the number of rooms in the house&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lon&lt;/strong&gt; : Gives the exact longitudinal co-ordinates of the property&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lat&lt;/strong&gt; : Gives the exact latitudinal co-ordinates of the property&lt;/p&gt;

&lt;p&gt;We can run the following query in our MindsDB Console to see our database where we can see all our fields :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM files.housepricing LIMIT 10;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is what will be displayed :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--n_A3GX12--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xyofea6x2ysyocnqlssr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--n_A3GX12--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xyofea6x2ysyocnqlssr.png" alt="Database fields" width="880" height="415"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let us understand what we are trying to predict. We have been given a database consisting of various fields and we want to predict the Price of a particular plot or house according to its features like the address, zip code, number of rooms, area, etc. We are going to train an ML model that &lt;em&gt;&lt;strong&gt;learns&lt;/strong&gt;&lt;/em&gt; how the Price of a house varies according to the features mentioned above. And once we have trained our model, we can input the details of a house or property and our ML Model will predict what its estimated Price will be. &lt;/p&gt;

&lt;p&gt;Sounds like a difficult task? Let us see how MindsDB can do that for us in a simple query!&lt;/p&gt;

&lt;p&gt;📌 &lt;strong&gt;Creating the Predictor Model&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now that our database is ready, we can go ahead and create our ML Model. As we have seen, The Predictor Model is basically a trained Machine Learning Model that can be used to predict or forecast a particular value known as the target variable or target value.&lt;/p&gt;

&lt;p&gt;We use the CREATE PREDICTOR command to create and train a ML model. Enter the following command in your MindsDB console :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE PREDICTOR mindsdb.house_pricing_predictor
FROM files
(SELECT * FROM housepricing)
PREDICT Price;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here house_pricing_predictor is the name of our Predictor Model and Price is our target value that we want to predict. We want to predict the housing prices taking into account all the other attributes. Click on Run or press Shift+Enter to run our query. If there are no hiccups, we will get a Query Successfully Completed message. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mnUi0D5M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gaz8zzvfvokhzkggo5dg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mnUi0D5M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gaz8zzvfvokhzkggo5dg.png" alt="MindsDB Console" width="880" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And that’s it! We have created and trained a Machine Learning model by a single query! That is the magic of MindsDB!&lt;/p&gt;

&lt;p&gt;📌 &lt;strong&gt;Querying the Predictor Model&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We can see our machine learning model specifications by typing the following command in our Mongo Shell :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; db.predictors.find({name:"house_pricing_predictor"})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When we press Enter we get all the details of our Predictor Model like its status, accuracy, target value and errors. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--u4UeITjX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/srkbndr4m17rvfaom8sd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--u4UeITjX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/srkbndr4m17rvfaom8sd.png" alt="Model Generated" width="863" height="305"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To see the same in our MindsDB Console, enter the following query :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT *
FROM mindsdb.predictors
WHERE name='house_pricing_predictor';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mxtVRYPU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bkxt8zexjfajyqypb8pf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mxtVRYPU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bkxt8zexjfajyqypb8pf.png" alt="Price Predictor" width="880" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now finally we can query our ML model to predict the target value of a particular entry. &lt;/p&gt;

&lt;p&gt;The query for the same is :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT Price, Price_explain
FROM mindsdb.house_pricing_predictor
WHERE Id = 8
AND Address = "Da Costakade 32 II, Amsterdam"
AND Zip = "1053 WL"
AND Area = 80
AND Room = 2
AND Lon = 4.871555
AND Lat = 52.371041;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And lo and behold! Our model predicts the Price of the house according to its attributes entered by us :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Sd7INwhu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hexo7062vc3sxq8tzd8k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Sd7INwhu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hexo7062vc3sxq8tzd8k.png" alt="Price Predict" width="880" height="374"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can also query our ML model through the Mongo Shell and start generating predictions.&lt;/p&gt;

&lt;p&gt;Use the following command to do so :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;db.house_pricing_predictor.find({
Id:"8", 
Address:"Da Costakade 32 II, Amsterdam", 
Zip:"1053 WL", 
Area:"80", Room:"2", 
Lon:"4.871555",
Lat:"52.371041"})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And this is our output :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qx177i7b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jwohrj5sefq92cjyu4cs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qx177i7b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jwohrj5sefq92cjyu4cs.png" alt="Querying the model" width="880" height="258"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  ☑️ Conclusion :
&lt;/h2&gt;

&lt;p&gt;Using MindsDB we have successfully created and trained a Machine Learning model in our database and unlocked the ability to generate in-database forecasts. You can visit the &lt;a href="https://docs.mindsdb.com/"&gt;MindsDB Documentation&lt;/a&gt; to know the various features of MindsDB.&lt;/p&gt;

&lt;h2&gt;
  
  
  ☑️ What’s Next?
&lt;/h2&gt;

&lt;p&gt;If you enjoyed following along to this tutorial, make sure to &lt;a href="https://cloud.mindsdb.com/"&gt;Sign Up&lt;/a&gt; for a free MindsDB Cloud account and continue exploring! &lt;a href="https://www.kaggle.com/"&gt;Kaggle&lt;/a&gt; is a great resource to find similar datasets and you can create and train an ML model of your own with the help of MindsDB. You can also check them out on &lt;a href="https://github.com/mindsdb/mindsdb"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>mindsd</category>
      <category>machinelearning</category>
      <category>hacktoberfest</category>
      <category>mongodb</category>
    </item>
    <item>
      <title>Tutorial to Predict the Weather Using MindsDB and MongoDB</title>
      <dc:creator>Nupoor Shetye</dc:creator>
      <pubDate>Tue, 01 Nov 2022 03:24:23 +0000</pubDate>
      <link>https://dev.to/nupoorshetye/tutorial-to-predict-the-weather-using-mindsdb-and-mongodb-3blm</link>
      <guid>https://dev.to/nupoorshetye/tutorial-to-predict-the-weather-using-mindsdb-and-mongodb-3blm</guid>
      <description>&lt;h2&gt;
  
  
  ☑️ What is MindsDB?
&lt;/h2&gt;

&lt;p&gt;MindsDB is a tool that helps you to leverage machine learning techniques on the data stored inside your database. MindsDB brings machine learning into the database reducing complex workflows and extended durations of processing, creation and deployment. With MindsDB, you can build, train, optimize, and deploy your ML models without the need for other platforms. MindsDB helps you generate forecasts and predictions from your database which can be accessed with the help of a simple query.  The revolutionary model of MindsDB helps businesses make decisions faster and more efficiently providing real-time value to the company.&lt;/p&gt;

&lt;h2&gt;
  
  
  ☑️ What will the tutorial entail?
&lt;/h2&gt;

&lt;p&gt;📝 &lt;strong&gt;Part 1 : Setting up the requirements&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Firstly, we will set up all the tools we will be needing to utilize the functionalities of MindsDB using MongoAPI and get the dice rolling.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Download MongoDB and MongoDB Compass&lt;/li&gt;
&lt;li&gt;Getting started with MindsDB&lt;/li&gt;
&lt;li&gt;Integrating MindsDB with MongoDB&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;📝 &lt;strong&gt;Part 2 : Generating ML Models&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We will see how we can generate ML models in our database itself and go over the queries required to do so. In today's tutorial, we will be generating an ML Model to predict the weather using &lt;a href="https://www.kaggle.com/datasets/ananthr1/weather-prediction"&gt;this dataset&lt;/a&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Preparing the database&lt;/li&gt;
&lt;li&gt;Understanding our Problem Statement&lt;/li&gt;
&lt;li&gt;Creating the Predictor Model&lt;/li&gt;
&lt;li&gt;Querying the Predictor Model&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ☑️ Part 1 : Setting up the requirements
&lt;/h2&gt;

&lt;p&gt;👉 &lt;strong&gt;Download MongoDB and MongoDB Compass&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this tutorial, we will be using MongoDB as our database and MongoDB Compass to interact with our database and with MindsDB as well. For anyone who is a complete newbie, MongoDB is a cross-platform NoSQL database that is used to store high volumes of data. MongoDB does not use tables and rows like a traditional relational database, instead, the data is organized as collections of documents containing key:value pairs. MongoDB Compass is the GUI for MongoDB so it provides an interface for the user to interact with the database, greatly simplifying things for beginners.&lt;/p&gt;

&lt;p&gt;We won’t be diving too deep into the installation of MongoDB. There are two versions of MongoDB available, a free Community Edition and a paid Enterprise Edition. We will be working with the Community Edition as it is more than enough to test out the features of the database. Download the &lt;a href="https://www.mongodb.com/try/download/community"&gt;Community Edition&lt;/a&gt; of MongoDB and follow the &lt;a href="https://www.mongodb.com/docs/manual/installation/"&gt;installation steps&lt;/a&gt; to ensure correct installation. During the installation you will be provided with an option to download the MongoDB Compass as well. Make sure to select the checkbox or else you can download the &lt;a href="https://www.mongodb.com/try/download/compass"&gt;MongoDB Compass&lt;/a&gt; separately as well and &lt;a href="https://www.mongodb.com/docs/compass/current/install/"&gt;install it&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Once you have downloaded both MongoDB and MongoDB Compass successfully, we can move on to the next step.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt; :  Previously the Mongo Shell was bundled together with the MongoDB and didn’t need separate installation. However, now, one must download and install the &lt;a href="https://www.mongodb.com/try/download/shell"&gt;Mongo Shell&lt;/a&gt; separately. &lt;br&gt;
You can download the Mongo Shell and follow the &lt;a href="https://www.mongodb.com/docs/mongodb-shell/install/"&gt;installation guide&lt;/a&gt;. Make sure you add the MongoDB and Mongo Shell binary files to your environment variables so that you can access them from your command prompt or terminal directly.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;Getting started with MindsDB&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;MindsDB provides all users with a free MindsDB Cloud version that they can access to generate predictions on their database. You can sign up for the free &lt;a href="https://cloud.mindsdb.com/"&gt;MindsDB Cloud Version&lt;/a&gt; by following the &lt;a href="https://docs.mindsdb.com/setup/cloud/"&gt;setup guide&lt;/a&gt;. Verify your email and log into your account and you are ready to go. Once done, you should be seeing a page like this : &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gN_bENRk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wqpzyfhmsnqx1awhq84o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gN_bENRk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wqpzyfhmsnqx1awhq84o.png" alt="MindsDB Cloud Sign Up" width="880" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you wish, you can choose to install &lt;a href="https://pypi.org/project/MindsDB/"&gt;MindsDB&lt;/a&gt; on your local system using docker image or by using &lt;a href="https://pypi.org/project/MindsDB/"&gt;PyPI&lt;/a&gt;. However, we will be working with Minds DB Cloud in this tutorial.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;Integrating MindsDB with MongoDB&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;MindsDB provides us the ability to integrate with MongoDB using the MongoAPI. We can do so by following the given steps.&lt;/p&gt;

&lt;p&gt;Open your MongoDB Compass. On the left navigation panel, You will have an option for a New Connection. Click on that Option and you will be provided with the details of your connection.&lt;/p&gt;

&lt;p&gt;In the URI Section enter the following :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mongodb://cloud.mindsdb.com/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Click on the Advanced Connection Options dropdown. Here your host will be detected as MindsDB Cloud. &lt;/p&gt;

&lt;p&gt;In the Authentication option enter your MindsDB Username and Password. Then click on Save and Connect, give your connection a name and select and color. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GEj3zNAK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cdjwx58l86xi17sh4ikc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GEj3zNAK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cdjwx58l86xi17sh4ikc.png" alt="MongoDB Compass" width="880" height="676"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you successfully create a connection you will be displayed a page similar to this : &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--APDnb7TM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dhj19wvfcbzc9l0aer2h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--APDnb7TM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dhj19wvfcbzc9l0aer2h.png" alt="MongoDB Compass  Connection" width="880" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the bottom panel of this page, you will see the the Mongo Shell bar, enlarge it and type the following queries and click Enter.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt; use mindsdb
&amp;gt; show collections
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qvlX1b7l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qwjf3uw4vas3a4mc14vn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qvlX1b7l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qwjf3uw4vas3a4mc14vn.png" alt="Mongo Shell Code" width="880" height="198"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you get a result like this, it indicates that you have successfully integrated MindsDB with MongoDB. Whew..!! That was quite a task. But don’t worry, the exciting part is yet to come.&lt;/p&gt;

&lt;h2&gt;
  
  
  ☑️ Part 2 : Generating ML Models
&lt;/h2&gt;

&lt;p&gt;👉 &lt;strong&gt;Preparing the database&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We will be preparing our database on which we can run our queries and perform our forecasts. On the MindsDB Cloud console, click on the last icon in the left navigation bar. You will see a 'Select Your Data Sources' page. We can add a variety of data sources, however, for this tutorial we will be working with .csv files.&lt;/p&gt;

&lt;p&gt;Go to the files section and click on Import File. Import your csv file and provide a name for your database table in which the contents of the .csv file will be stored. Click on Save and Continue. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8WqkCN5F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g2r4kx1fp1c9lgz83zvb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8WqkCN5F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g2r4kx1fp1c9lgz83zvb.png" alt="Import CSV" width="880" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we have to save this database that we have just created in our MongoDB database. We will be using the databases.insertOne() command to do so&lt;/p&gt;

&lt;p&gt;To do so, go to the Mongo Shell and type the following command :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;db.databases.insertOne({
    name: "WeatherDB", // database name
    engine: "mongodb", // database engine 
    connection_args: {
        "port": 27017, // default connection port
        "host": "mongodb://cloud.mindsdb.com:27017", // connection host
        "database": "files" // database connection          
    }
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On clicking Enter, you must receive the following response : &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pJUdpwnV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tsumaez6xx9umg7qlymk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pJUdpwnV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tsumaez6xx9umg7qlymk.png" alt="database insert" width="853" height="352"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you get such a response, that means your database is all prepped to explore!&lt;/p&gt;

&lt;p&gt;📌 &lt;strong&gt;Understanding our Problem Statement&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Our main goal is to predict the weather and we are going to be using &lt;a href="https://www.kaggle.com/datasets/ananthr1/weather-prediction"&gt;this Kaggle dataset&lt;/a&gt; that we saw earlier. Our database consists of various parameters or fields as seen below :&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;date&lt;/strong&gt; : The dates at which the weather was recorded&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;precipitation&lt;/strong&gt; : All forms of precipitation such as rain or snow that was recorded during the day&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;temp_max&lt;/strong&gt; : The maximum temperature recorded on the day&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;temp_min&lt;/strong&gt; : The minimum temperature recorded on the day&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;wind&lt;/strong&gt; : The wind speed on the particular date&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;weather&lt;/strong&gt; : The weather that was finally recorded on that day&lt;/p&gt;

&lt;p&gt;To have a glimpse at all our database fields we can run the following query in the MindsDB Console :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM files.weather LIMIT 10;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We will be given the following output :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Jo0Y74PY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yjn55qk3r8mt51f8on75.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Jo0Y74PY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yjn55qk3r8mt51f8on75.png" alt="Database Fields" width="880" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let us get familiar with our problem statement and what exactly are we trying to predict. As we can see our database contains several fields such as the date, precipitation, temperature and wind speed. And our final field is the weather that was recorded and that we wish to predict. What we want to do is to create an ML model to tell us what the weather on a particular day will be if we provide the remaining details like the date, precipitation, temperature and wind speed. But how will our ML model be able to achieve this task? That is where the training phase kicks in. On the basis of our given database, we will train our ML Model to &lt;em&gt;&lt;strong&gt;learn&lt;/strong&gt;&lt;/em&gt; how the final output of the weather varies according to the values of the remaining fields. And once we have trained our model, we can input the fields in our database and our ML Model will predict what the estimated weather would be in accordance to those parameters. &lt;/p&gt;

&lt;p&gt;Sounds overwhelming? Let us see how MindsDB can do that for us in just a few seconds!&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;Creating the Predictor Model&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now that our database is ready, we can go ahead and create our very first Predictor Model. The Predictor Model is basically a trained Machine Learning Model that can be used to predict or forecast a particular value known as the target variable or target value.&lt;/p&gt;

&lt;p&gt;We use the CREATE PREDICTOR command to create and train a ML model. Enter the following command in your MindsDB console :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE PREDICTOR mindsdb.weather_predictor
FROM files
(SELECT * FROM weather)
PREDICT weather;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here weather_predictor is the name of our Predictor Model and weather is our target value that we want to predict. Click on Run or press Shift+Enter to run our query. If we don't encounter any issues, we will get a Query Successfully Completed message. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fiDRLHEG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ritha7kppfosvaprrzrx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fiDRLHEG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ritha7kppfosvaprrzrx.png" alt="MindsDB Console" width="880" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And that’s it! We have created and trained a Machine Learning model in just a few lines of code! That is the magic of MindsDB!&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;Querying the Predictor Model&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We can see the details of our machine learning model by typing the following command in our Mongo Shell :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; db.predictors.find({name:"weather_predictor"})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When we press Enter we get all the details of our Predictor Model like its status, accuracy, target value and errors. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1RH1momc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dtn49dmj0bb8zzeh6tka.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1RH1momc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dtn49dmj0bb8zzeh6tka.png" alt="Predictor Model" width="860" height="329"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;To see the same in our MindsDB Console, enter the following query :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT *
FROM mindsdb.predictors
WHERE name='weather_predictor';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Gh0BbFNC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r6e3mhbmx6rrh5q7p3sy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Gh0BbFNC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r6e3mhbmx6rrh5q7p3sy.png" alt="Weather Predictor" width="880" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now finally we can query our ML model to predict the target value of a particular entry. &lt;/p&gt;

&lt;p&gt;The syntax for the same is :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT weather, weather_explain
FROM mindsdb.weather_predictor
WHERE precipitation = 0.8
AND date = "2012-01-03"
AND temp_max = 11.7
AND temp_min = 7.2
AND wind = 2.3;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We will obtain the following prediction for the weather according to our parameters entered :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uoqwufxv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/czwqdc2uz45on6odt9f5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uoqwufxv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/czwqdc2uz45on6odt9f5.png" alt="Weather Predict" width="880" height="365"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can also query our ML model through the Mongo Shell and start generating predictions.&lt;/p&gt;

&lt;p&gt;Use the following command :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;db.weather_predictor.find({
date:"2012-01-03", 
precipitation:"0.8", 
temp_max:"11.7", 
temp_min:"7.2", 
wind:"2.3"})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We are displayed this output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JNQGpIZl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/32yzowmketere46ec5qg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JNQGpIZl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/32yzowmketere46ec5qg.png" alt="Querying the model" width="880" height="299"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  ☑️ Conclusion :
&lt;/h2&gt;

&lt;p&gt;Using MindsDB we have successfully created and trained a Machine Learning model in our database and unlocked the ability to generate in-database forecasts. You can visit the &lt;a href="https://docs.mindsdb.com/"&gt;MindsDB Documentation&lt;/a&gt; to know the various features of MindsDB.&lt;/p&gt;

&lt;h2&gt;
  
  
  ☑️ What’s Next?
&lt;/h2&gt;

&lt;p&gt;If you enjoyed following along to this tutorial, make sure to &lt;a href="https://cloud.mindsdb.com/"&gt;Sign Up&lt;/a&gt; for a free MindsDB Cloud account and continue exploring! &lt;a href="https://www.kaggle.com/"&gt;Kaggle&lt;/a&gt; is a great resource for you to find similar datasets and you can create and train an ML model of your own with the help of MindsDB. You can also check them out on &lt;a href="https://github.com/mindsdb/mindsdb"&gt;GitHub&lt;/a&gt;. &lt;/p&gt;

</description>
      <category>mindsdb</category>
      <category>mongodb</category>
      <category>machinelearning</category>
      <category>hacktoberfest</category>
    </item>
  </channel>
</rss>
