Skip to content

owx0130/da-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

da-test

Get tidal level based on vessel arrival time

Tidal data obtained from here.

2024 tidal data only taken up till Mar 24.

Sample of how the tidal data should look like is found under the tidal_data folder

To use, drag and drop the vessel_arrival.csv dataset into the root directory. Make sure that the columns for day, month, year and time exist, as they are required to lookup the tidal tables and obtain the tide level. Refer to tide_getter.py for more information on the exact required format of these columns.

out.csv contains the tide level at the vessel's time of arrival.

Use KNN (with Damerau-Levenshtein distance) for feature extraction

Use KNN on the cargo_description dataset with free text input to perform feature extraction.

To use, create the training and testing text files, TRAIN.txt and TEST.txt and drop them into the root directory. The required format of data is written in the comments under the KNN Classifier section.

To use K-Fold Cross Validation, pass the desired data into the DATA.txt file, then run the code in the section.

See sample data in SAMPLE_CARGO.txt for a sample of what the text files should look like.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages