선생님 안녕하세요! 5장 회귀 실습 2:캐글경연 주택가격 예측-Advanced Regression Techniques - 01 을 듣다가 타겟 값인 Price를 로그 변환하여 정규 분포 형태로 변환하고, 피처들 중 숫자형 컬럼의 Null 값 데이터 처리 부분 코드를 다음과 같이 썼습니다. 그런데 결과가 사진과 같이 float64가 포함된 형태로 나왔습니다. 제가 어떤 부분에서 잘못한 건지, 그리고 어떻게 해야 선생님과 같은 결과가 나올 수 있나요?ㅎㅎ # SalePrice 로그 변환 original_SalePrice = house_df['SalePrice'] house_df['SalePrice'] = np.log1p(house_df['SalePrice']) # Null이 너무 많은 컬럼들과 불필요한 컬럼 삭제 house_df.drop(['Id', 'PoolQC', 'MiscFeature', 'Alley', 'Fence', 'FireplaceQu'], axis=1, inplace=True) # Drop하지 않는 숫자형 Null 컬럼들은 평균 값으로 대체 num_columns = house_df.dtypes[house_df.dtypes !='object'].index.to_list() house_df[num_columns].fillna(house_df[num_columns].mean(), inplace=True) # Null 값이 있는 피처명과 타입을 추출 null_column_count = house_df.isnull().sum()[house_df.isnull().sum() > 0] print('## Null 피처의 Type :\n', house_df.dtypes[null_column_count.index])
15.97 src/components/header/Header.tsx(1,8): error TS6133: 'React' is declared but its value is never read. 15.97 src/components/header/Header.tsx(6,19): error TS6133: 'setIsLogin' is declare d but its value is never read. 15.98 src/components/header/Header.tsx(9,9): error TS6133: 'border' is declared but its value is never read. 15.99 src/components/htmlEditor/HtmlEditor.tsx(1,8): error TS6133: 'React' is decla red but its value is never read. 15.99 src/components/htmlEditor/HtmlEditor.tsx(2,20): error TS7016: Could not find a declaration file for module '@toast-ui/editor'. '/app/node_modules/@toast-ui/edit or/dist/esm/index.js' implicitly has an 'any' type. 15.99 There are types at '/app/node_modules/@toast-ui/editor/types/index.d.ts', b ut this result could not be resolved when respecting package.json "exports". The '@ toast-ui/editor' library may need to update its package.json or typings. 15.99 src/main.tsx(1,1): error TS6133: 'React' is declared but its value is never r ead. 15.99 src/pages/myPage/MyPost.tsx(1,1): error TS6133: 'React' is declared but its v alue is never read. 15.99 src/pages/post/ReadPage.tsx(1,8): error TS6133: 'React' is declared but its v alue is never read. 15.99 src/pages/post/ReadPage.tsx(4,1): error TS6133: 'search' is declared but its value is never read. 15.99 src/pages/post/ReadPage.tsx(8,19): error TS6133: 'setIsLogin' is declared but its value is never read. ------ failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 2 이런 오류는 어떡하나요?
마지막 배포시에 Run echo "***" | docker login -u "***" --password-stdin 2 echo "***" | docker login -u "***" --password-stdin 3 shell: /usr/bin/bash -e {0} 4 Error response from daemon: Get " https://registry-1.docker.io/v2/ ": unauthorized: incorrect username or password 5 Error: Process completed with exit code 1. 에러가 지속적으로 발생합니다. 도커 로그인에 사용되는 유저네임과 비밀번호를 그대로 입력하였음에도 계속해서 발생하는 문제입니다.
he command "docker run -e CI=true tedkov2024/docker-react-nginx-app npm run test -- --coverage" exited with 127. 85.61s$ docker build -t tedkov2024/docker-react-nginx-app -f Dockerfile . 0.60s$ docker run -e CI=true tedkov2024/docker-react-nginx-app npm run test -- --coverage /docker-entrypoint.sh: 47: exec: npm: not found The command "docker run -e CI=true tedkov2024/docker-react-nginx-app npm run test -- --coverage" exited with 127. Done. Your build exited with 1. 무엇이 문제인지 모르겠습니다.
python-telegram-bot 20 버전부터는 비동기 프로그래밍이 적용되어 강의와는 다른 코드가 필요합니다. https://github.com/python-telegram-bot/python-telegram-bot/wiki/Introduction-to-the-API 위 깃허브 python-telegram-bot 공식 위키 페이지로 가시면 필수적이고 간단한 용례들을 보실 수 있습니다.
해당 강의에서 작성하는 코드를 그대로 실행하면 되지 않습니다. 현재 iframe 태그가 자바스크립트를 통해 실행되기 때문에 페이지가 로드된 후에도 자바스크립트가 실행될 시간이 필요합니다. 강의처럼 iframe의 주소만 따와서 실행시키는 것이 아닌 전체 주소를 가져와 iframe 태그로 전환시켜주고 자바스크립트 실행까지 기다려 주는 방식으로 진행하셔야 합니다. https://velog.io/@os_js/%ED%8C%8C%EC%9D%B4%EC%8D%AC-%EC%9B%B9-%ED%81%AC%EB%A1%A4%EB%A7%81%EC%9D%B4%EC%9A%A9-%ED%85%94%EB%A0%88%EA%B7%B8%EB%9E%A8-%EC%B1%97%EB%B4%87 저도 강의중 안됐던 내용이 있었기에 그에 대한 내용을 블로그에 올려두었습니다. 강의 진행대로 따라하다가 안되는 부분만 정리하여 올렸기 때문에 강의내용과 비교하시면서 보셔야 될 듯 합니다.
테디노트님 안녕하세요. 항상 좋은 강의와 빠른 QnA 감사드립니다. 다름이 아니라 제 페이지가 구글에서 검색되면, 위와 같이 제목이 'Github Pages'로 뜨고 favicon을 설정해주었음에도 해당 부분이 지구본으로 뜹니다. 파비콘은 구글링해서 완성 했고, 다른 영역에서는 잘 뜹니다. 혹시 이 부분들도 바꿀 수 있을까요? 감사합니다.
안녕하세요 PR 관련 질문드립니다. Fork 한 후 Clone 해서 Branch를 생성한다고 이해했습니다. 이 때 궁금한 것이 Fork 하지 않고 바로 제 로컬 저장소에 Clone한 후에 PR은 불가능한 것인지요? Fork 한 후 Clone 해서 Branch를 생성 후 커밋 한 후에 PR 요청을 보낼 때 만약 PR을 거절 당한다면 원본 repository와 저의 원격 저장소가 차이가 발생할텐데 보통 이런 경우에는 제 원격저장소를 reset해서 원본 repository와 버전을 맞춰주는지 궁금합니다.