forked from sargassum-busters/ASI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_ASI.py
29 lines (19 loc) · 795 Bytes
/
test_ASI.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Driver program to test a previously generated ASI model against a test dataset
# ==============================================================================
import sys
from ASI import ASI_Index
# ==============================================================================
# Program configuration
# See ASI.py for further details
# Path to the testing set
test_set_path = "T16QEJ_20190706T160839_ML_full.npy"
#test_set_path = sys.argv[1]
# Path to the ASI model
model_path = "ASImodelColabv2.h5"
# Batch size for evaluation -- this can be large!
batch_size = 2048
# ==============================================================================
# Initialize the ASI class
ASI = ASI_Index()
# Test the given model
ASI.test_model(test_set_path, model_path, batch_size=batch_size)