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

Before Change


    y = data.is_spam.as_matrix()

    // Instantiate the classification model and visualizer
    logistic = LogisticRegression()
    visualizer = ThreshViz(logistic)

    visualizer.fit(X, y)  // Fit the training data to the visualizer
    g = visualizer.poof(outpath="images/thresholdviz.png") // Draw/show/poof the data

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

Frequency: 3

Non-data size: 4

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: Hironsan/anago
Commit Name: b1ec0299de53bdc03870c39b00a1c88ff35cf0ea
Time: 2018-06-01
Author: hiroki.nakayama.py@gmail.com
File Name: examples/ner_glove.py
Class Name:
Method Name:


Project Name: rkcosmos/deepcut
Commit Name: 0347e36737b25671dff14c6c1bbbe5d090d71a06
Time: 2017-06-28
Author: titipata@allenai.org
File Name: deepcut/train.py
Class Name:
Method Name: train_model