About this code

This is the backend code for the reinforcement learning (RL) API used in the MiWaves study. It is designed to create an API for a RL service aimed at assisting emerging adults with monitoring and reducing their cannabis use. For more information on MiWaves, visit the link above.

What method does this code implement?

This code configures a Flask application that serves a RL API. The process includes setting up the necessary environment with Conda, configuring and initializing a PostgreSQL database, and running the server. The API is structured with routes for authentication, server logic, and the RL algorithm, and it uses the PostgreSQL database for data storage and management.

How can a behavioral scientist use this code?

A behavioral scientist could use the MiWaves RL Service API to develop, test, and deploy adaptive interventions using RL algorithms.

Join the d3center Mailing List

Keep up to date with the latest news, events, software releases, learning modules, and resources from the d3center.