Description Usage Arguments Value Author(s) See Also
Streaming generator to one-hot encode samples during training or predicting.
1 | one_hot_generator(X_data, Y_data, batch_size, zeros_len, max_len)
|
X_data |
Character strings composed of nucleotides A, C, G, T. |
Y_data |
Vector of labels. |
batch_size |
Integer value denoting batch size. |
zeros_len |
Integer value denoting number of zeros to pad vector with. Commonly the convolutional filter length - 1. |
max_len |
Maximum sequence length. Calculated per batch if NULL. |
Zero-padded array of one-hot encodings.
Matthew Ploenzke, ploenzke@g.harvard.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.