nCrOptimize

nCrOptimize is a class that performs optimization on a search space of nCr combinations of stocks from a market index. It employs aggressive elimination processes to reduce the members of the combination space to keep compute times reasonable. nCrOptimize is programmed to cache results on each iteration to retain information from interrupted runs. nCrOptimize relies on nCrEngine, ReturnPred, Sentiment, and Cache modules on the backend. None of the listed modules are user-facing.

__init__ Arguments

Attributes

Methods

optimize_space

Optimize the search space of nCr combinations.

Parameters: - bounds: tuple[float, float]: Tuple containing the lower and upper bounds for the weights.

Returns: - nCrResult: An object containing the results of the optimization.