-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
256 changed files
with
43,370 additions
and
15,504 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# To contribute improvements to CI/CD templates, please follow the Development guide at: | ||
# https://docs.gitlab.com/ee/development/cicd/templates.html | ||
# This specific template is located at: | ||
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml | ||
|
||
# Official language image. Look for the different tagged releases at: | ||
# https://hub.docker.com/r/library/python/tags/ | ||
image: python:3.10.6 | ||
|
||
# Change pip's cache directory to be inside the project directory since we can | ||
# only cache local items. | ||
variables: | ||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" | ||
|
||
# Pip's cache doesn't store the python packages | ||
# https://pip.pypa.io/en/stable/topics/caching/ | ||
# | ||
# If you want to also cache the installed packages, you have to install | ||
# them in a virtualenv and cache it as well. | ||
cache: | ||
paths: | ||
- .cache/pip | ||
- venv/ | ||
|
||
before_script: | ||
- python --version # For debugging | ||
- pip install virtualenv | ||
- virtualenv venv | ||
- source venv/bin/activate | ||
- pip install --upgrade pip | ||
- pip install tensorflow==2.10 | ||
|
||
codestyle: | ||
script: | ||
- pip install pylint | ||
- pylint --fail-under=3 -v ./ampligraph | ||
|
||
test: | ||
script: | ||
- python setup.py test | ||
|
||
run: | ||
script: | ||
- pip install wheel setuptools | ||
- pip wheel --wheel-dir dist --no-deps . | ||
artifacts: | ||
paths: | ||
- dist/*.whl | ||
|
||
pages: | ||
script: | ||
- pip install sphinx sphinx-rtd-theme | ||
- cd docs | ||
- make clean autogen html | ||
- mkdir ../public/ | ||
- mv _build/html/ ../public/ | ||
artifacts: | ||
paths: | ||
- public | ||
|
||
deploy: | ||
stage: deploy | ||
script: echo "Define your deployment script!" | ||
environment: production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
# Copyright 2019-2021 The AmpliGraph Authors. All Rights Reserved. | ||
# Copyright 2019-2023 The AmpliGraph Authors. All Rights Reserved. | ||
# | ||
# This file is Licensed under the Apache License, Version 2.0. | ||
# This file is Licensed under the Apache License, Version 2.0.0. | ||
# A copy of the Licence is available in LICENCE, or at: | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
"""AmpliGraph is a library for relational learning on knowledge graphs.""" | ||
import logging.config | ||
import pkg_resources | ||
|
||
import pkg_resources | ||
import tensorflow as tf | ||
|
||
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR) | ||
|
||
__version__ = '1.4.0' | ||
__version__ = '2.0.0' | ||
__all__ = ['datasets', 'latent_features', 'discovery', 'evaluation', 'utils'] | ||
|
||
logging.config.fileConfig(pkg_resources.resource_filename(__name__, 'logger.conf'), disable_existing_loggers=False) | ||
logging.config.fileConfig( | ||
pkg_resources.resource_filename(__name__, "logger.conf"), | ||
disable_existing_loggers=False, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright 2019-2023 The AmpliGraph Authors. All Rights Reserved. | ||
# | ||
# This file is Licensed under the Apache License, Version 2.0. | ||
# A copy of the Licence is available in LICENCE, or at: | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
"""Provides backward compatibility to AmpliGraph 1 APIs.""" | ||
from .evaluate import evaluate_performance | ||
from .models import ComplEx, DistMult, HolE, TransE | ||
|
||
__all__ = ["evaluate_performance", "TransE", "ComplEx", "DistMult", "HolE"] |
Oops, something went wrong.