Skip to content

Expose random number seed #4

@kousu

Description

@kousu

In Stata, it is common practice to start examples with set seed to ensure replicability. But this is currently impossible if your problem involves svmachines because libsvm has its own random seeding involved.

We need to find a way to seed the libsvm seed in order to make runs consistent; we could either seed it from the Stata seed, or maybe expose it as a separate optional parameter.

EDIT: StataCorp recommends recording c(rngstate) in your output dataset and recovering it by set rngstate and not set state if you need to rerun it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions