whylogs.viz.utils.profile_viz_calculations
¶
Module Contents¶
Functions¶
|
Calculates variance for single feature |
|
Calculates coefficient of variation for single feature |
|
Calculates sum for single feature |
|
Calculates sum for single feature |
|
Calculates drift value for reference profile based on profile type and inserts that data into reference profile |
|
Calculates different values for feature statistics |
Attributes¶
- whylogs.viz.utils.profile_viz_calculations.categorical_types¶
- whylogs.viz.utils.profile_viz_calculations.__calculate_variance(profile_jsons, feature_name)¶
Calculates variance for single feature
- Parameters
profile_jsons (Profile summary serialized json) –
feature_name (Name of feature) –
- Returns
variance
- Return type
Calculated variance for feature
- whylogs.viz.utils.profile_viz_calculations.__calculate_coefficient_of_variation(profile_jsons, feature_name)¶
Calculates coefficient of variation for single feature
- Parameters
profile_jsons (Profile summary serialized json) –
feature_name (Name of feature) –
- Returns
coefficient_of_variation
- Return type
Calculated coefficient of variation for feature
- whylogs.viz.utils.profile_viz_calculations.__calculate_sum(profile_jsons, feature_name)¶
Calculates sum for single feature
- Parameters
profile_jsons (Profile summary serialized json) –
feature_name (Name of feature) –
- Returns
coefficient_of_variation
- Return type
Calculated sum for feature
- whylogs.viz.utils.profile_viz_calculations.__calculate_quantile_statistics(feature, profile_jsons, feature_name)¶
Calculates sum for single feature
- Parameters
profile_jsons (Profile summary serialized json) –
feature_name (Name of feature) –
- Returns
coefficient_of_variation
- Return type
Calculated sum for feature
- whylogs.viz.utils.profile_viz_calculations.add_drift_val_to_ref_profile_json(target_profile, reference_profile, reference_profile_json)¶
Calculates drift value for reference profile based on profile type and inserts that data into reference profile
- Parameters
target_profile (Target profile) –
reference_profile (Reference profile) –
reference_profile_json (Reference profile summary serialized json) –
- Returns
reference_profile_json
- Return type
Reference profile summary serialized json with drift value for every feature
- whylogs.viz.utils.profile_viz_calculations.add_feature_statistics(feature, profile_json, feature_name)¶
Calculates different values for feature statistics
- Parameters
feature –
profile_json (Profile summary serialized json) –
feature_name (Name of feature) –
- Returns
feature
- Return type
Feature data with appended values for statistics report