1e04216661ac623686b0ccde55df448d70d8de12,docs/api/classifier/threshold.py,,,#,7

Before Change



if __name__ == "__main__":
    // Load the data set
    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"]

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():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: has2k1/plotnine
Commit Name: 8cb98133b34348491afc80ea32e401bd9e8294c7
Time: 2013-10-20
Author: stonebig
File Name: example.py
Class Name:
Method Name:


Project Name: gyoisamurai/GyoiThon
Commit Name: 636036c79d17a945c18b2b74b970ea758f184a86
Time: 2019-03-07
Author: gyoiler3@gmail.com
File Name: modules/Gyoi_Creator.py
Class Name: Creator
Method Name: __init__