https://github.com/royalhaskoningdhv/sam
Python package for time series analysis and machine learning
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (18.1%) to scientific vocabulary
Keywords
Repository
Python package for time series analysis and machine learning
Basic Info
Statistics
- Stars: 26
- Watchers: 4
- Forks: 6
- Open Issues: 25
- Releases: 0
Topics
Metadata Files
README.md

SAM
SAM (Smart Asset Management) is a Python package for timeseries analysis, anomaly detection and forecasting.
The documentation is available on ReadTheDocs.
Author: Royal HaskoningDHV
Email: ruud.kassing@rhdhv.com
Getting started
Installation
The easiest way to install is package is using pip:
pip install sam
There are different optional dependencies for SAM, if you are unsure use pip install 'sam[all]' other options include plotting (just use the plotting functionality), data_science (all dependencies needed for a data scientist) and data_engineering (dependencies for data engineer).
Keep in mind that the sam package is updated frequently, and after a while, your local version may be out of date with the online documentation. To be sure, run the pip install -U sam command to install the latest version.
Simple example
Below you can find a simple example on how to use one of our timeseries models. For more examples, check our example notebooks
```python from sam.datasets import loadrainbowbeach from sam.models import MLPTimeseriesRegressor from sam.feature_engineering import SimpleFeatureEngineer
data = loadrainbowbeach() X, y = data, data["water_temperature"]
Easily create rolling and time features to be used by the model
simplefeatures = SimpleFeatureEngineer( rollingfeatures=[ ("waveheight", "mean", 24), ("waveheight", "mean", 12), ], timefeatures=[ ("hourofday", "cyclical"), ], keeporiginal=False, )
Define your model, see the docs for all parameters
model = MLPTimeseriesRegressor( predictahead=(1, 2, 3), # Multiple predict aheads are possible quantiles=(0.025, 0.975), # Predict quantile bounds for anomaly detection featureengineer=simple_features, epochs=20, ) model.fit(X, y) ```
Configuration
A configuration file can be created as .config and should be located in your working directory. This configuration file only stores api credentials for now, but more options may be added in the future. The configuration file is parsed using the Python3 configparser, and an example configuration is shown below:
```ini [regenradar] url=https://rhdhv.lizard.net/api/v3/raster-aggregates/? user=user.name password=secret
[openweathermap] apikey=secret ```
Issue tracking and Feature Requests
Anyone can create feature requests or bug reports! You can browse and create new issues on GitHub: https://github.com/RoyalHaskoningDHV/sam/issues
Owner
- Name: Royal HaskoningDHV
- Login: RoyalHaskoningDHV
- Kind: organization
- Website: www.rhdhv.com
- Repositories: 5
- Profile: https://github.com/RoyalHaskoningDHV
Enhancing Society Together
GitHub Events
Total
- Watch event: 2
- Delete event: 3
- Push event: 19
- Pull request review event: 11
- Pull request review comment event: 5
- Pull request event: 5
- Create event: 2
Last Year
- Watch event: 2
- Delete event: 3
- Push event: 19
- Pull request review event: 11
- Pull request review comment event: 5
- Pull request event: 5
- Create event: 2
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Arjan Bontsema | a****a@r****m | 233 |
| fenno | f****o@y****l | 105 |
| Arjan Bontsema | a****n@y****l | 85 |
| Ruben Peters | r****s@r****m | 46 |
| Daan van Es | d****s@y****l | 46 |
| Rutger Kerkhoff | r****r@y****l | 24 |
| Steffen Buergers | s****s@r****m | 16 |
| Daan van Es | d****s@r****m | 15 |
| Ruud Kassing | r****g@r****m | 10 |
| Sebastiaan Grasdijk | s****n@M****l | 10 |
| Tim Paauw | t****m@y****l | 7 |
| Ruben Peters | r****n@y****l | 7 |
| Arjan Bontsema | 3****a | 4 |
| Tim Paauw | t****m@y****l | 4 |
| Murşit Sezen | m****n@r****m | 4 |
| Bart van der Lugt | B****t@h****l | 3 |
| Your Name | y****u@e****m | 3 |
| Loes Knoben | l****s@y****l | 3 |
| Philip Roeleveld | p****p@l****l | 3 |
| Arjan Bontsema | A****a@h****l | 3 |
| Miguel Hernandez | m****z@r****m | 2 |
| mi2354 | 3****4 | 2 |
| Rutger Kerkhoff | r****f@r****m | 1 |
| Daan van Es | d****s@g****m | 1 |
| Steffen Bürgers | 3****s | 1 |
| Daan van Es | v****s@M****e | 1 |
| miguel | m****r@g****m | 1 |
| Ruben Peters | r****1@p****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 39
- Total pull requests: 55
- Average time to close issues: 18 days
- Average time to close pull requests: 5 days
- Total issue authors: 4
- Total pull request authors: 6
- Average comments per issue: 0.49
- Average comments per pull request: 0.29
- Merged pull requests: 45
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 10
- Average time to close issues: N/A
- Average time to close pull requests: 12 days
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 6
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- sbuergers (14)
- abontsema (13)
- rubenpeters91 (11)
- philiproeleveld (1)
Pull Request Authors
- abontsema (19)
- rubenpeters91 (12)
- amobular (11)
- sbuergers (6)
- philiproeleveld (3)
- mi2354 (3)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 1,584 last-month
- Total dependent packages: 1
- Total dependent repositories: 7
- Total versions: 32
- Total maintainers: 5
pypi.org: sam
Time series anomaly detection and forecasting
- Documentation: https://sam.readthedocs.io/
- License: MIT
-
Latest release: 5.1.0
published 6 months ago
Rankings
Maintainers (5)
Dependencies
- actions/checkout v3 composite
- actions/setup-python v3 composite
- actions/checkout v3 composite
- actions/setup-python v3 composite
- pypa/gh-action-pypi-publish 27b31702a0e7fc50959f5ad993c78deac1bdfc29 composite
- actions/checkout v3 composite
- actions/setup-python v3 composite
- codecov/codecov-action v3 composite
- numpy >=1.22,<1.24
- pandas ~=1.3
- scikit-learn ~=1.1,<1.3