Closed bcipolli closed 7 years ago
Two other unrelated changes in here:
Looks good! Thanks for giving an example of how to use the new script.
On Nov 22, 2016 7:27 AM, "Ben Cipollini" notifications@github.com wrote:
MATLAB sucks because args are positional only (not named). A common workaround is to pass args as a name, value pair. I've implemented this in our current function.
Now, we can call like this:
bandpass_by_task('../34x25/sergent_1982/uber_sergent_args', 'sergent_1982/de/sergent', 'trial_types', {'L+S-', 'L-S+'}, 'args', {'runs', 5, 'stats', {}, 'plots', {'ls-bars'}})
Such that only a few, required args are positional; optional args are
named (with meaningful defaults).
You can view, comment on, or merge this pull request online at:
https://github.com/guruucsd/DifferentialEncoding/pull/94 Commit Summary
- ENH: allow to receive a single cell array
- BF: make parfor work on older version of MATLAB.
- BF: use SSE (not cross-entropy) for sigmoid output units.
- ENH: pass args by name.
File Changes
- M code/lib/guru/opts/guru_stampProps.m https://github.com/guruucsd/DifferentialEncoding/pull/94/files#diff-0 (6)
- M code/train/de_TrainAllAC.m https://github.com/guruucsd/DifferentialEncoding/pull/94/files#diff-1 (37)
- M code/train/de_TrainAllP.m https://github.com/guruucsd/DifferentialEncoding/pull/94/files#diff-2 (56)
- M experiments/102x75/sergent_1982/uber_sergent_args.m https://github.com/guruucsd/DifferentialEncoding/pull/94/files#diff-3 (1)
- M experiments/34x25/sergent_1982/uber_sergent_args.m https://github.com/guruucsd/DifferentialEncoding/pull/94/files#diff-4 (3)
- M experiments/68x50/sergent_1982/uber_sergent_args.m https://github.com/guruucsd/DifferentialEncoding/pull/94/files#diff-5 (1)
- M experiments/bandpass/bandpass_by_task.m https://github.com/guruucsd/DifferentialEncoding/pull/94/files#diff-6 (26)
Patch Links:
- https://github.com/guruucsd/DifferentialEncoding/pull/94.patch
- https://github.com/guruucsd/DifferentialEncoding/pull/94.diff
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/guruucsd/DifferentialEncoding/pull/94, or mute the thread https://github.com/notifications/unsubscribe-auth/AG_3Pq1vbw-3GNzLcAh4InIw-qJvCzaIks5rAwnkgaJpZM4K5kWE .
MATLAB sucks because args are positional only (not named). A common workaround is to pass args as a name, value pair. I've implemented this in our current function.
Now, we can call like this:
Such that only a few, required args are positional; optional args are named (with meaningful defaults).