Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 24 days 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 (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-19T16:25:17.000Z (7 months ago)
- Last Synced: 2024-09-29T09:21:16.336Z (about 1 month ago)
- Topics: cache, caching, helper, import-hooks, machine-learning, monkey-patching, pandas, python, sklearn, tensorflow, utils
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 1
- Watchers: 3
- 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_dbcaching_patch_pandas_db()
import pandas as pddf = 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_estimatorscaching_patch_sklearn_estimators()
...
```