pyanno4rt.learning_model.features._feature_map_generator
Feature map generation.
Overview
Feature map generation class. |
Classes
- class pyanno4rt.learning_model.features._feature_map_generator.FeatureMapGenerator(model_label, fuzzy_matching)[source]
Feature map generation class.
This class provides a mapping between the features from the data set, the structures from the segmentation, and the definitions from the feature catalogue. Matching is based on fuzzy or exact string matching.
- Parameters:
fuzzy_matching (bool) – Indicator for the use of fuzzy string matching (if ‘False’, exact string matching is applied).
- fuzzy_matching
See ‘Parameters’.
- Type:
bool
- feature_map
Dictionary with information on the mapping of features in the dataset with the segmented structures and their computation/differentiation functions.
- Type:
dict
Notes
- In the current implementation, string matching works best if:
names from segments in the segmentation do not have any special characters except “_” (which will automatically be removed before matching);
feature names follow the scheme <name of the segment> _<name of the feature in the catalogue>_<optional parameters>, e.g. “parotidLeft_doseMean” (mean dose to the left parotid) or “parotidRight_doseGradient_x” (dose gradient in x-direction for the right parotid).
Overview
Methods generate(data_information)Generate the feature map by fuzzy or exact string matching.
Members
- generate(data_information)[source]
Generate the feature map by fuzzy or exact string matching.
- Parameters:
...
- Returns:
feature_map – Dictionary with information on the mapping of features in the dataset with the segmented structures and their computation/differentiation functions.
- Return type:
dict