class documentation
class Logger:
Constructor: Logger(directory_path, assemblage, model_type, save_images)
Logger objects track market states throughout experiments for future analysis.
| Method | __init__ |
Instantiates a Logger object. |
| Method | get |
Get distributions of purchased items in marketplace. |
| Method | initialize |
Sets up the logger with field names and heading information. |
| Method | log |
Undocumented |
| Method | log |
Log buyers and their states at a particular timestep. |
| Method | log |
Log communities and their states at a particular timestep. |
| Method | log |
Logs statistics about the market at a particular timestep in a scale free experiment. |
| Method | log |
Logs statistics about the market at a particular timestep in a small world experiment. |
| Method | log |
Log the current small world index. |
| Instance Variable | assemblage |
Undocumented |
| Instance Variable | buyer |
Undocumented |
| Instance Variable | buyer |
Undocumented |
| Instance Variable | buyer |
Undocumented |
| Instance Variable | community |
Undocumented |
| Instance Variable | field |
Undocumented |
| Instance Variable | graph |
Undocumented |
| Instance Variable | graph |
Undocumented |
| Instance Variable | images |
Undocumented |
| Instance Variable | images |
Undocumented |
| Instance Variable | initialized |
Undocumented |
| Instance Variable | matrix |
Undocumented |
| Instance Variable | matrix |
Undocumented |
| Instance Variable | matrix |
Undocumented |
| Instance Variable | matrix |
Undocumented |
| Instance Variable | model |
Undocumented |
| Instance Variable | swi |
Undocumented |
Instantiates a Logger object.
| Parameters | |
| directory | path of directory to store results files |
| assemblage | list of items for sale in marketplace |
| model | scale free or small world (default: small world) |
| save | save static images of graphs throughout training (default: True) |
Get distributions of purchased items in marketplace.
| Parameters | |
| graph | graph representing the current market state |
| Returns | |
| distribution in dictionary form of purchased items | |
Sets up the logger with field names and heading information.
| Parameters | |
| graph | graph representing the current market state |
| all | list of all buyers in market |
Log buyers and their states at a particular timestep.
| Parameters | |
| graph | graph representing the current market state |
| timestamp | a list containing the epoch and timestep |
Log communities and their states at a particular timestep.
| Parameters | |
| graph | graph representing the current market state |
| epoch | current epoch |
| timestep | current timestep |
| all | list of all buyers in market |
Logs statistics about the market at a particular timestep in a scale free experiment.
| Parameters | |
| scale | graph representing current market state |
| timestamp | a list containing the epoch and timestep |
| all | list of all buyers in market |
Logs statistics about the market at a particular timestep in a small world experiment.
| Parameters | |
| small | graph representing current market state |
| timestamp | a list containing the epoch and timestep |
| num | number of nodes that were rewired this timestep |