Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what does the training parameter off hoprec #34

Open
ghost opened this issue Aug 2, 2018 · 6 comments
Open

what does the training parameter off hoprec #34

ghost opened this issue Aug 2, 2018 · 6 comments
Labels

Comments

@ghost
Copy link

ghost commented Aug 2, 2018

set -x
Threads=32

# download youtube-links dataset
zipfile="youtube-links.txt.gz"
if test -e "$zipfile";
then
    echo 'zip file exists'
else
    wget http://socialnetworks.mpi-sws.mpg.de/data/youtube-links.txt.gz
fi

# generate the network
zcat youtube-links.txt.gz | awk -F '    ' '{print $1" "$2" 1"}' > net.txt

# run the comment
../cli/hoprec -train net.txt -save rep_dw.txt -undirected 1 -dimensions 64 -walk_times 1 -walk_steps 40 -window_size 5 -negative_samples 5 -alpha 0.025 -threads $Threads

I use this script to test the hoprec algorithm, but it raise the error

Connections Preview:
	# of connection:	4945382
Connections Loading:
	Progress:		100.00 %
	# of vertex:		1138499
Build the Alias Method:
	Reconstructing Graph ...
	Building Alias Tables ...
	Finished.
Meta Data Preview:
train_youtube.sh: line 17: 208217 段错误               ../cli/hoprec -train net.txt -save rep_dw.txt -undirected 1 -dimensions 64 -walk_times 1 -walk_steps 40 -window_size 5 -negative_samples 5 -alpha 0.025 -threads $Threads

Did I use the wrong parameter, looking forward to your help?

@chihming
Copy link
Collaborator

chihming commented Aug 2, 2018

In current stage, hoprec requires inputing a .txt file specifying the which vertex is user/item like:

userA u
userB u
userC u
itemA i
itemB i
itemC i
itemD i

by -field arg. We realize it's a bit inconvenience, and we'll fix this in later version.

@ghost
Copy link
Author

ghost commented Aug 3, 2018

It means that every algorithm is better to take this form of file as the '-field' input?

@chihming
Copy link
Collaborator

chihming commented Aug 3, 2018

now only hoprec requires that

@zhenchengchang
Copy link

Do you solve this question?And How to input a .txt?
Thanks for you consideration.

set -x
Threads=32

# download youtube-links dataset
zipfile="youtube-links.txt.gz"
if test -e "$zipfile";
then
    echo 'zip file exists'
else
    wget http://socialnetworks.mpi-sws.mpg.de/data/youtube-links.txt.gz
fi

# generate the network
zcat youtube-links.txt.gz | awk -F '    ' '{print $1" "$2" 1"}' > net.txt

# run the comment
../cli/hoprec -train net.txt -save rep_dw.txt -undirected 1 -dimensions 64 -walk_times 1 -walk_steps 40 -window_size 5 -negative_samples 5 -alpha 0.025 -threads $Threads

I use this script to test the hoprec algorithm, but it raise the error

Connections Preview:
	# of connection:	4945382
Connections Loading:
	Progress:		100.00 %
	# of vertex:		1138499
Build the Alias Method:
	Reconstructing Graph ...
	Building Alias Tables ...
	Finished.
Meta Data Preview:
train_youtube.sh: line 17: 208217 段错误               ../cli/hoprec -train net.txt -save rep_dw.txt -undirected 1 -dimensions 64 -walk_times 1 -walk_steps 40 -window_size 5 -negative_samples 5 -alpha 0.025 -threads $Threads

Did I use the wrong parameter, looking forward to your help?
Have you solved this question?Could you tell me how to input a .txt?
Thank you.

@chihming
Copy link
Collaborator

chihming commented Jan 25, 2019

I found I missed explaining this in -help. I had updated its usage example. please try "-field xxx.txt"

@zhenchengchang
Copy link

Thanks for your reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants