분류 전체보기 477

what is Docker Compose? | 🐳 도커 컴포즈를 알아보자 | 실습편

🐳 🐳 🐳 🐳 🐳 참고 - 얄팍한 코딩사전 : 가장 쉽게 배우는 도커 - YouTube 🐳 목표 🐳 도커, 도커 컴포즈를 안다. 개념 + 실습을 남에게 설명할 수 있다. 학습 목표 느낌~ 내일 동아리에서 도커 컴포즈를 발표해야 한다. ㅋㅋㅋㅋ. ^^. 🐳 시작하기 전에.. 🐳 나의 이해도를 점검해보자! 그동안 동아리에서 뭘 해봤나.. 뭔가 .. 이것저것 깔았다! 도커 깔기 도커 이미지로 mysql 다운 + 간단한 문법 하둡 + 스파크 spark ML 카프카 -> 그리고 컴포즈.. 그리고 이해가 부족한 것 같아서 데이터 엔지니어링 인프라도 공부를 해 보았다. 🐳 그리고 얄코! 🐳 얄코의 도커 실습 구조도 로컬 환경의 웹을 docker로 환경 구성을 한다! 🐳 docker image - node.js ㄴ🐳🐳..

What is Git and GitHub? | 깃, 깃허브 이용법

참고 : Git and GitHub for Beginners - Crash Course - YouTube ⭐️ Contents ⭐️ ⌨️ Introduction ⌨️ What is git? ⌨️ What is version control? ⌨️ Terms to be learn in video ⌨️ Git commands ⌨️ sign up in GitHub ⌨️ using git in local machine ⌨️ git install ⌨️ getting code editor ⌨️ inside VS Code ⌨️ cloning through VS Code ⌨️ git commit command ⌨️ git add command ⌨️ committing ⌨️ git push command ⌨️ SSH Ke..

Data Science/AI 2021.08.29

[8.21] pygame_ 토마토 수학게임

나아진 점 : intro를 넣으려 함. 개선할 점 : intro를 만드느라 정작 메인 게임을 못 만듦 ㅋㅋ.. : 화면이 깜빡거림. #-*- coding: utf-8 -*-# ## import import random import sys import math import pygame from pygame import mixer import time from time import sleep from math import pi WINDOW_WIDTH = 800 WINDOW_HEIGHT = 500 ## 한글 폰트 불러오기 pygame.font.init() small_font = pygame.font.SysFont('malgungothic', 10) font = pygame.font.SysFont('malgun..

[8.13] 파이썬 pygame - 토마토 수학교실

#-*- coding: utf-8 -*-# import random import sys import math import pygame from pygame import mixer import time from time import sleep from math import pi WINDOW_WIDTH = 800 WINDOW_HEIGHT = 500 #한글 폰트 불러오기 pygame.font.init() font = pygame.font.SysFont('malgungothic', 20) #아이콘 불러오기 icon = pygame.image.load('tomato.png') pygame.display.set_icon(icon) VELOCITY = 7 MASS = 2 class Car: def __init__(s..

[8.11] 파이썬 pygame - 토마토 수학게임

파이썬 파이게임을 이용해서 만든 간단한 프로그램이다! pygame 모듈을 설치한 후에 첨부파일을 다운받으면 실행시킬 수 있다 :D #-*- coding: utf-8 -*-# import random import sys import math import pygame from pygame import mixer import time from time import sleep WINDOW_WIDTH = 800 WINDOW_HEIGHT = 500 #한글 폰트 불러오기 pygame.font.init() font = pygame.font.SysFont('malgungothic', 20) #토마토 불러오기 redtomato = pygame.image.load('tomatotomato.png') happytomato =..

[8.11] 파이썬 조합 문제

from itertools import combinations def solution(str, k): # k개의 수를 제거해서 만들 수 있는 숫자 찾기 # step 1. 문자열을 리스트로 바꾸기 mylist = list(str) # step 2. 그 중에 k개 빼고 고르기 mylist = list(combinations(mylist, len(mylist)-k)) # step 3. 그 중에 가장 큰 수 찾기 answer = [] for i in mylist: #두 요소를 합치기 answer.append(int(''.join(i))) # step 4. 문자열 형태로 반환하기 answer.sort() answer.reverse() return answer[0] # 그 중에 가장 큰 숫자 찾기 print(sol..

[머신러닝] decision tree - 핸즈온 머신러닝 6장

6. Decision Tree¶ 머신러닝 알고리즘 중 1 : 분류, 회귀, 다중출력도 가능 랜덤 포레스트의 기본 구성 요소 6.1 결정 트리 학습과 시각화¶ In [1]: from sklearn.datasets import load_iris from sklearn.tree import DecisionTreeClassifier #붓꽃 데이터셋 불러오기 iris = load_iris() #길이와 너비 데이터 사용 X = iris.data[:,2:] y=iris.target tree_clf = DecisionTreeClassifier(max_depth = 2) tree_clf.fit(X,y) Out[1]: DecisionTreeClassifier(max_depth=2) In [3]: from sklearn.t..

Data Science/AI 2021.07.31