<?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: Aditya DS</title>
    <description>The latest articles on DEV Community by Aditya DS (@adityads1806).</description>
    <link>https://dev.to/adityads1806</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%2F488202%2Fac9755ae-99fa-4504-a4e1-1ba62aff48d1.jpeg</url>
      <title>DEV Community: Aditya DS</title>
      <link>https://dev.to/adityads1806</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adityads1806"/>
    <language>en</language>
    <item>
      <title>Browser hacks for Dark Mode in PDFs! 🦉</title>
      <dc:creator>Aditya DS</dc:creator>
      <pubDate>Mon, 18 Oct 2021 14:15:56 +0000</pubDate>
      <link>https://dev.to/adityads1806/browser-hacks-for-dark-mode-in-pdfs-4igp</link>
      <guid>https://dev.to/adityads1806/browser-hacks-for-dark-mode-in-pdfs-4igp</guid>
      <description>&lt;p&gt;Dear dark mode lovers,&lt;br&gt;
In this article I present a few hacks to view PDFs in dark mode on any browser! 🔥&lt;/p&gt;

&lt;p&gt;To get started, open any PDF in your favorite browser. Then open the dev tools by using the shortcut &lt;code&gt;ctrl + shift + I&lt;/code&gt; or &lt;code&gt;f12&lt;/code&gt; and run one of the following in the &lt;em&gt;console&lt;/em&gt; based on your browser:&lt;/p&gt;

&lt;h2&gt;
  
  
  New Microsoft Edge/Google Chrome/Brave/Opera
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;embeds&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;filter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;invert(0.95)&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Firefox
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;viewerContainer&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;filter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;invert(0.95)&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the original image:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F87jsm45m5j74qr92hqs8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F87jsm45m5j74qr92hqs8.png" alt="Original Image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the result after running the script:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3x7zsmjh5eq5ax0hka4u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3x7zsmjh5eq5ax0hka4u.png" alt="Dark Mode"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;💡 You can change 0.95 to any number between 0 and 1.&lt;/p&gt;

&lt;p&gt;If you found this useful, like the post and share it with your friends!&lt;br&gt;
Thanks!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>hack</category>
      <category>browser</category>
      <category>pdf</category>
    </item>
    <item>
      <title>Forecast Metro Traffic using MindsDB Cloud and MongoDB Atlas</title>
      <dc:creator>Aditya DS</dc:creator>
      <pubDate>Sun, 17 Oct 2021 13:19:12 +0000</pubDate>
      <link>https://dev.to/adityads1806/forecast-metro-traffic-in-the-cloud-using-mindsdb-and-mongodb-3h4n</link>
      <guid>https://dev.to/adityads1806/forecast-metro-traffic-in-the-cloud-using-mindsdb-and-mongodb-3h4n</guid>
      <description>&lt;p&gt;In this tutorial, we will be learning to:&lt;br&gt;
👉 Connect a MongoDB database to MindsDB.&lt;br&gt;
👉 Train a model to predict metro traffic.&lt;br&gt;
👉 Get a prediction from the model given certain input parameters.&lt;/p&gt;

&lt;p&gt;All of that &lt;strong&gt;without writing a single line of code and in less than 15 minutes&lt;/strong&gt;. Yes, you read that right! 💯&lt;/p&gt;

