You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fast Siamese Recurrent Neural Network Approximation for the Triangular Global Alignment Kernel
Global Alignment Kernel
Copy compute_gram_matrix.json_sample to any name what you want.
$cd experiments
$cp compute_gram_matrix.json_sample (new_json_file_name)
Specify
dataset_type: UCIauslan, UCIcharacter or upperChar
dataset_location: the directory which holds the dataset
output_dir: directory to save the results
output_filename_format: format of the output file
sigma and triangular: gak variables
data_augmentation_size: number of times to augment
Run the experiment
$python3 compute_gram_matrix.py with (new_json_file_name)
GRAM Matrix-based approach
Matrix completion
Copy complete_matrix_(algorithm).json_sample to any name what you want.
$cd experiments
$cp compute_gram_matrix.json_sample (new_json_file_name)
Modify the parameters
"fast_rnn" requires a pretrained model.
Run the experiment
$python3 complete_matrix.py with (new_json_file_name)
Classification error
Run the experiment
$python3 compute_classification_errors.py with (parameter)=(new_value)
Feature-based approach
Feature mapping approximation
Copy linear_svm.json_sample to any name what you want.
$cd experiments
$cp linear_svm.json_sample (new_json_file_name)
Modify the parameters This method requires a pretrained model.
Run the experiment
$python3 linear_svm.py with (new_json_file_name)
About
Implementation for Fast Siamese Recurrent Neural Network Approximation for the Triangular Global Alignment Kernel by Shota Nagayama, Zoltan Milacski, Andras Lorincz.