Skip to content

DOC: Use LinearFactorModelGMM in the example of LinearFactorModelGMM.… - #806

Merged
bashtage merged 1 commit into
mainfrom
lm71-fix-asset-pricing-formula-context
Oct 13, 2026
Merged

bashtage merged 1 commit into
mainfrom
lm71-fix-asset-pricing-formula-context

Conversation

@bashtage

Copy link
Copy Markdown
Owner

…from_formula

The example in the docstring of LinearFactorModelGMM.from_formula imported LinearFactorModel and created LinearFactorModel models, a copy of the example of LinearFactorModel.from_formula. It now imports and creates LinearFactorModelGMM models. The second call is split over two lines to keep the line length.

The new tests run the examples of the from_formula methods of the three models, and check that each example imports and creates the model that is documented.

…from_formula

The example in the docstring of LinearFactorModelGMM.from_formula imported
LinearFactorModel and created LinearFactorModel models, a copy of the example of
LinearFactorModel.from_formula. It now imports and creates LinearFactorModelGMM
models. The second call is split over two lines to keep the line length.

The new tests run the examples of the from_formula methods of the three models, and
check that each example imports and creates the model that is documented.
@codecov

codecov Bot commented Oct 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.66%. Comparing base (5830fb6) to head (e6a932d).
⚠️ Report is 78 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #806      +/-   ##
==========================================
+ Coverage   99.61%   99.66%   +0.04%     
==========================================
  Files         140      161      +21     
  Lines       28098    30594    +2496     
  Branches     1973     2096     +123     
==========================================
+ Hits        27991    30491    +2500     
+ Misses         41       40       -1     
+ Partials       66       63       -3     
Flag Coverage Δ
adder 99.65% <100.00%> (+0.04%) ⬆️
subtractor 99.65% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bashtage
bashtage merged commit f5bc92a into main Oct 13, 2026
24 checks passed
@bashtage
bashtage deleted the lm71-fix-asset-pricing-formula-context branch October 13, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant