From c05de94528b6edb8061856dd47b56305a000f1e3 Mon Sep 17 00:00:00 2001 From: lvapeab Date: Tue, 31 Mar 2020 11:17:36 +0200 Subject: [PATCH] Test on Python 2.x not anymore --- .travis.yml | 4 ---- README.md | 2 +- keras_wrapper/extra/callbacks.py | 6 ++++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index dd1f988..36d8cdc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,12 +5,8 @@ matrix: include: - python: 3.6 env: TEST_MODE=PEP8 - - python: 2.7 - env: TEST_MODE=GENERAL - python: 3.6 env: TEST_MODE=GENERAL - - python: 2.7 - env: TEST_MODE=EXTRA - python: 3.6 env: TEST_MODE=EXTRA diff --git a/README.md b/README.md index 93ab2aa..74ba570 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Multimodal Keras Wrapper Wrapper for Keras with support to easy multimodal data and models loading and handling. -[![PyPI version](https://badge.fury.io/py/multimodal-keras-wrapper.svg)](https://badge.fury.io/py/multimodal-keras-wrapper) [![Build Status](https://travis-ci.org/lvapeab/multimodal_keras_wrapper.svg?branch=master)](https://travis-ci.org/lvapeab/multimodal_keras_wrapper) [![Requirements Status](https://requires.io/github/lvapeab/multimodal_keras_wrapper/requirements.svg?branch=master)](https://requires.io/github/lvapeab/multimodal_keras_wrapper/requirements/?branch=master) ![Compatibility](https://img.shields.io/badge/Python-2.7%2F3.7-blue.svg) [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/lvapeab/multimodal_keras_wrapper/blob/master/LICENSE) +[![PyPI version](https://badge.fury.io/py/multimodal-keras-wrapper.svg)](https://badge.fury.io/py/multimodal-keras-wrapper) [![Build Status](https://travis-ci.org/lvapeab/multimodal_keras_wrapper.svg?branch=master)](https://travis-ci.org/lvapeab/multimodal_keras_wrapper) [![Requirements Status](https://requires.io/github/lvapeab/multimodal_keras_wrapper/requirements.svg?branch=master)](https://requires.io/github/lvapeab/multimodal_keras_wrapper/requirements/?branch=master) ![Compatibility](https://img.shields.io/badge/Python-3.6-blue.svg) [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/lvapeab/multimodal_keras_wrapper/blob/master/LICENSE) ## Documentation diff --git a/keras_wrapper/extra/callbacks.py b/keras_wrapper/extra/callbacks.py index 6548e4d..d2e941b 100644 --- a/keras_wrapper/extra/callbacks.py +++ b/keras_wrapper/extra/callbacks.py @@ -968,8 +968,10 @@ def evaluate(self, epoch, counter_name='epoch'): self.best_score = current_score self.wait = 0 if self.verbose > 0: - logger.info('---current best %s %s: %.3f' % ( - self.check_split, self.metric_check, current_score if not self.want_to_minimize else -current_score)) + logger.info('---current best %s %s: %.3f' % (self.check_split, + self.metric_check, + current_score if not self.want_to_minimize + else -current_score)) # Stop training if performance has not improved for self.patience epochs elif self.patience > 0: