OutputMixedEffect
Bases: ModelOutputItem
Source code in wt_ml/output/output_mixed_effect.py
24 25 26 27 28 29 30 31 32 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 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
|
df: pd.DataFrame
cached
property
Get mixed effects dataframe
visualize(signal_encodings=None, wibbles=None, wibble_encodings=None, group_by_granularity=True, show_both=False, height=800, **kwargs)
Visualize mixed effects
Parameters:
Name | Type | Description | Default |
---|---|---|---|
signal_encodings |
dict[str, int]
|
Signal encodings |
None
|
wibbles |
list[str]
|
Names of all the wibbles/keys. Defaults to None. |
None
|
wibble_encodings |
dict[str, int]
|
Granularity encodings |
None
|
group_by_granularity |
bool
|
Flag to indicate whether to group and view the plots by granularity. |
True
|
show_both |
bool
|
Flag to indicate whether to group plots both by granularity level and signal |
False
|
height |
int
|
The height of the line or the scatter plot. Defaults to 800. |
800
|
show_plots |
bool
|
Flag to indicate whether to show the plots. Defaults to True. |
required |
Returns:
Type | Description |
---|---|
dict[str, Figure]
|
dict[str, go.Figure]: Prepared line or scatter plots of mixed effects dataframe of granularity names and/or |
dict[str, Figure]
|
signal names. |
Source code in wt_ml/output/output_mixed_effect.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
|