Tensorflow weighted loose function


I have a numeric dataset (not images) for apply deep learning classification. Dataset has 3 class but these are imbalanced sizes. For example class 1:200 , class 2:3200 , class 3:190 labels. I'm trying to train it in Keras or Tensorflow for classification. At the result; All prediction are collected in Class 2:

So i searched the problem in internet and i found that i must define an weighted loos function according to class sizes.

So i need a weighted loos function for my classification model can work properly. Nearly 5-10 lines codes. DO NOT COPY PAST FROM INTERNET.

Who can write it?

Kemahiran: Keras, Tensorflow

Lihat lagi: tensorflow weighted cross entropy with logits, weighted loss function, weighted_cross_entropy_with_logits, weighted cross entropy tensorflow, weighted softmax cross entropy tensorflow, tf.nn.weighted_cross_entropy_with_logits example, tensorflow losses, tensorflow cost functions, post java class ftp problem, class function, 2008 class function, wince mass storage class driver problem, call function outsourced class, call dll class function delphi, function rollover class, iframe integrated website function properly, java crop resize software class function, mail function php class phpmailer php, make website function properly, class function create

Tentang Majikan:
( 0 ulasan ) Mersin, Turkey

ID Projek: #17966129

4 pekerja bebas membida secara purata $35 untuk pekerjaan ini

$55 USD dalam sehari
(0 Ulasan)

Step 1: Send me your current code for review and I will assess if a custom loss function is suitable. Step 2: I will write a custom loss function and provide you back a distribution of class predictions. If you are sa Lagi

$30 USD dalam 3 hari
(0 Ulasan)
$20 USD dalam 2 hari
(0 Ulasan)
$35 USD dalam sehari
(0 Ulasan)