Skip to content

Instantly share code, notes, and snippets.

View shhommychon's full-sized avatar
๐Ÿคช
์ ์‹ฌ ๋‚˜๊ฐ€์„œ ๋จน์„ ๊ฒƒ ๊ฐ™์• 

Chon, Sung Hyu shhommychon

๐Ÿคช
์ ์‹ฌ ๋‚˜๊ฐ€์„œ ๋จน์„ ๊ฒƒ ๊ฐ™์• 
View GitHub Profile
@Ekeany
Ekeany / XGBoost-from-scratch-python.py
Last active April 13, 2025 13:24
A numpy/pandas implementation of XGBoost
import numpy as np
import pandas as pd
from math import e
class Node:
'''
A node object that is recursivly called within itslef to construct a regression tree. Based on Tianqi Chen's XGBoost
the internal gain used to find the optimal split value uses both the gradient and hessian. Also a weighted quantlie sketch
and optimal leaf values all follow Chen's description in "XGBoost: A Scalable Tree Boosting System" the only thing not
@xnuk
xnuk / hyeong.md
Last active January 21, 2026 09:08
๋‚œํ•ดํ•œ ํ˜€์—‰.... ์–ธ์–ด

๋‚œํ•ดํ•œ ํ˜€์—‰... ์–ธ์–ด v0.4.5

  • โ€ฆ(U+2026), โ‹ฏ(U+22EF), โ‹ฎ(U+22EE)๋Š” ๋ชจ๋‘ .(U+002E)๊ฐ€ 3๋ฒˆ ์—ฐ์†์œผ๋กœ ๋‚˜์—ด๋œ ๊ฒƒ๊ณผ ๊ฐ™์€ ๊ฒƒ์œผ๋กœ ๋ด…๋‹ˆ๋‹ค.
  • "ํ•œ๊ธ€ ์Œ์ ˆ ๋ฌธ์ž"๋Š” ๊ฐ€(U+AC00) ์ด์ƒ ํžฃ(U+D7A3) ์ดํ•˜์˜ ์œ ๋‹ˆ์ฝ”๋“œ ๋ฌธ์ž๋“ค์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค.

์Šคํƒ

  • ์Šคํƒ์˜ ๋ชจ๋“  ์›์†Œ๋Š” ์œ ๋ฆฌ์ˆ˜ ๋˜๋Š” NaN์œผ๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ถ„๋ชจ๊ฐ€ 1์ธ ์œ ๋ฆฌ์ˆ˜๋ฅผ ํŽธ์˜์ƒ ์ •์ˆ˜๋ผ๊ณ  ์นญํ•ฉ๋‹ˆ๋‹ค.
  • NaN์€ ํŠน์ˆ˜ํ•œ ์ˆซ์ž์ฒ˜๋Ÿผ ์ทจ๊ธ‰๋ฉ๋‹ˆ๋‹ค. ์–ด๋– ํ•œ ์—ฐ์‚ฐ์„ ํ•˜๋”๋ผ๋„ ๊ทธ ์—ฐ์‚ฐ์— NaN์ด ์žˆ์„ ๊ฒฝ์šฐ ๊ทธ ์—ฐ์‚ฐ์˜ ๊ฐ’์€ NaN์ด ๋ฉ๋‹ˆ๋‹ค.