hommmer
A simple Marketing Mix Modeling library in Python.
*** NOTE: this library is in alpha and not yet working. ***
Quick start
1. Install the library
pip install hommmer
2. Build the model
# import the library
import hommmer as mmm
# download example data
mmm.load_duff()
# list media columns
media = ['facebook', 'google', 'tiktok']
# build the model
model = mmm.build('duff.csv', 'sales', media)
Required
- path: the location of the file with your data
- target: the column with your conversions or conversion value
- media: a list of the columns with media spend
Optional
- organic: a list of the organic columns. default: everything not listed in
media. - date: the column with your date labels (YYYY-MM-DD). default:
date - verbose: see what the model is doing by printing logs. default:
False - override: use custom settings for aspects of the model. default:
{}
Provide at least 1 year of weekly data where the date column is the start of the week (Monday).
3. Use the results
# show the charts and metrics
model.show()
# save locally to png and csv
model.save()
Other features
Our solution is fully automated, but if you want to build a model manually, or use our helper functions for cleaning data, you can import from our sublibraries.
from hommmer.cleaners import transpose
from hommmer.features import adstocks
from hommmer.charts import accuracy
from hommmer.metrics import nrsme
from hommmer.models import Linear
About Marketing Mix Modeling
Marketing Mix Modeling (MMM) was introduced in the 1960s to match spikes and dips in sales to actions taken in marketing. No user data required - it's privacy-friendly, adblocker-proof and works across all channels (even offline).
What used to be a 3-6 month, $50k+ job for the Fortune 500, is now an always-on, automated source of truth for startups like Harry's, HelloFresh and Monday․com. Even Facebook and Google are getting in on the game with research papers and open-source projects.
About hommmer
Most modeling libraries, like Statsmodels, SciKitLearn and Facebook's Robyn, cater to statisticians and data scientists. They offer complex configuration options and advanced algorithms only accessible to the biggest companies spending millions on marketing, who can afford to spend 3-6 months on a solution.
So most Marketing Mix Modeling by small businesses and startups is done in Excel. But there are things you can't do in Excel, like automatically building 1,130 models to see which one works best. We'd like MMM to be in the hands of more people, but that can't happen if you need to be a nuclear physicist to use it.
hommmer is built for the rest of us. The 'everyman' (of any gender) modeling hobbyist, for which MMM is just one of many jobs on the todo list. It's designed to be simple to use, but powerful underneath, without getting you into trouble. Over-simplifying things will annoy the statisticians (Doh!), but it'll make allocating budget quick and easy.
Design Principles:
1. Excel is the operating system
Full compatability with Excel / GSheets / CSV for importing and exporting.
2. Don't make me think
All user input should be treated as error. Everything needs a good default.
3. Good is better than great
Where there's a choice between optimization and usefullness, take the latter.
4. Better data beats fancier algorithms
We focus on helper functions to clean data, and treat algorithms as commodities.
5. We know less than the client
Assume the client knows what they're doing, then try to prove otherwise.
Contributors
These people are building hommmer for fun in their spare time. Cheers! 🍻
hammer-mt 💻 |
Metadata
Release files for hommmer 0.0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hommmer-0.0.0.4.tar.gz | 27.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hommmer-0.0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 81.2 kB
Release files / hommmer-0.0.0.4.tar.gz
| Download URL | hommmer-0.0.0.4.tar.gz |
|---|---|
| Size | 27.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b532549d21167bc774db1fc6458178b8763cf79c710ec140b81bcb391a4357ea
|
|
BLAKE2b-256 checksum How to use checksums |
e3a8ab8237ca3d718c515db4a02b68513457aeba06ba9d05746638358f6adfef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1
|
Release files / hommmer-0.0.0.4-py3-none-any.whl
| Download URL | hommmer-0.0.0.4-py3-none-any.whl |
|---|---|
| Size | 53.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e2d88795f8bcfbda8a58e5b8e1597d1493d8c7313431150a40cb86e642ff1e2
|
|
BLAKE2b-256 checksum How to use checksums |
42fd593661548a19de96ca243ba7fa6ab86caff312376e86f9338644f5213011
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1
|
Security for hommmer 0.0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.