innovate.fail.analysis module¶
- innovate.fail.analysis.analyze_failure(predictions: ndarray, failure_threshold: float = 0.1, time_horizon: int = -1) List[int] [source]¶
Analyzes the results of a competition model to identify failed technologies.
A technology is considered to have failed if its market share does not exceed the failure_threshold within the given time_horizon.
- Parameters:
predictions – A 2D array of market share predictions from a CompetitionModel.
failure_threshold – The market share threshold for a technology to be considered successful.
time_horizon – The number of time steps over which to evaluate the failure condition. If -1, the entire time series is considered.
- Returns:
A list of indices of the technologies that have failed.