Skip to content

[DOC] Fixed docstring of GAM classes - index of intercept estimate#324

Merged
dswah merged 3 commits into
dswah:mainfrom
utopianf:patch-1
Dec 4, 2025
Merged

[DOC] Fixed docstring of GAM classes - index of intercept estimate#324
dswah merged 3 commits into
dswah:mainfrom
utopianf:patch-1

Conversation

@utopianf

Copy link
Copy Markdown
Contributor

According to this code, intercept will be added at the end of self.coef_ (self.coef_[-1]) but not self.coef_[0]

@Wieser145 Wieser145 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right, has anyone figured out why the calculated intercept is different then that of the mgcv package in R?

@codecov

codecov Bot commented Apr 8, 2023

Copy link
Copy Markdown

Codecov Report

Merging #324 (6ac6625) into master (620958f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #324   +/-   ##
=======================================
  Coverage   95.01%   95.01%           
=======================================
  Files          22       22           
  Lines        3208     3208           
=======================================
  Hits         3048     3048           
  Misses        160      160           
Impacted Files Coverage Δ
pygam/pygam.py 94.55% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@fkiraly fkiraly left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI @dswah, can you kindly check whether this is correct?

@fkiraly fkiraly changed the title Fixed the docstring of GAM classes [DOC] Fixed docstring of GAM classes - index of intercept estimate Jul 23, 2025
@fkiraly fkiraly added the documentation Improvements or additions to documentation label Jul 23, 2025

@dswah dswah left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fkiraly that looks correct. let me double check

@dswah dswah merged commit 5cd35ca into dswah:main Dec 4, 2025
30 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants