visualization module
cat_plot(indices, plot_per='variable', kind='bar', col_wrap=None, **kwargs)
¶
Uses the seaborn.catplot
_ to plot the indices.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
indices |
IndicesOutput
|
computed indices |
required |
plot_per |
str
|
can be either |
'variable'
|
kind |
str
|
kind of visualization to produce, can be one of |
'bar'
|
col_wrap |
Optional(int
|
“Wrap” the column variable at this width, so that the column facets span multiple rows. |
None
|
**kwargs |
extra arguments passed to seaborn.catplot. |
{}
|
Returns:
Type | Description |
---|---|
a matplotlib axes object |
Source code in deel\fairsense\visualization\plots.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|
format_with_intervals(indices_outputs, quantile=0.05)
¶
Pretty print the indices table with confidence intervals. Note that the intervals
are displayed even if the indices are computed without confidence intervals. See
:mod:fairsense.indices.confidence_intervals
for more information.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
indices_outputs |
IndicesOutput
|
computed indices quantile (float): quantile used to compute confidence intervals. Values must be in [0., 0.5]. |
required |
the table with indices properly displayed. Note that the table values
Type | Description |
---|---|
are now string and not float. |
Source code in deel\fairsense\visualization\text.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
|