forked from VincentStimper/normalizing-flows
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0c2dae
commit 7d0e56e
Showing
7 changed files
with
81 additions
and
2 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,2 @@ | ||
include README.md | ||
include requirements.txt |
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 |
---|---|---|
@@ -1,2 +1,25 @@ | ||
# normalizing-flows | ||
Pytorch implementation of normalizing flows | ||
# Variational Inference with Normalizing Flows | ||
|
||
## Introduction | ||
|
||
This is a Pytorch implementation of normalizing flows. | ||
|
||
|
||
## Installation | ||
|
||
You can install `normflow` directly using pip: | ||
``` | ||
pip install --upgrade git+https://github.com/VincentStimper/normalizing-flows.git | ||
``` | ||
Alternatively, you can first download or clone the repository on your computer via | ||
``` | ||
git clone https://github.com/VincentStimper/normalizing-flows.git | ||
``` | ||
then navigate into the folder and install it via | ||
``` | ||
pip install --upgrade . | ||
``` | ||
or run | ||
``` | ||
python setup.py install | ||
``` |
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,6 @@ | ||
#! /usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
from .core import * | ||
|
||
__version__ = '0.1' |
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,2 @@ | ||
def test(): | ||
print('Works!') |
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 @@ | ||
numpy |
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,5 @@ | ||
[bdist_wheel] | ||
universal=1 | ||
|
||
[metadata] | ||
description-file=README.md |
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,40 @@ | ||
from setuptools import setup, find_packages | ||
from codecs import open | ||
from os import path | ||
|
||
__version__ = '0.1' | ||
|
||
here = path.abspath(path.dirname(__file__)) | ||
|
||
# Get the long description from the README file | ||
with open(path.join(here, 'README.md'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
# get the dependencies and installs | ||
with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f: | ||
all_reqs = f.read().split('\n') | ||
|
||
install_requires = [x.strip() for x in all_reqs if 'git+' not in x] | ||
dependency_links = [x.strip().replace('git+', '') for x in all_reqs if x.startswith('git+')] | ||
|
||
setup( | ||
name='normflow', | ||
version=__version__, | ||
description='Pytorch implementation of normalizing flows', | ||
long_description=long_description, | ||
url='https://github.com/VincentStimper/normflow', | ||
download_url='https://github.com/VincentStimper/normflow/tarball/' + __version__, | ||
license='MIT', | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Developers', | ||
'Programming Language :: Python :: 3', | ||
], | ||
keywords='', | ||
packages=find_packages(exclude=['docs', 'tests*']), | ||
include_package_data=True, | ||
author=['Vincent Stimper', 'Lukas Ryll', 'David'], | ||
install_requires=install_requires, | ||
dependency_links=dependency_links, | ||
author_email='' | ||
) |