Skip to content

multifeature class #34

Description

@brownsarahm

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions