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.cls_curve(x, y)[source]
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_2D.get_raw_output_2D(x, y)[source]

Get the raw output for classification and regression functions for the 2D synthetic data set. Original class data to strings given by the following relation {-1:”A”, 0:”B”, 1:”C”, 2:”D”}.

posydon.active_learning.psy_cris.synthetic_data.synth_data_2D.regr_func(x, y)[source]

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.func_1(x, y, z)[source]
posydon.active_learning.psy_cris.synthetic_data.synth_data_3D.func_2(x, y, z)[source]
posydon.active_learning.psy_cris.synthetic_data.synth_data_3D.func_3(x, y, z)[source]
posydon.active_learning.psy_cris.synthetic_data.synth_data_3D.func_4(x, y, z)[source]
posydon.active_learning.psy_cris.synthetic_data.synth_data_3D.func_5(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.