@@ -28,7 +28,7 @@ def __init__(self):
28
28
"mdn_loss_func" : mdn .get_mixture_loss_func (OUTPUT_DIMS , N_MIXES )}, compile = False )
29
29
self .model_b_scaler = joblib .load (os .path .join (model_path , "model_b_scaler.save" ))
30
30
31
- def predict (self , planet_params ) :
31
+ def predict (self , planet_params : object ) -> object :
32
32
"""Predicts the Water radial fraction, Mantle radial fraction, Core radial fraction, Core mass fraction,
33
33
CMB pressure and CMB temperature for the given planetary parameters in terms of planetary mass M [M_Earth],
34
34
radius [R_Earth], bulk Fe/(Mg + Si) (molar ratio), and tide Love number k2.
@@ -50,7 +50,7 @@ def predict(self, planet_params):
50
50
raise ValueError (
51
51
"Invalid number of planet parameters. Expected 3 or 4, but got {}" .format (len (planet_params )))
52
52
53
- def plot (self , pred , save = False , filename = "pred.png" ):
53
+ def plot (self , pred : object , save : object = False , filename : object = "pred.png" ) -> object :
54
54
"""Plots the predicted distributions for Water radial fraction, Mantle radial fraction, Core radial fraction,
55
55
Core mass fraction, CMB pressure and CMB temperature.
56
56
Args:
0 commit comments