&lt;p&gt;We will be using the Metro traffic dataset 🚇 that can be downloaded from &lt;a href="https://github.com/mindsdb/benchmarks/blob/main/benchmarks/datasets/metro_traffic_ts/data.csv"&gt;here&lt;/a&gt;. You are also free to use your own dataset and follow along the tutorial.&lt;/p&gt;
&lt;h2&gt;
  
  
  #️⃣ Pre-requisites
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;This tutorial is primarily going to be about MindsDB so the reader is expected to have some level of familiarity with &lt;a href="https://www.mongodb.com/cloud/atlas"&gt;MongoDB Atlas&lt;/a&gt;. In short, MongoDB Atlas is a Database as a Service(DaaS), which we will be using to spin up a MongoDB database cluster and load our dataset.&lt;/li&gt;
&lt;li&gt;Download a copy of the Metro Traffic dataset from &lt;a href="https://github.com/mindsdb/benchmarks/blob/main/benchmarks/datasets/metro_traffic_ts/data.csv"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;You are also expected to have an account on MindsDB Cloud. If not, head over to &lt;a href="https://cloud.mindsdb.com/"&gt;https://cloud.mindsdb.com/&lt;/a&gt; and create an account. It hardly takes a few minutes. ⚡&lt;/li&gt;
&lt;li&gt;We also need MongoDB Compass to load the dataset into the collection. It can be downloaded from &lt;a href="https://www.mongodb.com/try/download/compass"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Finally, No! &lt;strong&gt;You are not required to have any background in programming or machine learning&lt;/strong&gt;. As mentioned before you wont be writing a single line of code!&lt;/p&gt;
&lt;h2&gt;
  
  
  #️⃣ About MindsDB
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;MindsDB is a predictive platform that makes databases intelligent and machine learning easy to use. It allows data analysts to build and visualize forecasts in BI dashboards without going through the complexity of ML pipelines, all through SQL. It also helps data scientists to streamline MLOps by providing advanced instruments for in-database machine learning and optimize ML workflows through a declarative JSON-AI syntax.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Although only SQL is mentioned, MongoDB is also supported.&lt;/p&gt;
&lt;h2&gt;
  
  
  #️⃣ Dataset overview
&lt;/h2&gt;

