efd6b7c39fbefbb1e6f5fdc67ff1d2c64f65d46e,lazyflow/operators/obsolete/classifierOperators.py,OpTrainRandomForest,getOutSlot,#OpTrainRandomForest#Any#Any#Any#,30

Before Change



        // TODO: Make treecount configurable via an InputSlot
        RF=vigra.learning.RandomForest(100)
        try:
            RF.learnRF(featMatrix.astype(numpy.float32),labelsMatrix.astype(numpy.uint32))
        except:
            logger.error( "ERROR: could not learn classifier" )
            logger.error( "featMatrix={}, labelsMatrix={}".format(featMatrix, labelsMatrix) )
            logger.error( "featMatrix shape={}, dtype={}".format(featMatrix.shape, featMatrix.dtype) )
            logger.error( "labelsMatrix shape={}, dtype={}".format(labelsMatrix.shape, labelsMatrix.dtype ) )
            raise

        result[0]=RF

    def setInSlot(self, slot, key, value):
        if self.inputs["fixClassifier"].value == False:

After Change


            requests.append(req)

        for r in requests:
            r.wait()

        return result

    def setInSlot(self, slot, key, value):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ilastik/ilastik
Commit Name: efd6b7c39fbefbb1e6f5fdc67ff1d2c64f65d46e
Time: 2012-09-13
Author: christoph.straehle@iwr.uni-heidelberg.de
File Name: lazyflow/operators/obsolete/classifierOperators.py
Class Name: OpTrainRandomForest
Method Name: getOutSlot


Project Name: eth-cscs/reframe
Commit Name: 24b605e8ec48b9b67e507ca959eaed4ff4afc6a6
Time: 2018-02-14
Author: karakasis@cscs.ch
File Name: reframe/utility/os.py
Class Name:
Method Name: run_command


Project Name: automl/SMAC3
Commit Name: 14b7136d0e6cafce71bf41a266a7a2886430d946
Time: 2020-09-02
Author: 44504424+franchuterivera@users.noreply.github.com
File Name: smac/optimizer/smbo.py
Class Name: SMBO
Method Name: run