b1e4247e6f2fba4da8ad305f2e04d4f81cce9525,qiskit_aqua/algorithms/adaptive/qsvm/svm_variational.py,SVM_Variational,init_params,#SVM_Variational#Any#Any#,67

Before Change


        optimizer = get_optimizer_instance(opt_params["name"])
        // hard-coded params if SPSA is used.
        if opt_params["name"] == "SPSA" and opt_params["parameters"] is None:
            opt_params["parameters"] = np.asarray([4.0, 0.1, 0.602, 0.101, 0.0])
        optimizer.init_params(opt_params)

        // Set up variational form
        fea_map_params = params.get(QuantumAlgorithm.SECTION_KEY_FEATURE_MAP)

After Change


        self._ret = {}

    def init_params(self, params, algo_input):
        algo_params = params.get(QuantumAlgorithm.SECTION_KEY_ALGORITHM)
        override_spsa_params = algo_params.get("override_SPSA_params")

        // Set up optimizer
        opt_params = params.get(QuantumAlgorithm.SECTION_KEY_OPTIMIZER)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: b1e4247e6f2fba4da8ad305f2e04d4f81cce9525
Time: 2018-08-30
Author: woodsp@us.ibm.com
File Name: qiskit_aqua/algorithms/adaptive/qsvm/svm_variational.py
Class Name: SVM_Variational
Method Name: init_params


Project Name: brian-team/brian2
Commit Name: 9a44bfee4725073937dc2c96f1c89ca30bd641c8
Time: 2012-10-24
Author: marcel.stimberg@ens.fr
File Name: brian2/units/fundamentalunits.py
Class Name: UnitRegistry
Method Name: __getitem__


Project Name: NifTK/NiftyNet
Commit Name: ebbc9fc0fc52a650ebd5bbbd954733bada35672e
Time: 2017-08-08
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/histogram_normalisation.py
Class Name: HistogramNormalisationLayer
Method Name: layer_op