Open TobyBoyne opened 4 months ago
Input data, X, is either a list object or an ndarray object. We should ensure that the handling of these objects is consistent and predictable. For example, the type hint below: encode expects a list, but we type hint this as an ndarray.
X
list
ndarray
encode
https://github.com/cog-imperial/entmoot/blob/1ae5042b83188101535f9e5c2c9047d210bc05a1/entmoot/models/enting.py#L80-L85
Similarly, the encode/decode methods return an empty list if the data is empty, otherwise an ndarray
decode
Input data,
X
, is either alist
object or anndarray
object. We should ensure that the handling of these objects is consistent and predictable. For example, the type hint below:encode
expects alist
, but we type hint this as anndarray
.https://github.com/cog-imperial/entmoot/blob/1ae5042b83188101535f9e5c2c9047d210bc05a1/entmoot/models/enting.py#L80-L85