Elektrine lite

← Feed

@numeredevs@fosstodon.org

2026-07-22 09:58 UTC

@loke@functional.cafe @jwildeboer@social.wildeboer.net One question about the used data: I noted that there are some gaps in the state vectors. How does Kap handle them?

Replies (1)

  • @loke@functional.cafe 2026-07-22 10:24

    @numeredevs@fosstodon.org @jwildeboer@social.wildeboer.net that depends on how the gap is represented. The original data was a CSV, where the state vector was a single field containing a JSON-style list. I didn't actually know there were empty elements, so the following analysis is from memory how I did it. In the video you can see that I first remove the open and close brackets, then split by comma and paste each element as a number. This results in a 6 element list of numbers. If the field is empty, this would result in an empty list. When converting a list of lists into a 2-dimensional array, the number of columns in the result is tge same as the length of the longest list. Any elements that are shorter gets filled in with the fill element, which is 0 by default. Thus, an empty element would become a row of 0's. If I had instead used the JSON parser to parse the list, an empty element would have resulted in an error.

    Open ##5136243