Category: keras

UnsatisfiableError: The following specifications were found to be in conflict: keras pil

>conda install -c anaconda pil Solving environment: failed UnsatisfiableError: The following specifications were found to be in conflict: – keras – pil Use “conda info <package>” to see the dependencies for each package.   Workaround: conda install pillow “Pillow is the “friendly PIL fork” by Alex Clark and Contributors. PIL is the Python Imaging Library by…

Read the full article

cifar10.py setup and dataset dir

Downloaded dataset from here: https://www.cs.toronto.edu/~kriz/cifar.html And to use it modified: X:\Anaconda3\envs\ENV_NAME\Lib\site-packages\keras\datasets #dirname = ‘cifar-10-batches-py’ dirname = ‘X:\Anaconda3\envs\ENV_NAME\Lib\site-packages\keras\datasets\cifar-10-batches-py’

Keras 2 API tips

“Old” Keras Dense declaration in Keras 2 API : model.add(Dense(11, input_dim=11, init=”uniform”, activation=”relu”)) is now: Dense(11, input_dim=11, activation=”relu”, kernel_initializer=”uniform”) If when adding you TypeError: add() got an unexpected keyword argument ‘init’   UserWarning: The `nb_epoch` argument in `fit` has been renamed `epochs`. warnings.warn(‘The `nb_epoch` argument in `fit` ‘