Skip to content

Commit 4c68822

Browse files
committed
install openslide & category-encoders from pip archive
1 parent db0e170 commit 4c68822

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,7 @@ RUN pip install --upgrade cython && \
283283
pip install fasttext && \
284284
apt-get install -y libhunspell-dev && pip install hunspell && \
285285
pip install annoy && \
286-
# Need to use CountEncoder from category_encoders before it's officially released
287-
pip install git+https://github.com/scikit-learn-contrib/categorical-encoding.git && \
286+
pip install category_encoders && \
288287
# google-cloud-automl 2.0.0 introduced incompatible API changes, need to pin to 1.0.1
289288
pip install google-cloud-automl==1.0.1 && \
290289
# Newer version crashes (latest = 1.14.0) when running tensorflow.
@@ -347,8 +346,7 @@ RUN pip install bcolz && \
347346
pip install --upgrade Pillow && \
348347
# Install openslide and its python binding
349348
apt-get install -y openslide-tools && \
350-
# b/152402322 install latest from pip once is in: https://github.com/openslide/openslide-python/pull/76
351-
pip install git+git://github.com/rosbo/openslide-python.git@fix-setup && \
349+
pip install openslide-python && \
352350
pip install ptyprocess && \
353351
pip install Pygments && \
354352
pip install pyparsing && \

tests/test_category_encoders.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import unittest
22

3+
from category_encoders import CountEncoder
4+
import pandas as pd
5+
6+
37
## Need to make sure we have CountEncoder available from the category_encoders library
48
class TestCategoryEncoders(unittest.TestCase):
59
def test_count_encoder(self):
6-
7-
from category_encoders import CountEncoder
8-
import pandas as pd
9-
1010
encoder = CountEncoder(cols="data")
1111

1212
data = pd.DataFrame([1, 2, 3, 1, 4, 5, 3, 1], columns=["data"])

0 commit comments

Comments
 (0)