Skip to content

Commit

Permalink
Data_Practice.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Frekion2002 authored Mar 24, 2022
1 parent 7864e10 commit a61d89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data_Practice
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ df_data['weight_0'] = 1 # 앞서 x0는 상수항에 해당하는데 기존 데
df_data = df_data.drop("MEDV", axis = 1) # y값 제거
df_matrix = df_data.values # 판다스의 데이터프레임 객체 데이터를 넘파이 데이타로 변환
weight_vector = np.random.random_sample((14,1)) # 가중지(w)값을 무작위로 생성
df_matrix.dot(weight_vector) # 가중치와 데이터의 내적을 실행하는 부분
df_matrix.dot(weight_vector) # 가중치와 데이터의 내적을 실행하는 부분이다

0 comments on commit a61d89c

Please sign in to comment.