-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #378 from asogaard/restructure-examples
Restructure examples
- Loading branch information
Showing
69 changed files
with
1,461 additions
and
1,148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
path: /groups/icecube/asogaard/work/development/graphnet/data/tests/sqlite/oscNext_genie_level7_v02/oscNext_genie_level7_v02_first_5_frames.db | ||
pulsemaps: | ||
- SRTInIcePulses | ||
features: | ||
- dom_x | ||
- dom_y | ||
- dom_z | ||
- dom_time | ||
- charge | ||
- rde | ||
- pmt_area | ||
truth: | ||
- energy | ||
- position_x | ||
- position_y | ||
- position_z | ||
- azimuth | ||
- zenith | ||
- pid | ||
- elasticity | ||
- sim_type | ||
- interaction_type | ||
index_column: event_no | ||
truth_table: truth | ||
seed: 21 | ||
selection: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
path: /groups/icecube/asogaard/work/development/graphnet/data/examples/parquet/prometheus/prometheus-events.parquet | ||
pulsemaps: | ||
- total | ||
features: | ||
- sensor_pos_x | ||
- sensor_pos_y | ||
- sensor_pos_z | ||
- t | ||
truth: | ||
- injection_energy | ||
- injection_type | ||
- injection_interaction_type | ||
- injection_zenith | ||
- injection_azimuth | ||
- injection_bjorkenx | ||
- injection_bjorkeny | ||
- injection_position_x | ||
- injection_position_y | ||
- injection_position_z | ||
- injection_column_depth | ||
- primary_lepton_1_type | ||
- primary_hadron_1_type | ||
- primary_lepton_1_position_x | ||
- primary_lepton_1_position_y | ||
- primary_lepton_1_position_z | ||
- primary_hadron_1_position_x | ||
- primary_hadron_1_position_y | ||
- primary_hadron_1_position_z | ||
- primary_lepton_1_direction_theta | ||
- primary_lepton_1_direction_phi | ||
- primary_hadron_1_direction_theta | ||
- primary_hadron_1_direction_phi | ||
- primary_lepton_1_energy | ||
- primary_hadron_1_energy | ||
- total_energy | ||
index_column: event_no | ||
truth_table: mc_truth | ||
seed: 21 | ||
selection: | ||
test: event_no % 5 == 0 | ||
validation: event_no % 5 == 1 | ||
train: event_no % 5 > 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
path: /groups/icecube/asogaard/work/development/graphnet/data/examples/sqlite/prometheus/prometheus-events.db | ||
pulsemaps: | ||
- total | ||
features: | ||
- sensor_pos_x | ||
- sensor_pos_y | ||
- sensor_pos_z | ||
- t | ||
truth: | ||
- injection_energy | ||
- injection_type | ||
- injection_interaction_type | ||
- injection_zenith | ||
- injection_azimuth | ||
- injection_bjorkenx | ||
- injection_bjorkeny | ||
- injection_position_x | ||
- injection_position_y | ||
- injection_position_z | ||
- injection_column_depth | ||
- primary_lepton_1_type | ||
- primary_hadron_1_type | ||
- primary_lepton_1_position_x | ||
- primary_lepton_1_position_y | ||
- primary_lepton_1_position_z | ||
- primary_hadron_1_position_x | ||
- primary_hadron_1_position_y | ||
- primary_hadron_1_position_z | ||
- primary_lepton_1_direction_theta | ||
- primary_lepton_1_direction_phi | ||
- primary_hadron_1_direction_theta | ||
- primary_hadron_1_direction_phi | ||
- primary_lepton_1_energy | ||
- primary_hadron_1_energy | ||
- total_energy | ||
index_column: event_no | ||
truth_table: mc_truth | ||
seed: 21 | ||
selection: | ||
test: event_no % 5 == 0 | ||
validation: event_no % 5 == 1 | ||
train: event_no % 5 > 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
arguments: | ||
coarsening: null | ||
detector: | ||
ModelConfig: | ||
arguments: | ||
graph_builder: | ||
ModelConfig: | ||
arguments: {columns: null, nb_nearest_neighbours: 8} | ||
class_name: KNNGraphBuilder | ||
scalers: null | ||
class_name: Prometheus | ||
gnn: | ||
ModelConfig: | ||
arguments: | ||
add_global_variables_after_pooling: false | ||
dynedge_layer_sizes: null | ||
features_subset: null | ||
global_pooling_schemes: [min, max, mean, sum] | ||
nb_inputs: 4 | ||
nb_neighbours: 8 | ||
post_processing_layer_sizes: null | ||
readout_layer_sizes: null | ||
class_name: DynEdge | ||
optimizer_class: '!class torch.optim.adam Adam' | ||
optimizer_kwargs: {eps: 0.001, lr: 1e-05} | ||
scheduler_class: '!class torch.optim.lr_scheduler ReduceLROnPlateau' | ||
scheduler_config: {frequency: 1, monitor: val_loss} | ||
scheduler_kwargs: {patience: 5} | ||
tasks: | ||
- ModelConfig: | ||
arguments: | ||
hidden_size: 128 | ||
loss_function: | ||
ModelConfig: | ||
arguments: {} | ||
class_name: VonMisesFisher2DLoss | ||
loss_weight: null | ||
target_labels: injection_zenith | ||
transform_inference: null | ||
transform_prediction_and_target: null | ||
transform_support: null | ||
transform_target: null | ||
class_name: ZenithReconstructionWithKappa | ||
- ModelConfig: | ||
arguments: | ||
hidden_size: 128 | ||
loss_function: | ||
ModelConfig: | ||
arguments: {} | ||
class_name: VonMisesFisher2DLoss | ||
loss_weight: null | ||
target_labels: injection_azimuth | ||
transform_inference: null | ||
transform_prediction_and_target: null | ||
transform_support: null | ||
transform_target: null | ||
class_name: AzimuthReconstructionWithKappa | ||
class_name: StandardModel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
arguments: | ||
coarsening: null | ||
detector: | ||
ModelConfig: | ||
arguments: | ||
graph_builder: | ||
ModelConfig: | ||
arguments: {columns: null, nb_nearest_neighbours: 8} | ||
class_name: KNNGraphBuilder | ||
scalers: null | ||
class_name: Prometheus | ||
gnn: | ||
ModelConfig: | ||
arguments: | ||
add_global_variables_after_pooling: false | ||
dynedge_layer_sizes: null | ||
features_subset: null | ||
global_pooling_schemes: [min, max, mean, sum] | ||
nb_inputs: 4 | ||
nb_neighbours: 8 | ||
post_processing_layer_sizes: null | ||
readout_layer_sizes: null | ||
class_name: DynEdge | ||
optimizer_class: '!class torch.optim.adam Adam' | ||
optimizer_kwargs: {eps: 0.001, lr: 1e-05} | ||
scheduler_class: '!class torch.optim.lr_scheduler ReduceLROnPlateau' | ||
scheduler_config: {frequency: 1, monitor: val_loss} | ||
scheduler_kwargs: {patience: 5} | ||
tasks: | ||
- ModelConfig: | ||
arguments: | ||
hidden_size: 128 | ||
loss_function: | ||
ModelConfig: | ||
arguments: {} | ||
class_name: LogCoshLoss | ||
loss_weight: null | ||
target_labels: total_energy | ||
transform_inference: null | ||
transform_prediction_and_target: '!lambda x: torch.log10(x)' | ||
transform_support: null | ||
transform_target: null | ||
class_name: EnergyReconstruction | ||
class_name: StandardModel |
46 changes: 46 additions & 0 deletions
46
configs/models/example_vertex_position_reconstruction_model.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
arguments: | ||
coarsening: null | ||
detector: | ||
ModelConfig: | ||
arguments: | ||
graph_builder: | ||
ModelConfig: | ||
arguments: {columns: null, nb_nearest_neighbours: 8} | ||
class_name: KNNGraphBuilder | ||
scalers: null | ||
class_name: Prometheus | ||
gnn: | ||
ModelConfig: | ||
arguments: | ||
add_global_variables_after_pooling: false | ||
dynedge_layer_sizes: null | ||
features_subset: null | ||
global_pooling_schemes: [min, max, mean, sum] | ||
nb_inputs: 4 | ||
nb_neighbours: 8 | ||
post_processing_layer_sizes: null | ||
readout_layer_sizes: null | ||
class_name: DynEdge | ||
optimizer_class: '!class torch.optim.adam Adam' | ||
optimizer_kwargs: {eps: 0.001, lr: 0.001} | ||
scheduler_class: '!class graphnet.training.callbacks PiecewiseLinearLR' | ||
scheduler_config: {interval: step} | ||
scheduler_kwargs: | ||
factors: [0.01, 1, 0.01] | ||
milestones: [0, 33.0, 330] | ||
tasks: | ||
- ModelConfig: | ||
arguments: | ||
hidden_size: 128 | ||
loss_function: | ||
ModelConfig: | ||
arguments: {} | ||
class_name: MSELoss | ||
nb_outputs: 3 | ||
target_labels: [injection_position_x, injection_position_y, injection_position_z] | ||
transform_inference: "!function def unscale_XYZ(x):\n x[:,0] = 764.431509*x[:,0]\n x[:,1] =\ | ||
\ 785.041607*x[:,1]\n x[:,2] = 1083.249944*x[:,2]\n return x\n" | ||
transform_target: "!function def scale_XYZ(x):\n x[:,0] = x[:,0]/764.431509\n x[:,1] =\ | ||
\ x[:,1]/785.041607\n x[:,2] = x[:,2]/1083.249944\n return x\n" | ||
class_name: IdentityTask | ||
class_name: StandardModel |
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.