&lt;p&gt;The dataset contains information about the: &lt;em&gt;Hourly Interstate 94 Westbound traffic volume for MN DoT ATR station 301, roughly midway between Minneapolis and St Paul, MN&lt;/em&gt;. More details can be found &lt;a href="https://archive.ics.uci.edu/ml/datasets/Metro+Interstate+Traffic+Volume"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The dataset is a &lt;code&gt;.csv&lt;/code&gt; file that contains 9 columns:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;holiday&lt;/code&gt;: Categorical US National holidays plus regional holiday, Minnesota State Fair&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;temp&lt;/code&gt;: Numeric Average temp in &lt;em&gt;kelvin&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;rain_1h&lt;/code&gt;: Numeric Amount in &lt;em&gt;mm of rain&lt;/em&gt; that occurred in the hour&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;snow_1h&lt;/code&gt;: Numeric Amount in &lt;em&gt;mm of snow&lt;/em&gt; that occurred in the hour&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;clouds_all&lt;/code&gt;: Numeric &lt;em&gt;Percentage&lt;/em&gt; of cloud cover&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;weather_main&lt;/code&gt;: Categorical Short textual description of the current weather&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;weather_description&lt;/code&gt;: Categorical Longer textual description of the current weather&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;date_time&lt;/code&gt;: &lt;em&gt;DateTime&lt;/em&gt; Hour of the data collected in local CST time&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;traffic_volume&lt;/code&gt;: Numeric Hourly I-94 ATR 301 reported westbound traffic volume&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Phew! With all of that out of the way, we can finally get started! 🚀 &lt;/p&gt;
&lt;h2&gt;
  
  
  #️⃣ Setting up a Cluster on MongoDB Atlas
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Head over to &lt;a href="https://cloud.mongodb.com/"&gt;https://cloud.mongodb.com/&lt;/a&gt; and create a new project named &lt;code&gt;mindsdb&lt;/code&gt; and within it a new database cluster named &lt;code&gt;mindsDB&lt;/code&gt;. Typically, it takes a minute or two to provision a cluster. Once it is done, you should have something like this:
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RpBYR23o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n7otmph2uyb4cpu3u1ar.png" alt="Create cluster"&gt;
&lt;/li&gt;
&lt;li&gt;Click on the "Connect" button. In the popup modal, you will be asked to add a connection IP address. Although not recommended, for the sake of this tutorial, choose "Allow access from anywhere" and then "Add IP Address".
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PzJMrNVL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xbc1y1uhxsbghd4j12ae.png" alt="Firewall setup"&gt; &lt;/li&gt;
&lt;li&gt;Next, you will be asked to create a new database user. After providing a username and password, click on the "Create Database User" button.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--v4e_l2kW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o1siazilrkubaiqum5z5.png" alt="Database user creation"&gt;
&lt;/li&gt;
&lt;li&gt;In the next step, select "Connect using MongoDB Compass". Copy the connection string which should look like this:
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mongodb+srv://&amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;@mindsdb.htuqc.mongodb.net/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;We will now use this connection string to connect to our database from MongoDB Compass and load our dataset.&lt;/p&gt;
&lt;h2&gt;
  
  
  #️⃣ Loading the dataset with MongoDB Compass
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open MongoDB Compass. Paste the connection string and click on "Connect". On successful authentication, you will be welcomed by this screen.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mbDRx9a2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/13u778mwf1jdxufzwhv1.png" alt="Welcome screen - MongoDB Compass"&gt;
&lt;/li&gt;
&lt;li&gt;Click on "Create Database" and create a database named &lt;code&gt;mindsDB&lt;/code&gt; and a collection named &lt;code&gt;data&lt;/code&gt;.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fpGngUot--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vmbdso723t7dlxmpc8uc.png" alt="Create database"&gt;
&lt;/li&gt;
&lt;li&gt;You will now see &lt;code&gt;mindsDB&lt;/code&gt; listed. Click on it and you will see that it contains a collection named &lt;code&gt;data&lt;/code&gt;. We will be loading data from the &lt;code&gt;.csv&lt;/code&gt; file into this collection. Open the &lt;code&gt;data&lt;/code&gt; collection by clicking on it.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--j4tUu9a0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ozb0ni92whdeu98zvfnv.png" alt="Import data"&gt; &lt;/li&gt;
&lt;li&gt;Click on the "Import data" button and load your &lt;code&gt;.csv&lt;/code&gt; file. You will now be able to preview your dataset and also assign the data types as shown below. Then, "import" the dataset and wait for a few seconds for the import to finish.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--S4iFpA3X--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xa4z5jnmmjzrdrlp55un.png" alt="Set data types"&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  #️⃣ Connecting MindsDB to MongoDB Database
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Head over to &lt;a href="https://cloud.mindsdb.com/"&gt;https://cloud.mindsdb.com/&lt;/a&gt; and click on "Add Database".
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--K7YrqojS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8j7mmi39jgzi38lp7i37.png" alt="MindsDB landing page"&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Enter the required details as shown below. The connection string must be similar to:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mongodb+srv://&amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;@mindsdb.htuqc.mongodb.net/mindsDB
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Jh8LVRzC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xbsqgmp3bie7774str70.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Jh8LVRzC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xbsqgmp3bie7774str70.png" alt="Add DB"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on "Connect" and that's it! We have successfully linked our Database to MindsDB.&lt;br&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AalfTzMs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ru1d28cgse997fw8g6mr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AalfTzMs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ru1d28cgse997fw8g6mr.png" alt="database linked"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Next, head over to the Datasets tab and click on "From database".&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enter the details as shown below. In the &lt;em&gt;Find&lt;/em&gt; field, we can specify a Mongo query using which MindsDB will include only the results of this query in the data source. By specifying &lt;code&gt;{}&lt;/code&gt;, we are telling MindsDB to include every single document in the &lt;code&gt;data&lt;/code&gt; collection in the data source.&lt;br&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dfm0zKot--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t0nrk7krs1ab7os9rb2x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dfm0zKot--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t0nrk7krs1ab7os9rb2x.png" alt="create dataset"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on "Create" and now we will see that our data source named "Metro Traffic Dataset" has been added. One can check for the quality and also preview the data source.&lt;br&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--35lJKb7h--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/19ee37xe3q412um9ku36.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--35lJKb7h--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/19ee37xe3q412um9ku36.png" alt="Data source created"&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;
We are now ready to train an ML model to predict the &lt;code&gt;traffic_volume&lt;/code&gt; using MindsDB.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  #️⃣ Training the ML Model
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Head over to the Predictors Tab and click on "Train New".&lt;/li&gt;
&lt;li&gt;In the popup modal, give a name to the predictor and select the column that needs to be predicted, which in our case is &lt;code&gt;traffic_volume&lt;/code&gt;.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3gbiBXr_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l81z2wpp5c8jykmn9t0u.png" alt="Predictor"&gt;
&lt;/li&gt;
&lt;li&gt;After entering the details, click on "Generate". That's how simple training an ML model is with MindsDB. Now all you have to do is wait for a few minutes for the model to get trained after which you will be able to run queries and get predictions on the &lt;code&gt;traffic_volume&lt;/code&gt;.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZqXGOtTK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x8gnel2891sgdgycd51o.png" alt="Training"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  #️⃣ Running Queries to get predictions
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Once the status changes to COMPLETE, it means that our model is now ready and we can start getting predictions.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JMATqOyx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jq4jc96x90wz3f77u5om.png" alt="Training complete"&gt;
We can see that the model has an accuracy of 98.6%, which is impressive!&lt;/li&gt;
&lt;li&gt;To start getting predictions, click on the "Query" button and then "New Query".&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Let's say we wanted to know the &lt;code&gt;traffic_volume&lt;/code&gt; for some day and all we know is the following:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="o"&gt;{&lt;/span&gt;
    temp: 300, &lt;span class="c"&gt;# temperature of 300 Kelvin&lt;/span&gt;
    clouds_all: 10, &lt;span class="c"&gt;# 10% cloud cover&lt;/span&gt;
    weather_main: &lt;span class="s2"&gt;"Clouds"&lt;/span&gt;,
    weather_description: &lt;span class="s2"&gt;"few clouds"&lt;/span&gt;,
    holiday: &lt;span class="s2"&gt;"None"&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;Enter the above details and "Run Query".&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2ZmTltFl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6r7y0n30zhoetqtunc40.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2ZmTltFl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6r7y0n30zhoetqtunc40.png" alt="Run query"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We can see that the model predicted with 99% confidence that on such a day, the traffic volume would be 832.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hwh_eICH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3us0ret3ewf253i1w695.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hwh_eICH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3us0ret3ewf253i1w695.png" alt="Prediction result"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can play with the inputs and run a few more queries and observe the results.&lt;/p&gt;

&lt;h2&gt;
  
  
  #️⃣ What Next?
&lt;/h2&gt;

&lt;p&gt;This tutorial can be extended to perform lots of awesome things. For example, it would be interesting to see the dependence between the weather and the traffic volume. Some interesting questions that can be asked are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Given a certain &lt;code&gt;traffic_volume&lt;/code&gt; what is the probability the sky is clear ☀️? What is the probability that it is raining? 🌧️&lt;/li&gt;
&lt;li&gt;Given a certain &lt;code&gt;traffic_volume&lt;/code&gt;, how certain can we be that the day is a holiday? 🏖️&lt;/li&gt;
&lt;li&gt;Can we predict more parameters instead of only the &lt;code&gt;traffic_volume&lt;/code&gt;? 🤔&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Apart from these, you can also install MindsDB on your machine and connect with your local databases to get predictions. You can also use a BI tool to visualize these predictions. Apart from SQL and MongoDB, you can explore other data source integrations that MindsDB supports like Oracle and Kafka.&lt;/p&gt;

&lt;p&gt;If you have made it this far, thank you for your time and hope you found this useful. If you like the article, like it and share it with others.&lt;/p&gt;

&lt;p&gt;Happy Querying! 📉&lt;/p&gt;

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