-
Notifications
You must be signed in to change notification settings - Fork 329
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
Cast the input data to backend option and test functions in metrics for different input data types and different backend options. #479
Cast the input data to backend option and test functions in metrics for different input data types and different backend options. #479
Conversation
Codecov ReportPatch coverage:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #479 +/- ##
==========================================
+ Coverage 92.79% 92.90% +0.10%
==========================================
Files 67 67
Lines 5583 5680 +97
==========================================
+ Hits 5181 5277 +96
- Misses 402 403 +1
☔ View full report in Codecov by Sentry. |
…ferent data types (NumPy, PyTorch and list)
…ons and input backend types
In the functions of the folder
tslearn/metrics
supporting the backend optional input parameterbe
, cast the input data to the backend option when possible (usingbe.array
).Test the functions of the file
test_metrics.py
for different input data types (list, numpy, pytorch) and different backend options (numpy, pytorch, None). Two nestedfor
loops are used.Therefore the following generic metric function is tested for different input data types and backend options: