일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- Vector
- 머신러닝
- git
- destroyallwindows
- Linux
- imshow
- db
- opencv
- 파이썬
- tensorflow
- CLONE
- imread
- 이미지
- gitignore
- Spring
- model
- AI
- branch
- 저장소
- Python
- data
- list
- Java
- datascience
- Session
- r
- 가중치
- 함수
- Anaconda
- Repository
- Today
- Total
목록파이썬 (16)
AI학교

상수 a = tf.constant(1) b = tf.constant(2) a와 b를 constant 상수 바구니에 담아줍니다. c = tf.add(a, b) c는 a와 b를 더한 값을 담아줍니다. sess = tf.Session() 실제로 실행하도록 해주는 흐름 객체를 만들어줍니다. sess.run(c) 세션을 실행시켜줍니다. 변수 a = tf.Variable(5) b = tf.Variable(3) a와 b를 Variable이라는 변수 바구니에 담아줍니다. c = tf.multiply(a, b) c에는 a와 b를 곱한(multiply)값을 담아줍니다. init = tf.global_variables_initializer() global_variables_initializer를 이용해 변수를 초기화해줍니다..

import json text -> json -> python객체 타입처럼 변환이 가능합니다.(list dictionary)

패키지를 설치해 봅시다 window + r cmd activate + (python프로젝트 이름) conda install bs4 (있으면 개이득이에요ㅠㅠ) pip install bs4 (위에 conda install bs4가 없을경우, 자동으로 검사해주지는 않지만, 사용할 수 있는 환경을 설치합니다.) -- 차례로 입력해줍니다. 트리 탐색이 가능합니다 # id =" " . class = " " > 자식, 자손 Select - css 선택 Find - 트리탐색 articles(bs4객체) = soup.select("#mArticle") 둘중 하나 articles.find articles.select F12를 눌러서 검사해봅시다

많이 쓰는 모듈 - 관례상 별칭 import numpy as np import pandas as pd import matplotlib.pyplot as plt 디렉터리 = 패키지 모듈 로드시 초기화 코드 __init__ import adv_flowcontrol 모듈의 이름 : adv_flowcontrol import adv_function fun : is fun callable ? True 200 11 12 13 15 15 고정인자 : 1 2 가변인자 : (3, 4, 5, 6) 키워드 인자 : {'option1': '옵션1', 'option2': '옵션2'} option 1이 옵션1로 설정되었습니다. 30 -10 200 Words : ['life', 'is', 'too', 'short', 'you', '..