Skip to content

Commit

Permalink
Merge pull request #1 from neurodata/staging
Browse files Browse the repository at this point in the history
Update Staging
  • Loading branch information
EYezerets authored Oct 19, 2020
2 parents 99f5176 + 8f20cb3 commit 47f1e07
Show file tree
Hide file tree
Showing 112 changed files with 3,327 additions and 3,078 deletions.
12 changes: 11 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ Contributing to ProgLearn
(adopted from scikit-learn)

The latest contributing guide is available in the repository at
`docs/contributing.rst`
`docs/contributing.rst`, or online at:

[https://proglearn.neurodata.io/contributing.html](https://proglearn.neurodata.io/contributing.html)


There are many ways to contribute to ProgLearn, with the most common ones
being contribution of code or documentation to the project. Improving the
Expand All @@ -23,6 +26,13 @@ up" on issues that others reported and that are relevant to you. It also helps
us if you spread the word: reference the project from your blog and articles,
link to it from your website, or simply star it in GitHub to say "I use it".

Quick links
-----------

* [Submitting a bug report or feature request](http://proglearn.neurodata.io/contributing.html#submitting-a-bug-report-or-a-feature-request)
* [Contributing code](http://proglearn.neurodata.io/contributing.html#contributing-code)
* [Coding guidelines](http://proglearn.neurodata.io/contributing.html#coding-guidelines)

Code of Conduct
---------------

Expand Down
86 changes: 15 additions & 71 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,80 +1,24 @@
# ProgLearn

[![Build Status](https://travis-ci.org/neurodata/ProgLearn.svg?branch=main)](https://travis-ci.org/neurodata/ProgLearn)
[![codecov](https://codecov.io/gh/neurodata/ProgLearn/branch/main/graph/badge.svg)](https://codecov.io/gh/neurodata/ProgLearn)
[![codecov](https://codecov.io/gh/neurodata/ProgLearn/branches/main/graph/badge.svg)](https://codecov.io/gh/neurodata/ProgLearn)
[![PyPI version](https://img.shields.io/pypi/v/proglearn.svg)](https://pypi.org/project/proglearn/)
[![arXiv shield](https://img.shields.io/badge/arXiv-2004.12908-red.svg?style=flat)](https://arxiv.org/abs/2004.12908)
[![arXiv](https://img.shields.io/badge/arXiv-2004.12908-red.svg?style=flat)](https://arxiv.org/abs/2004.12908)
[![License](https://img.shields.io/badge/License-MIT-blue)](https://opensource.org/licenses/MIT)
[![Netlify Status](https://api.netlify.com/api/v1/badges/97f86f49-81ed-4292-a100-f7031b54ecc7/deploy-status)](https://app.netlify.com/sites/neuro-data-proglearn/deploys)
![Downloads](https://img.shields.io/pypi/dm/proglearn.svg)

`proglearn` (**Prog**ressive **Learn**ing) is a package for exploring and using progressive learning algorithms developed by the [neurodata group](https://neurodata.io).

- [Overview](#overview)
- [Documentation](#documentation)
- [System Requirements](#system-requirements)
- [Installation Guide](#installation-guide)
- [Contributing](#contributing)
- [License](#license)
- [Issues](#issues)
`ProgLearn` (**Prog**ressive **Learn**ing) is a package for exploring and using progressive learning algorithms developed by the [neurodata group](https://neurodata.io).

# Overview
The natural process of biological learning involves progressive acquisition of new information developing on past knowledge and experiences, which often leads to a performance improvement on a given task. Learning a second language, for instance, is associated with higher performance in an individual’s native language compared to that of monolinguals. In classical machine learning, the process usually begins from the state of <i>tabula rasa</i>, zero knowledge, and is optimized for a single task. The issues arise when the system is sequentially optimized for multiple tasks exhibiting “catastrophic forgetting,” diminishing performance of previously learned tasks. One of the current limitations of artificial intelligence revolves around this inability to transfer knowledge. <br><br>
The progressive learning package utilizes representation ensembling algorithms to sequentially learn a representation for each task and ensemble both old and new representations for all future decisions. Here, two complementary representation ensembling algorithms based on decision forests (Lifelong Forest) and deep networks (Lifelong Network) demonstrate forward and backward knowledge transfer of tasks on multiple real datasets, including both vision and language applications.
- **Installation Guide:** [http://proglearn.neurodata.io/install.html](http://proglearn.neurodata.io/install.html)
- **Documentation:** [http://proglearn.neurodata.io](http://proglearn.neurodata.io)
- **Tutorials:** [http://proglearn.neurodata.io/tutorials.html](http://proglearn.neurodata.io/tutorials.html)
- **Source Code:** [http://proglearn.neurodata.io/reference/index.html](http://proglearn.neurodata.io/reference/index.html)
- **Issues:** [https://github.com/neurodata/proglearn/issues](https://github.com/neurodata/proglearn/issues)
- **Contribution Guide:** [http://proglearn.neurodata.io/contributing.html](http://proglearn.neurodata.io/contributing.html)

# Documentation


# System Requirements
## Hardware requirements
`proglearn` package requires only a standard computer with enough RAM to support the in-memory operations.

## Software requirements
### OS Requirements
This package is supported for *Linux* and *macOS*. The package has been tested on the following systems:
+ Linux: Ubuntu 16.04
+ macOS: Mojave (10.14.1)
+ Windows: 10

### Python Requirements
This package is written for Python3. Currently, it is supported for Python 3.6 and 3.7.

### Python Dependencies
`proglearn` mainly depends on the Python scientific stack.
```
keras>=2.3.1
tensorflow>=1.19.0
scikit-learn>=0.22.0
scipy==1.4.1
numpy<1.19
joblib>=0.14.1
```

# Installation Guide
## Install from pip
```
pip install proglearn
```

## Install from Github
```
git clone https://github.com/neurodata/ProgLearn.git
cd ProgLearn
python3 setup.py install
```

# Contributing
We welcome contributions from anyone. Please see our [contribution guidelines](https://github.com/neurodata/ProgLearn/blob/main/CONTRIBUTING.md) before making a pull request. Our
[issues](https://github.com/neurodata/ProgLearn/issues) page is full of places we could use help!
If you have an idea for an improvement not listed there, please
[make an issue](https://github.com/neurodata/ProgLearn/issues/new) first so you can discuss with the
developers.

# License
This project is covered under the [MIT License](https://github.com/neurodata/ProgLearn/blob/main/LICENSE).

# Issues
We appreciate detailed bug reports and feature requests (though we appreciate pull requests even more!). Please visit our [issues](https://github.com/neurodata/ProgLearn/issues) page if you have questions or ideas.

# Citing ProgLearn
If you find ProgLearn useful in your work, please cite the package via the [progressive-learning paper](https://arxiv.org/pdf/2004.12908.pdf)

> Vogelstein JT, Helm HS, Mehta RD, Dey J, Yang W, Tower B, LeVine W, Larson J, White C, Priebe CE. A general approach to progressive learning. arXiv preprint arXiv:2004.12908. 2020 Apr 27.
Some system/package requirements:
- **Python**: 3.6+
- **OS**: All major platforms (Linux, macOS, Windows)
- **Dependencies**: keras, scikit-learn, scipy, numpy, joblib
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -351,4 +351,4 @@ def get_colors(colors, inds):


plt.savefig("./plots/parity_exp.pdf")
# %%
# %%
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
proglearn.neurodata.io
19 changes: 12 additions & 7 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = .
BUILDDIR = _build
BUILDDIR = _build/html

.PHONY: help clean html


# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"

.PHONY: help Makefile
clean:
-rm -rf _build/*

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) "$(SOURCEDIR)" "$(BUILDDIR)"
@echo
@echo "Build finished. The HTML pages are in build/html."
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ To build the HTML documentation, enter:

make html

in the `docs/` directory. If all goes well, this will generate a `build/html/` subdirectory containing the built documentation.
in the `docs/` directory. If all goes well, this will generate a `_build/html/` subdirectory containing the built documentation.
10 changes: 10 additions & 0 deletions docs/_templates/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% extends "!footer.html" %}
{% block extrafooter %}
<p style="text-align: center; margin: .5rem;">
<a href="https://www.netlify.com">
<img src="https://www.netlify.com/img/global/badges/netlify-color-accent.svg" />
</a>
</p>
{{ super() }}
{% endblock %}
0 comments on commit 90d7854
16 changes: 16 additions & 0 deletions docs/_templates/numpy_docstring.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{index}}
{{summary}}
{{extended_summary}}
{{parameters}}
{{returns}}
{{yields}}
{{other_parameters}}
{{attributes}}
{{raises}}
{{warns}}
{{warnings}}
{{see_also}}
{{notes}}
{{references}}
{{examples}}
{{methods}}
124 changes: 60 additions & 64 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,76 +29,72 @@
release = '0.01'


# -- General configuration ---------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
# -- Extension configuration -------------------------------------------------
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.githubpages',
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.todo",
"sphinx.ext.viewcode",
"sphinx.ext.mathjax",
"numpydoc",
"sphinx.ext.ifconfig",
"sphinx.ext.githubpages",
"sphinxcontrib.rawfiles",
"nbsphinx",
"sphinx.ext.intersphinx",
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'

# The master toctree document.
master_doc = 'index'

# 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

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = None
# -- sphinxcontrib.rawfiles
# rawfiles = ["CNAME"]

# -- numpydoc
# Below is needed to prevent errors
numpydoc_show_class_members = False
numpydoc_attributes_as_param_list = True
numpydoc_use_blockquotes = True

# -- sphinx.ext.autosummary
autosummary_generate = True

# -- sphinx.ext.autodoc
autoclass_content = "both"
autodoc_default_flags = ["members", "inherited-members"]
autodoc_member_order = "bysource" # default is alphabetical

# -- sphinx.ext.intersphinx
intersphinx_mapping = {
"numpy": ("https://docs.scipy.org/doc/numpy", None),
"python": ("https://docs.python.org/3", None),
"scipy": ("https://docs.scipy.org/doc/scipy/reference", None),
"sklearn": ("http://scikit-learn.org/dev", None),
"matplotlib": ("https://matplotlib.org", None),
}

# -- sphinx options ----------------------------------------------------------
source_suffix = ".rst"
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints"]
master_doc = "index"
source_encoding = "utf-8"

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
# The default sidebars (for documents that don't match any pattern) are
# defined by theme itself. Builtin themes are using these templates by
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
# 'searchbox.html']``.
#
# html_sidebars = {}

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
html_static_path = []
modindex_common_prefix = ["proglearn."]

pygments_style = "sphinx"
smartquotes = False

# Use RTD Theme
import sphinx_rtd_theme

html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme_options = {
#'includehidden': False,
"navigation_depth": 3,
"collapse_navigation": False,
}

# -- Options for HTMLHelp output ---------------------------------------------

Expand Down
3 changes: 2 additions & 1 deletion docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ repository on GitHub, clone, and develop on a branch. Steps:
Pull Request Checklist
----------------------

We recommended that your contribution complies with the following rules
We recommended that your contribution complies with the following rules
(which are a brief summary of `The Bits and Brains PR Checklist <https://bitsandbrains.io/2020/10/05/pr-checklist>`__)
before you submit a pull request:

- Follow the `coding-guidelines <#coding-guidelines>`__.
Expand Down
Loading

0 comments on commit 47f1e07

Please sign in to comment.