Closed andysingal closed 1 year ago
@andysingal The task
parameter has been introduced in the newer versions which needs to be passed to the metrics. For example if it is a binary classification task, pass task="binary"
.
You can check an example in my colab notebook - link
Thanks @ishandutta0098 for answering this. Yes I confirm the task argument is new in torchmetrics and required. If you don't want to add the task, you can also explicitly use the binary_accuracy or multiclass_accuracy functions directly.
Let us know if that works for you @andysingal 😃
Thanks @ishandutta0098 for answering this. Yes I confirm the task argument is new in torchmetrics and required. If you don't want to add the task, you can also explicitly use the binary_accuracy or multiclass_accuracy functions directly.
Let us know if that works for you @andysingal 😃
Thank you @awaelchli @ishandutta0098 , still new to pytorch lightning and it is great learning experience for me.
Glad to hear that @andysingal, thanks!
If you ever have more questions about Lightning, we also have A discord chat: https://discord.com/invite/XncpTy7DSt and a forum: https://lightning.ai/forums/
Thanks Adrian, I joined the discord channel. Again, thanks for all your help.
On Wed, Aug 9, 2023 at 16:18 Adrian Wälchli @.***> wrote:
Glad to hear that @andysingal https://github.com/andysingal, thanks!
If you ever have more questions about Lightning, we also have A discord chat: https://discord.com/invite/XncpTy7DSt and a forum: https://lightning.ai/forums/
— Reply to this email directly, view it on GitHub https://github.com/Lightning-AI/lightning/issues/18256#issuecomment-1671095106, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4LJNMZXD7ECFBRNAVAYNDXUNTGZANCNFSM6AAAAAA3IKMS6Q . You are receiving this because you were mentioned.Message ID: @.***>
Bug description
old code does not work anymore
What version are you seeing the problem on?
v1.6, v1.9
How to reproduce the bug
Error messages and logs here please
- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow):
- PyTorch Lightning Version (e.g., 1.5.0):
- Lightning App Version (e.g., 0.5.2):
- PyTorch Version (e.g., 2.0):
- Python version (e.g., 3.9):
- OS (e.g., Linux):
- CUDA/cuDNN version:
- GPU models and configuration:
- How you installed Lightning(
conda
,pip
, source):- Running environment of LightningApp (e.g. local, cloud):