Skip to content

Commit

Permalink
Merge pull request #57 from beringresearch/tf-extra-requires
Browse files Browse the repository at this point in the history
Tf extra requires
  • Loading branch information
Szubie authored Jan 7, 2020
2 parents 60d7780 + cf391b7 commit 0fd108e
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 19 deletions.
4 changes: 2 additions & 2 deletions R-package/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ivis
Title: Artificial neural network-driven visualization of high-dimensional data using triplets.
Version: 1.6.0
Version: 1.7.0
Authors@R: c(person("Benjamin", "Szubert", email = "[email protected]", role = c("aut", "cre")),
person("Ignat", "Drozdov", email = "[email protected]", role = c("aut")),
person("Kevin", "Rue-Albrecht", role = "ctb", email = "[email protected]", comment = c(ORCID = "0000-0003-3899-3872")))
Expand All @@ -15,7 +15,7 @@ Imports: reticulate
License: MIT
Encoding: UTF-8
LazyData: true
RoxygenNote: 6.1.1
RoxygenNote: 7.0.2
Suggests:
knitr,
rmarkdown,
Expand Down
4 changes: 2 additions & 2 deletions R-package/R/install_ivis.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ install_ivis <- function(){
cat("Creating a virtual environment (ivis)\n")
virtual_envs <- env_list()
if ("ivis" %in% virtual_envs){
cat("(ivis) environment already exists. The old environment will be updated.")
cat("(ivis) environment already exists. The old environment will be updated. ")
env_remove("ivis")
}

envname <- "ivis"
env_create(envname)

py_install("ivis", envname="ivis")
py_install("ivis[cpu]", envname="ivis")
}


Expand Down
21 changes: 16 additions & 5 deletions R-package/man/ivis.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,23 @@ Implementation of the ivis algorithm as described in the paper [Structure-preser

## Installation

Install the latest ivis release from PyPi:
Ivis runs on top of TensorFlow, and needs it to be installed to run.

To install the latest ivis release from PyPi running on the CPU TensorFlow package, run:

```
pip install ivis
pip install ivis[cpu]
```

If you have CUDA installed and want ivis to use the tensorflow-gpu package, instead run `pip install ivis[gpu]`.


Alternatively, you can install the development version from github:

```
git clone https://github.com/beringresearch/ivis
cd ivis
pip install -r requirements.txt --editable .
pip install -e '.[cpu]'
```

The following **optional dependencies** are needed if using the visualization callbacks while training the Ivis model:
Expand Down
2 changes: 1 addition & 1 deletion ci_scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
python3 -m pip install --user -e .
python3 -m pip install --user -e '.[cpu]'
python3 -m pip install --user pytest
6 changes: 4 additions & 2 deletions docs/python_package.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ The latest stable release can be installed from PyPi:

.. code:: bash
pip install ivis
pip install ivis[cpu]
If you have CUDA installed and want ivis to use the tensorflow-gpu package, instead run `pip install ivis[gpu]`.


Alternatively, you can use ``pip`` to install the development version directly from github:
Expand All @@ -26,7 +28,7 @@ Another option would be to clone the github repository and install from your loc
git clone https://github.com/beringresearch/ivis
cd ivis
pip install -r requirements.txt -e .
pip install -e '.[cpu]'
Dependencies
Expand Down
2 changes: 1 addition & 1 deletion ivis/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '1.6.0'
VERSION = '1.7.0'
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@
license='GNU General Public License v2.0',
packages=find_packages(),
install_requires=[
'tensorflow',
'numpy',
'scikit-learn',
'scikit-learn>0.20.0',
'annoy>=1.15.2',
'tqdm'
],
extras_require={
'tests': ['pytest'],
'visualization': ['matplotlib', 'seaborn']
'visualization': ['matplotlib', 'seaborn'],
'cpu': ['tensorflow>=1.4.0'],
'gpu': ['tensorflow-gpu>=1.4.0']
},
classifiers=[
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit 0fd108e

Please sign in to comment.