2781d6379f4fe9f5140a6c3967785424873072a7,mr/fitting.py,,NLS,#,61

Before Change


    ys = DataFrame(data) // in case it"s a Series
    x = Series(data.index.values, index=data.index, dtype=np.float64)
    if weights is None:
        weights = np.ones_like(x)
    assert weights.size == x.size, \
        "weights must be an array-like sequence of the same length as data."
    if hasattr(params, "__call__"):
        p = params(ys.icol(0))

After Change


    // params to index the results DataFrame. 
    ys = DataFrame(data) // in case it"s a Series
    x = Series(data.index.values, index=data.index, dtype=np.float64)
    if weights is not None:
        assert weights.size == x.size, \
            "weights must be an array-like sequence the same length as data."
    if hasattr(params, "__call__"):
        p = params(ys.icol(0))
    values = DataFrame(index=p.keys())
    stderr = DataFrame(index=p.keys())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: soft-matter/trackpy
Commit Name: 2781d6379f4fe9f5140a6c3967785424873072a7
Time: 2013-01-23
Author: daniel.b.allan@gmail.com
File Name: mr/fitting.py
Class Name:
Method Name: NLS


Project Name: tensorflow/ranking
Commit Name: 3c2600a74180317086428cff518b1fc995452e64
Time: 2021-02-03
Author: no-reply@google.com
File Name: tensorflow_ranking/python/losses_impl.py
Class Name: MeanSquaredLoss
Method Name: compute_unreduced_loss


Project Name: GRAAL-Research/pytoune
Commit Name: c78c065b44a97ee3afe2172d2213479622a29562
Time: 2020-08-14
Author: fredy_14@live.fr
File Name: poutyne/framework/metrics/epoch_metrics/fscores.py
Class Name: FBeta
Method Name: forward


Project Name: tensorflow/ranking
Commit Name: 85cb4440b63de8744ddfc9a213f2cdad535d5224
Time: 2021-02-03
Author: no-reply@google.com
File Name: tensorflow_ranking/python/losses_impl.py
Class Name: SigmoidCrossEntropyLoss
Method Name: compute_unreduced_loss


Project Name: tensorflow/ranking
Commit Name: a979a9419b90dfaaf50c04b4806748dbcfc0b379
Time: 2021-02-03
Author: no-reply@google.com
File Name: tensorflow_ranking/python/losses_impl.py
Class Name: ClickEMLoss
Method Name: compute_unreduced_loss