๐Ÿ’ซ 0602 ์ •๋ฆฌ

  1. ํ•œ์ชฝ์œผ๋กœ ์น˜์šฐ์ณ์ง„ ๋ฐ์ดํ„ฐ โ†’ ๋ชจ๋ธ์ด ๊ณจ๊ณ ๋ฃจ ํ•™์Šตํ•˜๊ธฐ ์–ด๋ ต๋‹ค โ†’log1p๋กœ ์ •๊ทœ๋ถ„ํฌ๋กœ ๋งŒ๋“ค์–ด์ฃผ๊ธฐ
  2. logp1๋กœ ๊ตฌํ•œ ์˜ˆ์ธก๊ฐ’ expm1์œผ๋กœ ๋ณต์›ํ•˜๊ธฐ
  3. ํ•„์š”ํ•œ ํ”ผ์ฒ˜๋งŒ ํ•™์Šตํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•˜๋‹ค. โ†’ ex) year์ด ์ž‘๋…„์— ๋น„ํ•ด 2๋ฐฐ์„ฑ์žฅํ•ด์„œ month์„ ๋„ฃ์–ด์ฃผ๋ฉด ์˜คํžˆ๋ ค ํ˜ผ๋ž€์„ ์คŒใ…
  4. GradientBoostingRegressor ์˜ ์†์„ฑ โ†’ learning_rate : ํ•™์Šต ๊ฐ„๊ฒฉ, n_estimators: ํ•™์Šต ํšŸ์ˆ˜
  5. ๋ชจ๋ธ์˜ ํ•˜์ดํผ ํŒŒ๋ฆฌ๋ฏธํ„ฐ ๊ตฌํ•˜๋Š” ๋ฐฉ๋ฒ• โ†’ GridSearch, RandomSearch๋กœ ์ตœ์ ์˜ ํ•˜์ดํผ ํŒŒ๋ผ๋ฏธํ„ฐ ์ฐพ๊ธฐ
  6. ํ‰๊ฐ€ ๋ฐฉ๋ฒ• : RSME - Root Mean Squared Error โ†’ ์ด๋ฏธ ๋ ˆ์ด๋ธ”์— log๊ฐ€ ์žˆ์–ด์„œ ์‚ฌ์šฉ
  7. ํ”ผ์ฒ˜ ์ค‘์š”๋„ : model.model.feature_importances_ ๊ฐ’์„ ํ™•์ธํ•  ์ˆ˜์žˆ๋‹ค.

๐Ÿ’ซ 0603 ์‹ค์Šต

๐ŸŽฒ Random Search CV

sklearn.model_selection.RandomizedSearchCV

Q. ์™œ label='casual', label='registered'์„ ๋”ฐ๋กœ ํ•ด์ฃผ๋‚˜์š” ?