| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -283,8 +283,7 @@ RUN pip install --upgrade cython && \ | |||
| 283 | 283 | pip install fasttext && \ | |
| 284 | 284 | apt-get install -y libhunspell-dev && pip install hunspell && \ | |
| 285 | 285 | 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 && \ | ||
| 288 | 287 | # google-cloud-automl 2.0.0 introduced incompatible API changes, need to pin to 1.0.1 | |
| 289 | 288 | pip install google-cloud-automl==1.0.1 && \ | |
| 290 | 289 | # Newer version crashes (latest = 1.14.0) when running tensorflow. | |
@@ -347,8 +346,7 @@ RUN pip install bcolz && \ | |||
| 347 | 346 | pip install --upgrade Pillow && \ | |
| 348 | 347 | # Install openslide and its python binding | |
| 349 | 348 | 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 && \ | ||
| 352 | 350 | pip install ptyprocess && \ | |
| 353 | 351 | pip install Pygments && \ | |
| 354 | 352 | pip install pyparsing && \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,12 +1,12 @@ | |||
| 1 | 1 | import unittest | |
| 2 | 2 | ||
| 3 | + from category_encoders import CountEncoder | ||
| 4 | + import pandas as pd | ||
| 5 | + | ||
| 6 | + | ||
| 3 | 7 | ## Need to make sure we have CountEncoder available from the category_encoders library | |
| 4 | 8 | class TestCategoryEncoders(unittest.TestCase): | |
| 5 | 9 | def test_count_encoder(self): | |
| 6 | - | ||
| 7 | - from category_encoders import CountEncoder | ||
| 8 | - import pandas as pd | ||
| 9 | - | ||
| 10 | 10 | encoder = CountEncoder(cols="data") | |
| 11 | 11 | ||
| 12 | 12 | data = pd.DataFrame([1, 2, 3, 1, 4, 5, 3, 1], columns=["data"]) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments