Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function _build_extreme_FM_quick in exDeepFM.py file #5

Open
liuzhiyong01 opened this issue Aug 24, 2018 · 1 comment
Open

function _build_extreme_FM_quick in exDeepFM.py file #5

liuzhiyong01 opened this issue Aug 24, 2018 · 1 comment

Comments

@liuzhiyong01
Copy link

hparams.logger.info("split connect")
if idx != len(hparams.cross_layer_sizes) - 1:
next_hidden, direct_connect = tf.split(curr_out, 2 * [int(layer_size / 2)], 1)
final_len += int(layer_size / 2)
else:
direct_connect = curr_out
next_hidden = 0
final_len += layer_size
field_nums.append(int(layer_size / 2))

I want to know why does "next_hidden, direct_connect = tf.split(curr_out, 2 * [int(layer_size / 2)], 1)" this action

@Leavingseason
Copy link
Owner

It's a little trick. We found empirically that the performance is better via splitting direct connections (to output unit) and hidden layers to next stage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants