일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 |
- Kaggle
- 데이콘
- Real or Not? NLP with Disaster Tweets
- programmers
- Docker
- SW Expert Academy
- hackerrank
- 코로나19
- 파이썬
- 백준
- 캐치카페
- 편스토랑 우승상품
- dacon
- 프로그래머스
- 더현대서울 맛집
- 편스토랑
- ChatGPT
- leetcode
- 맥북
- 프로그래머스 파이썬
- Git
- AI 경진대회
- 금융문자분석경진대회
- ubuntu
- 우분투
- Baekjoon
- github
- PYTHON
- gs25
- 자연어처리
- Today
- Total
목록
반응형
2020/04/07 (6)
솜씨좋은장씨
OJT 기간 AWS 서버를 받아 호기롭게 sudo apt-get update 명령어를 사용하여 업데이트 하려고하니 sudo: apt-get: command not found 명령어를 찾을 수 없다는 결과를 얻었습니다. 원인 Amazon Linux 2 AMI 는 apt-get 패키지가 아닌 yum 패키지를 사용함 따라서 sudo yum update apt-get 대신 yum 을 사용하면 이상없이 진행되는 것을 볼 수 있습니다. 다들 즐거운 코딩하시기 바랍니다~
핸즈온 머신러닝 127 페이지의 이진 분류기 훈련 코드를 실습해보던 중 from sklearn.linear_model import SGDClassifier sgd_clf = SGDClassifier(max_iter=5, random_state=42) sgd_clf.fit(X_train, y_train_5) 코드를 실행하니 다음과 같은 오류를 얻게 되었습니다. ValueError: The number of classes has to be greater than one; got 1 class 원인 [핸즈온머신러닝] 124페이지 MNIST 코드 - ImportError: cannot import name 'fetch_mldata' from 'sklearn.datasets' 해결방법 핸즈온 머신러닝 124페이지..
핸즈온 머신러닝 124페이지의 MNIST 코드를 실습해보던 중 from sklearn.datasets import fetch_mldata mnist = fetch_mldata('MNIST original') mnist MNIST 데이터를 import 하는 과정에서 --------------------------------------------------------------------------- ImportError Traceback (most recent call last) in ----> 1 from sklearn.datasets import fetch_mldata 2 3 mnist = fetch_mldata('MNIST original') 4 5 mnist ImportError: cannot im..
Python에서는 다양한 방법을 통해 암호화 관련 알고리즘을 구현할 수 있습니다. 그 중 cryptography의 Fernet을 활용한 대칭키 암호화 알고리즘을 해보려합니다. 대칭키 암호화 방식 먼저 대칭키 암호화 방식 ( symmetric-key algorithm)은 암호화와 복호화에 같은 암호키를 사용하는 알고리즘 입니다. 이에 암호화를 하는 측과 복호화를 하는 측이 같은 암호키를 공유해야합니다. 공개키 암호화 방식에 비하여 계산 속도가 빠르다는 장점이 있습니다. 공개키 암호화 방식 공개키와 비밀키 두가지의 키가 존재하며 공개키는 누구나 알 수 있지만 그에 대응하는 비밀키는 키의 소유자만이 알 수 있습니다. 공개키를 구성하는 알고리즘은 비대칭 암호라고 부르기도 합니다. 사전에 비밀키를 나눠가지지 않아..
파이썬을 여행하는 히치하이커를 위한 안내서에 나온 PyCrpyto 코드를 실습하다가 다음의 오류를 만나게 되었습니다. 실습 코드 from Crypto.Cipher import AES encryption_suite = AES.new('This is a key123', AES.MODE_CBC, 'This is an IV456') chiper_text = encryption_suite.encrypt("aaaaaaaaaaaaaaaaa") decryption_suite = AES.new('This is a key123', AES.MODE_CBC, 'This is an IV456') plain_text = decryption_suite.decrypt(chiper_text) Error ... 생략 ValueError..
Consider an array of integers, arr = [ arr [0], arr [1], ... , arr [n - 1]]. We define the absolute difference between two elements, a[i] and a[j] (where i != j), to be the absolute value of a[i] - a[j]. Given an array of integers, find and print the minimum absolute difference between any two elements in the array. For example, given the array arr = [ -2, 2, 4 ] we can create 3 pairs of numbers..