The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Answers
I am afraid I got you wrong, but...
If you look in the javadoc, you will see that every class that implements the interface "Model" provides a method called This method (normally) adds prediction and confidence attributes to the input ExampleSet testSet based on the used model.
Is this what you are looking for ?
Steffen
I try to explain my problem:
I've got a time serie of values (for time=0,...,t ) which I used to generate a regression model. Now I want to apply an simple Integer value (t+1) to "forcast" the next value. But until now, I didn't find a way to apply this value which is saved in an integer variable to my model.
I really hopy someone know what I have to do. It is the first time I am using Rapid Miner...
first of all: welcome here to our community. I would like to give you two remarks:
1.) Although you probably do not want to hear this but: it is most often not a good idea to simply use a regression model for time series forecasting. The reasons is that the future predictions are not backed up by any of the seen data and therefore the predictions often tend to drop to zero. So what you probably want to use is a windowing approach together with a base regression learner. You can have a look into the discussion here
http://rapid-i.com/rapidforum/index.php/topic,16.0.html
in order to get the basic ideas.
2.) If you stick to the approach described in the link above, you can simply build a new window from the historical data plus the new one and apply the model to it just in the same way as you can apply a model to other data. The prediction of this model then is the prediction for the time lag defined by the horizon in the windowing approach.
Hope that gives you some hints how to work on your problem.
Cheers,
Ingo
My approach is the following:
- monitoring performance metrics of an IT-system
- create a regression model using the last x snapshots (where x is a constant!!!)
- apply this model for the next time value to forecast the next performance value
If I am not wrong, I implicitly use the same idea like your explained window operator. In the meantime, I found another way to set my input parameters by using the database where all my values are saved.
But now, I have another problem: How can I access the predicted value to use it in my java program??? ???
I really hope that someone can explain it to me...
I should definitely read the full text before answering. You are right, your approach follows the basic windowing idea mentioned in the post above - but you have to perform more work manually in creating the data sets.
May I ask if you could post the source code you tried so far (for model building and model application)? I could give you some hints on the code then and add the missing lines for the retrieval of the model predictions.
Cheers,
Ingo
My source code is the following: I omitted the settings of the parameters because I think there aren't so relevant. In the meantime I found a way to get the predicted value, but I am sure there are better possibilities to get it: It would be great if you could show me a better way to the predicted value...
Ingo