File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- spotpython 0.18.1
1+ spotpython 0.18.2:
2+
3+ - spot.py:
4+ Class Spot has new attribute "verbosity. Can be set via fun_control["verbosity"].
5+
6+
7+ spotpython 0.18.1:
28
39- nn_linear_regression.py:
410train steo uses log as follows:
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77
88[project ]
99name = " spotpython"
10- version = " 0.18.1 "
10+ version = " 0.18.2 "
1111authors = [
1212 { name =" T. Bartz-Beielstein" , email =" tbb@bartzundbartz.de" }
1313]
Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ def __init__(
262262 self .tkagg = self .fun_control ["tkagg" ]
263263 if self .tkagg :
264264 matplotlib .use ("TkAgg" )
265+ self .verbosity = self .fun_control ["verbosity" ]
265266
266267 # Tensorboard:
267268 self .init_spot_writer ()
@@ -1274,7 +1275,6 @@ def update_stats(self) -> None:
12741275 self .min_mean_y = self .mean_y [argmin (self .mean_y )]
12751276
12761277 def update_writer (self ) -> None :
1277- print ("In update_writer()." )
12781278 if hasattr (self , "spot_writer" ) and self .spot_writer is not None :
12791279 # get the last y value:
12801280 y_last = self .y [- 1 ].copy ()
@@ -1312,7 +1312,8 @@ def update_writer(self) -> None:
13121312 # self.spot_writer.add_hparams(config, {"spot_y": y_last}, run_name=self.spot_tensorboard_path)
13131313 self .spot_writer .add_hparams (config , {"hp_metric" : y_last })
13141314 self .spot_writer .flush ()
1315- print ("update_writer(): Done." )
1315+ if self .verbosity > 0 :
1316+ print ("update_writer(): Done." )
13161317 else :
13171318 print ("No spot_writer available." )
13181319
You can’t perform that action at this time.
0 commit comments