Skip to content

Commit 85b6159

Browse files
committed
update setup.py
1 parent 6c535ef commit 85b6159

File tree

3 files changed

+32
-27
lines changed

3 files changed

+32
-27
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="docs/source/images/Hypernets.png" width="500" >
2+
<img src="https://raw.githubusercontent.com/DataCanvasIO/Hypernets/master/docs/source/images/Hypernets.png" width="500" >
33

44

55
[![Python Versions](https://img.shields.io/pypi/pyversions/hypernets.svg)](https://pypi.org/project/hypernets)
@@ -19,12 +19,12 @@ We introduced an abstract search space representation, taking into account the r
1919
## Overview
2020
### Conceptual Model
2121
<p align="center">
22-
<img src="docs/source/images/hypernets_conceptual_model.png" width="100%"/>
22+
<img src="https://raw.githubusercontent.com/DataCanvasIO/Hypernets/master/docs/source/images/hypernets_conceptual_model.png" width="100%"/>
2323
</p>
2424

2525
### Illustration of the Search Space
2626
<p align="center">
27-
<img src="docs/source/images/hypernets_search_space.png" width="100%"/>
27+
<img src="https://raw.githubusercontent.com/DataCanvasIO/Hypernets/master/docs/source/images/hypernets_search_space.png" width="100%"/>
2828
</p>
2929

3030
## What's NEW !
@@ -107,7 +107,7 @@ python -m hypernets.examples.smoke_testing
107107
* [Cooka](https://github.com/DataCanvasIO/Cooka): Lightweight interactive AutoML system.
108108

109109

110-
![DataCanvas AutoML Toolkit](docs/source/images/DAT_logo.png)
110+
![DataCanvas AutoML Toolkit](https://raw.githubusercontent.com/DataCanvasIO/Hypernets/master/docs/source/images/DAT_logo.png)
111111

112112
## Citation
113113

hypernets/tests/experiment/experiment_factory.py

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

1212

1313
def _create_experiment(predefined_kwargs, maker=None, need_test=False, user_kwargs=None):
14-
df = dsutils.load_boston()
14+
df = dsutils.load_boston().head(1000)
1515
df['Constant'] = [0 for i in range(df.shape[0])]
1616
df['Id'] = [i for i in range(df.shape[0])]
1717
target = 'target'

setup.py

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,32 @@ def read_extra_requirements():
4141
return extra
4242

4343

44-
def read_description(file_path='README.md',
45-
image_root=f'{home_url}/raw/main'):
46-
import re
47-
import os
48-
49-
def _encode_image(m):
50-
assert len(m.groups()) == 3
51-
52-
pre, src, post = m.groups()
53-
src = src.rstrip().lstrip()
54-
remote_src = os.path.join(image_root, os.path.relpath(src))
55-
return f'{pre}{remote_src}{post}'
56-
57-
desc = open(file_path, encoding='utf-8').read()
58-
59-
# substitute html image
60-
desc = re.sub(r'(<img\s+src\s*=\s*\")(docs/source/images/[^"]+)(\")', _encode_image, desc)
61-
62-
# substitute markdown image
63-
desc = re.sub(r'(\!\[.*\]\()(docs/source/images/.+)(\))', _encode_image, desc)
64-
44+
# def read_description(file_path='README.md',
45+
# image_root=f'{home_url}/raw/main'):
46+
# import re
47+
# import os
48+
#
49+
# def _encode_image(m):
50+
# assert len(m.groups()) == 3
51+
#
52+
# pre, src, post = m.groups()
53+
# src = src.rstrip().lstrip()
54+
# remote_src = os.path.join(image_root, os.path.relpath(src))
55+
# return f'{pre}{remote_src}{post}'
56+
#
57+
# desc = open(file_path, encoding='utf-8').read()
58+
#
59+
# # substitute html image
60+
# desc = re.sub(r'(<img\s+src\s*=\s*\")(docs/source/images/[^"]+)(\")', _encode_image, desc)
61+
#
62+
# # substitute markdown image
63+
# desc = re.sub(r'(\!\[.*\]\()(docs/source/images/.+)(\))', _encode_image, desc)
64+
#
65+
# return desc
66+
67+
def read_description(file_path='README.md'):
68+
with open(file_path, encoding='utf-8') as f:
69+
desc = f.read()
6570
return desc
6671

6772

@@ -83,7 +88,7 @@ def _encode_image(m):
8388
description='An General Automated Machine Learning Framework',
8489
long_description=long_description,
8590
long_description_content_type="text/markdown",
86-
url='',
91+
url='https://github.com/DataCanvasIO/Hypernets',
8792
author='DataCanvas Community',
8893
author_email='[email protected]',
8994
license='Apache License 2.0',

0 commit comments

Comments
 (0)