<?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>Forem: Learn Earn &amp;amp; Fun</title>
    <description>The latest articles on Forem by Learn Earn &amp;amp; Fun (@learnearnfun).</description>
    <link>https://forem.com/learnearnfun</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%2Forganization%2Fprofile_image%2F3928%2Fcfafb1da-de9a-4397-bab7-5716982ec500.jpg</url>
      <title>Forem: Learn Earn &amp;amp; Fun</title>
      <link>https://forem.com/learnearnfun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/learnearnfun"/>
    <language>en</language>
    <item>
      <title>Predicting Flight Prices with MindsDB</title>
      <dc:creator>Hridya</dc:creator>
      <pubDate>Sat, 14 Oct 2023 13:17:14 +0000</pubDate>
      <link>https://forem.com/learnearnfun/predicting-flight-prices-with-mindsdb-10dd</link>
      <guid>https://forem.com/learnearnfun/predicting-flight-prices-with-mindsdb-10dd</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;MindsDB is an Open-Source AI Layer for databases, For more details, Checkout this &lt;a href="https://dev.to/learnearnfun/quickstart-to-mindsdb-1ifm"&gt;blog&lt;/a&gt; to know more&lt;/p&gt;

&lt;p&gt;This tutorial will teach you how to train a model to predict flight prices based on many variables, such as duration, stops etc.. with MindsDB&lt;/p&gt;

&lt;h2&gt;
  
  
  Importing Data into MindsDB Cloud
&lt;/h2&gt;

&lt;p&gt;In order to import the dataset to MindsDB Cloud, we need to first download it from Kaggle and then upload it simply to MindsDB using the steps mentioned below.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 1&lt;/strong&gt;&lt;/em&gt;: Create a &lt;a href="https://cloud.mindsdb.com" rel="noopener noreferrer"&gt;MindsDB Cloud&lt;/a&gt; Account, If you already haven't done so&lt;/p&gt;

&lt;p&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%2Flyl879m8rqyle1qqu2z7.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%2Flyl879m8rqyle1qqu2z7.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 2&lt;/strong&gt;&lt;/em&gt;: Download this &lt;a href="https://www.kaggle.com/datasets/shubhambathwal/flight-price-prediction" rel="noopener noreferrer"&gt;Dataset&lt;/a&gt;&lt;/p&gt;

&lt;p&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%2Fi0ulb7ndhfjk93bgxozv.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%2Fi0ulb7ndhfjk93bgxozv.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 3&lt;/em&gt;&lt;/strong&gt;: Click the Upload file option under the Add List.&lt;br&gt;
(After downloading you will get a .zip file, You have to extract it and import the csv inside)&lt;/p&gt;

&lt;p&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%2Fqpgcufpks739k91ab82i.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%2Fqpgcufpks739k91ab82i.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 4&lt;/strong&gt;&lt;/em&gt;: Name the Table&lt;/p&gt;

&lt;p&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%2Fl0u463ewd9aufhw441rq.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%2Fl0u463ewd9aufhw441rq.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 5&lt;/em&gt;&lt;/strong&gt;: To verify the dataset has successfully imported in:&lt;/p&gt;

&lt;p&gt;Run this Query:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SHOW TABLES FROM files;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Ft26iukmw8dfy59aas16e.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%2Ft26iukmw8dfy59aas16e.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you see the dataset, then it's imported successfully!&lt;/p&gt;

&lt;p&gt;We have imported our dataset into MindsDB, next up we will be creating a Predictor Model!&lt;/p&gt;

&lt;h2&gt;
  
  
  Training a Model
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 1&lt;/em&gt;&lt;/strong&gt;: Creating a Predictor Model&lt;/p&gt;

&lt;p&gt;MindsDB provides a syntax which exactly does that!&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.predictor_name       (Your Predictor Name)
FROM database_name                            (Your Database Name)
(SELECT columns FROM table_name LIMIT 10000)  (Your Table Name)
PREDICT target_parameter;                     (Your Target Parameter)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change the paramaters with the ones you want to use&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.flightprice_predictor
FROM files 
(SELECT * FROM FlightPrices LIMIT 10000)
PREDICT price;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2F5ac45olevqmomq7ga3wx.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%2F5ac45olevqmomq7ga3wx.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 2&lt;/em&gt;&lt;/strong&gt;: Based on the size of the dataset, it might take some time.&lt;/p&gt;

&lt;p&gt;There's 3 stages once you run the command to create the model:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Generating&lt;/strong&gt;&lt;/em&gt;: The model's generating!&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Training&lt;/strong&gt;&lt;/em&gt;: Model is getting trained with the dataset&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Complete&lt;/strong&gt;&lt;/em&gt;: The model is ready to do predictions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To check the status, this is the 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 status
FROM mindsdb.predictors
WHERE name='flightprice_predictor'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once it returns &lt;code&gt;complete&lt;/code&gt; we can start predicting with it!&lt;/p&gt;

&lt;p&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%2Fu8ct9jcn8vs2w6ybrc3g.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%2Fu8ct9jcn8vs2w6ybrc3g.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Describe the Model
&lt;/h2&gt;

&lt;p&gt;Before we proceed to the final part of predicting flight prices, let us first understand the model that we just trained.&lt;/p&gt;

&lt;p&gt;MindsDB provides the following 3 types of descriptions for the model using the DESCRIBE statement.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;By Features&lt;/li&gt;
&lt;li&gt;By Model&lt;/li&gt;
&lt;li&gt;By Model Ensemble&lt;/li&gt;
&lt;/ol&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.flightprice_predictor.features;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Fbpax2opnxzwvpur0rkga.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%2Fbpax2opnxzwvpur0rkga.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This query shows the role of each column for the predictor model along with the type of encoders used on the columns while training.&lt;/p&gt;

&lt;h3&gt;
  
  
  By Model
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.flightprice_predictor.model;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Fiunsj0b1z4mihesseyvi.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%2Fiunsj0b1z4mihesseyvi.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This query shows the list of all the underlying candidate models that were used during training. The one with the best performance (whose value is 1), is selected. You can see the value 1 for the selected one in the selected column while others are set at 0.&lt;/p&gt;

&lt;h3&gt;
  
  
  By Model Ensemble
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.flightprice_predictor.ensemble;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Fzxz5t1pnabqqkvsjodhf.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%2Fzxz5t1pnabqqkvsjodhf.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This query gives back a JSON output that contains the different parameters that helped to choose the best candidate model for the Predictor Model.&lt;/p&gt;

&lt;p&gt;As we are done understanding our Predictor model, let's move on to predicting values.&lt;/p&gt;

&lt;h2&gt;
  
  
  Predicting the Target Value
&lt;/h2&gt;

&lt;p&gt;We will start by predicting that only 1 feature parameter is supported by price and therefore the query should look like this.&lt;/p&gt;

