fuzzy_exp_helpers
Description
Helper functions for experiment evaluating fuzzy logic rules. This includes definition of a standard logic to use. Most functions are based on receiving an experiment config mapping, as is created by Sacred experiments (see respective Sacred experiment script for config format).
Classes
Evaluate predicates and formulas with intermediate values cached according to a config. |
|
Wrapper around coco dataset class returning tuples of |
|
Swap the two arguments in a tuple. |
Functions
|
Given |
|
Return the default logging directory root. |
|
Uncollate a batch of predicate outputs previously collated by torch default_collate |
|
Fix loaded objects from legacy experiments. |
|
Legacy shortcut for |
|
Return a unique infos on the given |
|
Get caches for formula transformation outputs. |
|
Return data triple of COCO keypoint datasets with output transformed to semantic segmentation of persons. |
|
Uncaptured version of |
|
Parse a formula specification to a formula object of the given logic. |
|
Parse a formula object from the settings in sacred experiment |
|
Get a fuzzy logic from key and settings. |
|
Prepare a logic object with the correct predicates from given sacred experiment |
|
Get the predicate function: Takes an image and returns a dict with all predicate values. |
|
Standard mask cache. |
|
Provide caches with folder structure |
|
Save dict |
|
Replace all occurences of predicate variables by a boolean version binarized at |