资源简介

基于社交网络的推荐系统需要的用户相似度物品相似度计算程序代码和测试代码,编程语言为python

资源截图

代码片段和文件信息

#!/usr/bin/env python

import os

descr = “““Crab is a flexible fast recommender engine for Python. The engine
  aims to provide a rich set of components from which you can construct a
  customized recommender system from a set of algorithms.“““

DISTNAME = ‘scikits.crab‘
DEscriptION = ‘A recommender engine for Python.‘
LONG_DEscriptION = open(‘README.md‘).read()
MAINTAINER = ‘Marcel Caraciolo‘
MAINTAINER_EMAIL = ‘marcel@muricoca.com‘
URL = ‘http://muricoca.github.com/crab/‘
LICENSE = ‘new BSD‘
DOWNLOAD_URL = “http://pypi.python.org/pypi/crab“
VERSION = ‘0.1‘

from numpy.distutils.core import setup


def configuration(parent_package=‘‘ top_path=None):
    if os.path.exists(‘MANIFEST‘):
        os.remove(‘MANIFEST‘)

    from numpy.distutils.misc_util import Configuration
    config = Configuration(None parent_package top_path
             namespace_packages=[‘scikits‘])

    config.set_options(
                ignore_setup_xxx_py=True
                assume_default_configuration=True
                delegate_options_to_subpackages=True
                quiet=True
    )

    subpackages = [‘.‘.join(i[0].split(‘/‘)) for i in os.walk(‘scikits‘) if ‘__init__.py‘ in i[2]]
    [config.add_subpackage(sub_package) for sub_package in subpackages]
    config.add_data_files(‘scikits/__init__.py‘)

    return config

if __name__ == “__main__“:
    setup(configuration=configuration
        name=DISTNAME
        version=VERSION
        include_package_data=True
        package_data={
            ‘scikits‘: [
                ‘crab/datasets/data/*.*‘
                ‘crab/datasets/descr/*.*‘
                ]
            }
        install_requires=‘numpy‘
        maintainer=MAINTAINER
        maintainer_email=MAINTAINER_EMAIL
        description=DEscriptION
        license=LICENSE
        url=URL
        download_url=DOWNLOAD_URL
        long_description=LONG_DEscriptION
        zip_safe=False  # the package can run out of an .egg file
          classifiers=[
              ‘Intended Audience :: Science/Research‘
              ‘Intended Audience :: Developers‘
              ‘License :: OSI Approved‘
              ‘Programming Language :: C‘
              ‘Programming Language :: Python‘
              ‘Topic :: Software Development‘
              ‘Topic :: Scientific/Engineering‘
              ‘Operating System :: Microsoft :: Windows‘
              ‘Operating System :: POSIX‘
              ‘Operating System :: Unix‘
              ‘Operating System :: MacOS‘
             ])

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-08-24 09:23  crab-master\
     文件          90  2016-08-24 09:23  crab-master\.gitignore
     文件         767  2016-08-24 09:23  crab-master\AUTHORS.rst
     文件        1558  2016-08-24 09:23  crab-master\COPYING
     文件        1456  2016-08-24 09:23  crab-master\LICENCE
     文件        3208  2016-08-24 09:23  crab-master\README.md
     目录           0  2016-08-24 09:23  crab-master\doc\
     文件        4582  2016-08-24 09:23  crab-master\doc\Makefile
     文件        7076  2016-08-24 09:23  crab-master\doc\conf.py
     文件         415  2016-08-24 09:23  crab-master\doc\index.rst
     文件        4507  2016-08-24 09:23  crab-master\doc\make.bat
     目录           0  2016-08-24 09:23  crab-master\examples\
     文件           0  2016-08-24 09:23  crab-master\examples\README.txt
     目录           0  2016-08-24 09:23  crab-master\scikits\
     文件           0  2016-08-24 09:23  crab-master\scikits\__init__.py
     目录           0  2016-08-24 09:23  crab-master\scikits\crab\
     文件        1535  2016-08-24 09:23  crab-master\scikits\crab\__init__.py
     文件        3498  2016-08-24 09:23  crab-master\scikits\crab\base.py
     目录           0  2016-08-24 09:23  crab-master\scikits\crab\datasets\
     文件         157  2016-08-24 09:23  crab-master\scikits\crab\datasets\__init__.py
     文件        6703  2016-08-24 09:23  crab-master\scikits\crab\datasets\base.py
     文件        5317  2016-08-24 09:23  crab-master\scikits\crab\datasets\book_crossing.py
     目录           0  2016-08-24 09:23  crab-master\scikits\crab\datasets\data\
     文件     1979173  2016-08-24 09:23  crab-master\scikits\crab\datasets\data\movielens100k.data
     文件      236344  2016-08-24 09:23  crab-master\scikits\crab\datasets\data\movielens100k.item
     文件        1195  2016-08-24 09:23  crab-master\scikits\crab\datasets\data\sample_movies.csv
     文件        1049  2016-08-24 09:23  crab-master\scikits\crab\datasets\data\sample_songs.csv
     目录           0  2016-08-24 09:23  crab-master\scikits\crab\datasets\descr\
     文件        1988  2016-08-24 09:23  crab-master\scikits\crab\datasets\descr\book-crossing.rst
     文件        6401  2016-08-24 09:23  crab-master\scikits\crab\datasets\descr\movielens100k.rst
     文件         202  2016-08-24 09:23  crab-master\scikits\crab\datasets\descr\sample_movies.rst
............此处省略66个文件信息

评论

共有 条评论