This repository contains Python scripts to calculate various distance metrics between rows of data in a dataset using TensorFlow. The implemented distance metrics include Dynamic Time Warping (DTW) Distance and Euclidean Distance.
Import-Data-Drive.py
: This script is used to import data from Google Drive to Google Colab using Google Colab.
-
euclidean-calculate.py
: This script calculates the Euclidean distance between each pair of data rows in the dataset using TensorFlow. -
euclidean-save-file.py
: This script saves the Euclidean distance matrix to a CSV file. -
euclidean-view-result.py
: This script loads and displays the calculated Euclidean distance results that have been saved in CSV format.
-
dtw-calculate.py
: This script calculates the Dynamic Time Warping (DTW) Distance between each pair of data rows in the dataset using TensorFlow. -
dtw-save-file.py
: This script saves the DTW distance matrix to a CSV file. -
dtw-view-result.py
: This script loads and displays the calculated DTW distance results that have been saved in CSV format.
- Ensure you have Google Colab or a Python environment with the required dependencies installed.
- Make sure the data to be processed is available in your Google Drive, or adjust the file paths used in the scripts accordingly.
- Run the appropriate scripts to import data, calculate distances, save results, and view the results as needed.
- Make sure you have installed the required dependencies before running the scripts, such as TensorFlow and fastdtw.
- Note that some scripts may require adjustments to file paths according to the location of your data in Google Drive.
- Be sure to read the documentation and comments within each script before using or modifying them.
The data file nasa_power_data_filtered_within.xlsx located in the repository zenklinov/nasapower is the dataset mentioned above, which is stored in my drive.
Please refer to the README.md and individual scripts for more information on how to use and modify the scripts in this repository.