&lt;p&gt;NOTE: While predicting always input multiple feature parameters as the prediction accuracy degrades.&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
FROM mindsdb.flightprice_predictor
WHERE duration ='2.29';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2F1k4x4pmnmugbctllwg21.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%2F1k4x4pmnmugbctllwg21.png" alt="Image description"&gt;&lt;/a&gt;&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
FROM mindsdb.flightprice_predictor
WHERE airline = 'Vistara' and duration = '2.29';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Fl5fsz74rnm7m2phiivst.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%2Fl5fsz74rnm7m2phiivst.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can play around with the values to predict different prices based on the dataset&lt;/p&gt;

&lt;p&gt;We have now successfully predicted the Flight prices with MindsDB&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This concludes the tutorial here. &lt;/p&gt;

&lt;p&gt;Lastly, before you leave, I would love to know your feedback in the Comments section below and it would be really great if you drop a &lt;code&gt;LIKE&lt;/code&gt; on this article.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Quickstart to Flyte</title>
      <dc:creator>Hridya</dc:creator>
      <pubDate>Sun, 08 Oct 2023 18:28:55 +0000</pubDate>
      <link>https://forem.com/learnearnfun/quickstart-to-flyte-36h7</link>
      <guid>https://forem.com/learnearnfun/quickstart-to-flyte-36h7</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;What is Flyte? &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Kubernetes-native workflow automation platform&lt;/li&gt;
&lt;li&gt;Open-source&lt;/li&gt;
&lt;li&gt;Makes it easy create concurrent, scalable, and maintainable workflows&lt;/li&gt;
&lt;li&gt;DLF AI &amp;amp; Data Incubation Project&lt;/li&gt;
&lt;li&gt;Opinionated, scalable &amp;amp; hosted workflow automating platform&lt;/li&gt;
&lt;li&gt;Extensible, Auditable, Observable&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Integrations
&lt;/h2&gt;

&lt;p&gt;Flyte supports a ton of integrations such as Hugging Face, Vaex, &lt;br&gt;
Polars, Modin, BigQuery, DuckDB, Hive, etc...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DrJFvrTB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7gb7pjvw69kbnqx35e5u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DrJFvrTB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7gb7pjvw69kbnqx35e5u.png" alt="Image description" width="800" height="273"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is an overall view of how many integrations they support!&lt;/p&gt;

&lt;p&gt;You can check out all the integrations they support by clicking &lt;a href="https://flyte.org/integrations/"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Trust by Companies
&lt;/h2&gt;

&lt;p&gt;Flyte is used in production at LinkedIn, Spotify, Intel and others. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hD2vTxn6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pvwcab9t7c8sodc4rhp8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hD2vTxn6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pvwcab9t7c8sodc4rhp8.png" alt="Image description" width="800" height="156"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Setting Up Flyte
&lt;/h2&gt;

&lt;p&gt;Note: You can skip this step and use Flyte on the browser if you don't want to download Flyte on your PC, &lt;a href="https://sandbox.union.ai/"&gt;https://sandbox.union.ai/&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Requirements
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Docker&lt;/li&gt;
&lt;li&gt;Python&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ensure that your Docker Daemon is running&lt;/p&gt;
&lt;h3&gt;
  
  
  Installation
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install flytekit flytekitplugins-deck-standard scikit-learn
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h4&gt;
  
  
  Installing FlyteCTL
&lt;/h4&gt;

&lt;p&gt;FlyteCTL is a command-line interface for Flyte&lt;/p&gt;
&lt;h5&gt;
  
  
  OSX
&lt;/h5&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install flyteorg/homebrew-tap/flytectl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h5&gt;
  
  
  Other Operating Systems
&lt;/h5&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -sL https://ctl.flyte.org/install | sudo bash -s -- -b /usr/local/bin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  Creating an Example Flyte Script
&lt;/h2&gt;

&lt;p&gt;Just to checkout your setup works and have a bit of fun with Flyte.&lt;/p&gt;

&lt;p&gt;Let's create an example script with flyte that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Trains a model on the Wine Dataset from sklearn&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here's the script, insert it into any python file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from sklearn.datasets import load_wine
from sklearn.linear_model import LogisticRegression


def get_data():
    """Get the wine dataset."""
    return load_wine(as_frame=True).frame


def process_data(data):
    """Simplify the task from a 3-class to a binary classification problem."""
    return data.assign(target=lambda x: x["target"].where(x["target"] == 0, 1))


def train_model(data):
    """Train a model on the wine dataset."""
    features = data.drop("target", axis="columns")
    target = data["target"]
    return LogisticRegression(max_iter=1000).fit(features, target)


def training_workflow():
    """Put all of the steps together into a single workflow."""
    data = get_data()
    processed_data = process_data(data)
    return train_model(processed_data)


if __name__ == "__main__":
    print(f"Running training_workflow() {training_workflow()}")

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Running Flyte workflows
&lt;/h2&gt;

&lt;p&gt;You can run the workflow in example.py on a local Python environment or a Flyte cluster.&lt;/p&gt;

&lt;h3&gt;
  
  
  Running a workflow using a local python env
&lt;/h3&gt;

&lt;p&gt;Run this command to kickstart your newly created workflow using a python env&lt;br&gt;
NOTE: Change &lt;code&gt;example.py&lt;/code&gt; with the filename your Python file is!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pyflyte run example.py training_workflow
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Creating a Demo Flyte Cluster
&lt;/h3&gt;

&lt;p&gt;Run this command to kickstart your newly created workflow using a Flyte Cluster.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flytectl demo start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run the workflow on the cluster with 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;pyflyte run --remote example.py training_workflow 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you have setup everything correctly, You should receive the following message:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IeCM2d2R--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nt29nm260x811147jzsp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IeCM2d2R--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nt29nm260x811147jzsp.png" alt="Image description" width="800" height="180"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Great! You have run and successfully setup Flyte in your computer&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;🎉 Congratulations! In this getting started guide, you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🤓 You learned all about Flyte&lt;/li&gt;
&lt;li&gt;💻 Setup Flyte in your computer&lt;/li&gt;
&lt;li&gt;📜 Created a Flyte script&lt;/li&gt;
&lt;li&gt;🛥 Created a demo Flyte cluster on your local system.&lt;/li&gt;
&lt;li&gt;👟 Ran a workflow locally and on a demo Flyte cluster.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Flyte is a great workflow automation tool for Data, Machine Learning Processes&lt;/p&gt;

&lt;p&gt;Lastly, don't forget to leave a &lt;code&gt;LIKE&lt;/code&gt; and key in your feedback in the comments!&lt;/p&gt;

</description>
      <category>flyte</category>
      <category>devops</category>
      <category>kubernetes</category>
    </item>
    <item>
      <title>Predicting Mobile Phone Prices with MindsDB</title>
      <dc:creator>Hridya</dc:creator>
      <pubDate>Fri, 04 Nov 2022 17:31:35 +0000</pubDate>
      <link>https://forem.com/learnearnfun/predicting-mobile-phone-prices-with-mindsdb-138</link>
      <guid>https://forem.com/learnearnfun/predicting-mobile-phone-prices-with-mindsdb-138</guid>
      <description>&lt;p&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%2Fwj551l5u9ghy3oq5cnqb.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%2Fwj551l5u9ghy3oq5cnqb.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;MindsDB is an Open-Source AI Layer for databases, For more details, Checkout this &lt;a href="https://dev.to/learnearnfun/quickstart-to-mindsdb-1ifm"&gt;blog&lt;/a&gt; to know more&lt;/p&gt;

