bdf67bc292175a81c63deca27a2056d566db050b,dipy/reconst/dti.py,,restore_fit_tensor,#Any#Any#Any#Any#Any#,1182

Before Change




        // Finally, converge on some solution and use it:
        this_dti = np.concatenate([np.ravel(x) for x in
                                   decompose_tensor(
                        from_lower_triangular(this_tensor[:6]).reshape(3,3))])

        dti_params[vox] = this_dti

    dti_params.shape = data.shape[:-1] + (12,)
    restore_params = dti_params
    return restore_params

After Change


        // If leastsq failed to converge and produced nans, we"ll resort to the
        // OLS solution in this voxel:
        except np.linalg.LinAlgError:
            print(vox)
            dti_params[vox, :] = start_params


    dti_params.shape = data.shape[:-1] + (12,)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: nipy/dipy
Commit Name: bdf67bc292175a81c63deca27a2056d566db050b
Time: 2013-07-21
Author: arokem@gmail.com
File Name: dipy/reconst/dti.py
Class Name:
Method Name: restore_fit_tensor


Project Name: deepchem/deepchem
Commit Name: 3600c23f6c7e20ac9492f1dd3604019b933923d6
Time: 2016-04-26
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/sklearn_models/__init__.py
Class Name: SklearnModel
Method Name: fit


Project Name: calico/basenji
Commit Name: a535a61e38a5cbc623641d900ec30cc1f0c28ca1
Time: 2019-06-24
Author: geoff.fudenberg@gmail.com
File Name: bin/basenji_data_4C_read.py
Class Name:
Method Name: main


Project Name: biolab/orange3
Commit Name: 0c2e1e8be562519c6940640d1f1f0d0d0d75ae95
Time: 2013-06-03
Author: jure.zbontar@gmail.com
File Name: Orange/classification/linear_regression.py
Class Name:
Method Name: