Completed training for max normalized comparison
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 8.0 MiB |
@ -52,7 +52,7 @@ dt = 0.02 # Time step
|
|||||||
num_steps = 500 # Simulation time steps
|
num_steps = 500 # Simulation time steps
|
||||||
|
|
||||||
# Directory containing controller files
|
# Directory containing controller files
|
||||||
loss_function = "constant"
|
loss_function = "quadratic"
|
||||||
controller_dir = f"/home/judson/Neural-Networks-in-GNC/inverted_pendulum/training/normalized/training/{loss_function}/controllers"
|
controller_dir = f"/home/judson/Neural-Networks-in-GNC/inverted_pendulum/training/normalized/training/{loss_function}/controllers"
|
||||||
#controller_dir = f"C:/Users/Judson/Desktop/New Gitea/Neural-Networks-in-GNC/inverted_pendulum/training/{loss_function}/controllers"
|
#controller_dir = f"C:/Users/Judson/Desktop/New Gitea/Neural-Networks-in-GNC/inverted_pendulum/training/{loss_function}/controllers"
|
||||||
controller_files = sorted([f for f in os.listdir(controller_dir) if f.startswith("controller_") and f.endswith(".pth")])
|
controller_files = sorted([f for f in os.listdir(controller_dir) if f.startswith("controller_") and f.endswith(".pth")])
|
||||||
@ -62,7 +62,7 @@ controller_epochs = [int(f.split('_')[1].split('.')[0]) for f in controller_file
|
|||||||
sorted_controllers = [x for _, x in sorted(zip(controller_epochs, controller_files))]
|
sorted_controllers = [x for _, x in sorted(zip(controller_epochs, controller_files))]
|
||||||
|
|
||||||
# **Epoch Range Selection**
|
# **Epoch Range Selection**
|
||||||
epoch_range = (0, 500) # Set your desired range (e.g., (0, 5000) or (0, 100))
|
epoch_range = (0, 1000) # Set your desired range (e.g., (0, 5000) or (0, 100))
|
||||||
|
|
||||||
filtered_controllers = [
|
filtered_controllers = [
|
||||||
f for f in sorted_controllers
|
f for f in sorted_controllers
|
||||||
|
|||||||
BIN
analysis/exponential.png
Normal file
|
After Width: | Height: | Size: 9.4 MiB |
BIN
analysis/inverse.png
Normal file
|
After Width: | Height: | Size: 8.7 MiB |
BIN
analysis/inverse_squared.png
Normal file
|
After Width: | Height: | Size: 8.3 MiB |
BIN
analysis/linear.png
Normal file
|
After Width: | Height: | Size: 7.5 MiB |
BIN
analysis/quadratic.png
Normal file
|
After Width: | Height: | Size: 9.8 MiB |