Skip to content
New issue

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

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

Already on GitHub? # to your account

Model consistency #17

Open
lanyiyun opened this issue Jan 3, 2019 · 0 comments
Open

Model consistency #17

lanyiyun opened this issue Jan 3, 2019 · 0 comments

Comments

@lanyiyun
Copy link

lanyiyun commented Jan 3, 2019

Hi,

I do not know if you have tested on model consistency, that is, feeding the same data and observe if the prediction is the same. I noticed between line 136 to line 141 in src/core/train.py, the samples used in one batch is different between the Unlabeled and the Orthonorm (as well as the Labeled). The Unlabeled uses sequential data from batch_start to batch_end, but Orthonorm uses random sampling. Is there a reason for this?

for input_type, input_placeholder in inputs.items():
if input_type == 'Unlabeled':
feed_dict[input_placeholder] = x[batch_start:batch_end]
elif input_type == 'Orthonorm':
batch_ids = np.random.choice(len(x), size=min(len(x), batch_sizes[input_type]), replace=False)
feed_dict[input_placeholder] = x[batch_ids]

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

No branches or pull requests

1 participant