🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

"Is it possible to obtain the predictions made inside an operator of X-Validation"

User: "earmijo"
New Altair Community Member
Updated by Jocelyn
In each round of a 10-fold X-validation process, one tenth of the dataset is used as a test set and the rest is used as training data. The model is used to predict that one tenth. After 10 rounds you get a full vector of "conservative" predictions. These predictions are compared to the actual values and metrics like the RMSE are calculated.

My question is: Is there a way to obtain those predictions inside the X-validation operator?

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "Andrew2"
    New Altair Community Member
    Hello

    You could store the results in the repository using the Store operator or in memory using the Remember operator. To avoid overwriting, you would have to make sure the name of the stored item was changed based on the value of a macro that incremented as each iteration of the loop happens.

    Outside the cross validation, you could retrieve or recall as needed.

    regards

    Andrew
    User: "earmijo"
    New Altair Community Member
    OP
    Thank you very much Andrew. I'll give it a try.
    User: "earmijo"
    New Altair Community Member
    OP
    Oops. This is embarrasing...

    I just discovered there is an operator in RM that does precisely what I want: X-Prediction.