Skip to content

Send plots and logs of your training model to your Messenger account

License

Notifications You must be signed in to change notification settings

louishenrifranc/facebooklog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • Simple script to send plots and logs via Facebook Messenger.
  • Extend the idea of navoshta for Messenger.
  • Usage for ML/DL: Get noticed when training tasks is over.

Installation

git clone https://github.com/louishenrifranc/facebooklog.git
cd facebooklog
python setup.py install

Usage

Create a MessengerLog object

Need a facebook account (email, password)

messenger = MessengerLog(username, password)

If you want to send to a thread group, fill the parameter thread_id, with the thread id of the conversation, otherwise logs are sent to the same account as the sender.

Send pyplot plot

X, y = [], []
for x in xrange(100):
    X.append(x)
    y.append(x * 2)
plt.plot(X, y)
messenger.send_plot(caption='New plot')

Log console outputs

  • Replace all calls to print() by a call to the MessengerLog object.
  • Send all the logs at the end with the command:
messenger.send_log_file()

Send a single message

messenger.send_msg("Min loss: %f" % min_loss)

About

Send plots and logs of your training model to your Messenger account

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages