You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convert inputs and inputs to torch tensors or numpy arrays before the call function based on whether the function uses scikit learn or torch functions for metric calculation
The text was updated successfully, but these errors were encountered:
@tijyojwad Is this still relevant? could you comment on what/how this PR is going to help with? Also, relevant files that need to be looked at for this change, if it needs to be addressed.
This was intended for the metrics calculation classes. From what I recall there's a conditional in every metrics class that checks for whether or not the input array is numpy or a torch tensor. Python decorators are a neater way to do it so each of the classes can just call the decorator that does that check and conversion.
Convert inputs and inputs to torch tensors or numpy arrays before the call function based on whether the function uses scikit learn or torch functions for metric calculation
The text was updated successfully, but these errors were encountered: