[Contrib metrics] Add R2 score metric
See original GitHub issueMaybe adding R2 metric to ignite.contrib.metrics.regression
could make sense. Thoughts ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
R2 Score — PyTorch-Metrics 0.11.0 documentation
Initializes internal Module state, shared by both nn. Module and ScriptModule. Computes r2 score over the metric states. Update state with predictions and ......
Read more >KerasRegressor Coefficient of Determination R^2 Score
It's a handy metric because it shows values up to 1.0 (similar to percent accuracy in classification). Is my usage of Keras backend...
Read more >R2Score — PyTorch-Ignite v0.4.10 Documentation
class ignite.contrib.metrics.regression.R2Score(output_transform=<function Metric. ... Calculates the R-Squared, the coefficient of determination.
Read more >scikit-learn score metric on the coefficient of determination $R^2
Returns the coefficient of determination R^2 of the prediction. The coefficient R^2 is defined as (1 - u/v), where u is the regression...
Read more >tfa.metrics.RSquare | TensorFlow Addons
Compute R^2 score. ... of the same metric. Can also calculate the Adjusted R2 Score. ... metric = tfa.metrics.r_square.RSquare()
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@silas2471 in ignite R2 is implemented as a metric to compute in online fashion (accumulation batch by batch). This is not reusable as a loss function. However, R2 definition is not difficult to reimplement as a loss function for a single batch:
Hey, is it also possible to use this for deep learning as loss function? I couldnt find any documentation on an implementation yet. Is there an easy way to implement it for such a use case?