forked from shangjingbo1226/ESim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·24 lines (20 loc) · 895 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Node file origin
node_file="dblp_data/node.dat"
link_file="dblp_data/link.dat"
path_file="dblp_data/path.dat"
output_file="results/vec.dat"
if [ ${node_file} == "dblp_data/node.dat" ] && [ ! -e dblp_data/node.dat ]; then
echo ${green}===Downloading DBLP Dataset===${reset}
curl http://dmserv2.cs.illinois.edu/data/data_dblp.tar.gz --output data_dblp.tar.gz
tar -xvf data_dblp.tar.gz
mv data_dblp dblp_data
fi
make
mkdir -p results
size=10 # embedding dimension
negative=5 # number of negative samples
samples=1 # number of edges (Million) for training at each iteration
iters=3 # number of iterations
threads=20 # number of threads for training
./bin/esim -model 2 -alpha 0.025 -node ${node_file} -link ${link_file} -path ${path_file} -output ${output_file} -binary 1 -size ${size} -negative ${negative} -samples ${samples} -iters ${iters} -threads ${threads}