API: preprocessing.inspection
skyulf.preprocessing.inspection
Inspection nodes (DatasetProfile, DataSnapshot).
Both nodes are read-only; the appliers are pure passthroughs. Only the fits
collect engine-specific summary statistics, so they route through
:func:fit_dual_engine.
DataSnapshotApplier
Bases: BaseApplier
Passthrough applier; the snapshot is produced entirely at fit time.
Source code in skyulf-core/skyulf/preprocessing/inspection.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | |
apply(df, params)
Return df unchanged, ignoring the captured snapshot.
Source code in skyulf-core/skyulf/preprocessing/inspection.py
178 179 180 181 182 183 184 | |
inference_capability(state, *, engine)
staticmethod
Describe the existing passthrough without taking another snapshot.
Source code in skyulf-core/skyulf/preprocessing/inspection.py
170 171 172 173 174 175 176 | |
validate_inference_state(raw)
staticmethod
Check ownership without interpreting or recapturing training values.
Source code in skyulf-core/skyulf/preprocessing/inspection.py
164 165 166 167 168 | |
DataSnapshotCalculator
Bases: BaseCalculator
Capture the leading rows of the input as plain record dicts.
Source code in skyulf-core/skyulf/preprocessing/inspection.py
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 | |
fit(X, _y, config)
Return the first config["n_rows"] rows (default 5) as dicts.
Rows are serialised eagerly at fit time, so the snapshot is unaffected by later mutation of the source frame.
Source code in skyulf-core/skyulf/preprocessing/inspection.py
206 207 208 209 210 211 212 213 214 215 216 217 218 | |
infer_output_schema(input_schema, config)
Return input_schema untouched.
Source code in skyulf-core/skyulf/preprocessing/inspection.py
199 200 201 202 203 204 | |
DatasetProfileApplier
Bases: BaseApplier
Passthrough applier; the profile is produced entirely at fit time.
Source code in skyulf-core/skyulf/preprocessing/inspection.py
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
apply(df, params)
Return df unchanged, ignoring the fitted profile.
Source code in skyulf-core/skyulf/preprocessing/inspection.py
95 96 97 98 99 100 101 102 | |
inference_capability(state, *, engine)
staticmethod
Describe the existing passthrough without collecting new statistics.
Source code in skyulf-core/skyulf/preprocessing/inspection.py
87 88 89 90 91 92 93 | |
validate_inference_state(raw)
staticmethod
Check ownership while leaving the unused training report untouched.
Source code in skyulf-core/skyulf/preprocessing/inspection.py
81 82 83 84 85 | |
DatasetProfileCalculator
Bases: BaseCalculator
Summarise shape, dtypes, missingness and numeric statistics.
Numeric statistics include supported integer, unsigned integer, float and Decimal columns, even when binary, constant, entirely missing or empty. Boolean, categorical and temporal columns retain their dtype/missingness metadata but are not treated as numeric features.
Source code in skyulf-core/skyulf/preprocessing/inspection.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | |
fit(X, _y, config)
Collect row/column counts, dtypes, missing counts and numeric stats.
Numeric statistics come from Polars describe() or pandas
describe() depending on the engine, so the per-column metric names
are not identical across engines.
Source code in skyulf-core/skyulf/preprocessing/inspection.py
130 131 132 133 134 135 136 137 138 139 140 141 142 143 | |
infer_output_schema(input_schema, config)
Return input_schema untouched.
Source code in skyulf-core/skyulf/preprocessing/inspection.py
123 124 125 126 127 128 | |