Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niklasvonm/ensemblelearning
Python package for optimal aggregation of bagged ensemble models
https://github.com/niklasvonm/ensemblelearning
ensemble-model machine-learning
Last synced: 23 days ago
JSON representation
Python package for optimal aggregation of bagged ensemble models
- Host: GitHub
- URL: https://github.com/niklasvonm/ensemblelearning
- Owner: NiklasvonM
- License: mit
- Created: 2023-04-09T07:23:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-15T22:08:49.000Z (9 months ago)
- Last Synced: 2024-02-16T22:36:11.611Z (9 months ago)
- Topics: ensemble-model, machine-learning
- Language: Python
- Homepage:
- Size: 78.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Mypy](https://github.com/NiklasvonM/EnsembleLearning/actions/workflows/mypy.yml/badge.svg)](https://github.com/NiklasvonM/EnsembleLearning/actions/workflows/mypy.yml)
[![Ruff](https://github.com/NiklasvonM/EnsembleLearning/actions/workflows/ruff.yml/badge.svg)](https://github.com/NiklasvonM/EnsembleLearning/actions/workflows/ruff.yml)
[![Tests](https://github.com/NiklasvonM/EnsembleLearning/actions/workflows/tests.yml/badge.svg)](https://github.com/NiklasvonM/EnsembleLearning/actions/workflows/tests.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)# EnsembleLearning
## Usage
```python
from ensemble_learning.local_weights import local_weightspredictions = [1, 3, 5, 7, 9]
target = 5weights = local_weights(predictions, target)
print("Weights:", weights)
```## Examples
There is an example demonstrating how to use the module with time series forecasting models, such as ARIMA, Exponential Smoothing, and Prophet. To run the example, you need to install additional dependencies:
```bash
pip install ensemble-learning[examples]
python examples/time_series_local_weights.py
```