f497ac84d909cffd80d0d6b9c9166b65633c3711,libact/query_strategies/query_by_committee.py,QueryByCommittee,_labeled_uniform_sample,#QueryByCommittee#Any#,159

Before Change


        samples = [labeled_entries[
            self.random_state_.randint(0, len(labeled_entries))
        ]for _ in range(sample_size)]
        return Dataset(*zip(*samples))

    def teach_students(self):
        
        Train each model (student) with the labeled data using bootstrap

After Change


        X, y = self.dataset.get_labeled_entries()
        samples_idx = [
            self.random_state_.randint(0, X.shape[0]) for _ in range(sample_size)]
        return Dataset( X[samples_idx], np.array(y)[samples_idx] )
        // return self.dataset.labeled_uniform_sample(sample_size, replace=True)

    def teach_students(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: ntucllab/libact
Commit Name: f497ac84d909cffd80d0d6b9c9166b65633c3711
Time: 2019-06-30
Author: eugene2528@gmail.com
File Name: libact/query_strategies/query_by_committee.py
Class Name: QueryByCommittee
Method Name: _labeled_uniform_sample


Project Name: PyMVPA/PyMVPA
Commit Name: 5a82a7214fbfca75e55d53375becfab16fc9e952
Time: 2009-10-02
Author: michael.hanke@gmail.com
File Name: mvpa/tests/test_datasetng.py
Class Name:
Method Name: test_combined_samplesfeature_selection


Project Name: PyMVPA/PyMVPA
Commit Name: fe3b6dd853004ad7a05a253003f5eafd28d4d8d5
Time: 2010-01-04
Author: michael.hanke@gmail.com
File Name: mvpa/measures/anova.py
Class Name: CompoundOneWayAnova
Method Name: _call


Project Name: idaholab/raven
Commit Name: 0ca2ef263f600ee029f208dfca8fef7b8fe5038b
Time: 2020-08-23
Author: mohammad.abdo@inl.gov
File Name: framework/Optimizers/GeneticAlgorithm.py
Class Name: GeneticAlgorithm
Method Name: _useRealization


Project Name: tensorlayer/tensorlayer
Commit Name: f2073333b710a340403843763ba60eb1e6699916
Time: 2019-04-11
Author: rundi_wu@pku.edu.cn
File Name: examples/data_process/tutorial_tf_dataset_voc.py
Class Name:
Method Name: