Skip to content

Eppo-exp/demo-company-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo_company_data

About

This project provides functionality for generating experimentation benchmark data for a variety of common use cases. Examples include general user level randomization and metrics, experiments that are randomized on an anonymous ID but measured using user ID-level metrics, and clustered experiments (e.g., experiments randomized by company, but measured using user-level metrics).

Specific use cases are defined in yaml. You can find several examples in the use-cases directory.

Setup

Currently, the project supports writing data to a Snowflake account. If you'd like to use a different warehouse, you'll simply need to implement a connector similar to the one defined in src/snowflake_connector.py.

Preparing local environment local

Create a file local/profile.yml:

account: ...
user: ...
password: ...
role: ...
database: ...
warehouse: ...
schema: ...

Next, install dependencies (ideally in a virtual environment):

pip install -r requirements.txt

Simulate data and push to snowflake

Run main.py and pass in the use case file you'd like to use:

python main.py use-cases/anonymous_users.yml

You should now see data in the Snowflake warehouse specified in local/profile.yml!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages