10000 Initial structure by gomezzz · Pull Request #1 · esa/NIDN · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 15 commits into from
Aug 5, 2021
Merged

Initial structure #1

merged 15 commits into from
Aug 5, 2021

Conversation

gomezzz
Copy link
Collaborator
@gomezzz gomezzz commented Aug 3, 2021

No description provided.

@gomezzz gomezzz added the WIP label Aug 3, 2021
@gomezzz gomezzz requested a review from htoftevaag August 3, 2021 09:59
- Added some trcwa stuff and constants
Copy link
Collaborator
@htoftevaag htoftevaag left a 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):
Copy link
Collaborator

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done now

gomezzz and others added 8 commits August 3, 2021 15:54
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>
- Added test for trcwa
- Added some logging and asserts
- Renamed constants due to import behavior
- Some minor fixes
- Finalized backend removal from trcwa
@gomezzz gomezzz changed the title WIP Initial structure Aug 4, 2021
gomezzz added 4 commits August 4, 2021 15:17
- 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
Copy link
Collaborator
@htoftevaag htoftevaag left a 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

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
Copy link
Collaborator
< 10000 div class="ml-5">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""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.

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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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>
@gomezzz gomezzz requested a review from htoftevaag August 5, 2021 12:54
Copy link
Collaborator
@htoftevaag htoftevaag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@htoftevaag htoftevaag merged commit 234356d into main Aug 5, 2021
@htoftevaag htoftevaag deleted the Initial-structure branch August 5, 2021 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0