Closed b-robison closed 3 years ago
Hi!
As far as I can tell sub-sampling is working properly. (Though the documentation isn't amazing I must admit.)
My guess is that there's something else that's wrong in the code...
Regarding 3 vs. 4 parameters -- you should google for what "self" does in python. There are a lot of excellent articles that will explain it better than I can. :) (but you only need to pass 3 parameters, the
self` parameter is "auto-filled")
Hello,
I'm struggling to figure out what to provide the subsampling method. From the API documentation it looks like there should be three items fed to the method:
However in the source it looks like it wants four items.
I'm starting with a 20,000 event FCMeasurement object and I want to subsample 1000 events randomly.
Following the API documentation I try:
tsample.subsample(1000, order='random', auto_resize=False)
But I get a TypeError:
TypeError: Population must be a sequence or set. For dicts, use list(d).
So trying the four inputs implied by the source code, I get the following error:
Would love to get this subsampling feature working. Thanks!