-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CAFDI-7 - Create Multi TLD Gravity Model MVP #7
Conversation
Added TODO items and plans for the Multi area gravity model.
69a77a8
to
c1a279f
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #7 +/- ##
==========================================
- Coverage 85.09% 81.38% -3.71%
==========================================
Files 7 9 +2
Lines 416 634 +218
==========================================
+ Hits 354 516 +162
- Misses 62 118 +56 ☔ View full report in Codecov by Sentry. |
Added TODO items and plans for the Multi area gravity model.
c1a279f
to
5eeac31
Compare
Moved `_gravity_function` and `_jacobian_function` methods from base gravity model to single area and replaced with abstract method definitions.
Will need a lot of testing and tinkering
Params aren't changing after 4 or 5 outer iterations and it's quite quick: - Tidy code - Better convergence checks - Translate from df to array - Initial guess of params? - Work out zero div error
Distributions converge as well on a final furness as they do in internal loops. This is good for most but bad for external, trying to work out if this is inherent to the distribution or a problem with the code.
Currently only one function for infilling cost matrices
This all needs testing. Especially make sure everything is always in the right order
This could be used to improve performance on large matrices in MVP+
Old methods deleted, return to previous commit to find them if needed
Fixed index page to match style of toolkit. Added pages for new classes/modules
Co-authored-by: Ben <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dont forget to add to .gitblame to ignore the isort changes, just so you're not the one in the blame if something goes wrong with the isort changes!
There's still a few comments that need addressing from the previous review
@BenTaylor-TfN I think I've made those changes now |
Describe Changes
Add class to calibrate gravity model to multiple cost distributions.
Task Checklist
requirements.txt
orrequirements_dev.txt
.setup.cfg