`L i0dZddlZddlmZGddZy)z/ Common utilities for testing model selection. N)KFoldc(eZdZdZddZddZddZy)OneTimeSplitterz0A wrapper to make KFold single entry cv iteratorc||_||_tt|j t j ||_y)Nn_splits)r n_samplesiterrsplitnponesindices)selfrr s j/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/sklearn/model_selection/tests/common.py__init__zOneTimeSplitter.__init__ s5  "E84::2779;MNO Nc#6K|jD]}|yw)zSplit can be called only onceN)r)rXygroupsindexs rr zOneTimeSplitter.splits\\ EK sc|jS)Nr)rrrrs r get_n_splitszOneTimeSplitter.get_n_splitss }}r)c)NNN)__name__ __module__ __qualname____doc__rr rrrrr s:P  rr)rnumpyr sklearn.model_selectionrrr rrr#s)r