Skip to content

Instantly share code, notes, and snippets.

@sureshsigma
sureshsigma / Model_Evaluation.py
Last active July 22, 2018 10:54
Model Evaluation Measures
class SP_Dev:
import numpy as np
import pandas as pd
def __init__(self,prob,resp):
self.prob=prob
self.resp=resp
def Hosmer_Lemeshow(self,g):
from scipy.stats import chi2