komunikilo 0.1.5

A chaotic communications simulator.
Documentation
 57%|██████████████████████████████████████████████████████▎                                        | 400/700 [4:52:21<4:03:31, 48.71s/it]Logistic Regressions: 0s.
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/lib/python3.12/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
                    ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/multiprocessing/pool.py", line 48, in mapstar
    return list(map(*args))
           ^^^^^^^^^^^^^^^^
  File "/home/uzanto/projects/comms/kom_py/lambdas.py", line 206, in curry_lr
    return __log_regress(h0_λs, h1_λs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/uzanto/projects/comms/kom_py/lambdas.py", line 81, in __log_regress
    df_test["tpr"] = tpr[1:][::-1]
    ~~~~~~~^^^^^^^
  File "/home/uzanto/.cache/pypoetry/virtualenvs/kom-py-TZUbCy5j-py3.12/lib/python3.12/site-packages/pandas/core/frame.py", line 4311, in __setitem__
    self._set_item(key, value)
  File "/home/uzanto/.cache/pypoetry/virtualenvs/kom-py-TZUbCy5j-py3.12/lib/python3.12/site-packages/pandas/core/frame.py", line 4524, in _set_item
    value, refs = self._sanitize_column(value)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/uzanto/.cache/pypoetry/virtualenvs/kom-py-TZUbCy5j-py3.12/lib/python3.12/site-packages/pandas/core/frame.py", line 5266, in _sanitize_column
    com.require_length_match(value, self.index)
  File "/home/uzanto/.cache/pypoetry/virtualenvs/kom-py-TZUbCy5j-py3.12/lib/python3.12/site-packages/pandas/core/common.py", line 573, in require_length_match
    raise ValueError(
ValueError: Length of values (1999) does not match length of index (2000)
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/uzanto/projects/comms/kom_py/lambdas.py", line 333, in <module>
    key: __run(func, snrs, label=key, num_attempts=NUM_ATTEMPTS, progress=progress)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/uzanto/projects/comms/kom_py/lambdas.py", line 263, in __run
    lrs_max_cut: List[pd.DataFrame] = p.map(curry_lr, zip(max_cut.h0s, max_cut.h1s))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/multiprocessing/pool.py", line 367, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/multiprocessing/pool.py", line 774, in get
    raise self._value
ValueError: Length of values (1999) does not match length of index (2000)
>>>