-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Powershell scripts for init and start. Also, updated sample app for K-Fold cross validation to use the model name used by the Prediction app.
- Loading branch information
Nabeel
committed
Oct 25, 2018
1 parent
6db9354
commit 4ebd083
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Write-Output "Setting up the Python virtual environment..." | ||
python -m venv $PSScriptRoot\qlik-py-env | ||
Write-Output "Copying project files to the new directory..." | ||
xcopy /E /I $PSScriptRoot\generated $PSScriptRoot\qlik-py-env\generated | ||
xcopy /E /I $PSScriptRoot\core $PSScriptRoot\qlik-py-env\core | ||
Write-Output "Activating the virtual environment..." | ||
& $PSScriptRoot\qlik-py-env\Scripts\activate.ps1 | ||
Write-Output "Installing required packages..." | ||
python -m pip install --upgrade setuptools pip | ||
pip install grpcio grpcio-tools numpy scipy pandas cython | ||
pip install pystan==2.17 | ||
pip install fbprophet | ||
pip install -U scikit-learn | ||
pip install hdbscan | ||
pip install -U skater | ||
Write-Output "Creating a new firewall rule for TCP port 50055..." | ||
netsh advfirewall firewall add rule name=Qlik-PyTools dir=in action=allow protocol=TCP localport=50055 | ||
Write-Output "All done. Run Qlik-Py-Start.bat to start the SSE Extension Service." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
& $PSScriptRoot\qlik-py-env\Scripts\activate.ps1 | ||
cd $PSScriptRoot\qlik-py-env\core | ||
python __main__.py |
Binary file not shown.