d16d48cdffe25e67ac254993dd305e25d405d302,tpot/tpot.py,TPOT,_random_mutation_operator,#TPOT#Any#,1620

Before Change


            Returns the individual with one of the mutations applied to it

        
        roll = np.random.random()
        if roll <= 1/3:
            return gp.mutUniform(individual, expr=self._toolbox.expr_mut, pset=self._pset)
        elif roll <= 2/3:
            return gp.mutInsert(individual, pset=self._pset)

After Change


            partial(gp.mutInsert, pset=self._pset),
            partial(gp.mutShrink)
        ]
        return np.random.choice(mutation_techniques)(individual)

    def _gen_grow_safe(self, pset, min_, max_, type_=None):
        Generate an expression where each leaf might have a different depth
        between *min* and *max*.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: EpistasisLab/tpot
Commit Name: d16d48cdffe25e67ac254993dd305e25d405d302
Time: 2016-06-20
Author: supacoofoo@gmail.com
File Name: tpot/tpot.py
Class Name: TPOT
Method Name: _random_mutation_operator


Project Name: ContextLab/hypertools
Commit Name: 878be5344a7cca66858ba82981713099bde5f12f
Time: 2016-12-19
Author: andrew.heusser@gmail.com
File Name: python/examples/hypertools_demo-PPCA.py
Class Name:
Method Name:


Project Name: ContextLab/hypertools
Commit Name: edaf3f4c2303b8c0364266d092335733b66ffbd0
Time: 2016-12-19
Author: andrew.heusser@gmail.com
File Name: python/examples/hypertools_demo-PPCA.py
Class Name:
Method Name: