View source: R/create_model_genomenet.R
create_model_genomenet | R Documentation |
Create GenomeNet Model with Given Architecture Parameters
create_model_genomenet(
maxlen = 300,
learning_rate = 0.001,
number_of_cnn_layers = 1,
conv_block_count = 1,
kernel_size_0 = 16,
kernel_size_end = 16,
filters_0 = 256,
filters_end = 512,
dilation_end = 1,
max_pool_end = 1,
dense_layer_num = 1,
dense_layer_units = 100,
dropout_lstm = 0,
dropout = 0,
batch_norm_momentum = 0.8,
leaky_relu_alpha = 0,
dense_activation = "relu",
skip_block_fraction = 0,
residual_block = FALSE,
reverse_encoding = FALSE,
optimizer = "adam",
model_type = "gap",
recurrent_type = "lstm",
recurrent_layers = 1,
recurrent_bidirectional = FALSE,
recurrent_units = 100,
vocabulary_size = 4,
last_layer_activation = "softmax",
loss_fn = "categorical_crossentropy",
auc_metric = FALSE,
num_targets = 2,
model_seed = NULL,
bal_acc = FALSE,
f1_metric = FALSE,
mixed_precision = FALSE,
mirrored_strategy = NULL
)
maxlen |
(integer |
learning_rate |
( |
number_of_cnn_layers |
(integer |
conv_block_count |
(integer |
kernel_size_0 |
( |
kernel_size_end |
( |
filters_0 |
( |
filters_end |
( |
dilation_end |
( |
max_pool_end |
( |
dense_layer_num |
(integer |
dense_layer_units |
(integer |
dropout_lstm |
Fraction of the units to drop for inputs. |
dropout |
( |
batch_norm_momentum |
( |
leaky_relu_alpha |
( |
dense_activation |
( |
skip_block_fraction |
( |
residual_block |
( |
reverse_encoding |
( |
optimizer |
( |
model_type |
( |
recurrent_type |
( |
recurrent_layers |
(integer |
recurrent_bidirectional |
( |
recurrent_units |
(integer |
vocabulary_size |
(integer |
last_layer_activation |
Either |
loss_fn |
Either |
auc_metric |
Whether to add AUC metric. |
num_targets |
(integer |
model_seed |
Set seed for model parameters in tensorflow if not |
bal_acc |
Whether to add balanced accuracy. |
f1_metric |
Whether to add F1 metric. |
mixed_precision |
Whether to use mixed precision (https://www.tensorflow.org/guide/mixed_precision). |
mirrored_strategy |
Whether to use distributed mirrored strategy. If NULL, will use distributed mirrored strategy only if >1 GPU available. |
A keras model.
A keras model implementing genomenet architecture.
model <- create_model_genomenet()
model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.