Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OrcaSong
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Machine Learning
OrcaSong
Commits
355a8966
Commit
355a8966
authored
May 17, 2022
by
Stefan Reck
Browse files
Options
Downloads
Patches
Plain Diff
fix it and remove old stuff
parent
0c84e925
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!33
fix it and remove old stuff
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
orcasong/tools/make_data_split.py
+1
-23
1 addition, 23 deletions
orcasong/tools/make_data_split.py
with
1 addition
and
23 deletions
orcasong/tools/make_data_split.py
+
1
−
23
View file @
355a8966
...
...
@@ -13,13 +13,6 @@ import random
import
numpy
as
np
def
get_parser
():
# TODO deprecated
raise
NotImplementedError
(
"
make_data_split has been renamed to orcasong make_data_split
"
)
def
add_parser
(
subparsers
):
parser
=
subparsers
.
add_parser
(
"
make_data_split
"
,
...
...
@@ -29,7 +22,7 @@ def add_parser(subparsers):
"
concatenate the files specfied
"
,
)
parser
.
add_argument
(
"
config
"
,
type
=
str
,
help
=
"
See example config for detailed information
"
"
config
_file
"
,
type
=
str
,
help
=
"
See example config for detailed information
"
)
parser
.
set_defaults
(
func
=
make_split
)
...
...
@@ -418,17 +411,6 @@ def make_concatenate_and_shuffle_scripts(cfg):
f
.
write
(
"
rm
"
+
conc_outputfile_fpath
+
"
\n
"
)
def
main
():
"""
Main function to make the data split.
"""
# load the config
parser
=
get_parser
()
parsed_args
=
parser
.
parse_args
()
make_split
(
parsed_args
.
config
)
def
make_split
(
config_file
):
# decode config
cfg
=
toml
.
load
(
config_file
)
...
...
@@ -474,7 +456,3 @@ def make_split(config_file):
# create bash scripts that can be submitted to do the concatenation and shuffle
if
cfg
[
"
make_qsub_bash_files
"
]
is
True
:
make_concatenate_and_shuffle_scripts
(
cfg
)
if
__name__
==
"
__main__
"
:
main
()
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
sign in
to comment