def load_NN(): """ Loads the Keras NN model for a user-trained metric. """ nn = KerasNN(name) nn.load('../data/nns/{}.h5'.format(name)) return ('nn', nn)
def load_mp(): """ Loads the Keras NN model for melting point. """ cnn_mp = KerasNN('mp') cnn_mp.load('../data/nns/mp.h5') return ('cnn', cnn_mp)
def load_bandgap(): """ Loads the Keras NN model for H**O-LUMO energy difference. """ cnn_bandgap = KerasNN('bandgap') cnn_bandgap.load('../data/nns/bandgap.h5') return ('cnn', cnn_bandgap)
def load_PCE(): """ Loads the Keras NN model for Power Conversion Efficiency. """ cnn_pce = KerasNN('pce') cnn_pce.load('../data/nns/pce.h5') return ('cnn', cnn_pce)