1e04216661ac623686b0ccde55df448d70d8de12,docs/api/classifier/threshold.py,,,#,7
Before Change
data = pd.read_csv("https://archive.ics.uci.edu/ml/machine-learning-databases/spambase/spambase.data", header=None)
data.rename(columns={57:"is_spam"}, inplace=True)
features = [col for col in data.columns if col != "is_spam"]
// Extract the numpy arrays from the data frame
X = data[features].as_matrix()
y = data.is_spam.as_matrix()
After Change
from functools import partial
BASE = os.path.join("..", "..", "..", os.path.dirname("__file__"))
EXAMPLES = os.path.join(BASE, "examples", "data")
// TODO: Make these examples part of the code base
CHURN_DATASET = os.path.join(EXAMPLES, "churn", "churn.txt")
SPAM_DATASET = os.path.join(EXAMPLES, "spam", "spam.csv")
def load_spam():
df = pd.read_csv(SPAM_DATASET)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances Project Name: DistrictDataLabs/yellowbrick
Commit Name: 1e04216661ac623686b0ccde55df448d70d8de12
Time: 2018-03-24
Author: benjamin@bengfort.com
File Name: docs/api/classifier/threshold.py
Class Name:
Method Name:
Project Name: Esri/raster-functions
Commit Name: 164b392ce45a1baa7523212c451fa3d20cb06450
Time: 2015-05-21
Author: akferoz@esri.com
File Name: setup.py
Class Name:
Method Name: main
Project Name: rtavenar/tslearn
Commit Name: 58cb5e6c44bb9f3f85de74c85584e926b5954610
Time: 2019-06-28
Author: romain.tavenard@univ-rennes2.fr
File Name: setup.py
Class Name:
Method Name: