executors.PythonExecutor
PythonExecutor(solver_func, outcome_col)THE IN-MEMORY TRANSLATOR: This executor is for lightweight analytical models or surrogate models written in Python. Because it runs entirely inside DigiQual’s current memory space, it is incredibly fast. However, it should NOT be used for heavy FEA/CFD libraries, as those can cause memory leaks if run thousands of times in a single loop.
Example Usage
def my_math_model(row): return row[‘Length’] * 2 + row[‘Angle’]
executor = PythonExecutor(solver_func=my_math_model, outcome_col=‘Signal’)
Methods
| Name | Description |
|---|---|
| run | The actual translation process for pure Python models. |
run
run(samples)The actual translation process for pure Python models.