posydon.active_learning.psy_cris.synthetic_data
posydon.active_learning.psy_cris.synthetic_data.synth_data_2D
- posydon.active_learning.psy_cris.synthetic_data.synth_data_2D.get_output_2D(x, y)[source]
For a set of query points (x,y) in the range (-3,3) return a DataFrame with the inputs and outputs for classificaiton and regression.
posydon.active_learning.psy_cris.synthetic_data.synth_data_3D
- posydon.active_learning.psy_cris.synthetic_data.synth_data_3D.analytic_classification_3D(X, Y, Z, f_splits=[1, 2.5, -0.5, 1.8, 0.3])[source]
Unique classes 1,2,3,4,6,8 for a total of 6 classes. This nicely matches the colormap Dark2 for plotting.
- posydon.active_learning.psy_cris.synthetic_data.synth_data_3D.analytic_regression_3D(x, y, z)[source]
- posydon.active_learning.psy_cris.synthetic_data.synth_data_3D.get_output_3D(X, Y, Z)[source]
Takes input points (X,Y,Z) in 3D and returns a DataFrame with the corresponding 3D classification and regression functions.
- Returns:
data_frame – Pandas dataframe including inputs, class, and outputs.
- Return type:
DataFrame
- posydon.active_learning.psy_cris.synthetic_data.synth_data_3D.get_raw_output_3D(X, Y, Z)[source]
Get the raw output for classification and regression for the 3D synthetic data set. Unique classes include the following [1,2,3,4,6,8].
- Returns:
classification_data (ndarray) – Class data (unique integers) in 3d classification space.
regression_data (ndarray) – Regression output frmo 3d function.