Skip to content

Instantly share code, notes, and snippets.

View alexcombessie's full-sized avatar
🤓
Building @Giskard-AI - Open-Source CI/CD for ML products

Alex Combessie alexcombessie

🤓
Building @Giskard-AI - Open-Source CI/CD for ML products
View GitHub Profile
@springcoil
springcoil / cross_validation.py
Created August 28, 2016 17:19
Here's an example of Cross-validation for PyFlux - needs some refactoring
def time_series_cross_validation_2(model, data, params, number_folds=10):
"""
Performs a k-fold cross-validation on a Time Series as described by
Rob Hyndman.
See Also:
http://robjhyndman.com/hyndsight/crossvalidation/
Arguments:
model: a model somewhere...
database (numpy.ndarray): uses 'data' matrix to perform
cross-validation.
@bsweger
bsweger / useful_pandas_snippets.md
Last active April 19, 2024 18:04
Useful Pandas Snippets

Useful Pandas Snippets

A personal diary of DataFrame munging over the years.

Data Types and Conversion

Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)