R seeds after a run; gbm; -


This condition is: 1) I have a random sample, but to know what the seeds produce results. Is there a way that I can know? I know that you can set it before running, but how about the experiment? 2) Have you tried to copy a GBM fit after making a model fit? Thank you

You can do something like

  mySeed & lt; - Set .seed (1234) mySamp & lt; - Sample (1: 1000, 10) attr (mySamp, "seeds") & lt; - MySeed   

Then you will always be able to retrieve the seeds using attr (mySamp, "seed"), in the example integers ( MySamp ), but the same logic applies to the GBM objects.

Of course, the above example, if you want to retrieve it later, then you have to first set the seed that or something close to it, I do not think that after you use it, the seeds Can be retrieved.

Comments