recommender-systems
所属分类:数据可视化
开发工具:Python
文件大小:23KB
下载次数:0
上传日期:2018-04-05 23:51:05
上 传 者:
sh-1993
说明: 这是我在参加复发中心时对推荐系统的探索。包括几个玩具的例子和...
(This is my exploration of recommender systems while attending the Recurse Center. Includes several toy examples and a less toy example using Charity Navigator data.)
文件列表:
__init__.py (0, 2018-04-06)
api.py (3393, 2018-04-06)
cat_food.txt (762, 2018-04-06)
charities_realdeal.ipynb (13379, 2018-04-06)
charities_toydata.txt (640, 2018-04-06)
charities_toyscript.py (5199, 2018-04-06)
charity_scraping.py (5762, 2018-04-06)
clean_json.py (1728, 2018-04-06)
cn_working.txt (0, 2018-04-06)
etl.py (653, 2018-04-06)
test_api.py (1544, 2018-04-06)
tests (0, 2018-04-06)
tests\.cache (0, 2018-04-06)
tests\.cache\v (0, 2018-04-06)
tests\.cache\v\cache (0, 2018-04-06)
tests\.cache\v\cache\lastfailed (54, 2018-04-06)
tests\__init__.py (0, 2018-04-06)
tests\__pycache__ (0, 2018-04-06)
tests\__pycache__\__init__.cpython-35.pyc (142, 2018-04-06)
tests\__pycache__\test_doctest.cpython-35-PYTEST.pyc (476, 2018-04-06)
tests\__pycache__\test_hypothesis.cpython-35-PYTEST.pyc (2041, 2018-04-06)
tests\__pycache__\test_hypothesis.cpython-35.pyc (1060, 2018-04-06)
tests\__pycache__\test_pytest.cpython-35-PYTEST.pyc (6951, 2018-04-06)
tests\__pycache__\test_unittest.cpython-35-PYTEST.pyc (1527, 2018-04-06)
tests\__pycache__\test_unittest.cpython-35.pyc (1454, 2018-04-06)
tests\charities_realdeal.py (325, 2018-04-06)
tests\test_doctest.py (289, 2018-04-06)
tests\test_hypothesis.py (703, 2018-04-06)
tests\test_pytest.py (2198, 2018-04-06)
tests\test_unittest.py (729, 2018-04-06)
## Recommender Systems
Author: Emily Quinn Finney
This is my exploration of recommender systems while attending the Recurse
Center (https://www.recurse.com/). The original code was written with the
intent of being tested on toy databases (charities_toydata.txt and
cat_food.txt). In the future, it will be implemented using data obtained
from Charity Navigator (https://www.charitynavigator.org/).
## Features
The package includes:
* api.py: Code I used to access the Charity Navigator server using its API and
Python's requests package.
* charities_realdeal.ipynb (not yet implemented): a Jupyter notebook
containing a brief analysis of data obtained from Charity Navigator.
* charities_toyscript.py: an implementation of a content-based recommender
system, primarily using toy databases.
* test_api.py: a pytest module that tests the api.py module.
## Running Tests
The package also includes a directory of tests (```tests/```) written for the
charities_toyscript.py module. I used this project as a means of exploring
several test frameworks in Python, so the test directory contains tests written
for Python's unittest, pytest, doctest, and hypothesis libraries.
To run the unittest module, ensure pytest is installed. Then type
```
pytest -v -s tests/test_unittest.py
```
To run the pytest module, ensure pytest is installed. Then type
```
pytest -v -s tests/test_pytest.py
```
Running the code suffices to run the doctests, and examples are shown in each function's docstrings.
To run the hypothesis module, ensure pytest and hypothesis are installed. Then type
```
pytest -v -s tests/test_hypothesis.py
```
Last edited 04/05/2018
近期下载者:
相关文件:
收藏者: