Skip to content

Commit

Permalink
Parallelized Link Prediction
Browse files Browse the repository at this point in the history
  • Loading branch information
luigiba committed Aug 5, 2019
1 parent cdd9cd6 commit d0029ba
Show file tree
Hide file tree
Showing 22 changed files with 1,152 additions and 1,165 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

456 changes: 60 additions & 396 deletions .idea/workspace.xml

Large diffs are not rendered by default.

576 changes: 442 additions & 134 deletions Config.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion OpenKE_new_Spark.iml → OpenKEonSpark.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
Expand Down
Binary file modified __pycache__/Config.cpython-36.pyc
Binary file not shown.
Binary file modified __pycache__/distribute_training.cpython-36.pyc
Binary file not shown.
5 changes: 0 additions & 5 deletions base/Base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ INT getTrainTotal_();
extern "C"
INT getBatchTotal();

//EDIT
extern "C"
void setConstrainFlag(INT con);

extern "C"
void randReset();

Expand Down Expand Up @@ -130,7 +126,6 @@ void* getBatch(void* con) {

}


for (INT times = 0; times < negRelRate; times++) {
batch_h[batch + last] = trainList_no[i].h;
batch_t[batch + last] = trainList_no[i].t;
Expand Down
9 changes: 0 additions & 9 deletions base/Setting.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,11 @@ INT getValidTotal() {
*/

INT bernFlag = 0;
//EDIT
INT constrainFlag = 0;

extern "C"
void setBern(INT con) {
bernFlag = con;
}

//EDIT
extern "C"
void setConstrainFlag(INT con) {
constrainFlag = con;
}



#endif
Loading

0 comments on commit d0029ba

Please sign in to comment.