주어진 상태의 진실성을 확인하고자 할 때 사용할 수 있다. 사용방법 assert some_condition, assert_message some_condition 부분에 입증하고자 하는 상태를 입력하고, assert_message(optional) 에 오류가 발생할 때 반환할 메세지를 설정할 수 있다. 간단한 예제 fruits = ['apple', 'mango', 'orange'] assert 'lemon' in fruits, 'There is not present in fruits'
▥ 강화학습의 개념 위키디피아에서 정의하고 있는 강화학습의 개념은 다음과 같다. Reinforcement learning(RL) is an area of machine learning concerned with how intelligent agents ought to take actions in an environment in order to maximize the notion of cumulative reward. 강화학습은 원하는 목표를 달성하기 위해 시간 순서대로 환경에 가해지는 행동(action)을 선택하기 위한 방법으로, 일반적으로 시간변수는 불연속시간변수(discrete-time)를 가정한다. 또한, 일반적으로 시간스텝마다 행동이 가해지기 때문에 순차적 의사 결정 문제(sequential de..