0430f0811e0a5cd377b9c377e915bbbbb1572ce7,pycox/models/deephit.py,DeepHit,predict_cif,#DeepHit#Any#Any#Any#Any#Any#Any#,372

Before Change


        
        pmf = self.predict_pmf(input, batch_size, eval_, to_cpu, num_workers, False)
        cif = pmf.cumsum(1)
        if numpy is None:
            if tuplefy(input).type() is np.ndarray:
                cif = cif.cpu().numpy()
        elif numpy is True:
                cif = cif.cpu().numpy()
        return cif

    def predict_survival_function(self, input, batch_size=8224, eval_=True, to_cpu=False,
                                  num_workers=0, numpy=None):

After Change


        
        pmf = self.predict_pmf(input, batch_size, False, eval_, to_cpu, num_workers)
        cif = pmf.cumsum(1)
        return array_or_tensor(cif, numpy, input)

    def predict_pmf(self, input, batch_size=8224, numpy=None, eval_=True,
                     to_cpu=False, num_workers=0):
        Predict the probability mass fuction (PMF) for `input`.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: havakv/pycox
Commit Name: 0430f0811e0a5cd377b9c377e915bbbbb1572ce7
Time: 2019-10-02
Author: haavard.kvamme@gmail..com
File Name: pycox/models/deephit.py
Class Name: DeepHit
Method Name: predict_cif


Project Name: havakv/pycox
Commit Name: 0430f0811e0a5cd377b9c377e915bbbbb1572ce7
Time: 2019-10-02
Author: haavard.kvamme@gmail..com
File Name: pycox/models/deephit.py
Class Name: DeepHit
Method Name: predict_pmf


Project Name: havakv/pycox
Commit Name: 0430f0811e0a5cd377b9c377e915bbbbb1572ce7
Time: 2019-10-02
Author: haavard.kvamme@gmail..com
File Name: pycox/models/deephit.py
Class Name: DeepHit
Method Name: predict_cif


Project Name: havakv/pycox
Commit Name: cc5645de6214ad4dc98a8e995bfa2bf45d74be34
Time: 2019-12-03
Author: haavard.kvamme@gmail..com
File Name: pycox/models/utils.py
Class Name:
Method Name: array_or_tensor