-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2051 from recommenders-team/miguel/jupyter_book
New documentation with Jupyter book
- Loading branch information
Showing
30 changed files
with
467 additions
and
530 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# --------------------------------------------------------- | ||
# Copyright (c) Recommenders contributors. | ||
# Licensed under the MIT License. | ||
# --------------------------------------------------------- | ||
|
||
name: Update Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10 | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -q --upgrade pip setuptools wheel | ||
pip install -q --no-use-pep517 lightfm | ||
pip install -q .[all] | ||
pip install -q -r docs/requirements-doc.txt | ||
- name: List dependencies | ||
run: | | ||
pip list | ||
- name: Build documentation | ||
run: | | ||
jupyter-book config sphinx docs/ | ||
sphinx-build docs docs/_build/html -b html | ||
- name: Configure Git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
- name: Create and switch to gh-pages branch | ||
run: | | ||
git checkout -b gh-pages | ||
git pull origin gh-pages || true | ||
- name: Copy built documentation | ||
run: cp -r docs/_build/html/* . | ||
|
||
- name: Add and commit changes | ||
run: | | ||
git add * -f | ||
git commit -m "Update documentation" | ||
- name: Configure pull strategy (rebase) | ||
run: git config pull.rebase true | ||
|
||
- name: Pull latest changes from remote gh-pages branch | ||
run: git pull -Xtheirs origin gh-pages | ||
|
||
- name: Push changes to gh-pages | ||
run: git push origin gh-pages |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,55 @@ | ||
# Copyright (c) Recommenders contributors. | ||
# Licensed under the MIT License. | ||
|
||
# Book settings | ||
# Learn more at https://jupyterbook.org/customize/config.html | ||
|
||
# To build the Jupyter Book: | ||
# $ jupyter-book clean docs | ||
# $ jupyter-book build docs | ||
|
||
|
||
title: Recommenders documentation | ||
author: Recommenders contributors | ||
copyright: "2018-2024" | ||
logo: https://raw.githubusercontent.com/recommenders-team/artwork/main/color/recommenders_color.svg | ||
|
||
|
||
# Short description about the book | ||
description: >- | ||
Recommenders - Python utilities for building recommendation systems | ||
execute: | ||
execute_notebooks : off | ||
|
||
# Interact link settings | ||
notebook_interface : "notebook" | ||
|
||
# Launch button settings | ||
repository: | ||
url : https://github.com/recommenders-team/recommenders | ||
path_to_book : /docs | ||
branch : main | ||
|
||
launch_buttons: | ||
notebook_interface : classic | ||
|
||
# HTML-specific settings | ||
html: | ||
favicon : https://raw.githubusercontent.com/recommenders-team/artwork/main/icon/recommenders_color_icon.svg | ||
home_page_in_navbar : false | ||
use_repository_button : true | ||
use_issues_button : true | ||
baseurl : https://recommenders-team.github.io/recommenders/ | ||
|
||
sphinx: | ||
extra_extensions: | ||
- sphinx.ext.autodoc | ||
- sphinx.ext.doctest | ||
- sphinx.ext.intersphinx | ||
- sphinx.ext.ifconfig | ||
- sphinx.ext.napoleon # To render Google format docstrings | ||
- sphinx.ext.viewcode # Add links to highlighted source code | ||
|
||
|
||
|
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,18 @@ | ||
# Copyright (c) Recommenders contributors. | ||
# Licensed under the MIT License. | ||
|
||
# Table of contents | ||
# Learn more at https://jupyterbook.org/customize/toc.html | ||
|
||
format: jb-book | ||
root: intro | ||
defaults: | ||
numbered: false | ||
parts: | ||
- caption: Recommenders API Documentation | ||
chapters: | ||
- file: datasets | ||
- file: evaluation | ||
- file: models | ||
- file: tuning | ||
- file: utils |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- | ||
Copyright (c) Recommenders contributors. | ||
Licensed under the MIT License. | ||
--> | ||
|
||
# Welcome to Recommenders | ||
|
||
Recommenders objective is to assist researchers, developers and enthusiasts in prototyping, experimenting with and bringing to production a range of classic and state-of-the-art recommendation systems. | ||
|
||
````{margin} | ||
```sh | ||
pip install recommenders | ||
``` | ||
<a class="github-button" href="https://github.com/recommenders-team/recommenders" data-icon="octicon-star" style="margin:auto" data-size="large" data-show-count="true" aria-label="Star Recommenders on GitHub">Star Us</a><script async defer src="https://buttons.github.io/buttons.js"></script> | ||
```` | ||
|
||
Recommenders is a project under the [Linux Foundation of AI and Data](https://lfaidata.foundation/projects/). | ||
|
||
This repository contains examples and best practices for building recommendation systems, provided as Jupyter notebooks. | ||
|
||
The examples detail our learnings on five key tasks: | ||
|
||
- Prepare Data: Preparing and loading data for each recommendation algorithm. | ||
- Model: Building models using various classical and deep learning recommendation algorithms such as Alternating Least Squares ([ALS](https://spark.apache.org/docs/latest/api/python/_modules/pyspark/ml/recommendation.html#ALS)) or eXtreme Deep Factorization Machines ([xDeepFM](https://arxiv.org/abs/1803.05170)). | ||
- Evaluate: Evaluating algorithms with offline metrics. | ||
- Model Select and Optimize: Tuning and optimizing hyperparameters for recommendation models. | ||
- Operationalize: Operationalizing models in a production environment. | ||
|
||
Several utilities are provided in the `recommenders` library to support common tasks such as loading datasets in the format expected by different algorithms, evaluating model outputs, and splitting training/test data. Implementations of several state-of-the-art algorithms are included for self-study and customization in your own applications. | ||
|
||
|
||
<!-- ```{tableofcontents} | ||
``` --> | ||
|
Oops, something went wrong.