Scikit-learn: [0.23.1] doctest GradientBoostingClassifier๊ฐ€ arm (rhel) ํ”„๋กœ์„ธ์„œ์—์„œ ์‹คํŒจ ํ•จ

์— ๋งŒ๋“  2020๋…„ 07์›” 01์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: scikit-learn/scikit-learn

๋ฒ„๊ทธ ์„ค๋ช…

arm ํ”„๋กœ์„ธ์„œ (AWS : gravition2, rhel)์—์„œ ๋ฒ„์ „ 0.23.1์—์„œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

1038     >>> from sklearn.model_selection import train_test_split
1039     >>> X, y = make_classification(random_state=0)
1040     >>> X_train, X_test, y_train, y_test = train_test_split(
1041     ...     X, y, random_state=0)
1042     >>> clf = GradientBoostingClassifier(random_state=0)
1043     >>> clf.fit(X_train, y_train)
1044     GradientBoostingClassifier(random_state=0)
1045     >>> clf.predict(X_test[:2])
1046     array([1, 0])
1047     >>> clf.score(X_test, y_test)
Expected:
    0.88
Got:
    0.84

์žฌํ˜„ ํ•  ๋‹จ๊ณ„ / ์ฝ”๋“œ

pytest -v sklearn/ensemble/_gb.py::sklearn.ensemble._gb.GradientBoostingClassifier

์˜ˆ์ƒ ๊ฒฐ๊ณผ

PASSED๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

์‹ค์ œ ๊ฒฐ๊ณผ

FAILED๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

1047     >>> clf.score(X_test, y_test)
Expected:
    0.88
Got:
    0.84

๋ฒ„์ „

System:
    python: 3.6.8 (default, Dec  5 2019, 16:02:25)  [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
executable: /usr/bin/python3
   machine: Linux-4.18.0-193.1.2.el8_2.aarch64-aarch64-with-redhat-8.2-Ootpa

Python dependencies:
          pip: 20.1.1
   setuptools: 39.2.0
      sklearn: 0.23.1
        numpy: 1.14.3
        scipy: 1.0.0
       Cython: 0.29
       pandas: 1.0.5
   matplotlib: 3.2.1
       joblib: 0.14.0
threadpoolctl: 2.1.0

Built with OpenMP: True
Linux-4.18.0-193.1.2.el8_2.aarch64-aarch64-with-redhat-8.2-Ootpa
Traceback (most recent call last):
  File "<string>", line 3, in <module>
NameError: name 'Python' is not defined
Bug arm help wanted ensemble

๋ชจ๋“  3 ๋Œ“๊ธ€

@ murata-yu ๋ณด๊ณ ์„œ์— ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค. https://github.com/scikit-learn/scikit-learn/pull/17996 ์—์„œ ์žฌํ˜„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๊ทธ๊ฒƒ์ด ์‹ค์ œ ๋ฌธ์ œ๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ๊ฒƒ์ธ์ง€ ์•„์ง ํ™•์‹คํ•˜์ง€ ์•Š๋‹ค๋ฉด ์šฐ๋ฆฌ๋Š” ๋‹จ์ง€ ๊ด€์šฉ์„ ์ฆ๊ฐ€์‹œ์ผœ์•ผํ•ฉ๋‹ˆ๋‹ค.

์‚ฌ์šฉ์ž ๊ด€์ ์—์„œ 0.8 ๋ฒ”์œ„์—์„œ ์ •ํ™•๋„ ๋ณ€ํ™”์˜ 4 %๋Š” ์ž‘์€ ์ˆ˜์น˜ ๋ฐ˜์˜ฌ๋ฆผ ๋ถˆ์ผ์น˜ ์ด์ƒ์œผ๋กœ ๋ณด์ž…๋‹ˆ๋‹ค. ์กฐ์‚ฌ ํ•  ๊ฐ€์น˜๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

https://github.com/scikit-learn/scikit-learn/pull/17644#issuecomment -663857435์— ์„ค๋ช… ๋œ๋Œ€๋กœ docker / qemu ์ปจํ…Œ์ด๋„ˆ์˜ arm64 miniforge ํ™˜๊ฒฝ์—์„œ scikit-learn์„ ๋นŒ๋“œํ•˜์—ฌ ๋กœ์ปฌ์—์„œ ๋ฌธ์ œ๋ฅผ ์žฌํ˜„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