Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set test data #515

Open
cfkstat opened this issue Jul 1, 2023 · 1 comment
Open

How to set test data #515

cfkstat opened this issue Jul 1, 2023 · 1 comment

Comments

@cfkstat
Copy link

cfkstat commented Jul 1, 2023

how to set a fixed test data, to eval model?

@bbayukari
Copy link
Collaborator

bbayukari commented Oct 12, 2023

Hello, if I haven't misunderstood your question, you require code to generate simulated data and ensure that the data generated by this code is always consistent. In that case, the seed parameter of the generate.data function should meet your requirements. Here's a simple example:

library(abess)
n <- 100
p <- 20
support.size <- 3
seed <- 2023

dataset <- generate.data(n, p, support.size, family = "gaussian",  seed=seed)

If my understanding is incorrect, or if you have any further questions, please continue the discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants