• AI글쓰기 2.1 업데이트
BRONZE
BRONZE 등급의 판매자 자료

세종대학교 소프트웨어 특강 과제1

세종대학교 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
12 페이지
워드
최초등록일 2023.06.24 최종저작일 2021.07
12P 미리보기
세종대학교 소프트웨어 특강 과제1
  • 미리보기

    소개

    세종대학교 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

    참고자료

    · 없음
  • AI와 토픽 톺아보기

    • 1. Linear Regression
      Linear regression is a fundamental machine learning algorithm that is widely used for predicting a continuous target variable based on one or more input variables. It is a simple yet powerful technique that can be applied to a variety of real-world problems, such as predicting housing prices, stock market trends, or sales forecasts. The key advantage of linear regression is its interpretability - the model coefficients can be easily understood and the relationships between the input and output variables can be clearly explained. Additionally, linear regression is computationally efficient and can handle large datasets with relative ease. However, linear regression also has its limitations, as it assumes a linear relationship between the input and output variables, which may not always be the case in complex real-world scenarios. In such cases, more advanced techniques like polynomial regression or regularized regression may be more appropriate. Overall, linear regression remains an essential tool in the data scientist's toolkit and continues to be widely used in both academic and industry settings.
    • 2. Logistic Regression
      Logistic regression is a powerful machine learning algorithm used for binary classification problems, where the goal is to predict whether an instance belongs to one of two classes. Unlike linear regression, which is used for predicting continuous target variables, logistic regression is designed to predict a binary outcome, such as whether a customer will churn or not, or whether a loan applicant will default or not. The key advantage of logistic regression is its ability to model the probability of an event occurring, which can be useful for decision-making and risk assessment. Logistic regression also provides interpretable model coefficients, allowing for the identification of the most important predictors in the model. Additionally, logistic regression is relatively simple to implement and can handle a wide range of input variables, including both numerical and categorical features. However, logistic regression also has its limitations, such as its sensitivity to outliers and its inability to capture complex non-linear relationships. In such cases, more advanced techniques like decision trees or neural networks may be more appropriate. Overall, logistic regression remains a widely used and versatile machine learning algorithm, particularly in the fields of finance, healthcare, and marketing.
  • 자료후기

      Ai 리뷰
      이 문서는 데이터 분석 및 모델링에 대한 전반적인 내용을 잘 설명하고 있으며, 실습 코드를 포함하여 실제 구현 과정을 보여주고 있습니다. 문제 해결을 위한 체계적인 접근법과 다양한 기법 활용이 돋보입니다.
    • 자주묻는질문의 답변을 확인해 주세요

      해피캠퍼스 FAQ 더보기

      꼭 알아주세요

      • 자료의 정보 및 내용의 진실성에 대하여 해피캠퍼스는 보증하지 않으며, 해당 정보 및 게시물 저작권과 기타 법적 책임은 자료 등록자에게 있습니다.
        자료 및 게시물 내용의 불법적 이용, 무단 전재∙배포는 금지되어 있습니다.
        저작권침해, 명예훼손 등 분쟁 요소 발견 시 고객센터의 저작권침해 신고센터를 이용해 주시기 바랍니다.
      • 해피캠퍼스는 구매자와 판매자 모두가 만족하는 서비스가 되도록 노력하고 있으며, 아래의 4가지 자료환불 조건을 꼭 확인해주시기 바랍니다.
        파일오류 중복자료 저작권 없음 설명과 실제 내용 불일치
        파일의 다운로드가 제대로 되지 않거나 파일형식에 맞는 프로그램으로 정상 작동하지 않는 경우 다른 자료와 70% 이상 내용이 일치하는 경우 (중복임을 확인할 수 있는 근거 필요함) 인터넷의 다른 사이트, 연구기관, 학교, 서적 등의 자료를 도용한 경우 자료의 설명과 실제 자료의 내용이 일치하지 않는 경우
    문서 초안을 생성해주는 EasyAI
    안녕하세요 해피캠퍼스의 20년의 운영 노하우를 이용하여 당신만의 초안을 만들어주는 EasyAI 입니다.
    저는 아래와 같이 작업을 도와드립니다.
    - 주제만 입력하면 AI가 방대한 정보를 재가공하여, 최적의 목차와 내용을 자동으로 만들어 드립니다.
    - 장문의 콘텐츠를 쉽고 빠르게 작성해 드립니다.
    - 스토어에서 무료 이용권를 계정별로 1회 발급 받을 수 있습니다. 지금 바로 체험해 보세요!
    이런 주제들을 입력해 보세요.
    - 유아에게 적합한 문학작품의 기준과 특성
    - 한국인의 가치관 중에서 정신적 가치관을 이루는 것들을 문화적 문법으로 정리하고, 현대한국사회에서 일어나는 사건과 사고를 비교하여 자신의 의견으로 기술하세요
    - 작별인사 독후감
    • 전문가요청 배너
    해캠 AI 챗봇과 대화하기
    챗봇으로 간편하게 상담해보세요.
    2025년 11월 09일 일요일
    AI 챗봇
    안녕하세요. 해피캠퍼스 AI 챗봇입니다. 무엇이 궁금하신가요?
    11:03 오전