parameters: (filepath, modelname)
return_statement: return model
docstring: Load model + weights from json + npy file, respectively
  
      Parameters
      ----------
      filepath : str
          directory where the data will be stored
      modelname : str
          name of the model to be used in the filename
  
      Returns
      ----------
      model : Keras object
          reproduced model
docstring_summary: Load model + weights from json + npy file, respectively
docstring_tokens: Load model + weights from json + npy file respectively
function: def loadmodel(filepath, modelname):
      """ Load model + weights from json + npy file, respectively
  
      Parameters
      ----------
      filepath : str
          directory where the data will be stored
      modelname : str
          name of the model to be used in the filename
  
      Returns
      ----------
      model : Keras object
          reproduced model
      """
      with open(os.path.join(filepath, modelname + '_architecture.json'), 'r') as outfile:
          loaded_json = json.load(outfile)
      model = model_from_json(loaded_json)
      weights_path = os.path.join(filepath, modelname + '_weights.npy')
      model.set_weights(np.load(weights_path, allow_pickle=True))
      return model
function_tokens: def loadmodel ( filepath , modelname ) : with open ( os . path . join ( filepath , modelname + '_architecture.json' ) , 'r' ) as outfile : loaded_json = json . load ( outfile ) model = model_from_json ( loaded_json ) weights_path = os . path . join ( filepath , modelname + '_weights.npy' ) model . set_weights ( np . load ( weights_path , allow_pickle = True ) ) return model