This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.metrics import roc_auc_score | |
from math import sqrt | |
def roc_auc_ci(y_true, y_score, positive=1): | |
AUC = roc_auc_score(y_true, y_score) | |
N1 = sum(y_true == positive) | |
N2 = sum(y_true != positive) | |
Q1 = AUC / (2 - AUC) | |
Q2 = 2*AUC**2 / (1 + AUC) | |
SE_AUC = sqrt((AUC*(1 - AUC) + (N1 - 1)*(Q1 - AUC**2) + (N2 - 1)*(Q2 - AUC**2)) / (N1*N2)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
def callback(request): | |
zoom_verification_token="ZOON_VERIFICATION_TOKEN" | |
access_token='LINE_NOTIFY_TOKEN' | |
re_auth=request.headers['authorization'] | |
#if re_auth == zoom_verification_token:x | |
if re_auth == re_auth: | |
notify_url = 'https://notify-api.line.me/api/notify' | |
header={ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* KX MailMerge | |
* Developer: Kanakorn Horsiritham | |
* Computer Center, Prince of Songkla University | |
* Hat Yai, Songkhla, THAILAND | |
* Create Date: 2016-11-28 | |
* Website: http://sysadmin.psu.ac.th/author/kanakorn-h/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Test | |
echo "Hello World" |