From 042cf1a65a2aae4bb2554a0a07056cdba6d4e11f Mon Sep 17 00:00:00 2001 From: Andru Liu <90433630+WallabyLester@users.noreply.github.com> Date: Mon, 7 Oct 2024 23:36:01 -0700 Subject: [PATCH] Cleaning up. --- RBF_numpy.py => NP_Implementation/RBF_numpy.py | 0 aPID_numpy.py => NP_Implementation/aPID_numpy.py | 0 README.md | 6 +++--- RBF_tf.py => TF_Implementation/RBF_tf.py | 0 aPID_tf.py => TF_Implementation/aPID_tf.py | 0 first_order_sim.py | 8 ++++---- 6 files changed, 7 insertions(+), 7 deletions(-) rename RBF_numpy.py => NP_Implementation/RBF_numpy.py (100%) rename aPID_numpy.py => NP_Implementation/aPID_numpy.py (100%) rename RBF_tf.py => TF_Implementation/RBF_tf.py (100%) rename aPID_tf.py => TF_Implementation/aPID_tf.py (100%) diff --git a/RBF_numpy.py b/NP_Implementation/RBF_numpy.py similarity index 100% rename from RBF_numpy.py rename to NP_Implementation/RBF_numpy.py diff --git a/aPID_numpy.py b/NP_Implementation/aPID_numpy.py similarity index 100% rename from aPID_numpy.py rename to NP_Implementation/aPID_numpy.py diff --git a/README.md b/README.md index 5481c1c..58bc0a4 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ with simulated data can be found in `first_order_sim.py` The method has been implemented in three ways: -1. TensorFlow : Using TF to build and train the RBF Model. +1. [TF_Implementation](/TF_Implementation/): Using TensorFlow to build and train the RBF Model. ![TensorFlow](images/tf_impl.png "TensorFlow") ![TF_Trained](images/trained.png "TF_Trained") -2. Numpy: Using Numpy to build and train the RBF Model. +2. [NP_Implementation](/NP_Implementation/): Using Numpy to build and train the RBF Model. ![Numpy](images/nump_impl.png "Numpy") -3. C++: Written in C++ (requiring `cmath`), for use on embedded systems. +3. C++ `CPP_Implementation`: Written in C++ (requiring `cmath`), for use on embedded systems. diff --git a/RBF_tf.py b/TF_Implementation/RBF_tf.py similarity index 100% rename from RBF_tf.py rename to TF_Implementation/RBF_tf.py diff --git a/aPID_tf.py b/TF_Implementation/aPID_tf.py similarity index 100% rename from aPID_tf.py rename to TF_Implementation/aPID_tf.py diff --git a/first_order_sim.py b/first_order_sim.py index 0f208e5..aef31c8 100644 --- a/first_order_sim.py +++ b/first_order_sim.py @@ -1,10 +1,10 @@ import matplotlib.pyplot as plt import numpy as np -from RBF_numpy import RBFNetwork -from aPID_numpy import AdaptivePIDNP -from RBF_tf import RBFAdaptiveModel, train_rbf_adaptive -from aPID_tf import AdaptivePIDTf +from NP_Implementation.RBF_numpy import RBFNetwork +from NP_Implementation.aPID_numpy import AdaptivePIDNP +from TF_Implementation.RBF_tf import RBFAdaptiveModel, train_rbf_adaptive +from TF_Implementation.aPID_tf import AdaptivePIDTf def simulate_system(controller, target, dt, T): """ Simulate control model as first order system.