Skip to content

Commit

Permalink
train script
Browse files Browse the repository at this point in the history
  • Loading branch information
ziwei-75 committed Jan 29, 2024
1 parent d368438 commit 5a08e5b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
19 changes: 19 additions & 0 deletions chrombpnet/train_bias.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import parsers as parsers
import os
from data import DefaultDataFile, get_default_data_path
from data import print_meme_motif_file
import pipelines as pipelines
import copy
import pandas as pd
import logging
logging.getLogger('matplotlib.font_manager').disabled = True


args = parsers.read_parser()
os.makedirs(os.path.join(args.output_dir,"logs"), exist_ok=True)
os.makedirs(os.path.join(args.output_dir,"auxiliary"), exist_ok=True)
os.makedirs(os.path.join(args.output_dir,"models"), exist_ok=True)
os.makedirs(os.path.join(args.output_dir,"evaluation"), exist_ok=True)

pipelines.train_bias_pipeline(args)

18 changes: 18 additions & 0 deletions chrombpnet/train_chrombpnet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import parsers as parsers
import os
from data import DefaultDataFile, get_default_data_path
from data import print_meme_motif_file
import pipelines as pipelines
import copy
import pandas as pd
import logging
logging.getLogger('matplotlib.font_manager').disabled = True

args = parsers.read_parser()

os.makedirs(os.path.join(args.output_dir,"logs"), exist_ok=True)
os.makedirs(os.path.join(args.output_dir,"auxiliary"), exist_ok=True)
os.makedirs(os.path.join(args.output_dir,"models"), exist_ok=True)
os.makedirs(os.path.join(args.output_dir,"evaluation"), exist_ok=True)

pipelines.chrombpnet_train_pipeline(args)

0 comments on commit 5a08e5b

Please sign in to comment.