본문 바로가기

Programming6

[Error] RuntimeError: Failed to import transformers.integrations.bitsandbytes because of the following error (look up to see its traceback): CUDA Setup failed despite GPU being available. Please run the following command to get more information: https://github.com/TimDettmers/bitsandbytes/issues/175 CUDA Setup failed despite GPU being available. Inspect the CUDA SETUP outputs above to fix your environment! · Issue #175 · Ti C:\ProgramData\Anaconda3\envs\novelai\lib\site-packages\bitsandbytes\cuda_setup\main.py:136: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {Wind... github.com *** .. 2024. 4. 17.
CASE WHEN 조건문 " CASE WHEN " 조건문 조건에 따라 값을 지정해주는 조건문 SELECT CASE WHEN 조건문 THEN 참(True)일때 값 ELSE 거짓(False)일때 값 END AS 지정할 칼럼명 FROM 테이블명 2021. 6. 30.
[오늘의 짬지식] 데이터프레임에서 .0을 없애는 방법 데이터프레임을 다룰 때 데이터프레임의 값들 중 소숫점이 붙어서 ~~~.0와 같은 형식으로 나타나는 경우가 있다. .0을 떼고 싶다면 아래와 같이 해결하면 된다. df['count'] = int(float(df['count'])) 2021. 6. 15.
[오늘의 짬지식] 리스트 모든 경우의 수 : from itertools 파이썬 python 에서 리스트 값들의 모든 조합 경우의 구하기 *** 하나의 리스트에서 모든 경우의 수, 조합 수 구하기 : from itertools import permutations : from itertools import combinations from itertools import permutations, combinations # 하나의 리스트에서 모든 조합 수 구하기 items = [1,2,3,4,5] list(permutations(items, 2)) # [(1, 2),(1, 3),(1, 4),(1, 5),(2, 1),(2, 3),(2, 4),(2, 5),(3, 1),(3, 2),(3, 4),(3, 5),(4, 1),(4, 2),(4, 3),(4, 5),(5, 1),(5, 2),(5, .. 2021. 6. 12.
[오늘의 짬지식] 데이터프레임에서 문자열 찾을 때 Pandas 데이터프레임에서 특정 문자열 찾을 때 *** 처음부터 끝까지 모두 같은 문자열일 때 : .isin() *** 특정 문자열을 포함할 때 : .str.contains() 2021. 6. 4.
[에러해결] 다른 파일에서 모듈 불러오기 모듈을 불러올 때는 경로를 같은 위치상으로 맞춰주어야한다. import os import sys sys.path.append(os.pardir) # 부모 디렉터리의 파일을 가져올 수 있도록 설정 from common.util import smooth_curve from common.multi_layer_net import MultiLayerNet from common.optimizer import SGD 2021. 5. 15.