This file contains hidden or 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
    
  
  
    
  | from keras.callbacks import ModelCheckpoint | |
| checkpoint_callback = ModelCheckpoint( | |
| "c3d_v5_chkpt-{epoch:02d}-{val_loss:.2f}-{val_acc:.2f}.hdf5", | |
| monitor='val_loss', | |
| verbose=1, | |
| save_best_only=True, | |
| save_weights_only=False, | |
| mode='auto', | |
| period=1) | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # Original source code: https://github.com/bklim5/python_video_indexer_lib | |
| import re | |
| import time | |
| import datetime | |
| import requests | |
| def get_retry_after_from_message(message): | 
  
    
      This file contains hidden or 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 numpy as np | |
| import faiss | |
| class FaissNearestNeighbors: | |
| def __init__(self, k=5): | |
| self.index = None | |
| self.y = None | |
| self.k = k | 
OlderNewer