Commit 1974bf19 authored by Eric Dagobert's avatar Eric Dagobert

regimes

parent d8be18d0
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment