To start things off, import a few basic
In : import numpy as np In : import matplotlib.pyplot as plt In : import bayspar as bsr
There are a few options when it comes to prediction with
Below, we use example data - included with the package - to walk through each
type of prediction.
In : example_file = bsr.get_example_data('castaneda2010.csv') In : d = np.genfromtxt(example_file, delimiter=',', names=True)
This dataset (from Castañeda et al. 2010) has two columns giving sediment age (calendar years BP) and TEX86.
In : d['age'][:5] Out: array([142., 284., 375., 466., 558.]) In : d['tex86'][:5]