7b5cd32b8872c4892ac6307f57758d682929cb88,pymc3/step_methods/smc.py,,sample_smc,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,391

Before Change


    if homepath is None:
        raise TypeError("Argument `homepath` should be path to result_directory.")

    if "n_jobs" in kwargs:
        cores = kwargs["n_jobs"]
        warnings.warn(
            "The n_jobs argument has been deprecated. Use cores instead.",
            DeprecationWarning)
    if cores > 1:

After Change


        step.resampling_indexes = step.resample(chains)
        step.chain_previous_lpoint = step.get_chain_previous_lpoint(mtrace, chains)

        x_chains = nr.randint(0, chains, size=samples)

        sample_args["draws"] = step.n_steps_final
        sample_args["step"] = step
        sample_args["stage_path"] = stage_handler.stage_path(step.stage)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pymc-devs/pymc3
Commit Name: 7b5cd32b8872c4892ac6307f57758d682929cb88
Time: 2018-06-22
Author: aloctavodia@gmail.com
File Name: pymc3/step_methods/smc.py
Class Name:
Method Name: sample_smc


Project Name: kbardool/keras-frcnn
Commit Name: 0c5caf02550e92e333409685ae9e4a3afc4104aa
Time: 2017-04-24
Author: yannhenon@gmail.com
File Name: keras_frcnn/pascal_voc_parser.py
Class Name:
Method Name: get_data


Project Name: reinforceio/tensorforce
Commit Name: 1c7c76e3ac8d1c0b10a5f91efcf56d804d8bca26
Time: 2017-07-25
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/agents/random_agent.py
Class Name: RandomAgent
Method Name: act