CellModules
pythonlib.OptunaWrapper Namespace Reference

Classes

class  OptunaArchive
 
class  OptunaDB
 

Functions

str variable_to_pickle64b (Any value)
 
Any pickle64b_to_variable (str payload)
 
def _capture_external_caller_frame ()
 
def _capture_external_caller_namespace ()
 
str _get_function_source (fn)
 

Function Documentation

◆ _capture_external_caller_frame()

def pythonlib.OptunaWrapper._capture_external_caller_frame ( )
private
Return the first 'user' frame (not this lib, not stdlib).
Works better with contextmanager wrappers (contextlib).

Definition at line 37 of file OptunaWrapper.py.

◆ _capture_external_caller_namespace()

def pythonlib.OptunaWrapper._capture_external_caller_namespace ( )
private

Definition at line 91 of file OptunaWrapper.py.

◆ _get_function_source()

str pythonlib.OptunaWrapper._get_function_source (   fn)
private
Robust-ish getsource for normal .py + custom notebooks if linecache is populated.

Definition at line 98 of file OptunaWrapper.py.

◆ pickle64b_to_variable()

Any pythonlib.OptunaWrapper.pickle64b_to_variable ( str  payload)

Definition at line 31 of file OptunaWrapper.py.

◆ variable_to_pickle64b()

str pythonlib.OptunaWrapper.variable_to_pickle64b ( Any  value)

Definition at line 26 of file OptunaWrapper.py.