Feb. 8, 2024, 8:45 a.m. | /u/Severe_Difficulty_32

Machine Learning www.reddit.com

I have a multi-class problem where the label vector can be like \[ 0, 1, 0, 0, 1\] , as in multiple classes can be true at the same time. What kind of loss function should i used, as in pytorch Crossentropy you can only pass only 1 correct column as target.

First thing that came into my mind was convert the target vector in a probability distribution like \[0, 0.5, 0, 0, 0.5\] and apply KLDivergence Loss. Will this …

class column function kind loss machinelearning multiple pytorch true vector

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US