spock.featureclassifier #
FeatureClassifier Objects #
class FeatureClassifier()
predict_stable #
| predict_stable(sim, n_jobs=-1)
Predict whether passed simulation will be stable over 10^9 orbits of the innermost planet.
Arguments:
sim
rebound.Simulation - Orbital configuration to testn_jobs
int - Number of cores to use for calculation (only if passing more than one simulation). Default: Use all available cores.
Returns:
float
- Estimated probability of stability. Will return exactly zero if configuration goes unstable within first 10^4 orbits.
generate_features #
| generate_features(sim, n_jobs=-1)
Generates the set of summary features used by the feature classifier for prediction.
Arguments:
sim
rebound.Simulation - Orbital configuration to testn_jobs
int - Number of cores to use for calculation (only if passing more than one simulation). Default: Use all available cores.
Returns:
List of OrderedDicts: A list of sets of features for each adjacent trio of planets in system. Each set of features is an ordered dictionary of 10 summary features. See paper.
stable
int - An integer for whether the N-body integration survived the 10^4 orbits (1) or went unstable (0).