Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
900be804
"include/vscode:/vscode.git/clone" did not exist on "7fa892e63e63c541756d299ab00ea7e6a6d51c39"
Unverified
Commit
900be804
authored
Aug 24, 2022
by
Yuge Zhang
Committed by
GitHub
Aug 24, 2022
Browse files
Use Random to generate experiment id (#5073)
parent
0058fbc2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
nni/experiment/management.py
nni/experiment/management.py
+2
-2
No files found.
nni/experiment/management.py
View file @
900be804
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
# Licensed under the MIT license.
# Licensed under the MIT license.
from
pathlib
import
Path
from
pathlib
import
Path
import
r
andom
from
random
import
R
andom
import
string
import
string
def
generate_experiment_id
()
->
str
:
def
generate_experiment_id
()
->
str
:
return
''
.
join
(
r
andom
.
sample
(
string
.
ascii_lowercase
+
string
.
digits
,
8
))
return
''
.
join
(
R
andom
()
.
sample
(
string
.
ascii_lowercase
+
string
.
digits
,
8
))
def
create_experiment_directory
(
experiment_id
:
str
)
->
Path
:
def
create_experiment_directory
(
experiment_id
:
str
)
->
Path
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment