Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zenklinov/metrics-distance-tensorflow
Distance Metrics for larga dataset using TensorFlow
https://github.com/zenklinov/metrics-distance-tensorflow
distance-measure dtw-distances euclidean-distances tensorflow
Last synced: 2 days ago
JSON representation
Distance Metrics for larga dataset using TensorFlow
- Host: GitHub
- URL: https://github.com/zenklinov/metrics-distance-tensorflow
- Owner: zenklinov
- License: cc0-1.0
- Created: 2024-03-10T02:57:32.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-16T09:09:15.000Z (8 months ago)
- Last Synced: 2024-03-16T10:47:57.474Z (8 months ago)
- Topics: distance-measure, dtw-distances, euclidean-distances, tensorflow
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Metrics Distance TensorFlow
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.
## File List
`Import-Data-Drive.py`: This script is used to import data from Google Drive to Google Colab using Google Colab.
### Euclidean Distance
1. `euclidean-calculate.py`: This script calculates the Euclidean distance between each pair of data rows in the dataset using TensorFlow.
2. `euclidean-save-file.py`: This script saves the Euclidean distance matrix to a CSV file.
3. `euclidean-view-result.py`: This script loads and displays the calculated Euclidean distance results that have been saved in CSV format.
### Dynamic Time Warping (DTW) Distance
1. `dtw-calculate.py`: This script calculates the Dynamic Time Warping (DTW) Distance between each pair of data rows in the dataset using TensorFlow.
2. `dtw-save-file.py`: This script saves the DTW distance matrix to a CSV file.
3. `dtw-view-result.py`: This script loads and displays the calculated DTW distance results that have been saved in CSV format.
## How to Use
1. Ensure you have Google Colab or a Python environment with the required dependencies installed.
2. Make sure the data to be processed is available in your Google Drive, or adjust the file paths used in the scripts accordingly.
3. Run the appropriate scripts to import data, calculate distances, save results, and view the results as needed.## Important Notes
1. Make sure you have installed the required dependencies before running the scripts, such as TensorFlow and fastdtw.
2. Note that some scripts may require adjustments to file paths according to the location of your data in Google Drive.
3. 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](https://github.com/zenklinov/nasapower/blob/main/nasa_power_data_filtered_within.xlsx) located in the repository [zenklinov/nasapower](https://github.com/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.