<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vivek Shah</title>
    <description>The latest articles on DEV Community by Vivek Shah (@viveknshah).</description>
    <link>https://dev.to/viveknshah</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F735412%2Fd1fbaadb-44d3-40d1-b54d-aac9b249221e.jpeg</url>
      <title>DEV Community: Vivek Shah</title>
      <link>https://dev.to/viveknshah</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/viveknshah"/>
    <language>en</language>
    <item>
      <title>Using MindsDB to Predict Microsoft Stock Prices</title>
      <dc:creator>Vivek Shah</dc:creator>
      <pubDate>Mon, 31 Oct 2022 21:01:30 +0000</pubDate>
      <link>https://dev.to/viveknshah/using-mindsdb-to-predict-microsoft-stock-prices-3l79</link>
      <guid>https://dev.to/viveknshah/using-mindsdb-to-predict-microsoft-stock-prices-3l79</guid>
      <description>&lt;p&gt;Ever wanted to be the Oracle like the Delphic one and use it to predict stocks in your portfolio? Can't take to the past but with MindsDB you could take a shot at predicting the future via this simple tutorial. &lt;/p&gt;

&lt;p&gt;What is &lt;a href="https://mindsdb.com/"&gt;MindsDB&lt;/a&gt;?&lt;/p&gt;

&lt;p&gt;MindsDB is a SQL-based tool that can be used to create and train time-series machine learning models directly from your database. With MindsDB, data teams and data analysts can use their data to build, train, optimize, and deploy machine learning models that provide meaningful insights for real-world problems.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oAMABdjk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z9ge7jx8g5n4z1kh0c0w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oAMABdjk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z9ge7jx8g5n4z1kh0c0w.png" alt="Delphi Oracle" width="474" height="465"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://brewminate.com/wp-content/uploads/2018/04/041118-37-Greek-Greece-Oracle-Delphi-History.jpg"&gt;img source&lt;/a&gt; &lt;br&gt;
&lt;strong&gt;Setup&lt;/strong&gt;&lt;br&gt;
Start off with you using the MindsDB Cloud Editor (create your free MindsDB Cloud account &lt;a href="https://cloud.mindsdb.com/register"&gt;here&lt;/a&gt;) to create and train your time series prediction model.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Get your Dataset&lt;/strong&gt;&lt;br&gt;
Download &lt;a href="https://www.kaggle.com/datasets/berkayalan/microsoft-stock-data-between-2015-and-2022?resource=download"&gt;data set&lt;/a&gt; from Kaggle for our demo to work with Microsoft stock prices : &lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Upload your file into MindsDB&lt;/strong&gt;&lt;br&gt;
You can either load from a database or a file. We'll go with file in this demo. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4sseIts5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yfh55i5pqnv30fgj8xrr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4sseIts5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yfh55i5pqnv30fgj8xrr.png" alt="MindsDB Data Load" width="880" height="458"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check your data&lt;/strong&gt;&lt;br&gt;
Sanity check your data loads up fine with a simple select query. You can use limit to have only a few records load.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Create a Predictor Model&lt;/strong&gt;&lt;br&gt;
Tap in the following syntax to get MindsDB to kick off the predictor model. Depending on the volume of data, this could take some time and you might see a "training" error if you query earlier than it is completed. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xekQ-eit--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tuqdszbc1bysnhxkl1xu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xekQ-eit--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tuqdszbc1bysnhxkl1xu.png" alt="Predictor Kicked off" width="719" height="328"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data Insights&lt;/strong&gt;&lt;br&gt;
You can also quickly glean at the data insights generated visually to give you a quick look into the trends for the data sets you have pulled in. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iy77yBFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bkv164mft1aql58c755c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iy77yBFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bkv164mft1aql58c755c.png" alt="Data Insights" width="880" height="305"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Run a Query for an extrapolated Dates to see the magic&lt;/strong&gt;&lt;br&gt;
Since our data set is till July 2022, let's try a more recent date like 30th October 2022&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Z6cH3ymu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ps2sdnyjiehqf5c8vqgw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Z6cH3ymu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ps2sdnyjiehqf5c8vqgw.png" alt="Final results" width="710" height="221"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With that last step, we have successfully created and trained Using historical data, we can easily try to predict the future. Hopefully my stock broker ain't reading this. &lt;/p&gt;

&lt;p&gt;MindsDB makes machine learning simple, intuitive, and extremely effective! Do you have something interesting you’d like to forecast? Head to MindsDB and start training your model today!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
