Preprocessing
Classes¶
TakBuilder(base, max_days=None)
¶
Tak builder constructor
Parameters:
Name | Type | Description | Default |
---|---|---|---|
base
|
DataFrame
|
event log as a dataframe |
required |
max_days
|
int | None
|
patients' sequence max length in days |
None
|
Source code in opentak/preprocessing.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
|
Functions¶
build(kind='hca')
¶
Build Tak object from builder.
The kind
parameter can take four values:
"hca"
Classic Tak algorithm. Stands for Hierarchical Clustering Analysis.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
kind
|
Literal['hca']
|
kind always set to "hca" for Tak minimal release; other types will be introduced in next releases |
'hca'
|
Returns:
Type | Description |
---|---|
Tak
|
Tak object |
Source code in opentak/preprocessing.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
|
Functions¶
reset_array(func)
¶
Indicate that the output array should be recomputed regardless of the cache system.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
func
|
decorated preprocessing method |
required |
Returns:
Type | Description |
---|---|
method with extra functionality |
Source code in opentak/preprocessing.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|