TEA Plot
TEA Plots
TEA(temp_edgelist, filepath='.', fig_size=(7, 5), font_size=20, network_name=None, time_scale=None, real_dates=None, test_split=False, density=False)
generating TEA plot
Parameters:
Name | Type | Description | Default |
---|---|---|---|
temp_edgelist
|
Union[object, dict]
|
a dictionary of temporal edges or a dataset object. |
required |
filepath
|
Optional[str]
|
Path to save the TEA Plot. |
'.'
|
fig_size
|
tuple
|
Size of the figure to save. |
(7, 5)
|
font_size
|
int
|
Size of the text in the figure. |
20
|
network_name
|
str
|
Name of the dataset to be used in the TEA plot file. |
None
|
time_scale
|
Union[str, int]
|
time_scale for discretizing data if already not done. |
None
|
real_dates
|
bool
|
Whether to use the real dates from dataset. |
None
|
test_split
|
bool
|
Whether show the test split on the plot. |
False
|
density
|
bool
|
Whether to return edge density and edge frequency dictioneries. |
False
|
Source code in tgx/viz/TEA.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 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 |
|
TEA_plot_edges_bar(ts_edges_dist, filepath='.', fig_size=(9, 5), font_size=20, network_name=None, real_dates=None, time_scale=None, test_split=False, show=False)
Making TEA plot and save into pdf file. Args: ts_edges_dist: list of dictionaries containing the edge distribution over time. filepath: Path to save the TEA Plot. fig_size: Size of the figure to save. font_size: Size of the text in the figure. network_name: Name of the dataset to be used in the TEA plot file. real_dates: list of real dates as ticks time_scale: time_scale for discretizing data if already not done. test_split: Whether show the test split on the plot. show: Whether to show the plot.
Source code in tgx/viz/TEA.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
|