Skip to content

Commit

Permalink
better looking notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
taddyb committed Feb 22, 2024
1 parent a06799e commit 44c908d
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions notebooks/ExampleConfiguration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
{
"cell_type": "code",
"execution_count": 40,
"execution_count": 1,
"id": "549cbd99-100c-4ad9-8ff6-cef7309c0210",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -83,7 +83,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 2,
"id": "ac501919-2de5-4b1a-86a4-3063fd060b9f",
"metadata": {},
"outputs": [
Expand All @@ -93,7 +93,7 @@
"{'defaults': [{'config': '03_train_usgs_period_1a'}, {'hydra_settings': 'settings'}, '_self_'], 'cwd': '/data/tkb5476/projects/dMC-Juniata-hydroDL2', 'data_dir': '/data/tkb5476/projects/dMC-Juniata-hydroDL2/flat_files/dMC-Juniata-hydroDL2/dx-2000dis1_non_merge', 'name': '03_train_usgs_period_1a', 'device': 'cpu', 'config': {'service_locator': {'experiment': 'generate_synthetic.GenerateSynthetic', 'data': 'nhd_srb.NHDSRB', 'observations': 'usgs.USGS', 'physics': 'explicit_mc.ExplicitMC', 'neural_network': 'single_parameters.SingleParameters'}, 'data': {'processed_dir': '${cwd}/flat_files', 'end_node': 4809, 'time': {'start': '02/01/2001 00:00:00', 'end': '09/18/2010 23:00:00', 'steps': 1344, 'tau': 9, 'batch_size': '${config.data.time.steps}'}, 'observations': {'loss_nodes': [1053, 1280, 2662, 2689, 2799, 4780, 4801, 4809], 'dir': '${data_dir}/inflow_interpolated/', 'file_name': '???'}, 'save_paths': {'edges': '${config.data.processed_dir}/${config.data.end_node}_edges.csv', 'nodes': '${config.data.processed_dir}/${config.data.end_node}_nodes.csv', 'areas': '${config.data.processed_dir}/${config.data.end_node}_areas.npy', 'q_prime': '${config.data.processed_dir}/${config.data.end_node}_tau${config.data.time.tau}_{}_{}_q_prime.csv', 'network': '${config.data.processed_dir}/${config.data.end_node}_network_matrix.csv', 'gage_locations': '${config.data.processed_dir}/gages_II_locations.csv', 'q_prime_sum': '${config.data.processed_dir}/${config.data.end_node}_tau${config.data.time.tau}_q_prime_sum.npy'}, 'csv': {'edges': '${data_dir}/graphs/edges_NaNFix.csv', 'nodes': '${data_dir}/graphs/node.csv', 'q_prime': '${data_dir}/graphs/srb_post_process.csv', 'mass_transfer_matrix': '${data_dir}/graphs/TM.csv'}}, 'experiment': {'learning_rate': 0.01, 'epochs': 100, 'warmup': 72, 'lb': [0.01, 0.0], 'ub': [0.3, 3.0], 'factor': 100, 'name': '${name}', 'save_path': '${cwd}/runs/01_synthetic_data/', 'output_cols': '${config.data.observations.loss_nodes}', 'tensorboard_dir': '${cwd}/logs/srb/${name}/${now:%Y-%m-%d}/'}, 'model': {'noise': 0.005, 'train_q': True, 'seed': 0, 'mlp': {'initialization': 'xavier_normal', 'fan': 'fan_in', 'gain': 0.7, 'hidden_size': 6, 'input_size': 8, 'output_size': 2}, 'length': {'idx': 8}, 'slope': {'idx': 2, 'min': 0.0001, 'max': 0.3}, 'velocity': {'min': 0.3, 'max': 15}, 'q_prime': {'min': 0}, 'variables': {'n': 0.03, 'p': 21.0, 'q': 0.5, 't': 3600.0, 'x': 0.3}, 'transformations': {'n': [0.01, 0.3], 'q_spatial': [0, 3]}, 'save_paths': {'areas': '${config.data.save_paths.areas}'}, 'is_base': True}}}"
]
},
"execution_count": 23,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -107,7 +107,7 @@
},
{
"cell_type": "code",
"execution_count": 52,
"execution_count": 3,
"id": "ccfeacc2-dbd6-48e4-95e0-5af753a48c1b",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -137,17 +137,17 @@
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": 4,
"id": "6fef710d-566e-449b-abf8-5cd94ce89111",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<torch.utils.data.dataloader.DataLoader at 0x7f6c8dfa6ad0>"
"<torch.utils.data.dataloader.DataLoader at 0x7fe9a42baf50>"
]
},
"execution_count": 41,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -178,7 +178,7 @@
},
{
"cell_type": "code",
"execution_count": 47,
"execution_count": 5,
"id": "154f92d6-4f1b-4f17-9ef4-f85ccbbc7c82",
"metadata": {},
"outputs": [
Expand All @@ -190,7 +190,7 @@
")"
]
},
"execution_count": 47,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -205,7 +205,7 @@
},
{
"cell_type": "code",
"execution_count": 48,
"execution_count": 6,
"id": "0ffde6ac-ae29-41af-b77b-f6fa96a385ac",
"metadata": {},
"outputs": [
Expand All @@ -216,7 +216,7 @@
"tensor(0.0300, requires_grad=True)"
]
},
"execution_count": 48,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -235,17 +235,17 @@
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": 7,
"id": "eb4efb99-df66-4f98-ac01-a86838698a4e",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<dMC.experiments.generate_synthetic.GenerateSynthetic at 0x7f6c8dc42a10>"
"<dMC.experiments.generate_synthetic.GenerateSynthetic at 0x7fe9a42bb710>"
]
},
"execution_count": 37,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -269,14 +269,14 @@
},
{
"cell_type": "code",
"execution_count": 49,
"execution_count": 8,
"id": "6faa7b78-5f66-40e4-a6b6-6cf9801f0315",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "1351a637b50d4eca89c02c49fbf73fd5",
"model_id": "242174c4316e4c56aaacb3f2e198b94e",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -294,7 +294,7 @@
},
{
"cell_type": "code",
"execution_count": 51,
"execution_count": 9,
"id": "cfd0506a-c8dc-4563-8340-5e15e325d74b",
"metadata": {},
"outputs": [
Expand All @@ -304,7 +304,7 @@
"PosixPath('/data/tkb5476/projects/dMC-Juniata-hydroDL2/runs/01_synthetic_data')"
]
},
"execution_count": 51,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -315,7 +315,7 @@
},
{
"cell_type": "code",
"execution_count": 55,
"execution_count": 10,
"id": "e573eb1b-e848-4806-9865-61014c16f40f",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -432,7 +432,7 @@
"4 0.632635 1.268810 "
]
},
"execution_count": 55,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -490,6 +490,14 @@
"- `03_train_usgs_period_4a.yaml`\n",
"- `03_train_usgs_period_4b.yaml`"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "1d319124-2aa6-49f5-8fa5-3635f8f252c5",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 44c908d

Please sign in to comment.