-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildall.ps1
28 lines (21 loc) · 707 Bytes
/
buildall.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
# Activate virtual environment
.\venv\Scripts\activate
# Stop IIS prediction website (needs to be run as administrator)
Stop-Website -Name MarketBasketTensorflow
# Generate transactions file
$CurrentDir = Get-Location
Set-Location -Path "O:\XXX\bin"
$TargetFile = "$CurrentDir\Data\transactions.csv"
& ".\aprastenexptrn.exe" $TargetFile
# Go back to python dir.
Set-Location -Path $CurrentDir
# Delete previous model
Remove-Item -Recurse -Force model
# Generate model from data
python preprocess.py
python gen_dataset.py
python train.py --verbose=2
python export.py
python export_serving.py
# Start IIS prediction website (needs to be run as administrator)
Start-Website -Name MarketBasketTensorflow