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
def auc(labels, | |
predictions, | |
weights=None, | |
num_thresholds=200, | |
metrics_collections=None, | |
updates_collections=None, | |
curve='ROC', | |
name=None): | |
with variable_scope.variable_scope(name, 'auc', | |
(labels, predictions, weights)): |
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 seaborn as sns | |
import numpy as np | |
from sklearn.cross_validation import train_test_split | |
from sklearn.linear_model import LogisticRegressionCV | |
from keras.models import Sequential | |
from keras.layers import Dense, Dropout | |
from keras.regularizers import l2 | |
from keras.utils import np_utils | |
import matplotlib.pyplot as plt | |
import keras |