{ "info": { "author": "Nicolas Hug", "author_email": "contact@nicolas-hug.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering" ], "description": "[![GitHub version](https://badge.fury.io/gh/nicolashug%2FSurprise.svg)](https://badge.fury.io/gh/nicolashug%2FSurprise)\n[![Documentation Status](https://readthedocs.org/projects/surprise/badge/?version=stable)](http://surprise.readthedocs.io/en/stable/?badge=stable)\n[![Build Status](https://travis-ci.org/NicolasHug/Surprise.svg?branch=master)](https://travis-ci.org/NicolasHug/Surprise)\n[![python versions](https://img.shields.io/badge/python-2.7%2C%203.5%2C%203.6-blue.svg)](http://surpriselib.com)\n[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n\n[![logo](logo_black.svg)](http://surpriselib.com)\n\nOverview\n--------\n\n[Surprise](http://surpriselib.com) is a Python\n[scikit](https://www.scipy.org/scikits.html) building and analyzing\nrecommender systems that deal with explicit rating data.\n\n[Surprise](http://surpriselib.com) **was designed with the\nfollowing purposes in mind**:\n\n- Give users perfect control over their experiments. To this end, a strong\n emphasis is laid on\n [documentation](http://surprise.readthedocs.io/en/stable/index.html), which we\n have tried to make as clear and precise as possible by pointing out every\n detail of the algorithms.\n- Alleviate the pain of [Dataset\n handling](http://surprise.readthedocs.io/en/stable/getting_started.html#load-a-custom-dataset).\n Users can use both *built-in* datasets\n ([Movielens](http://grouplens.org/datasets/movielens/),\n [Jester](http://eigentaste.berkeley.edu/dataset/)), and their own *custom*\n datasets.\n- Provide various ready-to-use [prediction\n algorithms](http://surprise.readthedocs.io/en/stable/prediction_algorithms_package.html)\n such as [baseline\n algorithms](http://surprise.readthedocs.io/en/stable/basic_algorithms.html),\n [neighborhood\n methods](http://surprise.readthedocs.io/en/stable/knn_inspired.html), matrix\n factorization-based (\n [SVD](http://surprise.readthedocs.io/en/stable/matrix_factorization.html#surprise.prediction_algorithms.matrix_factorization.SVD),\n [PMF](http://surprise.readthedocs.io/en/stable/matrix_factorization.html#unbiased-note),\n [SVD++](http://surprise.readthedocs.io/en/stable/matrix_factorization.html#surprise.prediction_algorithms.matrix_factorization.SVDpp),\n [NMF](http://surprise.readthedocs.io/en/stable/matrix_factorization.html#surprise.prediction_algorithms.matrix_factorization.NMF)),\n and [many\n others](http://surprise.readthedocs.io/en/stable/prediction_algorithms_package.html).\n Also, various [similarity\n measures](http://surprise.readthedocs.io/en/stable/similarities.html)\n (cosine, MSD, pearson...) are built-in.\n- Make it easy to implement [new algorithm\n ideas](http://surprise.readthedocs.io/en/stable/building_custom_algo.html).\n- Provide tools to [evaluate](http://surprise.readthedocs.io/en/stable/model_selection.html),\n [analyse](http://nbviewer.jupyter.org/github/NicolasHug/Surprise/tree/master/examples/notebooks/KNNBasic_analysis.ipynb/)\n and\n [compare](http://nbviewer.jupyter.org/github/NicolasHug/Surprise/blob/master/examples/notebooks/Compare.ipynb)\n the algorithms performance. Cross-validation procedures can be run very\n easily using powerful CV iterators (inspired by\n [scikit-learn](http://scikit-learn.org/) excellent tools), as well as\n [exhaustive search over a set of\n parameters](http://surprise.readthedocs.io/en/stable/getting_started.html#tune-algorithm-parameters-with-gridsearchcv).\n\n\nThe name *SurPRISE* (roughly :) ) stands for Simple Python RecommendatIon\nSystem Engine.\n\nPlease note that surprise does not support implicit ratings or content-based\ninformation.\n\n\nGetting started, example\n------------------------\n\nHere is a simple example showing how you can (down)load a dataset, split it for\n5-fold cross-validation, and compute the MAE and RMSE of the\n[SVD](http://surprise.readthedocs.io/en/stable/matrix_factorization.html#surprise.prediction_algorithms.matrix_factorization.SVD)\nalgorithm.\n\n\n```python\nfrom surprise import SVD\nfrom surprise import Dataset\nfrom surprise.model_selection import cross_validate\n\n# Load the movielens-100k dataset (download it if needed).\ndata = Dataset.load_builtin('ml-100k')\n\n# Use the famous SVD algorithm.\nalgo = SVD()\n\n# Run 5-fold cross-validation and print results.\ncross_validate(algo, data, measures=['RMSE', 'MAE'], cv=5, verbose=True)\n```\n\n**Output**:\n\n```\nEvaluating RMSE, MAE of algorithm SVD on 5 split(s).\n\n Fold 1 Fold 2 Fold 3 Fold 4 Fold 5 Mean Std\nRMSE 0.9311 0.9370 0.9320 0.9317 0.9391 0.9342 0.0032\nMAE 0.7350 0.7375 0.7341 0.7342 0.7375 0.7357 0.0015\nFit time 6.53 7.11 7.23 7.15 3.99 6.40 1.23\nTest time 0.26 0.26 0.25 0.15 0.13 0.21 0.06\n```\n\n[Surprise](http://surpriselib.com) can do **much** more (e.g,\n[GridSearchCV](http://surprise.readthedocs.io/en/stable/getting_started.html#tune-algorithm-parameters-with-gridsearchcv))!\nYou'll find [more usage\nexamples](http://surprise.readthedocs.io/en/stable/getting_started.html) in the\n[documentation ](http://surprise.readthedocs.io/en/stable/index.html).\n\n\nBenchmarks\n----------\n\nHere are the average RMSE, MAE and total execution time of various algorithms\n(with their default parameters) on a 5-fold cross-validation procedure. The\ndatasets are the [Movielens](http://grouplens.org/datasets/movielens/) 100k and\n1M datasets. The folds are the same for all the algorithms. All experiments are\nrun on a notebook with Intel Core i5 7th gen (2.5 GHz) and 8Go RAM. The code\nfor generating these tables can be found in the [benchmark\nexample](https://github.com/NicolasHug/Surprise/tree/master/examples/benchmark.py).\n\n| [Movielens 100k](http://grouplens.org/datasets/movielens/100k) | RMSE | MAE | Time |\n|:---------------------------------------------------------------------------------------------------------------------------------------|-------:|------:|:--------|\n| [SVD](http://surprise.readthedocs.io/en/stable/matrix_factorization.html#surprise.prediction_algorithms.matrix_factorization.SVD) | 0.934 | 0.737 | 0:00:11 |\n| [SVD++](http://surprise.readthedocs.io/en/stable/matrix_factorization.html#surprise.prediction_algorithms.matrix_factorization.SVDpp) | 0.92 | 0.722 | 0:09:03 |\n| [NMF](http://surprise.readthedocs.io/en/stable/matrix_factorization.html#surprise.prediction_algorithms.matrix_factorization.NMF) | 0.963 | 0.758 | 0:00:15 |\n| [Slope One](http://surprise.readthedocs.io/en/stable/slope_one.html#surprise.prediction_algorithms.slope_one.SlopeOne) | 0.946 | 0.743 | 0:00:08 |\n| [k-NN](http://surprise.readthedocs.io/en/stable/knn_inspired.html#surprise.prediction_algorithms.knns.KNNBasic) | 0.98 | 0.774 | 0:00:10 |\n| [Centered k-NN](http://surprise.readthedocs.io/en/stable/knn_inspired.html#surprise.prediction_algorithms.knns.KNNWithMeans) | 0.951 | 0.749 | 0:00:10 |\n| [k-NN Baseline](http://surprise.readthedocs.io/en/stable/knn_inspired.html#surprise.prediction_algorithms.knns.KNNBaseline) | 0.931 | 0.733 | 0:00:12 |\n| [Co-Clustering](http://surprise.readthedocs.io/en/stable/co_clustering.html#surprise.prediction_algorithms.co_clustering.CoClustering) | 0.963 | 0.753 | 0:00:03 |\n| [Baseline](http://surprise.readthedocs.io/en/stable/basic_algorithms.html#surprise.prediction_algorithms.baseline_only.BaselineOnly) | 0.944 | 0.748 | 0:00:01 |\n| [Random](http://surprise.readthedocs.io/en/stable/basic_algorithms.html#surprise.prediction_algorithms.random_pred.NormalPredictor) | 1.514 | 1.215 | 0:00:01 |\n\n\n| [Movielens 1M](http://grouplens.org/datasets/movielens/1m) | RMSE | MAE | Time |\n|:---------------------------------------------------------------------------------------------------------------------------------------|-------:|------:|:--------|\n| [SVD](http://surprise.readthedocs.io/en/stable/matrix_factorization.html#surprise.prediction_algorithms.matrix_factorization.SVD) | 0.873 | 0.686 | 0:02:13 |\n| [SVD++](http://surprise.readthedocs.io/en/stable/matrix_factorization.html#surprise.prediction_algorithms.matrix_factorization.SVDpp) | 0.862 | 0.673 | 2:54:19 |\n| [NMF](http://surprise.readthedocs.io/en/stable/matrix_factorization.html#surprise.prediction_algorithms.matrix_factorization.NMF) | 0.916 | 0.724 | 0:02:31 |\n| [Slope One](http://surprise.readthedocs.io/en/stable/slope_one.html#surprise.prediction_algorithms.slope_one.SlopeOne) | 0.907 | 0.715 | 0:02:31 |\n| [k-NN](http://surprise.readthedocs.io/en/stable/knn_inspired.html#surprise.prediction_algorithms.knns.KNNBasic) | 0.923 | 0.727 | 0:05:27 |\n| [Centered k-NN](http://surprise.readthedocs.io/en/stable/knn_inspired.html#surprise.prediction_algorithms.knns.KNNWithMeans) | 0.929 | 0.738 | 0:05:43 |\n| [k-NN Baseline](http://surprise.readthedocs.io/en/stable/knn_inspired.html#surprise.prediction_algorithms.knns.KNNBaseline) | 0.895 | 0.706 | 0:05:55 |\n| [Co-Clustering](http://surprise.readthedocs.io/en/stable/co_clustering.html#surprise.prediction_algorithms.co_clustering.CoClustering) | 0.915 | 0.717 | 0:00:31 |\n| [Baseline](http://surprise.readthedocs.io/en/stable/basic_algorithms.html#surprise.prediction_algorithms.baseline_only.BaselineOnly) | 0.909 | 0.719 | 0:00:19 |\n| [Random](http://surprise.readthedocs.io/en/stable/basic_algorithms.html#surprise.prediction_algorithms.random_pred.NormalPredictor) | 1.504 | 1.206 | 0:00:19 |\n\n\nInstallation\n------------\n\nWith pip (you'll need [numpy](http://www.numpy.org/), and a C compiler. Windows\nusers might prefer using conda):\n\n $ pip install numpy\n $ pip install scikit-surprise\n\nWith conda:\n\n $ conda install -c conda-forge scikit-surprise\n\nFor the latest version, you can also clone the repo and build the source\n(you'll first need [Cython](http://cython.org/) and\n[numpy](http://www.numpy.org/)):\n\n $ pip install numpy cython\n $ git clone https://github.com/NicolasHug/surprise.git\n $ cd surprise\n $ python setup.py install\n\nLicense\n-------\n\nThis project is licensed under the [BSD\n3-Clause](https://opensource.org/licenses/BSD-3-Clause) license, so it can be\nused for pretty much everything, including commercial applications. Please let\nus know how [Surprise](http://surpriselib.com) is useful to you!\n\nHere is a Bibtex entry if you ever need to cite Surprise in a research paper\n(please keep us posted, we would love to know if Surprise was helpful to you):\n\n @Misc{Surprise,\n author = {Hug, Nicolas},\n title = { {S}urprise, a {P}ython library for recommender systems},\n howpublished = {\\url{http://surpriselib.com}},\n year = {2017}\n }\n\nContributors\n------------\n\nThe following persons have contributed to [Surprise](http://surpriselib.com):\n\ncaoyi, \u041e\u043b\u0435\u0433 \u0414\u0435\u043c\u0438\u0434\u0435\u043d\u043a\u043e, Charles-Emmanuel Dias, dmamylin, Lauriane Ducasse,\nMarc Feger, franckjay, Lukas Galke, Pierre-Fran\u00e7ois Gimenez, Zachary\nGlassman, Nicolas Hug, Janniks, Doruk Kilitcioglu, Ravi Raju Krishna, Hengji\nLiu, Maher Malaeb, Manoj K, Naturale0, nju-luke, Jay Qi, Skywhat, David\nStevens, Victor Wang, Mike Lee Williams, Jay Wong, Chenchen Xu, YaoZh1918.\n\nThanks a lot :) !\n\nDevelopment Status\n------------------\n\nStarting from version 1.1.0 (September 19), we will only maintain the\npackage and provide bugfixes. No new features will be considered.\n\nFor bugs, issues or questions about [Surprise](http://surpriselib.com),\nplease use the GitHub [project page](https://github.com/NicolasHug/Surprise).\nPlease don't send emails (we will not answer).", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://surpriselib.com", "keywords": "recommender recommendation system", "license": "GPLv3+", "maintainer": "", "maintainer_email": "", "name": "scikit-surprise", "package_url": "https://pypi.org/project/scikit-surprise/", "platform": "", "project_url": "https://pypi.org/project/scikit-surprise/", "project_urls": { "Homepage": "http://surpriselib.com" }, "release_url": "https://pypi.org/project/scikit-surprise/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "An easy-to-use library for recommender systems.", "version": "1.1.0" }, "last_serial": 5826952, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "de5cced29d640b19126598d8902bb7e5", "sha256": "33abd1cd65f1048e247524ed7456eff8098b0736f9a9efe24627f95ae054cf84" }, "downloads": -1, "filename": "scikit-surprise-1.0.1.tar.gz", "has_sig": false, "md5_digest": "de5cced29d640b19126598d8902bb7e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1546368, "upload_time": "2017-01-02T19:44:19", "url": "https://files.pythonhosted.org/packages/ce/2c/f224725a3b13fae841a3854791dd2884b98e83ff1a7e8b02c09fe9abdd0f/scikit-surprise-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "cf9928b07b4a405ef36225600078ffb7", "sha256": "7c5a1d8f17381c7d66d7713a37f87f480cc6650fe58ae5de6a9c2b9ae0ba240f" }, "downloads": -1, "filename": "scikit-surprise-1.0.2.tar.gz", "has_sig": false, "md5_digest": "cf9928b07b4a405ef36225600078ffb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 503964, "upload_time": "2017-01-04T11:42:22", "url": "https://files.pythonhosted.org/packages/78/9f/45821adeda7e8a56ef2e773b45c370832fdb8772957ed5bf50c6239658b1/scikit-surprise-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "7d6f80cf87f2e0e52a9ac7eab9ceb385", "sha256": "f1fef83602896983b37451ea9a285156070d933a87c87f7ad67d5a4c434f2df5" }, "downloads": -1, "filename": "scikit-surprise-1.0.3.tar.gz", "has_sig": false, "md5_digest": "7d6f80cf87f2e0e52a9ac7eab9ceb385", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2371233, "upload_time": "2017-05-03T15:36:50", "url": "https://files.pythonhosted.org/packages/db/78/d91f18804153d9b64e3b6e7305c785374d3a8be33f0fc0f3bd5db56727c0/scikit-surprise-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "fe78e4d468e45a2663da82402d51f34d", "sha256": "538ff0adc237ac399babf70186a0c46aa2af6809e2b08d2938404291d04be7cf" }, "downloads": -1, "filename": "scikit-surprise-1.0.4.tar.gz", "has_sig": false, "md5_digest": "fe78e4d468e45a2663da82402d51f34d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2317883, "upload_time": "2017-09-30T10:12:16", "url": "https://files.pythonhosted.org/packages/dc/49/1e0a86818436f47501804cebf3bebea7427200a6575f5bd5f652badc8a1f/scikit-surprise-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "0ac746b2721ba48cb3ce10ec55c5b34d", "sha256": "228d70be7a38a54fcf4582849064d9754c46ad9a867dd65145d179b9afabaf43" }, "downloads": -1, "filename": "scikit-surprise-1.0.5.tar.gz", "has_sig": false, "md5_digest": "0ac746b2721ba48cb3ce10ec55c5b34d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2431412, "upload_time": "2018-01-09T11:19:00", "url": "https://files.pythonhosted.org/packages/a4/a3/70a00e68fd212b37ad4a14d9e3bc417ee11535c036c2534bf9c3bd4c6876/scikit-surprise-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "90687b4cd56f5cfadfaebcd274b920da", "sha256": "b5ac14feebbcfaf8303eef258f4106badb8286e29fd19cbe30534590347d3ed4" }, "downloads": -1, "filename": "scikit-surprise-1.0.6.tar.gz", "has_sig": false, "md5_digest": "90687b4cd56f5cfadfaebcd274b920da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3305790, "upload_time": "2018-04-22T16:17:55", "url": "https://files.pythonhosted.org/packages/4d/fc/cd4210b247d1dca421c25994740cbbf03c5e980e31881f10eaddf45fdab0/scikit-surprise-1.0.6.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "332f83a28f8144ccf389349cb4902ad5", "sha256": "7a01a271814ffbe2ace95ab22376bd78ea8d229d9159c6415ddfbed4a4e5259d" }, "downloads": -1, "filename": "scikit-surprise-1.1.0.tar.gz", "has_sig": false, "md5_digest": "332f83a28f8144ccf389349cb4902ad5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6449308, "upload_time": "2019-09-13T17:27:10", "url": "https://files.pythonhosted.org/packages/f5/da/b5700d96495fb4f092be497f02492768a3d96a3f4fa2ae7dea46d4081cfa/scikit-surprise-1.1.0.tar.gz" } ], "1.1rc0": [ { "comment_text": "", "digests": { "md5": "dfdb87de407096b33bb2eae281058ae2", "sha256": "75aa9e809be180cd7310fca8b5f31c0357fdb096daed1ba697cf548ebb3b6210" }, "downloads": -1, "filename": "scikit-surprise-1.1rc0.tar.gz", "has_sig": false, "md5_digest": "dfdb87de407096b33bb2eae281058ae2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6449282, "upload_time": "2019-09-13T15:00:47", "url": "https://files.pythonhosted.org/packages/98/93/9542510d90f9ffee22206118df6a87f569131f660858dfcb9cd45ab171fe/scikit-surprise-1.1rc0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "332f83a28f8144ccf389349cb4902ad5", "sha256": "7a01a271814ffbe2ace95ab22376bd78ea8d229d9159c6415ddfbed4a4e5259d" }, "downloads": -1, "filename": "scikit-surprise-1.1.0.tar.gz", "has_sig": false, "md5_digest": "332f83a28f8144ccf389349cb4902ad5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6449308, "upload_time": "2019-09-13T17:27:10", "url": "https://files.pythonhosted.org/packages/f5/da/b5700d96495fb4f092be497f02492768a3d96a3f4fa2ae7dea46d4081cfa/scikit-surprise-1.1.0.tar.gz" } ] }