&lt;p&gt;This tutorial will teach you how to train a model to predict mobile worth based on many variables, such as clock_speed, battery_power, dual_sim, etc.. with MindsDB&lt;/p&gt;

&lt;h2&gt;
  
  
  Importing Data into MindsDB Cloud
&lt;/h2&gt;

&lt;p&gt;In order to import the dataset to MindsDB Cloud, we need to first download it from Kaggle and then upload it simply to MindsDB using the steps mentioned below.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 1&lt;/strong&gt;&lt;/em&gt;: Create a &lt;a href="https://cloud.mindsdb.com" rel="noopener noreferrer"&gt;MindsDB Cloud&lt;/a&gt; Account, If you already haven't done so&lt;/p&gt;

&lt;p&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%2Flyl879m8rqyle1qqu2z7.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%2Flyl879m8rqyle1qqu2z7.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 2&lt;/strong&gt;&lt;/em&gt;: Download this &lt;a href="https://www.kaggle.com/datasets/iabhishekofficial/mobile-price-classification" rel="noopener noreferrer"&gt;Dataset&lt;/a&gt;&lt;/p&gt;

&lt;p&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%2Fmb1jmk18z8p0o8rxtrxp.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%2Fmb1jmk18z8p0o8rxtrxp.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 3&lt;/em&gt;&lt;/strong&gt;: Go into Add Data -&amp;gt; Files -&amp;gt; Import File&lt;br&gt;
Lastly Add the dataset (After downloading you will get a .zip file, You have to extract it and import the csv inside)&lt;/p&gt;

&lt;p&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%2Fy81wyngeqdj0ccdh3mo8.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%2Fy81wyngeqdj0ccdh3mo8.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 4&lt;/strong&gt;&lt;/em&gt;: Name the Table&lt;/p&gt;

&lt;p&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%2F8nw5ruxbdtt7048mawek.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%2F8nw5ruxbdtt7048mawek.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 5&lt;/em&gt;&lt;/strong&gt;: To verify the dataset has successfully imported in:&lt;/p&gt;

&lt;p&gt;Run this Query:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SHOW TABLES FROM files;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you see the dataset, then it's imported successfully!&lt;/p&gt;

&lt;p&gt;We have imported our dataset into MindsDB, next up we will be creating a Predictor Model!&lt;/p&gt;

&lt;h2&gt;
  
  
  Training a Model
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 1&lt;/em&gt;&lt;/strong&gt;: Creating a Predictor Model&lt;/p&gt;

&lt;p&gt;MindsDB provides a syntax which exactly does that!&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.predictor_name       (Your Predictor Name)
FROM database_name                            (Your Database Name)
(SELECT columns FROM table_name LIMIT 10000)  (Your Table Name)
PREDICT target_parameter;                     (Your Target Parameter)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Simply replace the paramaters with the ones you want to use&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.mobileprice_predictor
FROM files 
(SELECT * FROM MobilePrices LIMIT 10000)
PREDICT price_range;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Fujc66y3wcekrs3u34ouk.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%2Fujc66y3wcekrs3u34ouk.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 2&lt;/em&gt;&lt;/strong&gt;: Based on the size of the dataset, it might take some time.&lt;/p&gt;

&lt;p&gt;There's 3 stages once you run the command to create the model:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Generating&lt;/strong&gt;&lt;/em&gt;: The model's generating!&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Training&lt;/strong&gt;&lt;/em&gt;: Model is getting trained with the dataset&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Complete&lt;/strong&gt;&lt;/em&gt;: The model is ready to do predictions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To check the status, this is the 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 status
FROM mindsdb.predictors
WHERE name='mobileprice_predictor'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once it returns &lt;code&gt;complete&lt;/code&gt; we can start predicting with it!&lt;/p&gt;

&lt;p&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%2Fozmltq6qv7990l3ynayw.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%2Fozmltq6qv7990l3ynayw.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Describe the Model
&lt;/h2&gt;

&lt;p&gt;Before we proceed to the final part of predicting mobile phone prices, let us first understand the model that we just trained.&lt;/p&gt;

&lt;p&gt;MindsDB provides the following 3 types of descriptions for the model using the DESCRIBE statement.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;By Features&lt;/li&gt;
&lt;li&gt;By Model&lt;/li&gt;
&lt;li&gt;By Model Ensemble&lt;/li&gt;
&lt;/ol&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.predictor_model_name.features;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Fypbupjunc8omncoqay8s.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%2Fypbupjunc8omncoqay8s.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This query shows the role of each column for the predictor model along with the type of encoders used on the columns while training.&lt;/p&gt;

&lt;h3&gt;
  
  
  By Model
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.predictor_model_name.model;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Fhbgvzojid6l5yp2ngzwp.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%2Fhbgvzojid6l5yp2ngzwp.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This query shows the list of all the underlying candidate models that were used during training. The one with the best performance (whose value is 1), is selected. You can see the value 1 for the selected one in the selected column while others are set at 0.&lt;/p&gt;

&lt;h3&gt;
  
  
  By Model Ensemble
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.predictor_model_name.ensemble;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Fas7wjugjz96e19kdrx3j.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%2Fas7wjugjz96e19kdrx3j.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This query gives back a JSON output that contains the different parameters that helped to choose the best candidate model for the Predictor Model.&lt;/p&gt;

&lt;p&gt;As we are done understanding our Predictor model, let's move on to predicting values.&lt;/p&gt;

&lt;h2&gt;
  
  
  Predicting the Target Value
&lt;/h2&gt;

&lt;p&gt;We will start by predicting that only 1 feature parameter is supported by price_range and therefore the query should look like this.&lt;/p&gt;

&lt;p&gt;NOTE: While predicting always input multiple feature parameters as the prediction accuracy degrades.&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_range
FROM mindsdb.mobileprice_predictor
WHERE dual_sim ='0';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Fres1m66bhwg8pb16cg7p.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%2Fres1m66bhwg8pb16cg7p.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The predicted price range should be 0&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_range 
FROM mindsdb.mobileprice_predictor
WHERE touch_screen ='0' and int_memory = 51;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Fimfuxbl8uk3yxmfxjqw0.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%2Fimfuxbl8uk3yxmfxjqw0.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The price range should be 3&lt;/p&gt;

&lt;p&gt;Mobilistic! We have now successfully predicted the mobile phone price range with MindsDB&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This concludes the tutorial here. &lt;/p&gt;

