PlaDa: Platform for Data market
Project description
plada
PlaDa (Platform for Data market)
PlaDa is a simulation platform designed to model and analyze data-driven marketplaces. It provides tools for setting up market models, configuring simulation parameters, running simulations, and analyzing results.
Install
PlaDa is available on PyPI and can be installed using pip.
Using pip
$ pip install plada
$ python
>> import plada
Using pip in a Jupyter Notebook
When installing within a Jupyter Notebook, use the !pip command:
!pip install plada
import plada
For more detailed examples, refer to the test.ipynb notebook.
Usage
Step1:Set up the Market Model.
Note: The model must be a Graph object and must contain "variables".
model = nx.read_graphml("test.graphml")
Step2:Configure Settings
Define the configuration for the simulation, market, and agents.
config = {
"Simulation":{
"num_iterations": 10,
"num_steps": 10,
"isPrice": True,
},
"Market":{
"model": model,
},
"Agent": {
"num_buyers": 10,
"strategy_weights": {
"random": 0.0,
"related": 0.0,
"ranking": 1.0,
},
"new_buyer_probability": 0.8,
}
}
Step3:Run the Simulation
Initialize the Saver and Runner classes with the configuration settings and logger. Then, execute the main simulation process.
saver = Saver()
runner = Runner(settings=config, logger=saver)
runner.main()
Explanation
buyer.py
- Configuration of Buyer Agent
- Manages the state and strategies of buyers, updates budget, and saves purchased data.
market.py
- Market Class: Manages the overall market.
- Data Class: Manages the data.
- Variable Class: Manages the variables.
- Primarily responsible for updating prices and related market dynamics.
simulator.py
- Setup of the Purchase Simulation Workflow
- Organizes the information to be logged (requires improvement)
runner.py
- Execution of the Simulation
logger.py
- Saving the Results of the Simulation
analyzer.py
- Basic Analysis of the Results
- Visualizes the distribution of purchase counts.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plada-0.0.10.tar.gz.
File metadata
- Download URL: plada-0.0.10.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2262224b3f107d91327899b39fe6f19967c0e8097dd1cbfa5000d2bb5ac03118
|
|
| MD5 |
4592fd20e1daca1434bd1ced81d58805
|
|
| BLAKE2b-256 |
e86a65b2689c67a02467b22faafc69b44071fd29488ed50e37c80863172509bb
|
File details
Details for the file plada-0.0.10-py3-none-any.whl.
File metadata
- Download URL: plada-0.0.10-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9e4468ead55404e09897fe3e09d292acd63e7b052937cca7e7954bf34bb37a6
|
|
| MD5 |
64bb24f6991770949feb7b8cb64a02c1
|
|
| BLAKE2b-256 |
cdbd9e88bdd93592e68499ece343e9eb675478160e381fddfdc3361b17562e14
|