export type SubsetSizeOption = number | 'sqrt' | 'log2' | 'all'; /** * Resolve a max_features / max_samples style option to an absolute count. * * JavaScript cannot distinguish the integer 1 from the float 1.0, so sklearn's * "int means count, float means fraction" convention is not portable. The * library-wide convention is: * - integer n >= 1 -> absolute count (capped at total) * - 0 < x < 1 -> fraction, max(1, floor(x * total)) * - 'sqrt' / 'log2' -> max(1, floor(sqrt/log2(total))) * - 'all' / undefined -> total * Everything else (0, negatives, NaN, non-integer > 1) throws. * * NOTE: `1` therefore means ONE feature/sample, not 100% — use 'all' for the * full set. */ export declare function resolveSubsetSize(option: SubsetSizeOption | undefined, total: number, paramName?: string): number;