-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.ps1
44 lines (33 loc) · 1.74 KB
/
run.ps1
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
$glovePathList = @('./glove_embedding/glove.twitter.27B.25d.txt',
'./glove_embedding/glove.twitter.27B.200d.txt',
'./glove_embedding/glove.6B.200d.txt',
'./glove_embedding/glove.6B.300d.txt')
# './glove_embedding/glove.42B.300d.txt')
$wordEmbeddingDimList = @(25, 200, 200, 300)
$batchSizeList = @(5, 10)
$epochList = @(5, 10, 20)
$hiddenDimList = $wordEmbeddingDimList
for ($i = 0; $i -lt $glovePathList.Length; $i++) {
$glovePath = $glovePathList[$i]
$wordEmbeddingDim = $wordEmbeddingDimList[$i]
$hiddenDim = $hiddenDimList[$i]
foreach ($batchSize in $batchSizeList) {
foreach ($epoch in $epochList) {
Write-Host "Start" -ForegroundColor Yellow
Write-Host("=================================")
Write-Host("Configurations are the following: ")
Write-Host("=================================")
Write-Host("Glove path: $($glovePath)")
Write-Host("Word embedding dimension: $($wordEmbeddingDim)")
Write-Host("Batch size: $($batchSize)")
Write-Host("Epoch: $($epoch)")
Write-Host("Hidden dimension: $($hiddenDim)")
Write-Host "Running" -ForegroundColor Yellow
$gloveName = $glovePath.split("/")[2]
$resultName = "$($gloveName)_WE$($wordEmbeddingDim)_BS$($batchSize)_EP$($epoch)_HD$($hiddenDim).txt"
python ./train_and_test.py --data_path=./data/covid_dataset.csv --glove_path=$glovePath --batch_size=$batchSize --epoch=$epoch --word_embedding_dim=$wordEmbeddingDim --hidden_dim=$hiddenDim > result/$resultName
Write-Host "Done" -ForegroundColor Green
Write-Host "`n`n"
}
}
}