Skip to content

Commit

Permalink
transe in package
Browse files Browse the repository at this point in the history
  • Loading branch information
conema committed Jan 14, 2021
1 parent 2e7e0dd commit 02bc722
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions TransE.py → TransEmodule/TransE.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from math import sqrt, ceil
import random
import time
from Embedding import Embedding
import utils
from TransEmodule.Embedding import Embedding
from TransEmodule import utils


class TransE:
Expand Down
Empty file added TransEmodule/__init__.py
Empty file.
File renamed without changes.
4 changes: 2 additions & 2 deletions example.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import findspark
from pyspark.sql import SparkSession
from pyspark import SparkContext, SparkConf
import utils
from TransE import TransE
from TransEmodule import utils
from TransEmodule.TransE import TransE

findspark.init()

Expand Down
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
from pyspark.sql import SparkSession
from pyspark import SparkContext, SparkConf
import utils
from TransEmodule import utils


def check_entities(x, map):
Expand Down

0 comments on commit 02bc722

Please sign in to comment.