https://github.com/tpvasconcelos/maurice
Ship better machine learning projects, faster!
https://github.com/tpvasconcelos/maurice
cache caching helper import-hooks machine-learning monkey-patching pandas python sklearn tensorflow utils
Last synced: about 2 months ago
JSON representation
Ship better machine learning projects, faster!
- Host: GitHub
- URL: https://github.com/tpvasconcelos/maurice
- Owner: tpvasconcelos
- Created: 2021-01-06T21:19:36.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-12-26T13:59:09.000Z (3 months ago)
- Last Synced: 2025-12-28T01:44:45.824Z (3 months ago)
- Topics: cache, caching, helper, import-hooks, machine-learning, monkey-patching, pandas, python, sklearn, tensorflow, utils
- Language: Python
- Homepage:
- Size: 58.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Maurice
## Installing
Install and update using `pip`:
```shell
pip install -U maurice
```
## Simple Examples
### Automatic caching
Add any of the following patches at the top of your scripts
Cache SQL queries executed from the pandas library
```python
from maurice.patchers import caching_patch_pandas_db
caching_patch_pandas_db()
import pandas as pd
df = pd.read_sql_query(con=your_connection, sql="select * from your_table")
```
Cache `.fit()` calls from any `sklearn` Estimator (...)
```python
from maurice.patchers import caching_patch_sklearn_estimators
caching_patch_sklearn_estimators()
...
```