{"id":15290465,"url":"https://github.com/mainanick/kerasplugins","last_synced_at":"2025-04-13T10:11:28.172Z","repository":{"id":62573967,"uuid":"109056011","full_name":"mainanick/kerasplugins","owner":"mainanick","description":"kerasplugins: Boost Keras 💻","archived":false,"fork":false,"pushed_at":"2018-02-21T15:21:18.000Z","size":28,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T01:35:45.661Z","etag":null,"topics":["keras","machine-learning","python","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mainanick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-31T21:52:27.000Z","updated_at":"2023-11-21T01:10:52.000Z","dependencies_parsed_at":"2022-11-03T18:30:43.399Z","dependency_job_id":null,"html_url":"https://github.com/mainanick/kerasplugins","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainanick%2Fkerasplugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainanick%2Fkerasplugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainanick%2Fkerasplugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainanick%2Fkerasplugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mainanick","download_url":"https://codeload.github.com/mainanick/kerasplugins/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248560464,"owners_count":21124661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["keras","machine-learning","python","tensorflow"],"created_at":"2024-09-30T16:08:17.373Z","updated_at":"2025-04-13T10:11:28.152Z","avatar_url":"https://github.com/mainanick.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kerasplugins 🤓\n[![PyPI](https://img.shields.io/pypi/v/kerasplugins.svg)]()\n[![PyPI](https://img.shields.io/pypi/l/kerasplugins.svg)]()\n\n##### Installation\n\n```\npip install kerasplugins\n```\n\n## Callbacks\n### Notification Callback 📮 💬\nGet notified as your Keras neural network models trains remotely\n\nSend log messages to your telegram and slack channels. *more coming soon*\n\nNotify levels available:\n1) on_train_begin,\n2) on_train_end,\n3) on_batch_begin,\n4) on_batch_end,\n5) on_epoch_begin,\n6) on_epoch_end\n\n\n```python\nfrom kerasplugins import callbacks\n\n#Notify can either be a list, dict or set\nnotify = { \n  'on_batch_end',  # sends BATCH END: Loss 0.50 Accuracy: 0.75\n  'on_epoch_end'   # sends EPOCH END: Loss 0.43 Accuracy: 0.81\n}\n\n# msg is the initial message\nmsg = \"Predicting Bitcoin Price\"\n\ntelegram = callbacks.TelegramNotify(\u003ctoken\u003e, \u003cchat_id\u003e, msg=msg, notify=notify)\n\n# channel is \"#general\" by default\nslack = callbacks.SlackNotify(\u003cslack_token\u003e, \u003cchannel\u003e, msg=msg, notify=notify)\n\nwebhook = callbacks.WebhookNotify('https://example.com/ml')\n\n# Optionals:\n#Headers default to \"application/json\"\nheaders = {'Content-Type': 'text/plain'}\n\n# Added to every payload sent to the webhook\ndata = {\"auth_token\":\"cccxxxvvvbbbnnnmmmaaasss\"}\n\nwebhook = callbacks.WebhookNotify('https://example.com/ml', data=data, headers=headers)\n\nmodel.fit(X_train, Y_train, validation_data=[X_test, Y_test], batch_size=256, epochs=10,\n        callbacks=[telegram, slack, webhook])\n```\n\n## Coming Soon\n1) Ability to stop training remotely\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainanick%2Fkerasplugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmainanick%2Fkerasplugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainanick%2Fkerasplugins/lists"}