Skip to content

Commit 0fd108e

Browse files
authored
Merge pull request #57 from beringresearch/tf-extra-requires
Tf extra requires
2 parents 60d7780 + cf391b7 commit 0fd108e

File tree

8 files changed

+38
-19
lines changed

8 files changed

+38
-19
lines changed

R-package/DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: ivis
22
Title: Artificial neural network-driven visualization of high-dimensional data using triplets.
3-
Version: 1.6.0
3+
Version: 1.7.0
44
Authors@R: c(person("Benjamin", "Szubert", email = "[email protected]", role = c("aut", "cre")),
55
person("Ignat", "Drozdov", email = "[email protected]", role = c("aut")),
66
person("Kevin", "Rue-Albrecht", role = "ctb", email = "[email protected]", comment = c(ORCID = "0000-0003-3899-3872")))
@@ -15,7 +15,7 @@ Imports: reticulate
1515
License: MIT
1616
Encoding: UTF-8
1717
LazyData: true
18-
RoxygenNote: 6.1.1
18+
RoxygenNote: 7.0.2
1919
Suggests:
2020
knitr,
2121
rmarkdown,

R-package/R/install_ivis.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ install_ivis <- function(){
1919
cat("Creating a virtual environment (ivis)\n")
2020
virtual_envs <- env_list()
2121
if ("ivis" %in% virtual_envs){
22-
cat("(ivis) environment already exists. The old environment will be updated.")
22+
cat("(ivis) environment already exists. The old environment will be updated. ")
2323
env_remove("ivis")
2424
}
2525

2626
envname <- "ivis"
2727
env_create(envname)
2828

29-
py_install("ivis", envname="ivis")
29+
py_install("ivis[cpu]", envname="ivis")
3030
}
3131

3232

R-package/man/ivis.Rd

Lines changed: 16 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,23 @@ Implementation of the ivis algorithm as described in the paper [Structure-preser
99

1010
## Installation
1111

12-
Install the latest ivis release from PyPi:
12+
Ivis runs on top of TensorFlow, and needs it to be installed to run.
13+
14+
To install the latest ivis release from PyPi running on the CPU TensorFlow package, run:
1315

1416
```
15-
pip install ivis
17+
pip install ivis[cpu]
1618
```
1719

20+
If you have CUDA installed and want ivis to use the tensorflow-gpu package, instead run `pip install ivis[gpu]`.
21+
22+
1823
Alternatively, you can install the development version from github:
1924

2025
```
2126
git clone https://github.com/beringresearch/ivis
2227
cd ivis
23-
pip install -r requirements.txt --editable .
28+
pip install -e '.[cpu]'
2429
```
2530

2631
The following **optional dependencies** are needed if using the visualization callbacks while training the Ivis model:

ci_scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
python3 -m pip install --user -e .
1+
python3 -m pip install --user -e '.[cpu]'
22
python3 -m pip install --user pytest

docs/python_package.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ The latest stable release can be installed from PyPi:
1111

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

1618

1719
Alternatively, you can use ``pip`` to install the development version directly from github:
@@ -26,7 +28,7 @@ Another option would be to clone the github repository and install from your loc
2628
2729
git clone https://github.com/beringresearch/ivis
2830
cd ivis
29-
pip install -r requirements.txt -e .
31+
pip install -e '.[cpu]'
3032
3133
3234
Dependencies

ivis/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '1.6.0'
1+
VERSION = '1.7.0'

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@
2020
license='GNU General Public License v2.0',
2121
packages=find_packages(),
2222
install_requires=[
23-
'tensorflow',
2423
'numpy',
25-
'scikit-learn',
24+
'scikit-learn>0.20.0',
2625
'annoy>=1.15.2',
2726
'tqdm'
2827
],
2928
extras_require={
3029
'tests': ['pytest'],
31-
'visualization': ['matplotlib', 'seaborn']
30+
'visualization': ['matplotlib', 'seaborn'],
31+
'cpu': ['tensorflow>=1.4.0'],
32+
'gpu': ['tensorflow-gpu>=1.4.0']
3233
},
3334
classifiers=[
3435
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)