/Ramp-Score

A metric to quantify the solar ramp events prediction accuracy.

Primary LanguagePythonApache License 2.0Apache-2.0

Ramp-Score and time distortion index

Two metrics to quantify the solar ramp events prediction accuracy.

How to use the code

pip install tslearn
# example
import pandas as pd
import numpy as np
from ramp_score import ramp_score, TDI
data = pd.read_csv('your data.csv')
y_true = data['true']
y_pred = data['pred']
results = {}
results['ramp_score'] = ramp_score(y_pred, y_true)
results['TDI'] = TDI(y_pred, y_true)