본문 바로가기

전체 글793

Activation Function Activation Function : layer에서 다음 layer로 전달할 때, 값이 과다/과소할 때 값을 조정하는 역할 Activatoin Function 종류 1. Sigmoid Function: 0~1 사이의 작은 실수 출력 2. ReLU(Rectified Linear Unit): 음수 → 0으로 반환 3. Linear: 1차 함수(Default) ⭐ output_dim activatoin Sigmoid: 0~1 사이 값으로 반환되므로 이진 분류만에서 사용 ReLU: 음수값이 0으로 반환되므로, 값이 양수일경우에만 사용 # activation_function.py import numpy as np from tensorflow.keras.models import Sequential from ten.. 2023. 1. 22.
[Git Bash] 저장소의 폴더 및 파일 삭제 ⭐ 1. Git bash에서 remote repository 변경 전 pull을 통해 버전 맞추기 $ git pull origin main remote: Enumerating objects: 11, done. remote: Counting objects: 100% (11/11), done. remote: Compressing objects: 100% (9/9), done. remote: Total 9 (delta 6), reused 0 (delta 0), pack-reused 0 Unpacking objects: 100% (9/9), 2.10 KiB | 46.00 KiB/s, done. From https://github.com/HJ0216/TIL * branch main -> FETCH_HEAD 184.. 2023. 1. 22.
[해결 방법] fatal: refusing to merge unrelated histories 발생 Error Git Bash에서 다음 명령어를 입력할 경우, $ git pull origin main remote: Enumerating objects: 247, done. remote: Counting objects: 100% (247/247), done. remote: Compressing objects: 100% (187/187), done. remote: Total 247 (delta 73), reused 157 (delta 38), pack-reused 0 Receiving objects: 100% (247/247), 59.49 KiB | 378.00 KiB/s, done. Resolving deltas: 100% (73/73), done. From https://github.com/HJ02.. 2023. 1. 22.
Git 설치 및 초기 설정 $ git push -u origin main Enumerating objects: 6, done. Counting objects: 100% (6/6), done. Delta compression using up to 8 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 520 bytes | 520.00 KiB/s, done. Total 4 (delta 1), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (1/1), done. To https://github.com/HJ0216/TIL.git 5376d70..1843ac3 main -> main br.. 2023. 1. 22.
[해결 방법] error: failed to push some refs to 'https://github.com/' 발생 Error Git Bash에서 다음 명령어를 입력할 경우, $ git push -u origin main To https://github.com/HJ0216/TIL.git ! [rejected] main -> main (fetch first) error: failed to push some refs to 'https://github.com/HJ0216/TIL.git' ⭐ ! [rejected] main -> main (fetch first) ⭐ error: failed to push some refs to 'https://github.com/HJ0216/TIL.git' Error 발생 Error 원인 원격 저장소의 main branch에 저장되어있는 내용과 로컬 저장소의 내용이 일치하지 않아 발생 .. 2023. 1. 22.
Pandas Package and Missing Value Handling 기본 환경: IDE: VS code, Language: Python ⭐ 서울시 따릉이 대여량 예측 경진대회 자료를 통한 Pandas pkg 및 결측치(Missing Value) 처리 방법 # dacon_seoul_ddarung.py # dacon_seoul_ddarung data: https://dacon.io/competitions/open/235576/data import numpy as np import pandas as pd from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense from sklearn.model_selection import train_test_split from sklearn.. 2023. 1. 21.