Skip to main content
Ctrl+K
CausalPy 0.5.0 documentation - Home
0.5.0
  • Knowledge base
  • API
  • How-to
  • About PyMC Labs
  • Knowledge base
  • API
  • How-to
  • About PyMC Labs

Table of Contents

  • PyMCModel.score
    • PyMCModel.score()
  • API
  • PyMCModel
  • PyMCModel.score

PyMCModel.score#

PyMCModel.score(X, y)[source]#

Score the Bayesian \(R^2\) given inputs X and outputs y.

Note that the score is based on a comparison of the observed data y and the model’s expected value of the data, mu.

Caution

The Bayesian \(R^2\) is not the same as the traditional coefficient of determination, https://en.wikipedia.org/wiki/Coefficient_of_determination.

Parameters:
  • X (DataArray)

  • y (DataArray)

Return type:

Series

On this page
  • PyMCModel.score()
Show Source
Consulting and training

© Copyright 2024, PyMC Labs.

  • Twitter
  • Github
  • LinkedIn
  • YouTube
  • Meetup
  • Contact