Skip to main content

Stability of Planetary Orbital Configurations Klassifier

Project description

Stability of Planetary Orbital Configurations Klassifier

https://badge.fury.io/py/spock.svg https://travis-ci.com/dtamayo/spock.svg?branch=master http://img.shields.io/badge/license-GPL-green.svg?style=flat https://img.shields.io/badge/launch-binder-ff69b4.svg?style=flat paper_plots/spockpr.jpg

Quickstart

Let’s predict the probability that a given 3-planet system is stable:

import rebound
from spock import FeatureClassifier
model = FeatureClassifier()

sim = rebound.Simulation()
sim.add(m=1.)
sim.add(m=1.e-5, P=1., e=0.03, l=0.3)
sim.add(m=1.e-5, P=1.2, e=0.03, l=2.8)
sim.add(m=1.e-5, P=1.5, e=0.03, l=-0.5)
sim.move_to_com()

model.predict_stable(sim)
>>> 0.011505529

Examples

The best place to start is the example notebooks in jupyter_examples/.

Installation

Install with:

pip install spock

SPOCK relies on XGBoost, which has installation issues with OpenMP on Mac OSX. If you have problems (https://github.com/dmlc/xgboost/issues/4477), the easiest way is probably to install homebrew, and:

brew install libomp
pip install spock

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spock-1.0.6.tar.gz (4.6 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page