A reminder that can notify you wherever you are. You can use it when you train your deep learning model, and it will send you the result of the experiment wherever you are. Please believe me, it is very easy for you to get started!
yagmail
install it firstly!
pip install ex-reminder # or pip install ex-reminder -i https://pypi.org/simple
pip install yagmail
from ex_reminder import reminder
sender_email = 'xxx@xxx.com'
# the authorized code is not your password sometime, and it depends on your mail service
authorized_code = 'xxxxx'
host = 'xxx' # for example: smtp.163.com
receiver_email = 'xxxx@xxx.com' # receiver email can be the sender email
subject = '' # it is optional, and the default value is 'An experiment from ex_reminder!'
sender = reminder(sender_email=sender_email, authorized_code=authorized_code, \
host=host, receiver_email=receiver_email, subject=subject)
### processing
content = 'Loss: 12, Acc:91.53%'
sender.send(content)