1b3de6b301f962db0271fdad1bbb5036880b7fbc,pycox/preprocessing/label_transforms.py,LabTransPCHazard,__init__,#LabTransPCHazard#,128
Before Change
if type(cuts) is int:
cuts = ("equidistant", cuts + 1)
elif hasattr(cuts, "__iter__"):
if (type(cuts[0]) is not str):
self.idu = IdxDiscUnknownC(cuts)
assert dtype is None, "Need dtype to be None for spesified cuts"
self.dtype = type(cuts[0])
self._dtype = self.dtype
self._predefined_cuts = True
elif (len(cuts) == 2) and (type(cuts[0]) is str):
cuts = (cuts[0], cuts[1] + 1)
self._cuts = cuts
self.min_ = min_
self._dtype = dtype
After Change
self.cuts = None
if hasattr(cuts, "__iter__"):
if type(cuts) is list:
cuts = np.array(cuts)
self.cuts = cuts
self.idu = IdxDiscUnknownC(self.cuts)
assert dtype is None, "Need `dtype` to be `None` for specified cuts"
self._dtype = type(self.cuts[0])
self._dtype_init = self._dtype
self._predefined_cuts = True
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: havakv/pycox
Commit Name: 1b3de6b301f962db0271fdad1bbb5036880b7fbc
Time: 2019-10-12
Author: haavard.kvamme@gmail..com
File Name: pycox/preprocessing/label_transforms.py
Class Name: LabTransPCHazard
Method Name: __init__
Project Name: dmbee/seglearn
Commit Name: 56fb5f5ecfdaafc57b67db632004c6272f068e2e
Time: 2018-03-08
Author: david.mo.burns@gmail.com
File Name: seglearn/util.py
Class Name:
Method Name: check_ts_data
Project Name: havakv/pycox
Commit Name: 1b3de6b301f962db0271fdad1bbb5036880b7fbc
Time: 2019-10-12
Author: haavard.kvamme@gmail..com
File Name: pycox/preprocessing/label_transforms.py
Class Name: LabTransDiscreteTime
Method Name: __init__