def check_files(settings, case, value_iter):
    """
    In case the Train File Stops...

    :param settings: dict
    :param case: str
    :param value_iter: int
    :return: Boolean
    """
    name = 'model_{}_case_{}_iter_{}'.format(
        settings['model'],
        case.split('_')[1],
        value_iter)
    path = os.path.join(os.getcwd(), 'Results', case) + \
        '/Model{}'.format(settings['model']) + '.json'
    results_file = os.path.isfile(path)
    # Depending on Model No. Check if Model Memory is Saved
    if 3 < settings['model']:
        path = os.path.join(
            os.getcwd(), 'Model/NN_Model/', name + '.pkl')
        model_saved = os.path.isfile(path)
    else:
        path = os.path.join(
            os.getcwd(),
            'Model/NN_Model/',
            name + '_weights.h5')
        model_saved = os.path.isfile(path)

    if results_file and model_saved:
        continue_on = True
    else:
        continue_on = False

    return continue_on, name
dataset/ETHPy150Open dandxy89/rf_helicopter/Settings.py/check_files/swapped operands of `<`