Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Troubled Cell Detection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Laura Christine Kühle
Troubled Cell Detection
Commits
7c1c06aa
Commit
7c1c06aa
authored
Nov 24, 2021
by
Laura Christine Kühle
Browse files
Options
Downloads
Patches
Plain Diff
Set random seed for Snakefile.
parent
783dc3a0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Snakefile
+3
-0
3 additions, 0 deletions
Snakefile
config.yaml
+1
-0
1 addition, 0 deletions
config.yaml
with
4 additions
and
0 deletions
Snakefile
+
3
−
0
View file @
7c1c06aa
configfile: 'config.yaml'
configfile: 'config.yaml'
import ANN_Data_Generator, Initial_Condition, ANN_Training
import ANN_Data_Generator, Initial_Condition, ANN_Training
import numpy as np
def replace_none(list):
def replace_none(list):
return {} if list is None else list
return {} if list is None else list
DIR = config['data_directory']
DIR = config['data_directory']
if config['random_seed'] is not None:
np.random.seed(config['random_seed'])
rule all:
rule all:
input:
input:
...
...
This diff is collapsed.
Click to expand it.
config.yaml
+
1
−
0
View file @
7c1c06aa
data_directory
:
"
Snakemake-Test"
data_directory
:
"
Snakemake-Test"
random_seed
:
1234
# Parameter for Training Data Generation
# Parameter for Training Data Generation
sample_number
:
100
sample_number
:
100
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment