utils
get_value_type(val)
¶
Got a little hacky so as to avoid dependency on external libraries. Current method is to check if the dependent library is already imported, if they are, then we can reference them.
Note: - Watch out for error here if the Executor tests fail. TODO - We currently just silently ignore cases we cant handle
Source code in lineapy/utils/utils.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|
remove_duplicates(xs)
¶
Remove all duplicate items, maintaining order.
Source code in lineapy/utils/utils.py
117 118 119 120 121 122 123 124 125 126 127 |
|
remove_value(xs, x)
¶
Remove all items equal to x.
Source code in lineapy/utils/utils.py
130 131 132 133 134 135 136 |
|