moon-home / ErrorShaping

A proposal for distribution-based loss function in neural network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project overview:

An example for the meaning of distribution loss:

Benchmark NN structure:

MSE along training for benchmark NN:


Priliminary Results:

The change of errors distribution is very subtle after 50 epochs:

PS: learning rate here did not include the adaptive part for each weight, an example of actual weight change with learning rate = 1000:

An example of weights trained with distribution loss:

before

after

Issues:

tf.keras.optimizers.SGD

=> tf.train.Optimizer

=> tf.train.Optimizer.compute_gradients

=> tf.python.eager.backprop.GradientTape().gradient()

=> tensorflow.python.eager.imperative_grad.imperative_grad()

=>tensorflow.python.pywrap_tensorflow.TFE_Py_TapeGradient()

=> There is no "TFE_Py_TapeGradient()" in "pywrap_tensorflow"

=>tensorflow/tensorflow#29064

This is my 2019 summer intern project under Dr.Hong Wang in NTRC.