MCPcopy Create free account
hub / github.com/Open-Quant/openquant / _sigmoid

Function _sigmoid

python/openquant/feature_diagnostics.py:132–137  ·  view source on GitHub ↗
(z: float)

Source from the content-addressed store, hash-verified

130 train_mask[i] = False
131
132 train_idx = [i for i, keep in enumerate(train_mask) if keep]
133 if not train_idx or not test_idx:
134 raise ValueError("PurgedKFold generated an empty train/test fold")
135
136 splits.append((train_idx, test_idx))
137 start = stop
138
139 return splits
140

Callers 1

_predict_probaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected