asked
[After-work activities] Big Data Analysis Engineer Practical (Work-type 1,2,3)
7th Previous Question Type (Task Type 3)
Resolved
Written on
·
135
0
Answer 1
부호가 반대로 됩니다
female_odds_ratio = round(np.exp(-model.params['weight']), 4) print(female_odds_ratio)
또는 시험에서 생각이 안난다면
train['gender_reversed'] = 1 - train['gender']
와 같이 반대로 취할 수도 있을 것 같네요!