세종대학교 A+ 점수를 맞은 과제물입니다.
*복제 및 게시를 엄격히 금지합니다. 발견 시 가능한 모든 법적 조치를 할 것입니다.
(실행화면은 실제와 관련이 없습니다. 게시를 위해 첨부하였습니다.)
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
data = pd.read_excel("/content/drive/MyDrive/Colab Notebooks/data-1.xlsx", sheet_name = 'HW1-2')
data['color'] = data["Class"].map({"Iris-versicolor" : "#0000FF", "Iris-virginica" : "#00FF00"})
plt.scatter(data['Petal_Length'], # x
data['Petal_Width'], # y
c=data['color'],
alpha=0.5)
plt.show()
python, colab
세종대학교 A+ 점수를 맞은 과제물입니다.
*복제 및 게시를 엄격히 금지합니다. 발견 시 가능한 모든 법적 조치를 할 것입니다.
(실행화면은 실제와 관련이 없습니다. 게시를 위해 첨부하였습니다.)
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
data = pd.read_excel("/content/drive/MyDrive/Colab Notebooks/data-1.xlsx", sheet_name = 'HW1-2')
data['color'] = data["Class"].map({"Iris-versicolor" : "#0000FF", "Iris-virginica" : "#00FF00"})
plt.scatter(data['Petal_Length'], # x
data['Petal_Width'], # y
c=data['color'],
alpha=0.5)
plt.show()
python, colab
목차
없음
본문내용
1. Given the data in the “HW1-1” tab of the file “data-1 .xlsx”, answer the following questions:
(a) Find a linear regression model that best fits to the data points. Justify your answers.
< 중 략 >
(d) Write a code to determine the optimal parameters of the hypothesis function that best fits to the data using gradient descent algorithm.
Stochastic Gradient Descent는 cost function J(w)가 최솟값이 되는 w값, 즉 J(w)의 도함수가 0이 되는 w을 찾는다.
Stochastic Gradient Descent의 Pseudocode는 다음과 같다.
< 중 략 >
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
자료의 정보 및 내용의 진실성에 대하여 해피캠퍼스는 보증하지 않으며, 해당 정보 및 게시물 저작권과 기타 법적 책임은 자료 등록자에게 있습니다. 자료 및 게시물 내용의 불법적 이용, 무단 전재∙배포는 금지되어 있습니다. 저작권침해, 명예훼손 등 분쟁 요소 발견 시 고객센터의 저작권침해 신고센터를 이용해 주시기 바랍니다.
해피캠퍼스는 구매자와 판매자 모두가 만족하는 서비스가 되도록 노력하고 있으며, 아래의 4가지 자료환불 조건을 꼭 확인해주시기 바랍니다.
파일오류
중복자료
저작권 없음
설명과 실제 내용 불일치
파일의 다운로드가 제대로 되지 않거나 파일형식에 맞는 프로그램으로 정상 작동하지 않는 경우