File Exchange > Data Analysis >    Bayesian Ridge Regression

Author:
OriginLab Technical Support
Date Added:
7/2/2020
Last Update:
4/10/2024
Downloads (90 Days):
235
Total Ratings:
1
File Size:
70 KB
Average Rating:
File Name:
BBR.opx
File Version:
1.04
Minimum Versions:
License:
Free
Type:
App
Summary:

Perform bayesian ridge regression with Python.

Screen Shot and Video:
Description:

Purpose

This App provides a tool for fitting data with Bayesian Ridge Regression model. It fits a dataset with one dependent variable and multiple independent variables. You can further use it to predict response of independent variables. 

Notes:

  • It needs Embedded Python and scikit-learn library. Other dependent libraries include numpy

Installation

  1. Download the BRR.opx file, then drag-and-drop onto the Origin workspace.
  2. The App will start downloading dependent Python libraries. Wait a few minutes until the download is completed and restart Origin.

Operation

  1. Activate a worksheet. Click the App icon to bring up the dialog.
  2. On Input Data tab, select single or multiple worksheet columns for Independent Variables and specify Dependent Variable by selecting a single worksheet column.
  3. On Options tab, change settings to fit the model
    • Maximum Iterations: Maximum number of iterations. The solver iterates until convergence or this number of iterations.
    • Tolerance: Stop the algorithm if fitting parameter has converged.
    • Alpha1: Shape parameter for the Gamma distribution prior over the alpha parameter.
    • Alpha2: Inverse scale parameter (rate parameter) for the Gamma distribution prior over the alpha parameter.
    • Lambda1: Shape parameter for the Gamma distribution prior over the lambda parameter.
    • Lambda2: Inverse scale parameter (rate parameter) for the Gamma distribution prior over the lambda parameter.
    • Alpha Initial: Initial value for alpha (precision of the noise). If not set, alpha_init is 1/Var(y).
    • Lambda Initial: Initial value for lambda (precision of the weights). If not set, lambda_init is 1.
    • Include Intercept: Whether to calculate the intercept for this model. 
  4. On Quantities tab: choose which quantities and plots to output.
  5. On Plot tab: choose plots to output. 
    • Score Plot:  Plot the log marginal likelihood as a function of iteration number. 
  6. On Prediction tab, you can select a range of independent data to predict the response with the fitted neural network.
  7. Click OK to output reports.

Updates:

v 1.01 Minor bug fix
v 1.02 fix bugs for Python 3.11
v 1.03 more bugs fixed for Python 3.11.
v 1.04 sklearn package deprecated fixed.

Reviews and Comments:
11/17/2023dgstrawnTraceback (most recent call last):
File "C:\Users\dgstrawn\AppData\Local\OriginLab\Apps\Bayesian Ridge Regression\origin.py", line 4, in
from sklearn import linear_model
ModuleNotFoundError: No module named 'sklearn'