target variance for each solver run. authored by Yosh
This commit is contained in:
@ -1,5 +1,14 @@
|
||||
|
||||
def boolean_to_int(value: bool) -> int:
|
||||
if value:
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
|
||||
|
||||
def is_float(element: str) -> bool:
|
||||
try:
|
||||
float(element)
|
||||
return True
|
||||
except ValueError:
|
||||
return False
|
||||
|
Reference in New Issue
Block a user