hyunkookim 님의 블로그

  • 홈
  • 태그
  • 방명록

Coding Test/Machine Learning (NeetCode) 2

Linear Regression (Forward): 선형 회귀 (모델 구현)

Linear Regression (Forward) 📘 문제 설명: 선형 회귀 (Linear Regression) 모델 구현🎯 목표선형 회귀 모델을 통해 입력 데이터 X에 대해 예측값을 구하고,예측값과 실제 정답 간의 오차(error) 를 계산하는 함수를 구현하는 것입니다.🔢 주어진 입력1. get_model_prediction(X, weights) 함수의 입력:X: 입력 데이터셋.X는 n×3 행렬 형태이며, 각 행은 3개의 특성(피처)을 가집니다. 예:X = [ [x1_1, x1_2, x1_3], # 첫 번째 샘플 [x2_1, x2_2, x2_3], # 두 번째 샘플 ...]weights: 모델의 가중치 벡터, 길이 3인 리스트로 구성됨.예: [w1, w2, w3]2. get_error(m..

Coding Test/Machine Learning (NeetCode) 2025.04.24

Gradient Descent 경사 하강법

Gradient DescentEasyYour task is to minimize the function via Gradient Descent: f(x)=x2f(x)=x2.Gradient Descent is an optimization technique widely used in machine learning for training models. It is crucial for minimizing the cost or loss function and finding the optimal parameters of a model.For the above function the minimizer is clearly x = 0, but you must implement an iterative approximatio..

Coding Test/Machine Learning (NeetCode) 2025.04.24
이전
1
다음
더보기
프로필사진

hyunkookim 님의 블로그

hyunkookim 님의 블로그 입니다.

  • 분류 전체보기 (457)
    • 개인 연구 (0)
    • job 인터뷰 (34)
      • 2025년 1분기 USA (2)
      • 코테(Amazon) 준비 (5)
      • 코테(Matroid) 준비 (27)
      • 코테 문제 (0)
    • 세팅 (7)
      • ubuntu (7)
    • 코드 형상 관리 (2)
      • git (2)
    • Coding Test (72)
      • 알고리즘 이론 (70)
      • Machine Learning (NeetCode) (2)
    • HackerRank (1)
      • 공통 (1)
    • CodeSignal (1)
      • 문제 은행 (1)
    • LeetCode (329)
      • 공통 (7)
      • Grind169 (60)
      • NeetCode (98)
      • Top Interview 150 (68)
      • LeetCode75 (34)
      • DP심화 (38)
      • 주제별 보충 (23)
      • [Weekly Contest] (0)
    • Deep Learning (4)
      • 3D 재구성 (0)
      • 장면 스타일 변환 (2)
      • 물체 인지 & 추적 (0)
      • 렌더링AI (2)
    • 일단 리스트업 (6)
      • 딥러닝 (2)
      • 코딩 테스트 (2)
      • 기타 (2)

Tag

슬라이딩윈도우, BFS, tree, Coding Test, array / string, dp, BST, Two pointers, leetcode75, Backtracking, LeetCode, 오블완, top150, neetcode150, 티스토리챌린지, neetcode, heap, 누적합, dfs, 우선순위큐,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/09   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바