&lt;p&gt;Lastly, before you leave, I would love to know your feedback in the Comments section below and it would be really great if you drop a &lt;code&gt;LIKE&lt;/code&gt; on this article.&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>database</category>
      <category>ai</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>Predicting Wine Quality with MindsDB</title>
      <dc:creator>Hridya</dc:creator>
      <pubDate>Fri, 04 Nov 2022 17:26:57 +0000</pubDate>
      <link>https://forem.com/learnearnfun/predicting-wine-quality-with-mindsdb-1jal</link>
      <guid>https://forem.com/learnearnfun/predicting-wine-quality-with-mindsdb-1jal</guid>
      <description>&lt;p&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%2Fvhg7f3c2wt0ozz3ya1sn.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%2Fvhg7f3c2wt0ozz3ya1sn.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;MindsDB is an Open-Source AI Layer for databases, For more details, Checkout this &lt;a href="https://dev.to/learnearnfun/quickstart-to-mindsdb-1ifm"&gt;blog&lt;/a&gt; to know more&lt;/p&gt;

&lt;p&gt;In this tutorial we will be predicting the quality of wine based on its features using MindsDB.&lt;/p&gt;

&lt;h2&gt;
  
  
  Importing Data into MindsDB Cloud
&lt;/h2&gt;

&lt;p&gt;In order to import the dataset to MindsDB Cloud, we need to first download it from Kaggle and then upload it simply to MindsDB using the steps mentioned below.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 1&lt;/strong&gt;&lt;/em&gt;: Create a &lt;a href="https://cloud.mindsdb.com" rel="noopener noreferrer"&gt;MindsDB Cloud&lt;/a&gt; Account, If you already haven't done so&lt;/p&gt;

&lt;p&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%2Flyl879m8rqyle1qqu2z7.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%2Flyl879m8rqyle1qqu2z7.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 2&lt;/strong&gt;&lt;/em&gt;: Download this &lt;a href="https://www.kaggle.com/code/febymelania/aggregation-red-wine-quality-datasets/data?select=winequality-red.csv" rel="noopener noreferrer"&gt;Dataset&lt;/a&gt;&lt;/p&gt;

&lt;p&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%2F7u2u40w6j0osn1pr1bqg.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%2F7u2u40w6j0osn1pr1bqg.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 3&lt;/em&gt;&lt;/strong&gt;: Go into Add Data -&amp;gt; Files -&amp;gt; Import File&lt;br&gt;
Lastly Add the dataset (After downloading you will get a .zip file, You have to extract it and import the csv inside)&lt;/p&gt;

&lt;p&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%2Fy81wyngeqdj0ccdh3mo8.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%2Fy81wyngeqdj0ccdh3mo8.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 4&lt;/strong&gt;&lt;/em&gt;: Name the Table&lt;/p&gt;

&lt;p&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%2Frlrzsoc2v24js5tqakj0.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%2Frlrzsoc2v24js5tqakj0.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 5&lt;/em&gt;&lt;/strong&gt;: To verify the dataset has successfully imported in:&lt;/p&gt;

&lt;p&gt;Run this Query:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SHOW TABLES FROM files;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you see the dataset, then it's imported successfully!&lt;/p&gt;

&lt;p&gt;We have imported our dataset into MindsDB, next up we will be creating a Predictor Model!&lt;/p&gt;

&lt;h2&gt;
  
  
  Training a Model
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 1&lt;/em&gt;&lt;/strong&gt;: Creating a Predictor Model&lt;/p&gt;

&lt;p&gt;MindsDB provides a syntax which exactly does that!&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.predictor_name       (Your Predictor Name)
FROM database_name                            (Your Database Name)
(SELECT columns FROM table_name LIMIT 10000)  (Your Table Name)
PREDICT target_parameter;                     (Your Target Parameter)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Simply replace the paramaters with the ones you want to use&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.wine_predictor
FROM files 
(SELECT * FROM WineFeatures LIMIT 10000)
PREDICT quality;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2F3786mi3817pz6llemdev.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%2F3786mi3817pz6llemdev.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 2&lt;/em&gt;&lt;/strong&gt;: Based on the size of the dataset, it might take some time.&lt;/p&gt;

&lt;p&gt;There's 3 stages once you run the command to create the model:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Generating&lt;/strong&gt;&lt;/em&gt;: The model's generating!&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Training&lt;/strong&gt;&lt;/em&gt;: Model is getting trained with the dataset&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Complete&lt;/strong&gt;&lt;/em&gt;: The model is ready to do predictions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To check the status, this is the 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 status
FROM mindsdb.predictors
WHERE name='wine_predictor'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once it returns &lt;code&gt;complete&lt;/code&gt; we can start predicting with it!&lt;/p&gt;

&lt;h2&gt;
  
  
  Describe the Model
&lt;/h2&gt;

&lt;p&gt;Before we proceed to the final part of predicting the wine quality, let us first understand the model that we just trained.&lt;/p&gt;

&lt;p&gt;MindsDB provides the following 3 types of descriptions for the model using the DESCRIBE statement.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;By Features&lt;/li&gt;
&lt;li&gt;By Model&lt;/li&gt;
&lt;li&gt;By Model Ensemble&lt;/li&gt;
&lt;/ol&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.predictor_model_name.features;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Ffcxsvbytoem92bfgzon4.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%2Ffcxsvbytoem92bfgzon4.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This query shows the role of each column for the predictor model along with the type of encoders used on the columns while training.&lt;/p&gt;

&lt;h3&gt;
  
  
  By Model
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.predictor_model_name.model;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Fpsi8jijcohflq9xgftst.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%2Fpsi8jijcohflq9xgftst.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This query shows the list of all the underlying candidate models that were used during training. The one with the best performance (whose value is 1), is selected. You can see the value 1 for the selected one in the selected column while others are set at 0.&lt;/p&gt;

&lt;h3&gt;
  
  
  By Model Ensemble
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.predictor_model_name.ensemble;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2F47yy2iyjxk2f8874gyol.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%2F47yy2iyjxk2f8874gyol.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This query gives back a JSON output that contains the different parameters that helped to choose the best candidate model for the Predictor Model.&lt;/p&gt;

&lt;p&gt;As we are done understanding our Predictor model, let's move on to predicting values.&lt;/p&gt;

&lt;h2&gt;
  
  
  Predicting the Target Value
&lt;/h2&gt;

&lt;p&gt;It should be noted that the quality of wine is determined by multiple feature values altogether. The accuracy may degrade if some of these feature values are left out.&lt;/p&gt;

&lt;p&gt;But let us still try to predict the wine quality based on a few feature sets with a query like this.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT quality,quality_confidence,quality_explain
FROM mindsdb.wine_predictor
WHERE pH=3.3 AND density=0.997 AND alcohol=9.4 AND sulphates=0.46;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Fq56z0qmvkih2yhqizjrr.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%2Fq56z0qmvkih2yhqizjrr.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As the predicted quality is 5, It states that the wine is neither good nor bad.&lt;/p&gt;

&lt;p&gt;It's time to pass values of all the features to have a more accurate prediction.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT quality,quality_confidence,quality_explain
FROM mindsdb.wine_predictor
WHERE pH=3.5 AND density=0.9976 AND alcohol=13 AND sulphates=0.86 
AND fixed_acidity=10.3 AND volatile_acidity=0.3 AND citric_acid=0.72 
AND residual_sugar=2.5 AND chlorides=0.075 AND free_sulfur_dioxide=11 
AND total_sulfur_dioxide=20;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Fji9zq1ckj946hidfdpiw.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%2Fji9zq1ckj946hidfdpiw.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As the predicted Quality is 8, this wine is good!&lt;/p&gt;

