-
Notifications
You must be signed in to change notification settings - Fork 2
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
Package needs to be adapted to handle --subsample -n X
switches
#4
Comments
After some analysis and private discussions, here are some thoughts: Currently --subsample Whether to subsample the posterior
distribution. Use in conjuction with -m
smc-apf or smc-bpf and without
--no-print-samples
-n <subsample size> The number of subsamples to draw if
--subsample is selected. Default: 1. The Python package has a generic way of processing def getsample(self):
idx=range(len(self.nweights))
return [self.samples[i] for i in idx] The a. modify the base in the Python package to support the so that
where This is quite involved, as it requires several changes (I am ignoring for now to use named arguments as in
Now let's get to whether we can change the executable arguments to named arguments. Right now they are handled in
The executable doesn't use the argument parsing thing that David wrote, it is fairly simple as can be seen. Perhaps, this could be made to do named argument parsing, but what would be the reason, if the users already use Python and the command-line is there only for debugging? This also applies to defaults on the command line such as Could you comment on this a little @kudlicka and what path we should take in your opinion? PS: Speaking of debugging, we need to also discuss #5 |
Right now only the default (1) sample is supported, and also for that you need a specialized function. I have some code but not all to do this.
The text was updated successfully, but these errors were encountered: