Skip to main content

PlaDa: Platform for Data market

Project description

plada

PlaDa (Platform for Data market)

PlaDa is a simulation platform designed to model and analyze data marketplaces. It provides tools for setting up market models, configuring simulation parameters, running simulations, and analyzing results.

PlaDaは、データ市場のモデル化や分析を行うためのシミュレーションプラットフォームです。PlaDaを使うことで、市場のモデル化、シミュレーションのパラメータ設定、シミュレーションの実行、結果の分析が行えます。

Install

PlaDa is available on PyPI and can be installed using pip.

PlaDaはPyPIから利用でき、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.

詳細については、test.ipynbをご覧ください。

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plada-0.0.11.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plada-0.0.11-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file plada-0.0.11.tar.gz.

File metadata

  • Download URL: plada-0.0.11.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for plada-0.0.11.tar.gz
Algorithm Hash digest
SHA256 a3d14ff784c9e791350b2df89cfd8c5014cbe902820371d5e1cbc7ce17f44bc1
MD5 3228d06611307c38e08f827455baf80c
BLAKE2b-256 71987ebe0f310f1c17a34584299a92af3223413cadf1808319415ccb93b12284

See more details on using hashes here.

File details

Details for the file plada-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: plada-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for plada-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 681a691c0a3158ceb9e03452f77f7a5af3f9193724eecd4cbb7d1e288519d212
MD5 1bbfa122c3f245c07c1f3741aa39b3fc
BLAKE2b-256 356f9fed623bd4a06966421e4d65cb5b6f0dea7d09c5b696f22ad9672e4e09f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page