The open model hub is a growing collection of data models that you can take, combine and run for product analysis and exploration.
Project description
Open model hub
The open model hub is a toolkit with functions and models that can run directly on a full dataset collected with Objectiv's Tracker SDKs. All models are open-source, free to use, and can easily be combined to build advanced compound models.
How to use the open model hub
Three types of functions/models are provided:
- Helper functions: simplify manipulating and analyzing the data.
- Aggregation models: enable running some of the more common data analyses and product analytics metrics.
- Machine learning models.
Modeling behavior of users and groups is enabled through configurable Identity Resolution.
See how to get started in your notebook and the example notebooks, and install the model hub package directly from PyPI:
pip install objectiv-modelhub
Powered by Bach
The open model hub is powered by Bach: Objectiv’s data modeling library. With Bach, you can compose models with familiar Pandas-like dataframe operations that use an SQL abstraction layer to run on the full dataset. Models can be output to SQL with one command.
Example notebooks
We have some example notebooks in the /notebooks/ directory of the repository that demonstrate how you can work with the data in Python. These notebooks can run on your collected data. The only thing that might need to be adjusted is how the connection to the database is made (see below). All other instructions live in the README.md in the link above.
Set up development environment
This section is only required for development on the objectiv-modelhub package.
virtualenv venv
source venv/bin/activate
export PYTHONPATH=.
# You probably want to remove objectiv-modelhub if you did not just create a fresh venv
pip uninstall objectiv-modelhub
# This will fail if the postgres lib development headers are not present if so, then on Ubuntu that can
# be fixed with: sudo apt-get install libpq-dev
pip install -r requirements.txt
# in case your notebook can not find all of the packages you just installed
# you may also need to create a kernel config for this venv:
ipython kernel install --user --name=objectiv_venv
# now restart the notebook server, and from the kernel menu select 'objectiv_venv'
PyCharm
- Mark the following directories as "Sources root":
/bach/
/modelhub/
- Set
modelhub/venv/bin/python
as the default interpreter for the project
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for objectiv_modelhub-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 765a933fb26e8ef86f73ff4fd57f020cc50cbd3d2abf9436117e4a1a7ebc0f54 |
|
MD5 | 9e53a2e9ce116e275eea7c6f7ac126e3 |
|
BLAKE2b-256 | 0e06d238572b6cbbf45916d4ff10d594ab97097c35a2211406a6589167241e4f |