参数“local_random_seed" in XValidation Operator

ligaliga MemberPosts:4Contributor I
Hi,

RM is a fantastic tool for data mining research and application. Thanks for your good work. Here I have a problem when I use the 04_XValidation_Nominal.xml sample. Theoretically, when the "sampling_type" parameter is set to be "stratified sampling" and "local_random_seed" is set to be -1, the results should be a little different in different iteration of running, since each time the training sample and test sample are different in each fold validation. In my test, the result has no change. I tried several other example source, it still has no change. Could anybody tell me what's the problem. Thanks again.

Answers

  • steffensteffen MemberPosts:347Maven
    Hello liga

    setting the "local_random_seed" to -1 means: use the global random seed. The global random seed is initialized everytime you start the process. This is necessary because otherwise you were not able to recompute your results. However, running XValidation two times within the SAME process causes different results.

    See this setup here (simply copy and paste in the xml-tab)












    <参数键= " keep_example_set " value = " true " / >




















    hope this was helpful

    Steffen
  • ligaliga MemberPosts:4Contributor I
    Hi, steffen

    Thanks for your instant reply. Your solution did help.
  • IngoRMIngoRM Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Community Manager, RMResearcher, Member, University ProfessorPosts:1,751RM Founder
    Hi,

    only an additional side note: you could also change the global random seed of the root operator to -1 which means that in this case a different seed would be used for every new run.

    Cheers,
    Ingo
  • ligaliga MemberPosts:4Contributor I
    Hi, lngo,

    Thank you for a new optional solution to my problem and at the same time, this one remove all my muddle.

    Best

    liga
Sign InorRegisterto comment.