Skip to content

A metric to quantify the solar ramp events prediction accuracy.

License

Notifications You must be signed in to change notification settings

JOTYtao/Ramp-Score

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A metric to quantify the solar ramp events prediction accuracy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages