big
@big
Reviews Written
1
Average Rating
5.0
Posts
Q&A
Library ๊ด๋ จ ์ง๋ฌธ
(์ฌ์ง)
- 0
- 3
- 334
Q&A
Library ๊ด๋ จ ์ง๋ฌธ
๊ฐ์ฌํฉ๋๋ค. ๊ฐ์์๋ฃ์ ์๊ธด ํ๋ฐ ๋งค๋ฒ ์๋ก์ด ๋ ธํธ๋ถ ์ด๋๋ง๋ค lightgbbm์ ๊น๋นกํ๊ฒ ๋์์ ํน์ ๋ฒ ์ด์ง์optimizer๋ ๋ณ๋๋ก version๊ณ ๋ฏผ ์ํด๋ ๋๊ฒ ์ฃ ?
- 0
- 3
- 334
Q&A
์ต์ ํ ํจ์ ์๋ฌ
pip install --upgrade bayesian-optimization numpy scipy ์ด ์ฝ๋๋ฅผ ์ถ๊ฐํ๋ ํด๊ฒฐ๋์์ต๋๋ค. ๊ฐ์ฌํฉ๋๋ค.
- 0
- 4
- 566
Q&A
์ต์ ํ ํจ์ ์๋ฌ
์์ผ๋ก ํ๋์ ๋ฒ ์ด์ง์์ผ๋ก ํ์ค๊ฒ ๊ฐ์๋ฐ ์ด๋ถ๋ถ์ ํด๊ฒฐํ์ง ์๊ณ ๊ทธ๋ฅ ๋์ด๊ฐ๋ ๋ ์ง ๋ชจ๋ฅด๊ฒ ์ด์ ๊ณ์ ๋ฌธ์๋๋ฆฌ๋ ์ ์ํด ๋ถํ ๋๋ฆฝ๋๋ค. ^^
- 0
- 4
- 566
Q&A
์ต์ ํ ํจ์ ์๋ฌ
์ ์๋ ๋ง์๋๋ก ํ์ผ๋ ์์ฝ๊ฒ๋ ์๋ฌ ๋ฐ์ํฉ๋๋ค. ๊ฒฐ๋ก ๋ถํฐ ๋ง์๋๋ฆฌ๋ฉด optimizer.maximize๊น์ง์์init_points์ iteration์ ๋์์ผ๋n_iter๊ฐ ๋์ง ์์ผ๋ฉด์ ์๋ฌ๊ฐ ๋ฐ์ํ ๊ฒ์ ๋๋ค. (๋ค์์ ํ์ดํผํ๋ผ๋ฏธํฐ๋ผ๋ฉด 5๋ฒ์ iteration์ด ๋์์ผํจ)!pip install bayesian-optimization==1.1.0pip install "numpy| iter | target | x | y | ------------------------------------------------- | 1 | -6.375 | 2.706 | 1.234 | | 2 | -18.61 | 2.226 | -2.828 | --------------------------------------------------------------------------- StopIteration Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/bayes_opt/bayesian_optimization.py in maximize(self, init_points, n_iter, acq, kappa, xi, **gp_params) 168 try: --> 169 x_probe = next(self._queue) 170 except StopIteration: 5 framesStopIteration: Queue is empty, no more objects to retrieve. During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/scipy/optimize/_minimize.py in minimize(fun, x0, args, method, jac, hess, hessp, bounds, constraints, tol, callback, options) 531 532 if x0.ndim != 1: --> 533 raise ValueError("'x0' must only have one dimension.") 534 535 if x0.dtype.kind in np.typecodes["AllInteger"]: ValueError: 'x0' must only have one dimension.
- 0
- 4
- 566
Q&A
LightGBM Iteration๊ด๋ จ
lightgbm ๋ฒ์ ์ 4.1.0 ์ด๋ฉฐ, ๊ฐ์๋ด์ฉ๊ณผ๋ ๋ค๋ฅด๊ฒ (๊ฐ์ ๋ด์ฉ์ด ํจ์ฌ ์ง๊ด์ ์ ๋๋ค.) ๋ค์๊ณผ ๊ฐ์ด ์ถ๋ ฅ๋ฉ๋๋ค.--> ์ค๊ฐ๊ณผ์ ์ ๋ณด์ด๋๋ฐ ์ฑ๋ฅํํฉ์ด ์๋ณด์ด๊ตฌ์, Test๊ฒฐ๊ณผ๋ loss์์ฃผ๋ก๋ง ์กฐํ๋ฉ๋๋ค. ์๋ง๋ ์ด๊ฐ์ ์์ฑ์์ ์ version๊ณผ ์ง๊ธ ์ฝ๋ฉ ์์ฉ๋ฒ์ ์ ์ฐจ์ด์์ ํ๋ผ๋ฏธํฐ์ ๋ณ๊ฒฝ์ด ์์๋ ๊ฒ ๊ฐ์ต๋๋ค. (์ ์ถ์ธก์ ๋๋ค.)[LightGBM] [Debug] Trained a tree with leaves = 32 and depth = 10 [LightGBM] [Debug] Trained a tree with leaves = 32 and depth = 10 [LightGBM] [Debug] Trained a tree with leaves = 32 and depth = 8 [LightGBM] [Debug] Trained a tree with leaves = 32 and depth = 9 [LightGBM] [Debug] Trained a tree with leaves = 32 and depth = 8 [LightGBM] [Debug] Trained a tree with leaves = 32 and depth = 10 [LightGBM] [Debug] Trained a tree with leaves = 32 and depth = 11 [LightGBM] [Debug] Trained a tree with leaves = 32 and depth = 9 [LightGBM] [Debug] Trained a tree with leaves = 32 and depth = 11 Early stopping, best iteration is: [902] training's binary_logloss: 0.210459 valid_1's binary_logloss: 0.242339
- 0
- 2
- 412




