Coder Social home page Coder Social logo

sukiboo / sxf Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 20 KB

Synthetic Experimental Framework for hyper-personalized behavioral nudging

License: MIT License

Python 100.00%
experimental-design nudging reinforcement-learning simulated-environments tensorflow

sxf's Introduction

Synthetic Experimental Framework

This repository includes a customizable simulated environment for testing different aspects of the agent/environment interaction in addressing the behavioral nudging personalization contextual bandit problem. The code was written around 2022 and may be a bit outdated now.

The findings from SXF contributed to the papers

exp_action_dist

Installation

  • Install conda / pip requirements via conda env create -f environment.yml
  • Activate conda environment with conda activate synthetic-experimental-framework
  • Modify experiment configuration in configs/config.yml as needed
  • Run a new experiment via python -m run_experiment, or load a recorded experiment exp_name via python -m run_experiment --load exp_name
  • Results of the experiment can be found in exp_data/exp_name/ directory

File Overview

  • environment.yml --- list of the required packages
  • configs/config.yml --- config file containing the experiment/envirnment/agent parameters
  • run_experiment.py --- main module to run the experiment
  • exp_data/ --- directory containing the experiment data, images, checkpoints

  • experiment_component/experiment.py --- setup the experiment
  • experiment_component/data_visualization.py --- compute and report results of an experiment

  • environment_component/environment.py --- setup the environment
  • environment_component/state_space.py --- setup the state space for the environment
  • environment_component/action_space.py --- setup the action space for the environment
  • environment_component/reward_function.py --- setup the reward function for the environment
  • environment_component/feedback_signal.py --- setup the feedback signal that is given to the agent

  • agent_component/agent.py --- setup the agent
  • agent_component/network_architecture.py --- setup the policy for the agent
  • agent_component/loss_function.py --- setup the loss function for the agent

sxf's People

Contributors

sukiboo avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.