Skip to content
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

Add a learning rate feature #602

Merged

Conversation

danielhuppmann
Copy link
Member

@danielhuppmann danielhuppmann commented Jan 5, 2022

Please confirm that this PR has done the following:

  • Tests Added
  • Documentation Added
  • Name of contributors Added to AUTHORS.rst
  • Description in RELEASE_NOTES.md Added

Description of PR

This PR adds a method to easily compute the implicit learning rates from "experience" (e.g., cumulative installed capacity) and "performance" (e.g., specific investment) cost from any IamDataFrame with suitable variables.

The new feature is implemented together with a new compute module/accessor to separate out the more advanced timeseries-data-methods from the main class.

@codecov
Copy link

codecov bot commented Jan 5, 2022

Codecov Report

Merging #602 (c5c8bd3) into main (27d0fac) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #602   +/-   ##
=====================================
  Coverage   94.2%   94.2%           
=====================================
  Files         50      52    +2     
  Lines       5361    5415   +54     
=====================================
+ Hits        5052    5106   +54     
  Misses       309     309           
Impacted Files Coverage Δ
pyam/compute.py 100.0% <100.0%> (ø)
pyam/core.py 94.4% <100.0%> (+<0.1%) ⬆️
pyam/utils.py 91.8% <100.0%> (+<0.1%) ⬆️
tests/test_feature_learning_rate.py 100.0% <100.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 27d0fac...c5c8bd3. Read the comment docs.

@danielhuppmann danielhuppmann self-assigned this Jan 6, 2022
@danielhuppmann danielhuppmann marked this pull request as ready for review January 6, 2022 07:30
@danielhuppmann danielhuppmann merged commit 8dc1d27 into IAMconsortium:main Jan 17, 2022
@danielhuppmann danielhuppmann deleted the feature/learning-rate branch January 17, 2022 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant