f8df6021a1343d511d4c9b4c108ec5b683ce5487,modAL/batch.py,,select_instance,#,45

Before Change


    // Determine our alpha parameter as |U| / (|U| + |D|). Note that because we
    // append to X_training and remove from X_uncertainty within `ranked_batch`,
    // :alpha: is not fixed throughout our model"s lifetime.
    n_labeled, n_unlabeled = X_training.shape[0], X_uncertainty.shape[0]
    alpha = n_unlabeled / (n_unlabeled + n_labeled)

    // Isolate our original unlabeled records from their predicted class uncertainty.
    unlabeled_records, uncertainty_scores = X_uncertainty[:, :-1], X_uncertainty[:, -1]

After Change


    // we selected that row for labeling.
    n_labeled_records, _ = X_training.shape

    X_uncertainty = X_uncertainty[~np.isnan(X_uncertainty).all(axis=1)]
    n_unlabeled, _ = X_uncertainty.shape

    // Determine our alpha parameter as |U| / (|U| + |D|). Note that because we
    // append to X_training and remove from X_uncertainty within `ranked_batch`,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: modAL-python/modAL
Commit Name: f8df6021a1343d511d4c9b4c108ec5b683ce5487
Time: 2018-08-14
Author: dannyofig@gmail.com
File Name: modAL/batch.py
Class Name:
Method Name: select_instance


Project Name: scikit-learn-contrib/boruta_py
Commit Name: b54962613e66dc057a2c67000573d72db04034d4
Time: 2018-02-08
Author: dirk.biesinger@gmail.com
File Name: boruta/boruta_py.py
Class Name: BorutaPy
Method Name: _assign_hits


Project Name: scikit-learn-contrib/boruta_py
Commit Name: ebc1c0d864a99a1fd70ebd4eea54564c41dbcdc7
Time: 2016-12-14
Author: wout@bittremieux.be
File Name: boruta/boruta_py.py
Class Name: BorutaPy
Method Name: _nanrankdata


Project Name: nilmtk/nilmtk
Commit Name: 3ca08d6934b6800a329172cf620bbff32b0d64d7
Time: 2014-12-18
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name:
Method Name: combine_chunks_from_generators