mirror of
https://github.com/johrpan/geposan.git
synced 2025-10-26 18:57:25 +01:00
neural: Use tensorflow seed
This commit is contained in:
parent
51e7176a1a
commit
7c87788cad
2 changed files with 4 additions and 2 deletions
|
|
@ -23,7 +23,8 @@ Depends:
|
||||||
Imports:
|
Imports:
|
||||||
data.table,
|
data.table,
|
||||||
keras,
|
keras,
|
||||||
rlang
|
rlang,
|
||||||
|
tensorflow
|
||||||
Suggests:
|
Suggests:
|
||||||
biomaRt,
|
biomaRt,
|
||||||
plotly,
|
plotly,
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@ neural <- function(preset, progress = NULL, seed = 49641) {
|
||||||
reference_gene_ids <- preset$reference_gene_ids
|
reference_gene_ids <- preset$reference_gene_ids
|
||||||
|
|
||||||
cached("neural", c(species_ids, gene_ids, reference_gene_ids), {
|
cached("neural", c(species_ids, gene_ids, reference_gene_ids), {
|
||||||
set.seed(seed)
|
tensorflow::set_random_seed(seed)
|
||||||
|
|
||||||
gene_count <- length(gene_ids)
|
gene_count <- length(gene_ids)
|
||||||
|
|
||||||
progress_buffer <- 0
|
progress_buffer <- 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue