Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- ai
- 데이터 분석가
- 파이썬
- EDA
- CNN
- Machine Learning
- 멋쟁이사자처럼
- Tableau
- data
- python
- DNN
- machineleaning
- Data Scientist
- 데이터분석가
- AISCHOOL
- numpy
- Deeplearning
- MachineLearning
- 데이터 사이언티스트
- pandas
- data analysis
- data analyst
- machinelearing
- deep learning
- 범죄통계
- Data Science
- SQL
Archives
- Today
- Total
Molybdenum의 개발기록
[TIL] 9일차_QUIZ 본문
Quiz. 매출을 늘리기 위해서 미팅 횟수를 많이 갖는 것이 중요할까?
아니면 고객에게 상담시간을 많이 할애하는 것이 좋을까?
공분산 뭔데..
covariance(data['meeting_count'], data['sales']), covariance(data['meeting_time'], data['sales'])
(350.390194723618, 25.941391959798988)
상관계수를 넣는거임...또륵
import numpy as np
np.corrcoef(data['meeting_count'], data['sales'])[0, 1],\
np.corrcoef(data['meeting_time'], data['sales'])[0, 1]
(0.7822244248616061, 0.22829902637616528)
-> 미팅횟수를 많이 갖는게 중요하다.(아마..)
Quiz. 클래스(스타크래프트)
- Marine : health(40), attack_pow(5), attack(상대체력감소)
- Medic : health(60), heal_pow(6), heal(상대체력회복)
class Marine:
def __init__(self, health=40, attack_pow=5):
self.health = self.max_health = health
self.attack_pow = attack_pow
def attack(self, target):
target.health -= self.attack_pow
if target.health < 0:
target.health = 0
class Medic:
def __init__(self, health=60, heal_pow=6):
self.health = health
self.heal_pow = heal_pow
def heal(self, target):
target.health += self.heal_pow
if target.health > target.max_health:
target.health = target.max_health
m1 = Marine()
m2 = Marine()
medic = Medic()
m1.health, m2.health
m1.attack(m2)
m1.health, m2.health
medic.heal(m2)
m1.health, m2.health
출처-멋쟁이사자처럼_AISCHOOL_박두진강사님
'TIL' 카테고리의 다른 글
[TIL] 10일차_PYTHON_Class_IO_02 (0) | 2023.03.03 |
---|---|
[TIL] 10일차 PYTHON_Class_IO_01 (0) | 2023.03.03 |
[TIL] 9일차_PYTHON_Correlation_Cofficient_Code (0) | 2023.03.03 |
[TIL] 9일차_PYTHON_Decorator (0) | 2023.03.03 |
[TIL] 9일차_PYTHON_Class (0) | 2023.03.03 |
Comments