xiaoyeye / CNNC

covolutional neural network based coexpression analysis
MIT License
74 stars 23 forks source link

histogram2d output transformation #20

Open xinweihan opened 3 years ago

xinweihan commented 3 years ago

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!

xiaoyeye commented 3 years ago

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