Skip to content
Snippets Groups Projects
Commit 88f71b02 authored by Rishi Sharma's avatar Rishi Sharma
Browse files

Add run.sh

parent 39f34441
No related branches found
No related tags found
No related merge requests found
#!/bin/zsh
cd ~/Gitlab/decentralizepy/eval
#!/bin/bash
decpy_path=~/Gitlab/decentralizepy/eval
cd $decpy_path
first_machine=128
m=`/sbin/ifconfig ens785 | grep 'inet ' | awk '{print $2}' | awk -v FS=. '{print $4}'`
m=`expr $m - 128`
m=`expr $m - $first_machine`
env_python=~/miniconda3/envs/decpy/bin/python3
original_config=config_femnist_grow.ini
graph=96_nodes_random2.edges
graph=96_nodes_random1.edges
original_config=epoch_configs/config_celeba.ini
config_file=/tmp/config.ini
procs_per_machine=16
machines=6
iterations=70
iterations=76
test_after=2
eval_file=testing.py
log_level=INFO
cp $original_config $config_file
echo "alpha = 0.75" >> $config_file
$env_python $eval_file -mid $m -ps $procs_per_machine -ms $machines -is $iterations -gf $graph -ta $test_after -cf $config_file -ll $log_level
cp $original_config $config_file
echo "alpha = 0.50" >> $config_file
$env_python $eval_file -mid $m -ps $procs_per_machine -ms $machines -is $iterations -gf $graph -ta $test_after -cf $config_file -ll $log_level
cp $original_config $config_file
echo "alpha = 0.10" >> $config_file
$env_python $eval_file -mid $m -ps $procs_per_machine -ms $machines -is $iterations -gf $graph -ta $test_after -cf $config_file -ll $log_level
config_file=epoch_configs/config_celeba_100.ini
$env_python $eval_file -mid $m -ps $procs_per_machine -ms $machines -is $iterations -gf $graph -ta $test_after -cf $original_config -ll $log_level
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment