본문 바로가기

Algorithms14

[빅데이터분석기사][실기] 작업형 제3유형 작업형 제3유형 - 통계적 가설 검정* 통계적 가설 검정은 시험에 잘 안 나오는 듯합니다.import pandas as pdimport scipy.stats as statsfrom math import sqrt# 1. 단일표본 Tstats.ttest_1sample(data['A'], 75) # 모평균 값 (75) 대입# 2. 독립표본 T# 먼저, 두 그룹이 등분산성을 띠는지 확인해야한다.stats.levene(data.loc[data.classes =='A', 'len'], data.loc[data.classes=='B', 'len']) # A의 len과 B의 len 비교stats.ttest_ind(data.loc[data.classes=='A']['len'], data.loc[data.classes==.. 2025. 6. 21.
[빅데이터분석기사][실기] 작업형 제2유형 작업형 제2유형"""라벨인코딩, 스케일링, 랜덤포레스트"""import pandas as pdimport numpy as npX_train = pd.read_csv("train.csv")y_train = pd.read_csv("y_train.csv")X_test = pd.read_csv("X_test.csv")print(X_train.info())col_num = ['age']col_cat = ['race' , 'sex']# 범주형 변수를 -> 레이블 인코딩하여 정수 형태로 변환하자# 레이블 인코딩한 데이터는 선형 모델에 적합하지 않다.# 비선형 모델인 랜덤포레스트와 XGBoost 알고리즘을 사용하자.from sklearn.preprocessing import LabelEncoderX = pd.conca.. 2025. 6. 20.
[우아한테크코스] 2주차 자동차 경주 Application.javapackage racingcar;public class Application { public static void main(String[] args) { RacingCarController controller = new RacingCarController(); controller.startRace(); }} RacingCarController.javapackage racingcar;public class RacingCarController { private RacingCarView view; private Car[] cars; public RacingCarController() { this.view = new R.. 2024. 10. 29.
[우아한테크코스] 1주차 문자열 덧셈 계산기 STEP 0 : Application.java 프로그램의 진입점 역할을 하며, View와 Controller를 생성하고 실행합니다.package calculator;public class Application { public static void main(String[] args) { CalculatorView view = new CalculatorView(); CalculatorController controller = new CalculatorController(view); controller.processInput(); }}  STEP 1-1 : DelimiterParser.java - Model: DelimiterParser와 Calculator 클.. 2024. 10. 17.
[JAVA] JDK 21 설치, 환경 변수 설정 cmd(or 터미널) 창에서,java -version 명령어를 입력하면현재 자바 버젼은 18.0.2.1 로 확인된다. JDK 21로 변경하자1. JDK 21 다운로드https://www.oracle.com/kr/java/technologies/downloads/#jdk21-windows Download the Latest Java LTS FreeSubscribe to Java SE and get the most comprehensive Java support available, with 24/7 global access to the experts.www.oracle.com이후 설치 과정을 진행한다.2. 환경 변수 설정설정 > 시스템 > 정보 > 고급 시스템 설정 >환경 변수 >처음이라면) 새로 만들기버전.. 2024. 10. 17.
Java Software Solution Ch7_PP3 PP 7.3 Write a class called SalesTeam that represents a team of salespeople. Each salesperson on the team is represented by the SalesPerson class of PP 7.2. Each team has a name, and the constructor needs only to accept the name of the team. Use an ArrayList to store the team members. Provide a method called addSalesPerson that accepts a SalesPerson object. Provide a method called weeklyReport t.. 2024. 5. 1.