This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import streamlit as st | |
import requests | |
import json | |
from PIL import Image | |
import pandas as pd | |
import numpy as np | |
import wget | |
import _pickle as cPickle | |
st.title('Predictive Maintenance - TTF (total time to failure)') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NotificationCallback(Callback): | |
""" | |
PyTorch callback for model training | |
""" | |
def on_train_begin(self, metrics_names: StrList, **kwargs: Any) -> None: | |
send_notification("Training has Begun ") | |
def on_epoch_end(self, epoch: int, smooth_loss: Tensor, last_metrics: MetricsList, **kwargs: Any) -> None: | |
super().on_epoch_end(**kwargs) |