&lt;p&gt;Great! We have now successfully predicted the wine quality with MindsDB&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This concludes the tutorial here. &lt;/p&gt;

&lt;p&gt;Lastly, before you leave, I would love to know your feedback in the Comments section below and it would be really great if you drop a &lt;code&gt;LIKE&lt;/code&gt; on this article.&lt;/p&gt;

</description>
      <category>database</category>
      <category>datascience</category>
      <category>machinelearning</category>
      <category>ai</category>
    </item>
    <item>
      <title>Predicting Tesla Stock Prices with MindsDB!</title>
      <dc:creator>Hridya</dc:creator>
      <pubDate>Thu, 03 Nov 2022 13:39:06 +0000</pubDate>
      <link>https://forem.com/learnearnfun/predicting-tesla-stock-prices-with-mindsdb-4c2i</link>
      <guid>https://forem.com/learnearnfun/predicting-tesla-stock-prices-with-mindsdb-4c2i</guid>
      <description>&lt;p&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%2Fb5alj5mrht9y8d735a5i.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%2Fb5alj5mrht9y8d735a5i.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;If you don't know what MindsDB is, Go checkout my &lt;a href="https://dev.to/learnearnfun/quickstart-to-mindsdb-1ifm"&gt;blog&lt;/a&gt; to know more&lt;/p&gt;

&lt;p&gt;Basically, MindsDB is an Open-Source AI Layer for existing Databases.&lt;/p&gt;

&lt;p&gt;It's an AI Layer for traditional databases such as PostgreSQL, MariaDB, MySQL, etc..&lt;/p&gt;

&lt;p&gt;In this tutorial, We are going to be predicting the stock prices of tesla using MindsDB!&lt;/p&gt;

&lt;h2&gt;
  
  
  Importing Data into MindsDB Cloud
&lt;/h2&gt;

&lt;p&gt;In order to import the dataset to MindsDB Cloud, we need to first download it from Kaggle and then upload it simply to MindsDB using the steps mentioned below.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 1&lt;/strong&gt;&lt;/em&gt;: Create a &lt;a href="https://cloud.mindsdb.com" rel="noopener noreferrer"&gt;MindsDB Cloud&lt;/a&gt; Account, If you already haven't done so&lt;/p&gt;

&lt;p&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%2Flyl879m8rqyle1qqu2z7.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%2Flyl879m8rqyle1qqu2z7.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 2&lt;/strong&gt;&lt;/em&gt;: Download this &lt;a href="https://www.kaggle.com/datasets/harshsingh2209/tesla-stock-pricing-20172022" rel="noopener noreferrer"&gt;Dataset&lt;/a&gt;&lt;/p&gt;

&lt;p&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%2Fakviqjexfbrd9ako315e.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%2Fakviqjexfbrd9ako315e.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 3&lt;/em&gt;&lt;/strong&gt;: Go into Add Data -&amp;gt; Files -&amp;gt; Import File&lt;br&gt;
Lastly, Add the dataset (After downloading you will get a .zip file, you have to extract it and import the csv inside)&lt;/p&gt;

&lt;p&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%2Fy81wyngeqdj0ccdh3mo8.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%2Fy81wyngeqdj0ccdh3mo8.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 4&lt;/strong&gt;&lt;/em&gt;: Name the Table: TeslaStock (You can name it anything you like!)&lt;/p&gt;

&lt;p&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%2F9r2selb0tph0jrls2dg1.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%2F9r2selb0tph0jrls2dg1.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 5&lt;/em&gt;&lt;/strong&gt;: To verify the dataset has successfully imported in:&lt;/p&gt;

&lt;p&gt;Go into the Editor Tab and run this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SHOW TABLES FROM files;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you see TeslaStock or whatever you named it that means it's successfully imported!&lt;/p&gt;

&lt;p&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%2Flm6jjeykt5zfw8nqvhn1.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%2Flm6jjeykt5zfw8nqvhn1.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Training a Model
&lt;/h2&gt;

&lt;p&gt;MindsDB provides very simple SQL queries to carry out different tasks in its interface. So, we will now proceed with the steps below to get ready with the model.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 1&lt;/em&gt;&lt;/strong&gt;: Create a Model, we will be creating a Predictor Model.&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.tesla_predictor   
FROM files
(SELECT * FROM TeslaStock)              
PREDICT Close                      
ORDER BY value_date                
WINDOW 120                         
HORIZON 60;                        
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&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%2Fwkzguripykdlso1khb3u.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%2Fwkzguripykdlso1khb3u.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 2&lt;/em&gt;&lt;/strong&gt;: Based on the size of the dataset, it might take some time.&lt;/p&gt;

&lt;p&gt;There's 3 stages once you run the command to create the model:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Generating&lt;/strong&gt;&lt;/em&gt;: The model's generating!&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Training&lt;/strong&gt;&lt;/em&gt;: Model is getting trained with the dataset&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Complete&lt;/strong&gt;&lt;/em&gt;: The model is ready to do predictions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To check the status, this is the 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 status
FROM mindsdb.predictors
WHERE name='tesla_predictor';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once it returns &lt;code&gt;complete&lt;/code&gt; we can start predicting with it!&lt;/p&gt;

&lt;p&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%2Frazrm7w7tymsu23g1msa.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%2Frazrm7w7tymsu23g1msa.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Describe the Model
&lt;/h2&gt;

&lt;p&gt;Before we proceed to the final part of predicting the tesla stock price, let us first understand the model that we just trained.&lt;/p&gt;

&lt;p&gt;MindsDB provides the following 3 types of descriptions for the model using the DESCRIBE statement.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;By Features&lt;/li&gt;
&lt;li&gt;By Model&lt;/li&gt;
&lt;li&gt;By Model Ensemble&lt;/li&gt;
&lt;/ol&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.predictor_model_name.features;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This query shows the role of each column for the predictor model along with the type of encoders used on the columns while training.&lt;/p&gt;

&lt;h3&gt;
  
  
  By Model
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.predictor_model_name.model;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This query shows the list of all the underlying candidate models that were used during training. The one with the best performance (whose value is 1), is selected. You can see the value 1 for the selected one in the selected column while others are set at 0.&lt;/p&gt;

&lt;h3&gt;
  
  
  By Model Ensemble
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.predictor_model_name.ensemble;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This query gives back a JSON output that contains the different parameters that helped to choose the best candidate model for the Predictor Model.&lt;/p&gt;

&lt;p&gt;As we are done now understanding our Predictor model, let's move on to prediciting values in the next section.&lt;/p&gt;

&lt;h2&gt;
  
  
  Predicting the Target Value
&lt;/h2&gt;

&lt;p&gt;Before we proceed, we need to understand the basic scenario here. So, we have a dataset that lists out the closing stock values of Tesla over a period of time. Now, with this predictor model, we will try to predict the closing value after the last record available in the dataset. We can do that by using another keyword LATEST for the dates now.&lt;/p&gt;

