SPACEL.Scube.gpr.GPRmodel.plot_gpr_expr
- GPRmodel.plot_gpr_expr(gene, training_iter, lr, data=None, pred_path=None, save=False, save_path=None, save_pred=False, save_pred_path=None, save_dpi=150, return_expr=True, *args, **kwargs)
Plotting predicted expression values.
Plotting the expression values predicted by the trained GPR model.
- Parameters:
gene – The name of the gene for prediction.
training_iter – The number of model iteration for prediction.
lr – The learning rate of the model for prediction.
data – The coordinate matrix for prediction.
save – A boolean value indicating whether to save the prediction figure.
save_path – The path where the outputs will be saved. The file extension must be one of the supported picture types.
save_dpi – The DPI (dots per inch) of the saved results.
return_expr – A boolean value indicating whether to return the prediction values.
- Returns:
None
or the prediction values.