API: SplitDataset
skyulf.data.dataset.SplitDataset
dataclass
Hold train/test slots and optional positional training-only sample weights.
train_sample_weight follows the row order of train. Test and
validation metrics remain unweighted.
evaluation_coverage carries held-out input and retained row counts
through preprocessing, without storing row identifiers or observations.
Source code in skyulf-core/skyulf/data/dataset.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 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 85 86 87 88 89 90 91 | |
__setstate__(state)
Load older saved split containers without inventing missing coverage evidence.
Source code in skyulf-core/skyulf/data/dataset.py
46 47 48 49 | |
copy()
Return a SplitDataset whose slots are copies, not shared references.
Each leaf is copied through its own copy()/clone() so pandas and
polars frames are both handled, and (X, y) tuples are copied
element-wise. A leaf with neither method falls back to
:func:copy.copy, which is shallow: the container is independent, but
mutable contents inside such a leaf are still shared.
Source code in skyulf-core/skyulf/data/dataset.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 85 86 87 88 89 90 91 | |