&lt;p&gt;This is the 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 T.value_date as date,
       T.Closing as Forecast,
       Closing_explain
FROM mindsdb.tesla_predictor as T
JOIN files.TeslaStock as P
WHERE P.value_date &amp;gt; LATEST
LIMIT 60;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This query should return us with the forecasts of up to 2 months (60 Days) after the last date that was available in the dataset.&lt;/p&gt;

&lt;p&gt;Awesome! We have now successfully predicted the Tesla Stock Prices using a Predictor.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This concludes the tutorial here. Before we wrap this up, let's do a quick recap of what we did here. We first started with creating a MindsDB Cloud account, fed the dataset and created a table using the cloud UI, trained a Predictor model, described its model features and finally predicted the target closing value.&lt;/p&gt;

&lt;p&gt;Lastly, before you leave, I would love to know your feedback in the Comments section below and please drop a &lt;code&gt;LIKE&lt;/code&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>ai</category>
      <category>database</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Introduction to Refine</title>
      <dc:creator>Hridya</dc:creator>
      <pubDate>Mon, 31 Oct 2022 20:51:14 +0000</pubDate>
      <link>https://forem.com/learnearnfun/introduction-to-refine-5c0h</link>
      <guid>https://forem.com/learnearnfun/introduction-to-refine-5c0h</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1rsHWP8U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c6jn95e9owxqehuigu3o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1rsHWP8U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c6jn95e9owxqehuigu3o.png" alt="Image description" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is Refine?
&lt;/h3&gt;

&lt;p&gt;Refine is a React Framework that makes it really easy to create CRUD Applications&lt;/p&gt;

&lt;h3&gt;
  
  
  Why should you use refine?
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Really easy to setup&lt;/li&gt;
&lt;li&gt;Blazing fast to create an application&lt;/li&gt;
&lt;li&gt;Supports a ton of data providers&lt;/li&gt;
&lt;li&gt;SSR Support&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Integrations
&lt;/h2&gt;

&lt;p&gt;Refine supports a lot of integrations:&lt;/p&gt;

&lt;p&gt;UI Frameworks/Libraries: AntUI, MaterialUI, MantineUI&lt;br&gt;
Data Providers: Supabase, Appwrite, Any REST API, Any GraphQL API, Hasura, Firebase, etc..&lt;br&gt;
Frameworks: Next.js, Remix&lt;br&gt;
Live Providers: Ably&lt;/p&gt;

&lt;p&gt;You can checkout all the integrations they support right &lt;a href="https://refine.dev/integrations/"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting Up Requirements for Refine
&lt;/h2&gt;

&lt;p&gt;Refine Requires:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Node &lt;code&gt;16.x&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;NPM &lt;code&gt;8.x&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can download Node.js from &lt;a href="https://nodejs.org/en/"&gt;https://nodejs.org/en/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This ends this blog right here!&lt;/p&gt;

&lt;p&gt;In the next blog of the refine series, We will be creating a app with refine using a UI Framework&lt;/p&gt;

&lt;p&gt;Lastly, Don't forget to Leave a &lt;code&gt;LIKE&lt;/code&gt; and key in your feedback in the comments!&lt;/p&gt;

</description>
      <category>reactframework</category>
      <category>api</category>
      <category>react</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Discovering Cache Channels!</title>
      <dc:creator>Hridya</dc:creator>
      <pubDate>Mon, 31 Oct 2022 13:28:25 +0000</pubDate>
      <link>https://forem.com/learnearnfun/discovering-cache-channels-2jea</link>
      <guid>https://forem.com/learnearnfun/discovering-cache-channels-2jea</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FMKwXHgT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m3d4lqz60c1b3gjqcknv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FMKwXHgT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m3d4lqz60c1b3gjqcknv.png" alt="Image description" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In this blog we are going to explore pusher channels new feature: Cache Channels!&lt;/p&gt;

&lt;h2&gt;
  
  
  Cache Channels
&lt;/h2&gt;

&lt;p&gt;A Cache Channel:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Store Realtime Data Values&lt;/li&gt;
&lt;li&gt;Remembers the last triggered event and sends it as the first event to new subscribers&lt;/li&gt;
&lt;li&gt;Provides a convenient way of working with changing data.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With the new addition of cache channels, you can now use Pusher Channels as a Realtime key-value store!&lt;/p&gt;

&lt;p&gt;Currently Pusher channels are used for 2 things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Event streams: representing instantaneous events, e.g., a channel &lt;code&gt;mouse-clicks&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Variables: represents a varying value, e.g., channels like &lt;code&gt;btc-usd&lt;/code&gt;, &lt;code&gt;car-12&lt;/code&gt; or &lt;code&gt;gamestate-1&lt;/code&gt;. &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Problem with Existing Pusher Channels
&lt;/h3&gt;

&lt;p&gt;Many Pusher users are running applications with very high frequency updates, e.g., Live Location Tracking, Gaming.&lt;/p&gt;

&lt;p&gt;In these cases, Developers only care about the latest value of a datapoint which is served so frequently that any cached event would be out of date almost as soon as it was written.&lt;/p&gt;

&lt;p&gt;Channels model event streams very well but channels could be difficult for representing variables.&lt;/p&gt;

&lt;p&gt;Changes to the value would be broadcast over the channels as they occur, but without implementing some complicated config &amp;amp; code in your backend to fetch initial state, clients subscribing to channels with variable frequency updates and stuff like that. A sports app displaying live match scores would have to wait for a long amount of time to understand the current value.&lt;/p&gt;

&lt;p&gt;A new user joining a sports app to follow up on a football match would not want to wait for a new goal to know what the current score was.&lt;/p&gt;

&lt;p&gt;So previously, this initial state would have to be served up in the page itself, or the latest value would need to be requested by the client.&lt;/p&gt;

&lt;p&gt;This results in three difficulties:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Unwanted server requests&lt;/li&gt;
&lt;li&gt;Higher time-to-first-event&lt;/li&gt;
&lt;li&gt;Application complexity&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  How do cache channels solve this problem?
&lt;/h3&gt;

&lt;p&gt;With cache channels, you can avoid the “fetch initial state” workaround and reduce some of the overhead in accommodating variable frequency updates on “normal” Pusher channels.&lt;/p&gt;

&lt;p&gt;This simplifies things notably and users working with variable values should be able to write less code with cache channels.&lt;/p&gt;

&lt;p&gt;Difference from the existing Pusher Channels:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fewer server requests&lt;/li&gt;
&lt;li&gt;No more missed updates due to network reconnect&lt;/li&gt;
&lt;li&gt;Lower initial latency&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Cache channels has made life easier for people who were using variables with the existing pusher channels!&lt;/p&gt;

&lt;p&gt;Lastly, Don't forget to leave a &lt;code&gt;LIKE&lt;/code&gt; and key in your feedback in the comments&lt;/p&gt;

