How to use the lightfm.__version__ function in lightfm

To help you get started, we’ve selected a few lightfm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lyst / lightfm / setup.py View on Github external
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main(self.pytest_args)
        sys.exit(errno)


use_openmp = not sys.platform.startswith('darwin') and not sys.platform.startswith('win')

setup(
    name='lightfm',
    version=version,
    description='LightFM recommendation model',
    url='https://github.com/lyst/lightfm',
    download_url='https://github.com/lyst/lightfm/tarball/{}'.format(version),
    packages=['lightfm',
              'lightfm.datasets'],
    package_data={'': ['*.c']},
    install_requires=['numpy', 'scipy>=0.17.0', 'requests', 'scikit-learn'],
    tests_require=['pytest', 'requests', 'scikit-learn'],
    cmdclass={'test': PyTest, 'cythonize': Cythonize, 'clean': Clean},
    author='Lyst Ltd (Maciej Kula)',
    author_email='data@ly.st',
    license='MIT',
    classifiers=['Development Status :: 3 - Alpha',
                 'License :: OSI Approved :: MIT License',
                 'Topic :: Scientific/Engineering :: Artificial Intelligence'],
    ext_modules=define_extensions(use_openmp)
)
github lyst / lightfm / setup.py View on Github external
TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main(self.pytest_args)
        sys.exit(errno)


use_openmp = not sys.platform.startswith('darwin') and not sys.platform.startswith('win')

setup(
    name='lightfm',
    version=version,
    description='LightFM recommendation model',
    url='https://github.com/lyst/lightfm',
    download_url='https://github.com/lyst/lightfm/tarball/{}'.format(version),
    packages=['lightfm',
              'lightfm.datasets'],
    package_data={'': ['*.c']},
    install_requires=['numpy', 'scipy>=0.17.0', 'requests', 'scikit-learn'],
    tests_require=['pytest', 'requests', 'scikit-learn'],
    cmdclass={'test': PyTest, 'cythonize': Cythonize, 'clean': Clean},
    author='Lyst Ltd (Maciej Kula)',
    author_email='data@ly.st',
    license='MIT',
    classifiers=['Development Status :: 3 - Alpha',
                 'License :: OSI Approved :: MIT License',
                 'Topic :: Scientific/Engineering :: Artificial Intelligence'],
    ext_modules=define_extensions(use_openmp)
github lyst / lightfm / doc / conf.py View on Github external
# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'LightFM'
copyright = u'2016, Lyst (Maciej Kula)'
author = u'Lyst (Maciej Kula)'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = lightfm.__version__
# The full version, including alpha/beta/rc tags.
release = lightfm.__version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
github lyst / lightfm / doc / conf.py View on Github external
#source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'LightFM'
copyright = u'2016, Lyst (Maciej Kula)'
author = u'Lyst (Maciej Kula)'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = lightfm.__version__
# The full version, including alpha/beta/rc tags.
release = lightfm.__version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'