Error Collections
-
The requested URL returned error: 403Error Collections 2023. 2. 18. 18:01
원인 깃헙에 코드를 푸쉬할 때 해당 주소에 대한 권한이 없기 때문에 403 리턴을 하는 것 $ git push -u origin master remote: Permission to yunajoe/Git_Practice.git denied to [로그인된계정아이디]. fatal: unable to access 'https://github.com/[push하려고하는 repo아이디]/[push하려고 하는 repo]/': The requested URL returned error: 403 해결 시도1 1. 인증하기 git remote set-url origin "https://github-username@github.com/github-username/github-repository-name.git" 를 입력 ..
-
Uncaught TypeError: Cannot read property ‘toUpperCase’ of undefinedError Collections 2023. 1. 22. 14:55
원인 typeof가 undefined가 형태가 생기는 문자열 for문 loop을 돌리면서 toUpperCase를 하려고 할 때 생겼음 해결 if 문에 typeof형태가 undefined인것을 제외해 주고 loop시켜주면 된다 if(typeof(my_string[i]) !== 'undefined') function solution(my_string) { var answer = ''; for(let i=0; i
-
깃헙에러(error: src refspec master does not match any)Error Collections 2023. 1. 9. 11:11
깃헙계정이 2개인데 다른 계정으로 commit하려다가 생긴 오류 에러1 error: src refspec master does not match any 해당 에러는 깃허브에서 pull 없이 push할 경우 기존 내용을 삭제하거나 하는 문제가 생길 수 있기 때문에, 이런 문제를 피하고자 에러 메세지를 발생시키는 것. 해당 에러가 발생하면 아래의 순서대로 다시 명령어를 입력한다. git init git add . git commit -m "message" git remote add origin repo주소 git branch -M main git push -u origin main 에러2 remote: Permission to repo주소 denied 사용자이름 fatal: unable to access '..
-
-
Positional Argument Follows Keyword Argument In PythonError Collections 2022. 10. 9. 12:22
When to occur?! - added_score함수가 2개의 parameter(answer, result)를 받는데 함수를 사용할 때 added_score(answer= answer_report, result), 즉 첫번째에는 positional argument 를 사용하고 두번째에는 사용하지 않았음 scores = {1:3, 2:2, 3:1, 4:0, 5:1, 6:2, 7:3} answer_report = {1: {"R":0, "T":0}, 2 :{"C":0, "F":0}, 3: {"J":0, "M":0}, 4: {"A":0, "N":0}, } def organization(answer): answer = {k : dict(sorted(v.items(), key=lambda x:(-x[1], x[..
-
! [rejected] master -> master (non-fast-forward)error: failed to push some refs toError Collections 2022. 9. 23. 08:18
! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/yunajoe/Publishing.git' 원인 - .gitignore 파일또는 README.md 파일 때문에 발생 해결방법 $ git push origin +master
-
ValueError: Shapes (None, 1) and (None, 3) are incompatibleError Collections 2022. 9. 9. 09:21
When to occur?! huggingface transformer 돌려보다가 오류남 ValueError: Shapes (None, 1) and (None, 3) are incompatible How to fix it?! ''' Check if the last Dense Layer(output) has same number of classes as the number of target classes in the training dataset. I made similar mistake while training the dataset and correcting it helped me. DenseLayer(output)결고값이 분류하려는 결과값이랑 같아야 한다고 함. 따라서 최종분류값 갯수인, 6개에서 -..