f9dd1ba1fcff2fed44153fd75cbcf65e6ccee1af,paysage/backends/pytorch_backend/nonlinearity.py,,acosh,#Any#,44

Before Change


    raise NotImplementedError

def acosh(x):
    raise NotImplementedError

def logit(x):
    raise NotImplementedError

After Change


    return -LOG2 + logaddexp(-x, x)

def acosh(x):
    y = matrix.clip(x, a_min=EPSILON, a_max = 1 - EPSILON)
    return sqrt((y-1)/(1-y)) * torch.acos(x)

def logit(x):
    y = matrix.clip(x, a_min=EPSILON, a_max = 1 - EPSILON)
    return torch.log(y / (1 - y))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: drckf/paysage
Commit Name: f9dd1ba1fcff2fed44153fd75cbcf65e6ccee1af
Time: 2017-02-26
Author: charleskennethfisher@gmail.com
File Name: paysage/backends/pytorch_backend/nonlinearity.py
Class Name:
Method Name: acosh


Project Name: drckf/paysage
Commit Name: f9dd1ba1fcff2fed44153fd75cbcf65e6ccee1af
Time: 2017-02-26
Author: charleskennethfisher@gmail.com
File Name: paysage/backends/pytorch_backend/nonlinearity.py
Class Name:
Method Name: acosh


Project Name: drckf/paysage
Commit Name: 69d6360ca54fc95d3d9db5ca2b6dc5e895189336
Time: 2017-02-26
Author: charleskennethfisher@gmail.com
File Name: paysage/backends/pytorch_backend/nonlinearity.py
Class Name:
Method Name: atanh


Project Name: drckf/paysage
Commit Name: f9dd1ba1fcff2fed44153fd75cbcf65e6ccee1af
Time: 2017-02-26
Author: charleskennethfisher@gmail.com
File Name: paysage/backends/pytorch_backend/nonlinearity.py
Class Name:
Method Name: logit