f966ef79ae7c47b93029e065b3ee6686bab5bff7,skimage/measure/fit.py,LineModel,predict_y,#LineModel#Any#Any#,147
Before Change
if params is None:
params = self.params
dist, theta = params
return (dist - x * math.cos(theta) ) / math.sin(theta)
class LineModelND(BaseModel):
Total least squares estimator for N-dimensional lines.
After Change
if params is None:
params = self.params
assert params is not None
if len(params) != 2:
raise ValueError("Parameters are defined by 2 numbers.")
y = params[0] * x + params[1]
return y
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: scikit-image/scikit-image
Commit Name: f966ef79ae7c47b93029e065b3ee6686bab5bff7
Time: 2017-03-29
Author: jirka.borovec@seznam.cz
File Name: skimage/measure/fit.py
Class Name: LineModel
Method Name: predict_y
Project Name: scikit-image/scikit-image
Commit Name: f966ef79ae7c47b93029e065b3ee6686bab5bff7
Time: 2017-03-29
Author: jirka.borovec@seznam.cz
File Name: skimage/measure/fit.py
Class Name: LineModel
Method Name: predict_x
Project Name: asyml/texar
Commit Name: b5c8bdd81be77eac5434a476f62c5bdef56f1838
Time: 2019-07-01
Author: haoranshi97@gmail.com
File Name: texar/modules/embedders/position_embedders.py
Class Name: SinusoidsPositionEmbedder
Method Name: __init__