Message Boards Message Boards

0
|
513 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Wolfram Data Repository "Wind Speed Measurements", How can I use predict?

Posted 5 months ago

From the Wolfram depository, I have downloaded "Wind Speed Measurements", it detailed the process down to the prediction function.

p = Predict [training -> "MalinHead"]

How can I use this predictor function to give me a prediction?
Example a future date.
I have spent hours trying all sorts of variations in code, but I have failed, continuous error messages.
I would be grateful for help on the code required.

.

Thank you in advance.

POSTED BY: Declan Flynn
2 Replies
Posted 5 months ago

After more hours, I have found some basic code that gets me moving.

date = r[[1]][[1]]
understandData = {date, 4.96, 4.25, 8.71, 1.87, 4.75, 0.71, 3.21, 2.0,
   1.67, 3.67, 4.08}
p[understandData]

I wish it were not this hard.

POSTED BY: Declan Flynn
Posted 5 months ago

So, for anyone like me that needed some initial information on this notebook and using the prediction function, here are some pointers I established. First, the features listed as weather stations are not subject to the same wind conditions. We have some facing the Atlantic ocean some inland and some on the East coast facing the Irish sea. So you may want to pick weather stations to use in the prediction that would have similar wind conditions. So this means selecting a reduced list of features (weather stations) that best suit the location of interest. This just means a shorter list of values for your prediction enquiry. Imagine you have a new set of measurements that you want to use and the related date. dateTest=DateObject[{1965,8,3}], for Mathematica to accept the date format.

data ={dateTest,4.96,4.25,8.71,1.87,4.75,0.71,3.21,2.,1.67,3.67,4.08}
Predict[data]

This will get you started and then you can develop more elaborate code.

POSTED BY: Declan Flynn
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract