Skip to content

WIP: Transfer learning implementation#10

Open
ftherrien wants to merge 20 commits into
mainfrom
transfer_learning
Open

WIP: Transfer learning implementation#10
ftherrien wants to merge 20 commits into
mainfrom
transfer_learning

Conversation

@ftherrien

Copy link
Copy Markdown
Owner

Implements transfer model from one model to another.

This should be rebased and merged after liquid_model is merged

ameerracle and others added 20 commits May 5, 2026 17:27
…that were repeated (gas vars moved to gas area in last commit)
Co-authored-by: Copilot <copilot@github.com>
- add dataset-specific input/output column lists with validation
- update gas/bicarb loaders to enforce column order and numeric cleanup
- use dataset defaults in optimizer/run_experiment to avoid Voltage as input
- make PhModel accept dynamic input size and Zero_eps_thickness index
…sistant between the liq and gas model. Now file name is found in YAML
Streamline the data loading process by removing hardcoded column lists and
replacing them with explicit column selection in loaders.py. This also
includes cleaning up the GDEOptimizer and experiment pipeline by removing
MAE (Mean Absolute Error) tracking and calculation, which was redundant
with existing loss metrics.

- Remove `default_input_labels` and `default_output_labels` from loaders.py
- Hardcode specific input/output labels in `GDEOptimizer` for the gas dataset
- Remove MAE calculation logic from `GDEOptimizer.get_predictor`
- Remove MAE tracking from `run_active_learning_experiment`
- Update `run_experiment.py` to use positional sys.argv for config loading
- Add `data_file` to the default configuration schema
fix(gde_multi): prevent numerical instability and overflows
Implement several safeguards to improve the numerical stability of the
electrochemical model:

- Clamp Butler-Volmer exponents using `_BV_MAX` to prevent infinite
  exponential values.
- Replace `cosh`/`sinh` functions with exponential-based formulations
  to avoid overflow during large `M` calculations.
- Add clamping to `c03` concentration and `current_density` to prevent
  division by zero or extreme values.
- Use `torch.where` for Faraday efficiency calculations to safely
  handle near-zero current densities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants