Closed StevenCHowell closed 2 years ago
Same issue. Have you found a solution to this yet?
Thanks for catching this, and apologies for the very slow reply! I'm not sure how that example got messed up, but the code was wrong: the Structs need to be used to define Features, then those need to be put into a FeatureSpace, not a plain dict. I've updated the documentation.
The Method 1 example of the Basic Usage Documentation creates a dictionary from three instances of the
verifai.features.features.Struct
class, then uses that dictionary to instantiate averifai.samplers.feature_sampler.LateFeatureSampler
object by calling therandomSampleFor
method of theverifai.samplers.feature_sampler.FeatureSampler
class. Instantiating theLateFeatureSampler
method results in an error when trying to access thedomains
attribute of the input dictionary.I cannot reconcile what this
domains
attribute is meant to be, as the three dictionary keys in the example are'control_params'
,'env_params'
, and'cones_config'
. I wondered if it meant to be accessing the'domain'
key, but that is not one of the options.How is this example meant to function?