</description>
      <category>api</category>
      <category>webdev</category>
      <category>mobile</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Predicting Water Purity using MindsDB</title>
      <dc:creator>Hridya</dc:creator>
      <pubDate>Sun, 30 Oct 2022 12:46:08 +0000</pubDate>
      <link>https://forem.com/learnearnfun/predicting-water-purity-using-mindsdb-3iao</link>
      <guid>https://forem.com/learnearnfun/predicting-water-purity-using-mindsdb-3iao</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bxjye8Nv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vdzoggi0t1p1p8zywbkf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bxjye8Nv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vdzoggi0t1p1p8zywbkf.png" alt="Image description" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;If you don't know what MindsDB is, Go checkout my &lt;a href="https://dev.to/learnearnfun/quickstart-to-mindsdb-1ifm"&gt;blog&lt;/a&gt; to know more&lt;/p&gt;

&lt;p&gt;Basically, MindsDB is an Open-Source AI Layer for existing Databases.&lt;/p&gt;

&lt;p&gt;It's an AI Layer for traditional databases such as PostgreSQL, MariaDB, MySQL, etc..&lt;/p&gt;

&lt;p&gt;In this tutorial, We are going to be predicting the purity of water based on several parameters by a dataset found in kaggle!&lt;/p&gt;

&lt;h2&gt;
  
  
  Importing Data into MindsDB Cloud
&lt;/h2&gt;

&lt;p&gt;In order to import the dataset to MindsDB Cloud, we need to first download it from Kaggle and then upload it simply to MindsDB using the steps mentioned below.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 1&lt;/strong&gt;&lt;/em&gt;: Create a &lt;a href="https://cloud.mindsdb.com"&gt;MindsDB Cloud&lt;/a&gt; Account, If you already haven't done so&lt;/p&gt;

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

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 2&lt;/strong&gt;&lt;/em&gt;: Download this &lt;a href="https://www.kaggle.com/datasets/adityakadiwal/water-potability"&gt;Dataset&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 3&lt;/em&gt;&lt;/strong&gt;: Go into Add Data -&amp;gt; Files -&amp;gt; Import File&lt;br&gt;
Lastly Add the dataset (After downloading you will get a .zip file, You have to extract it and import the csv inside)&lt;/p&gt;

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

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Step 4&lt;/strong&gt;&lt;/em&gt;: Name the Table: WaterPU (You can name it anything you like!)&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 5&lt;/em&gt;&lt;/strong&gt;: To verify the dataset has successfully imported in:&lt;/p&gt;

&lt;p&gt;Go into the Editor Tab and run this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SHOW TABLES FROM files;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you see WaterPU or whatever you named it that means it's successfully imported!&lt;/p&gt;

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

&lt;h2&gt;
  
  
  Training a Model
&lt;/h2&gt;

&lt;p&gt;MindsDB provides very simple SQL queries to carry out different tasks in its interface. So, we will now proceed with the steps below to get ready with the model.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 1&lt;/em&gt;&lt;/strong&gt;: Create a Model, we will be creating a Predictor Model.&lt;br&gt;
For that MindsDB provides a syntax:&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.predictor_name       (Your Predictor Name)
FROM database_name                            (Your Database Name)
(SELECT columns FROM table_name LIMIT 10000)  (Your Table Name)
PREDICT target_parameter;                     (Your Target Parameter)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Simply replace the paramaters with the ones you want to use&lt;/p&gt;

&lt;p&gt;The Actual query for me, looks like this:&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.water_purity
FROM files 
(SELECT * FROM WaterPU LIMIT 10000)
PREDICT Potability;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;NOTE: We are predicting Potability as that's in the dataset, if you write anything else, e.g. Purity, Quality&lt;/p&gt;

&lt;p&gt;You won't be able to Predict the Purity!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 2&lt;/em&gt;&lt;/strong&gt;: Based on the size of the dataset, it might take some time.&lt;/p&gt;

&lt;p&gt;There's 3 stages once you run the command to create the model:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Generating&lt;/strong&gt;&lt;/em&gt;: The model's generating!&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Training&lt;/strong&gt;&lt;/em&gt;: Model is getting trained with the dataset&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;&lt;strong&gt;Complete&lt;/strong&gt;&lt;/em&gt;: The model is ready to do predictions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To check the status, this is the syntax:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;The Actual Query looks something like this:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;Once it returns &lt;code&gt;complete&lt;/code&gt; we can start predicting with it!&lt;/p&gt;

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

&lt;h2&gt;
  
  
  Describe the Model
&lt;/h2&gt;

&lt;p&gt;Before we proceed to the final part of predicting the water quality, let us first understand the model that we just trained.&lt;/p&gt;

&lt;p&gt;MindsDB provides the following 3 types of descriptions for the model using the DESCRIBE statement.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;By Features&lt;/li&gt;
&lt;li&gt;By Model&lt;/li&gt;
&lt;li&gt;By Model Ensemble&lt;/li&gt;
&lt;/ol&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.predictor_model_name.features;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;This query shows the role of each column for the predictor model along with the type of encoders used on the columns while training.&lt;/p&gt;

&lt;h3&gt;
  
  
  By Model
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.predictor_model_name.model;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;This query shows the list of all the underlying candidate models that were used during training. The one with the best performance (whose value is 1), is selected. You can see the value 1 for the selected one in the selected column while others are set at 0.&lt;/p&gt;

&lt;h3&gt;
  
  
  By Model Ensemble
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DESCRIBE mindsdb.predictor_model_name.ensemble;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;This query gives back a JSON output that contains the different parameters that helped to choose the best candidate model for the Predictor Model.&lt;/p&gt;

&lt;p&gt;As we are done now understanding our Predictor model, let's move on to prediciting values in the next section.&lt;/p&gt;

&lt;h2&gt;
  
  
  Predicting the Target Value
&lt;/h2&gt;

&lt;p&gt;Predicitng the water Purity/Quality/Potability is as easy as running a simple SELECT statement using the Predictor.&lt;/p&gt;

&lt;p&gt;As water purity depends on many feature parameters, It is preferred to enter all the parameters, However we can go forward by passing a few of them&lt;/p&gt;

&lt;p&gt;The syntax for the query will be something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT target_value_name, target_value_confidence, target_value_confidence
FROM mindsdb.predictor_name
WHERE feature1=value1 AND feature2=value 2,...;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, replacing the variables in the above query, the actual query will be like this.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT Potability,Potability_confidence,Potability_explain
FROM mindsdb.water_purity
WHERE ph=2.6 AND Hardness=210 AND Solids=18645.233 AND Chloramines=6.546;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;As the predicted Purity is 0, this water is not safe for human consumption.&lt;/p&gt;

&lt;p&gt;We will now pass all the required feature parameters to obtain a more accurate prediction of the water quality. So, the query now becomes something like this.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT Potability,Potability_confidence,Potability_explain
FROM mindsdb.water_purity
WHERE ph=6.9 AND Hardness=201 
AND Solids=11350.675 AND Chloramines=4.3 AND Sulfate=NULL 
AND Conductivity=467.5 AND Organic_carbon=9.98 AND Trihalomethanes=89.686 AND Turbidity=4.99;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;As the predicted Purity is 1, this water is safe for human consumption.&lt;/p&gt;

