Skip to content

Commit 1385d6d

Browse files
committed
add notebook + better dependencies in setup.py
1 parent 5992b14 commit 1385d6d

File tree

3 files changed

+287
-4
lines changed

3 files changed

+287
-4
lines changed

examples/Demo_2D_OTmapping_DomainAdaptation.ipynb

Lines changed: 283 additions & 0 deletions
Large diffs are not rendered by default.

examples/demo_OTDA_mapping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#%% dataset generation
1313

14-
np.random.seed(0)
14+
np.random.seed(0) # makes example reproducible
1515

1616
n=100 # nb samples in source and target datasets
1717
theta=2*np.pi/20

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
here = path.abspath(path.dirname(__file__))
1313

14-
# dirty but working
14+
# dirty but working
1515
__version__ = re.search(
1616
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', # It excludes inline comment too
1717
open('ot/__init__.py').read()).group(1)
@@ -48,8 +48,8 @@
4848
license = 'MIT',
4949
scripts=[],
5050
data_files=[],
51-
requires=["numpy (>=1.11)","scipy (>=0.17)","cython (>=0.23)","matplotlib (>=1.5)"],
52-
install_requires=["numpy (>=1.11)","scipy (>=0.17)","cython (>=0.23)","matplotlib (>=1.5)"],
51+
requires=["numpy","scipy","cython","matplotlib"],
52+
install_requires=["numpy","scipy","cython","matplotlib"],
5353
classifiers=[
5454
'Development Status :: 4 - Beta',
5555
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)