-
Notifications
You must be signed in to change notification settings - Fork 127
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
Ensemble #19
base: master
Are you sure you want to change the base?
Conversation
basenji/augmentation.py
Outdated
Args: | ||
data_ops: dict with keys 'sequence,' 'label,' and 'na.' | ||
augment_rc: Boolean | ||
augment_shifts: Int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be 'augment_shift'
basenji/augmentation.py
Outdated
augment_rc: Boolean | ||
augment_shifts: Int | ||
Returns | ||
data_ops: augmented data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you document what fields get added to the dict?
return data_ops_list | ||
|
||
|
||
def augment_deterministic(data_ops, augment_rc=False, augment_shift=0): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when would you use this function? It seems odd to call with augment_shift != 0, but only a single value.
if augment_rc: | ||
data_ops_aug = augment_deterministic_rc(data_ops_aug) | ||
else: | ||
data_ops_aug['reverse_preds'] = tf.zeros((), dtype=tf.bool) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what are the semantics of these as targets?
target_subset=None): | ||
augment_rc=False, augment_shifts=[0], | ||
ensemble_rc=False, ensemble_shifts=[0], | ||
penultimate=False, target_subset=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does penultimate mean here?
self.loss_train, self.loss_train_targets, self.targets_train = loss_returns | ||
|
||
# optimizer | ||
self.update_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be done after you make the optimizer?
No description provided.