Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
regimes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eric Dagobert
regimes
Commits
1974bf19
Commit
1974bf19
authored
Jan 03, 2019
by
Eric Dagobert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regimes
parent
d8be18d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
config_manager.py
config_manager.py
+12
-2
No files found.
config_manager.py
View file @
1974bf19
...
...
@@ -45,18 +45,28 @@ class ConfigReader:
def
clusterN
(
self
):
return
int
(
self
.
_config
[
'clusters'
][
'N'
])
def
claffinity
(
self
):
return
int
(
self
.
_config
[
'clusters'
][
'affinity'
])
return
self
.
_config
[
'clusters'
][
'affinity'
]
def
cleigen_solver
(
self
):
return
int
(
self
.
_config
[
'clusters'
][
'eigen_solver'
])
return
self
.
_config
[
'clusters'
][
'eigen_solver'
]
def
clspectral_neighbors
(
self
):
return
int
(
self
.
_config
[
'clusters'
][
'spectraln_neighbors'
])
def
cln_neighbors
(
self
):
return
int
(
self
.
_config
[
'clusters'
][
'n_neighbors'
])
def
clrandom_states
(
self
):
return
int
(
self
.
_config
[
'clusters'
][
'random_states'
])
def
smooth_hellinger
(
self
):
return
bool
(
self
.
_config
[
'clusters'
][
'smooth hellinger'
])
def
reg_threshold
(
self
):
return
int
(
self
.
_config
[
'regimes'
][
'threshold'
])
if
__name__
==
"__main__"
:
c
=
ConfigReader
(
'regimes.ini'
)
print
(
c
.
scavlistfield
())
\ No newline at end of file
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