-
Notifications
You must be signed in to change notification settings - Fork 9
Initial structure #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Added some trcwa stuff and constants
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Pablo,
See suggestions!
import numpy as np | ||
|
||
|
||
def _compute_target_frequencies(physical_frequencies: np.array): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add number of points and convert from physical
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done now
Co-authored-by: Håvard Hem Toftevaag <70584234+htoftevaag@users.noreply.github.com>
Co-authored-by: Håvard Hem Toftevaag <70584234+htoftevaag@users.noreply.github.com>
Co-authored-by: Håvard Hem Toftevaag <70584234+htoftevaag@users.noreply.github.com>
Co-authored-by: Håvard Hem Toftevaag <70584234+htoftevaag@users.noreply.github.com>
…Initial-structure
- Added test for trcwa - Added some logging and asserts - Renamed constants due to import behavior - Some minor fixes - Finalized backend removal from trcwa
- Cleaned up import mess - Added test for frequency conversion - Training NB WIP - Started adding a function to validate cfgs
- Reworked plots to work with models - Added missign cfg params and checks for them - Made sigmoid def - Small fixes - Relocated validate config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments and some changes
nidn/training/train/run_training.py
Outdated
target_transmittance_spectrum: np.array, | ||
model=None, | ||
): | ||
"""Runs a training run with the passed config, target reflectance and transmittance spectra. Optionally a model can be passed to continue training |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Runs a training run with the passed config, target reflectance and transmittance spectra. Optionally a model can be passed to continue training | |
"""Runs a training run with the passed config, target reflectance and transmittance spectra. Optionally a model can be passed to continue training. |
nidn/training/train/run_training.py
Outdated
model (torch.model, optional): Model to continue training. If None, a new model will be created according to the run configuration. Defaults to None. | ||
|
||
Returns: | ||
torch.model,DotMap: The best model achieved in the training run, and the loss results of the training run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
torch.model,DotMap: The best model achieved in the training run, and the loss results of the training run. | |
torch.model,DotMap: The best model achieved in the training run, and the loss results of the training run |
Nx = 5 | ||
Ny = 5 | ||
N_layers = 1 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add per_layer_thickness etc. here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but please create a separate ticket for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to wrap this one up to merge the rest and work in parallel.
Co-authored-by: Håvard Hem Toftevaag <70584234+htoftevaag@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
No description provided.