Simple Windows InstructionΒΆ
This is the simplest instruction to run DiviK on Windows.
- Install Docker (see Install)
- Create
run_divik.bat
with following content:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | @echo off
tasklist /FI "IMAGENAME eq Docker Desktop.exe" 2>NUL | find /I /N "Docker Desktop.exe">NUL
if "%ERRORLEVEL%"=="0" (
echo Docker is running
) ELSE (
echo Docker is not running, launching - please wait....
start "" /B "C:\Program Files\Docker\Docker\Docker Desktop.exe"
timeout 60 /nobreak
)
echo Checking for updates...
docker pull gmrukwa/divik
docker run^
--rm^
-it^
--volume %cd%:/data^
gmrukwa/divik^
divik^
--source /data/data.csv^
--config /data/divik.json^
--destination /data/results^
--verbose
pause
|
- Put your data into
data.csv
- Create
divik.json
starting from such template:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | {
"gap_trials": 10,
"distance_percentile": 99.0,
"max_iter": 100,
"distance": "correlation",
"minimal_size": 16,
"rejection_size": 2,
"minimal_features_percentage": 0.01,
"fast_kmeans_iter": 10,
"k_max": 10,
"normalize_rows": true,
"use_logfilters": true,
"n_jobs": -1,
"random_seed": 0,
"verbose": true
}
|
- Adjust the configuration to your needs
Note
Configuration follows the JSON format with fields defined as
``here <https://github.com/gmrukwa/divik/blob/master/divik/_cli/divik.md>`_.
- Double click the
run_divik.bat