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

Computing the R2 Score (coeficient of determination) #8169

Open
Flipper-afk opened this issue Feb 2, 2024 · 1 comment
Open

Computing the R2 Score (coeficient of determination) #8169

Flipper-afk opened this issue Feb 2, 2024 · 1 comment

Comments

@Flipper-afk
Copy link

System information

  • TensorFlow.js version (you are using): Latest, 4.17.0
  • Are you willing to contribute it (Yes/No): Yes

Describe the feature and the current behavior/state.
Computing the R2 Score (coeficient of determination)
Currently there is no R2 Score metrics in TFJS compared to TF.

Will this change the current api? How?
Yes. Add's a new metrics in TFJS (tf.metrics.r2Score)
https://js.tensorflow.org/api/latest/#Metrics

Who will benefit with this feature?
Regression Tasks (e.g. Timeseries Forecasting) during training and evaluation.
More convenience in developing (since it's not an own/customer function anymore).

Any Other info.
https://www.tensorflow.org/api_docs/python/tf/keras/metrics/R2Score

Many thanks and looking forward.

@Flipper-afk Flipper-afk added the type:feature New feature or request label Feb 2, 2024
@gaikwadrahul8 gaikwadrahul8 self-assigned this Feb 2, 2024
@gaikwadrahul8
Copy link
Contributor

gaikwadrahul8 commented Feb 2, 2024

Hi, @Flipper-afk

Thank you for suggesting the addition of Computing the R2 Score (coeficient of determination) API feature to TensorFlow.js! We appreciate your feedback and interest in expanding the library's capabilities.

While we recognize the potential benefits of this feature, it's important to note that it's already available within the core TensorFlow codebase. You can access it using Python or other supported languages within that environment.

We understand that having this functionality directly in TensorFlow.js would be convenient for browser-based or JavaScript-focused projects. However, implementing it in TensorFlow.js involves technical considerations and alignment with our current development priorities.

If someone or you're interested in seeing this feature implemented directly in TensorFlow.js, we welcome contributions from the community please refer How to Contribute and How to Contribute a New op to TF.js Repository

Thank you for your cooperation and patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants