generate_equivalent_circuits¶
- autoeis.core.generate_equivalent_circuits(freq: ndarray[float], Z: ndarray[complex], iters: int = 100, complexity: int = 12, tol: float = 0.01, parallel: bool = True, generations: int = 30, population_size: int = 100, seed: int | None = None) DataFrame ¶
Generates candidate circuits that fit the impedance data using evolutionary algorithms.
- Parameters:
freq (np.ndarray[float]) – Frequencies corresponding to impedance measurements.
Z (np.ndarray[complex]) – Impedance measurements as a complex array.
iters (int, optional) – Number of ECM generation iterations (default is 100).
complexity (int, optional) – Complexity of the ECM search space (default is 12).
tol (float, optional) – Convergence threshold for the ECM search (default is 1e-2).
parallel (bool, optional) – If True, the ECM search will be performed in parallel (default is True).
generations (int, optional) – Number of generations for the ECM search (default is 30).
population_size (int, optional) – Number of ECMs to generate per generation (default is 100).
seed (int, optional) – Random seed for reproducibility (default is None).
- Returns:
Dataframe containing circuits.
- Return type:
pd.DataFrame or None