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

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Senior Data Engineer

@ Quantexa | Sydney, New South Wales, Australia

Staff Analytics Engineer

@ Warner Bros. Discovery | NY New York 230 Park Avenue South