Skip to content

Commit

Permalink
Merge pull request #67 from amzn/tidy_up_leap
Browse files Browse the repository at this point in the history
Tidy up leap folder
  • Loading branch information
adamian committed Mar 9, 2020
2 parents 1af6bc6 + 3797526 commit ef5c201
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 20 deletions.
29 changes: 21 additions & 8 deletions leap/README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,44 @@
## leap: meta-gradient path learner in MXNet

## leap: meta-gradient path learner in MXNet
--------------------------------------------------------------------------------

MXNet implementation of "leap", the meta-gradient path learner published in ICLR 2019: [(link)](https://arxiv.org/abs/1812.01054) by S. Flennerhag, P. G. Moreno, N. Lawrence, A. Damianou.
## Introduction

This is the MXNet implementation of "leap", the meta-gradient path learner published in ICLR 2019: [(link)](https://arxiv.org/abs/1812.01054) by S. Flennerhag, P. G. Moreno, N. Lawrence, A. Damianou.

Please cite our work if you find it useful:
```
@inproceedings{
flennerhag2018transferring,
title={Transferring Knowledge across Learning Processes},
author={Sebastian Flennerhag and Pablo Garcia Moreno and Neil Lawrence and Andreas Damianou},
booktitle={International Conference on Learning Representations},
year={2019},
url={https://openreview.net/forum?id=HygBZnRctX}
}
```

## Getting Started
Check the `demos` and `test` folders.
Check the `demos` folder. The `.ipynb` file can be run in Jupyter [lab](https://jupyterlab.readthedocs.io/en/stable/getting_started/installation.html) or [notebook](https://jupyter.readthedocs.io/en/latest/install.html).


## Installation
* __Dependencies:__
Primary dependency is MXNet >=1.2. See all requirements in [setup.py](setup.py).
* __Supported architectures / versions:__
Python 3.6+ on MacOS and Amazon Linux.
Python 3.6+ on MacOS and Amazon Linux.


- __Install from source:__
To install leap from source, after cloning the repository run the following from the xfer/leap directory:
```
pip install .
```

Alternatively you can install with:
Alternatively, you can install with:
```
python setup.py install
python setup.py install
```
For installing in editable/development mode, the above commands become respectively:
`pip install -e .` and `python setup.py develop` .

To confirm installation, run:
```python
Expand Down
2 changes: 1 addition & 1 deletion leap/test/mxnet_test.py → leap/demos/mxnet_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion leap/leap/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion leap/leap/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion leap/leap/data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion leap/leap/leap.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion leap/leap/leap_meta_repurposer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion leap/leap/meta_repurposer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion leap/leap/metalogger.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion leap/leap/onmiglot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion leap/leap/synthetic_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion leap/leap/updaters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion leap/leap/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
Expand Down
Empty file removed leap/test/__init__.py
Empty file.

0 comments on commit ef5c201

Please sign in to comment.