File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff Large diffs are not rendered by default.
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.13.0 "
10+ version = " 0.13.1 "
1111authors = [
1212 { name =" T. Bartz-Beielstein" , email =" tbb@bartzundbartz.de" }
1313]
Original file line number Diff line number Diff line change @@ -1691,13 +1691,18 @@ def plot_important_hyperparameter_contour(
16911691 S.plot_important_hyperparameter_contour()
16921692
16931693 """
1694- impo = self .print_importance (threshold = threshold , print_screen = True )
1695- # print(f"impo: {impo}")
1694+ impo_org = self .print_importance (threshold = threshold , print_screen = True )
1695+ print (f"impo: { impo_org } " )
1696+ try :
1697+ impo = sorted (impo_org , key = lambda x : x [1 ], reverse = True )
1698+ except ValueError as e :
1699+ print (f"ValueError: { e } " )
1700+ impo = impo_org
16961701 # if there are more than imp_max variables, select only the most important ones:
16971702 if max_imp is not None :
16981703 if len (impo ) > max_imp :
16991704 impo = impo [:max_imp ]
1700- # print(f"impo after select: {impo}")
1705+ print (f"impo after select: { impo } " )
17011706 var_plots = [i for i , x in enumerate (impo ) if x [1 ] > threshold ]
17021707 min_z = min (self .y )
17031708 max_z = max (self .y )
Original file line number Diff line number Diff line change 66import datetime
77from dateutil .tz import tzlocal
88from torch .utils .tensorboard import SummaryWriter
9- from math import inf
109
1110
1211def fun_control_init (
You can’t perform that action at this time.
0 commit comments