Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
ReproductibiliteNiveau3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMAC
Reproductibilité des recherches dans SMAC
ReproductibiliteNiveau3
Commits
4b643aa7
Commit
4b643aa7
authored
3 years ago
by
AxelCarayon
Browse files
Options
Downloads
Patches
Plain Diff
reorganisation mineure
parent
301c644c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
main.py
+7
-3
7 additions, 3 deletions
main.py
params/.gitkeep
+0
-0
0 additions, 0 deletions
params/.gitkeep
params/parameters.yaml
+0
-0
0 additions, 0 deletions
params/parameters.yaml
with
7 additions
and
3 deletions
main.py
+
7
−
3
View file @
4b643aa7
...
...
@@ -2,17 +2,21 @@ import numberGenerator
import
outputModule
import
yaml
PARAM_FILE
=
"
params/parameters.yaml
"
INPUT_FILE
=
"
inputs/inputs.txt
"
OUTPUT_FILE
=
"
outputs/outputs.txt
"
def
getParameters
()
->
dict
:
with
open
(
"
parameters.yaml
"
)
as
f
:
with
open
(
PARAM_FILE
)
as
f
:
return
yaml
.
safe_load
(
f
)
def
saveInput
(
input
):
with
open
(
"
inputs/inputs.txt
"
,
"
w
"
)
as
f
:
with
open
(
INPUT_FILE
,
"
w
"
)
as
f
:
for
i
in
input
:
f
.
write
(
str
(
i
)
+
"
\n
"
)
def
saveOutput
(
output
):
with
open
(
"
outputs/outputs.txt
"
,
"
w
"
)
as
f
:
with
open
(
OUTPUT_FILE
,
"
w
"
)
as
f
:
f
.
write
(
str
(
output
))
if
__name__
==
'
__main__
'
:
...
...
This diff is collapsed.
Click to expand it.
params/.gitkeep
0 → 100644
+
0
−
0
View file @
4b643aa7
This diff is collapsed.
Click to expand it.
parameters.yaml
→
params/
parameters.yaml
+
0
−
0
View file @
4b643aa7
File moved
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