Skip to content

Commit 3926ad7

Browse files
committed
1. modify deprecated stuff
1 parent 84bdd7e commit 3926ad7

9 files changed

Lines changed: 12 additions & 182 deletions

File tree

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[run]
2-
source=bigraph
2+
source=emgraph

License.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ EmGraph is distributed with the 3-clause BSD license.
55

66
::
77

8-
Copyright (C) 2019-2021, BiGraph Developers
8+
Copyright (C) 2019-2021, EmGraph Developers
99
Soran Ghaderi <soran.gdr.cs@gmail.com>
1010
Taleb Zarhesh <taleb.zarhesh@gmail.com>
1111
All rights reserved.
@@ -22,7 +22,7 @@ EmGraph is distributed with the 3-clause BSD license.
2222
disclaimer in the documentation and/or other materials provided
2323
with the distribution.
2424

25-
* Neither the name of the BiGraph Developers nor the names of its
25+
* Neither the name of the EmGraph Developers nor the names of its
2626
contributors may be used to endorse or promote products derived
2727
from this software without specific prior written permission.
2828

README.md

Lines changed: 0 additions & 151 deletions
Original file line numberDiff line numberDiff line change
@@ -171,65 +171,6 @@ if __name__ == '__main__':
171171

172172
[//]: # (<p>Metrics that are calculated during evaluation:</p>)
173173

174-
[//]: # ()
175-
[//]: # (<div>)
176-
177-
[//]: # (<table>)
178-
179-
[//]: # (<caption><b>Metrics table</b></caption>)
180-
181-
[//]: # ( <tr>)
182-
183-
[//]: # ( <td><b>Number</b></td>)
184-
185-
[//]: # ( <td align="center"><b>Evaluattion metrics</b></td>)
186-
187-
[//]: # ( </tr>)
188-
189-
[//]: # ( <tr>)
190-
191-
[//]: # ( <td align="center">1</td>)
192-
193-
[//]: # ( <td><code>Precision</code></td>)
194-
195-
[//]: # ( </tr>)
196-
197-
[//]: # ( <tr>)
198-
199-
[//]: # ( <td align="center">2</td>)
200-
201-
[//]: # ( <td><code>AUC</code></td>)
202-
203-
[//]: # ( </tr>)
204-
205-
[//]: # ( <tr>)
206-
207-
[//]: # ( <td align="center">3</td>)
208-
209-
[//]: # ( <td><code>ROC</code></td>)
210-
211-
[//]: # ( </tr>)
212-
213-
[//]: # ( <tr>)
214-
215-
[//]: # ( <td align="center">4</td>)
216-
217-
[//]: # ( <td><code>returns fpr*</code></td>)
218-
219-
[//]: # ( </tr>)
220-
221-
[//]: # ( <tr>)
222-
223-
[//]: # ( <td align="center">5</td>)
224-
225-
[//]: # ( <td><code>returns tpr*</code></td>)
226-
227-
[//]: # ( </tr>)
228-
229-
[//]: # (</table>)
230-
231-
[//]: # (</div>)
232-
233174
[//]: # ()
234175
[//]: # (> * For further usages and calculating different metrics)
235176

@@ -238,98 +179,6 @@ if __name__ == '__main__':
238179

239180
[//]: # (<p>Your dataset should be in the following format &#40;Exclude the 'Row' column&#41;:</p>)
240181

241-
[//]: # ()
242-
[//]: # (<div>)
243-
244-
[//]: # (<table>)
245-
246-
[//]: # (<caption><b>Sample edges &#40;links&#41; dataset</b></caption>)
247-
248-
[//]: # ( <tr>)
249-
250-
[//]: # ( <td><b>Row</b></td>)
251-
252-
[//]: # ( <td align="center"><b>left_side</b></td>)
253-
254-
[//]: # ( <td align="center"><b>right_side</b></td>)
255-
256-
[//]: # ( <td align="center"><b>Weight*</b></td>)
257-
258-
[//]: # ( </tr>)
259-
260-
[//]: # ( <tr>)
261-
262-
[//]: # ( <td align="center">1</td>)
263-
264-
[//]: # ( <td><code>u0</code></td>)
265-
266-
[//]: # ( <td><code>v1</code></td>)
267-
268-
[//]: # ( <td>1</td>)
269-
270-
[//]: # ( </tr>)
271-
272-
[//]: # ( <tr>)
273-
274-
[//]: # ( <td align="center">2</td>)
275-
276-
[//]: # ( <td><code>u2</code></td>)
277-
278-
[//]: # ( <td><code>v1</code></td>)
279-
280-
[//]: # ( <td>1</td>)
281-
282-
[//]: # ( </tr>)
283-
284-
[//]: # ( <tr>)
285-
286-
[//]: # ( <td align="center">3</td>)
287-
288-
[//]: # ( <td><code>u1</code></td>)
289-
290-
[//]: # ( <td><code>v2</code></td>)
291-
292-
[//]: # ( <td>1</td>)
293-
294-
[//]: # ( </tr>)
295-
296-
[//]: # ( <tr>)
297-
298-
[//]: # ( <td align="center">4</td>)
299-
300-
[//]: # ( <td><code>u3</code></td>)
301-
302-
[//]: # ( <td><code>v3</code></td>)
303-
304-
[//]: # ( <td>1</td>)
305-
306-
[//]: # ( </tr>)
307-
308-
[//]: # ( <tr>)
309-
310-
[//]: # ( <td align="center">5</td>)
311-
312-
[//]: # ( <td><code>u4</code></td>)
313-
314-
[//]: # ( <td><code>v3</code></td>)
315-
316-
[//]: # ( <td>2</td>)
317-
318-
[//]: # ( </tr>)
319-
320-
[//]: # (</table>)
321-
322-
[//]: # (</div>)
323-
324-
[//]: # ()
325-
[//]: # (> * Note that running <pre>)
326-
327-
[//]: # ( <code>from bigraph.preprocessing import import_files df, df_nodes = import_files&#40;&#41;</code></pre>will create a sample graph for you and will place it in the)
328-
329-
[//]: # ( <code>inputs</code> directory.)
330-
331-
[//]: # (> * Although the weight has not been involved in current version, but, the format will be the same.)
332-
333182
<h3>More examples</h3>
334183
<p>Embedding wordnet11 graph using
335184
<code><b>DistMult</b></code> model:</p>

emgraph/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2017-2022 Bigraph developers
1+
# Copyright (C) 2017-2022 Emgraph developers
22
# Author: Soran Ghadri
33
# Contact: soran.gdr.cs@gmail.com
44

emgraph/evaluation/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2017-2021 Bigraph developers
1+
# Copyright (C) 2017-2022 Emgraph developers
22
# Author: Soran Ghadri
33
# Contact: soran.gdr.cs@gmail.com
44

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
here = os.path.abspath(os.path.dirname(__file__))
1414

1515
NAME = "Emgraph"
16-
DESCRIPTION = "Bigraph is a Python toolkit for graph embedding and link prediction."
16+
DESCRIPTION = "Emgraph is a Python toolkit for graph embedding."
1717

1818
PLATFORMS = ["Linux", "Mac OSX", "Windows", "Unix"]
1919
VERSION = get_version()
@@ -22,7 +22,7 @@
2222
"Taleb": ("Taleb Zarhesh", "taleb.zarhesh@gmail.com"),
2323
}
2424

25-
MAINTAINER = "BiGraph Developers"
25+
MAINTAINER = "Emgraph Developers"
2626
MAINTAINER_EMAIL = "soran.gdr.cs@gmail.com"
2727

2828
KEYWORDS = [
@@ -96,7 +96,7 @@ def parse_requirements_file(filename):
9696
keywords=KEYWORDS,
9797
platforms=PLATFORMS,
9898
long_description_content_type="text/markdown",
99-
url="https://github.com/bi-graph/bigraph",
99+
url="https://github.com/bi-graph/emgraph",
100100
packages=find_packages(exclude=('tests', 'docs', 'html', 'requirements')),
101101
install_requires=requirements,
102102
extras_require=extras_require,

tests/emgraph/unit/tests.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

tests/emgraph/utils/test_model_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
import numpy as np
44
import pandas as pd
55
import numpy.testing as npt
6-
from bigraph.utils import save_model, restore_model, create_tensorboard_visualizations, \
6+
from emgraph.utils import save_model, restore_model, create_tensorboard_visualizations, \
77
write_metadata_tsv, dataframe_to_triples
8-
from bigraph.latent_features import TransE
8+
from emgraph.models import TransE
99
import pytest
1010

1111

1212
def test_save_and_restore_model():
1313
models = ('ComplEx', 'TransE', 'DistMult')
1414

1515
for model_name in models:
16-
module = importlib.import_module("emgraph.latent_features.models")
16+
module = importlib.import_module("emgraph.models.models")
1717

1818
print('Doing save/restore testing for model class: ', model_name)
1919

tests/utils/test_model_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_save_and_restore_model():
1313
models = ('ComplEx', 'TransE', 'DistMult')
1414

1515
for model_name in models:
16-
module = importlib.import_module("emgraph.latent_features.models")
16+
module = importlib.import_module("emgraph.models.models")
1717

1818
print('Doing save/restore testing for model class: ', model_name)
1919

0 commit comments

Comments
 (0)