that can take a list of features samplers and then sample on all of them
class FeatureSplit(Sampler)
def __init__(list_of_Feature_samplers):
def sample(a,z,y):
# call sample method for each feature sampler and then stack horizontally
Maybe a mixin class?
change from:
class Feature:
def __init__()
def sample()
# list of feature samplers like this:
class FeatureSharedParam(Feature):
def __init__()
to
class FeatureConditionA():
def sample(a,z=None,y=None):
# only uses a
class FeatureConditionerAZY():
def sample(a,z,y)
class FeatureConditionerAZ():
def sample(a,z,z)
class Feature(FeatureConditionerAZY,FeatureSharedParam):
# list of feature samplers like this:
class FeatureSharedParam(Sampler):
ParamCreator = FeatureParams
def __init__()
usage becomes:
feature_sampler = SharedAXY(FeatureConditionA,FeatureSharedParam)
that can take a list of features samplers and then sample on all of them
Maybe a mixin class?
change from:
to
usage becomes: