28c8934ebb6c3e7bc54ba85de201973deb7b01e7,alphapy/__main__.py,,prediction_pipeline,#Any#,274

Before Change


    if feature_selection:
        logger.info("Getting Univariate Support")
        full_path = SSEP.join([directory, "model", "features_support_uni.pkl"])
        support = joblib.load(full_path)
        all_features = all_features[:, support]

    // Load the RFE support vector, if any

After Change


    X_predict, _ = get_data(model, Partition.predict)

    // Load feature_map
    model = load_feature_map(directory)

    // Drop features

    logger.info("Dropping Features: %s", drop)
    X_predict = drop_features(X_predict, drop)

    // Log feature statistics

    logger.info("Feature Statistics")
    logger.info("Number of Prediction Rows    : %d", X_predict.shape[0])
    logger.info("Number of Prediction Columns : %d", X_predict.shape[1])

    // Apply treatments to the feature matrix
    all_features = apply_treatments(model, X_predict)

    // Create initial features
    all_features = create_features(model, all_features)

    // Generate interactions
    all_features = create_interactions(model, all_features)

    // Remove low-variance features
    all_features = remove_lv_features(all_features)

    // Load the univariate support vector, if any

    if feature_selection:
        logger.info("Getting Univariate Support")
        support = model.feature_map["uni_support"]
        all_features = all_features[:, support]

    // Load the RFE support vector, if any

    if rfe:
        logger.info("Getting RFE Support")
        support = model.feature_map["rfe_support"]
        all_features = all_features[:, support]

    // Load predictor
    predictor = load_predictor(directory)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: ScottfreeLLC/AlphaPy
Commit Name: 28c8934ebb6c3e7bc54ba85de201973deb7b01e7
Time: 2017-04-16
Author: Mark.R.Conway@gmail.com
File Name: alphapy/__main__.py
Class Name:
Method Name: prediction_pipeline


Project Name: keras-team/keras
Commit Name: b0500764a8a451882262328c0f1676402fb0a783
Time: 2017-02-18
Author: francois.chollet@gmail.com
File Name: keras/datasets/mnist.py
Class Name:
Method Name: load_data


Project Name: nilmtk/nilmtk
Commit Name: 51f56cd2f529cbf92c0492c34510c040ed1b77fd
Time: 2014-05-22
Author: jack-list@xlk.org.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: power_series


Project Name: JasonKessler/scattertext
Commit Name: 0ed3e9e8b5383390506772029f1afa9f1f90819f
Time: 2018-01-19
Author: jason.kessler@gmail.com
File Name: demo_log_odds_ratio_prior.py
Class Name:
Method Name: