CNNC icon indicating copy to clipboard operation
CNNC copied to clipboard

histogram2d output transformation

Open xinweihan opened this issue 3 years ago • 1 comments

Hi, thanks for the great study. I just have a quick question about the transformation in get_xy_label_data_cnn_combine_from_database.py:

HT = (log10(H / len(x_tf) + 10 ** -4) + 4) / 4

I guess the log10 and 1e-4 are to get small numbers for numerical stability. What are +4 and /4 for?

Thanks again!

xinweihan avatar Jul 26 '21 11:07 xinweihan

Thanks for your interest. 4 is used here to make sure that if there is no cell in a certain entry of the matrix, the value will be normalized to 0. Best

xiaoyeye avatar Aug 21 '21 08:08 xiaoyeye