&lt;p&gt;Fantastic! We have now successfully predicted the water quality using a Predictor.&lt;/p&gt;

&lt;p&gt;target_parameter: This returns the value we want to predict.&lt;br&gt;
target_parameter_confidence: This returns how confident the model is about the Prediction.&lt;br&gt;
target_parameter_explain: This returns all the details about the predicted target_value.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This concludes the tutorial here. Before we wrap this up, let's do a quick recap of what we did here. We first started with creating a MindsDB Cloud account, fed the dataset and created a table using the cloud UI, trained a Predictor model, described its model features and finally predicted the target water purity value.&lt;/p&gt;

&lt;p&gt;Lastly, before you leave, I would love to know your feedback in the Comments section below and would be really motivated if you drop a &lt;code&gt;LIKE&lt;/code&gt; on this article.&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>machinelearning</category>
      <category>ai</category>
      <category>database</category>
    </item>
    <item>
      <title>Quickstart to Amplication</title>
      <dc:creator>Hridya</dc:creator>
      <pubDate>Sun, 23 Oct 2022 18:33:38 +0000</pubDate>
      <link>https://forem.com/learnearnfun/introduction-to-amplication-4k2i</link>
      <guid>https://forem.com/learnearnfun/introduction-to-amplication-4k2i</guid>
      <description>&lt;h2&gt;
  
  
  Introduction to Amplication
&lt;/h2&gt;

&lt;p&gt;Have you ever wanted to not have to repeatedly code Node.js Backends?&lt;br&gt;
Did you want a Low-code Platform to do that?&lt;br&gt;
Well, Amplication does exactly that!&lt;/p&gt;

&lt;p&gt;Instantly Generate: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GraphQL APIs, &lt;/li&gt;
&lt;li&gt;Microservices, &lt;/li&gt;
&lt;li&gt;REST APIs, &lt;/li&gt;
&lt;li&gt;Authentication, &lt;/li&gt;
&lt;li&gt;Authorization, &lt;/li&gt;
&lt;li&gt;Admin UI &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Amplication is a flexible open-source Node.js app development platform. It helps you build production-ready Node.js backend without wasting time on repetitive coding.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--M3ta1PsT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bmvxjibx3awojmuahhlj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--M3ta1PsT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bmvxjibx3awojmuahhlj.png" alt="What do you get from Amplication" width="880" height="539"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting Up Amplication
&lt;/h2&gt;

&lt;p&gt;Requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Docker&lt;/li&gt;
&lt;li&gt;Node.js&lt;/li&gt;
&lt;li&gt;NPM &lt;/li&gt;
&lt;li&gt;Github Account&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Login to Amplication by Github&lt;/p&gt;

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

&lt;p&gt;Select these configurations for your starter Project&lt;/p&gt;

&lt;p&gt;Order management is a sample app by Amplication that contains some entities on creation.&lt;/p&gt;

&lt;p&gt;Once you create your service you should see this:&lt;/p&gt;

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

&lt;p&gt;Amplication uses some popular technologies as you can see&lt;/p&gt;

&lt;p&gt;Next click the amplication logo to get directed to the home page.&lt;/p&gt;

&lt;p&gt;So there's 4 components Workspace, Project, Service, Message Broker&lt;/p&gt;

&lt;p&gt;Service is basically what you created so you can create that multiple times in a project&lt;/p&gt;

&lt;p&gt;You can create a project to store multiple services&lt;/p&gt;

&lt;p&gt;Now, we need to link a github repo to our project so we go into Project Settings -&amp;gt; Github and Authorize your github account, nextly link it!&lt;br&gt;
(Note: Do not keep the repo empty)&lt;/p&gt;

&lt;p&gt;After that, Let's merge our starter service into the Github repo, &lt;br&gt;
In the right side of your screen, Press the commit changes button, A PR should generate in your repo!&lt;/p&gt;

&lt;p&gt;Approve the PR, and the service should be in your github repo! There will be 2 folders: server &amp;amp; admin-ui&lt;/p&gt;

&lt;p&gt;You can then download the github repo, and you can follow the README.md in the server to set it up!&lt;/p&gt;

&lt;p&gt;Video Version: &lt;a href="https://www.youtube.com/watch?v=VCU1hOnSA6k"&gt;https://www.youtube.com/watch?v=VCU1hOnSA6k&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;Amplication helps you create Node.js backends really easily&lt;/p&gt;

&lt;p&gt;Lastly, before you leave, don't forget to key in your feedback in the Comments section below and show some love by dropping a LIKE on this article.&lt;/p&gt;

</description>
      <category>api</category>
      <category>javascript</category>
      <category>docker</category>
      <category>programming</category>
    </item>
    <item>
      <title>Quickstart to MindsDB</title>
      <dc:creator>Hridya</dc:creator>
      <pubDate>Sat, 22 Oct 2022 19:54:53 +0000</pubDate>
      <link>https://forem.com/learnearnfun/quickstart-to-mindsdb-1ifm</link>
      <guid>https://forem.com/learnearnfun/quickstart-to-mindsdb-1ifm</guid>
      <description>&lt;h2&gt;
  
  
  Introduction to MindsDB
&lt;/h2&gt;

&lt;p&gt;MindsDB, brings machine learning capabilities to traditional databases. It acts as an AI layer on top of the existing tables and enables to train models and predict outcomes easily and instantly with the help of simple SQL statements.&lt;/p&gt;

&lt;p&gt;MindsDB connects with the most popular DB Clients, BI Tools, Data Sources making it really easy for clients to use. You can use MindsDB locally (Docker, pip) or use MindsDB Cloud which provides a 30-day free trial.&lt;/p&gt;

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

&lt;p&gt;As you can see MindsDB integrates with a lot of tools &amp;amp; DBs, there are still more that I couldn't fit in the image&lt;/p&gt;

&lt;p&gt;If you want to check out their official website for the connections they support, &lt;a href="https://mindsdb.com/integrations"&gt;Click here&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  MindsDB Cloud Account
&lt;/h2&gt;

&lt;p&gt;Now, let's create a MindsDB Cloud Account&lt;/p&gt;

&lt;p&gt;Go to &lt;a href="https://cloud.mindsdb.com/"&gt;https://cloud.mindsdb.com/&lt;/a&gt; and enter your details and voila! You have a MindsDB Cloud Account, Now you can train ML Models, Predict a lot of things!&lt;/p&gt;

&lt;p&gt;The Editor is where you write your SQL Queries&lt;/p&gt;

&lt;p&gt;The Add Data Tab allows you to add data from a lot of popular data sources, and you can import your own by websites like &lt;a href="https://www.kaggle.com/datasets"&gt;Kaggle&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;MindsDB is an Open-source AI Layer for traditional databases (MySQL, PostgreSQL, MariaDB, etc...)&lt;/p&gt;

&lt;p&gt;Lastly, before you leave, don't forget to key in your feedback in the Comments section below and show some love by dropping a &lt;code&gt;LIKE&lt;/code&gt; on this article.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>tutorial</category>
      <category>datascience</category>
      <category>database</category>
    </item>
  </channel>
</rss>
