Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is data type for Python Keras deep learning package?

I didn't find anything about data type that we need to work with Python Keras deep learning package with this link. I checked array and list but returned error. Any clue?

like image 663
Eghbal Avatar asked May 21 '15 20:05

Eghbal


People also ask

What is Keras package in Python?

Keras is an open-source software library that provides a Python interface for artificial neural networks. Keras acts as an interface for the TensorFlow library. Keras.

Is Keras a dataset?

Keras comes with a few in-built datasets — cleaned and vectorized, to help you build simple deep learning models. MNIST, CIFAR10, CIFAR100, IMDB, Fashion MNIST, Reuters newswire, and Boston housing price datasets are available within Keras. You've got both train and test datasets by importing the dataset from tf.

What is Keras used for in deep learning?

Keras is a high-level, deep learning API developed by Google for implementing neural networks. It is written in Python and is used to make the implementation of neural networks easy. It also supports multiple backend neural network computation.

What type of neural network does Keras use?

Keras Model Overview. Models are the core entity you'll be working with when using Keras. The models are used to define TensorFlow neural networks by specifying the attributes, functions, and layers you want.


1 Answers

Keras uses numpy arrays containing the theano.config.floatX floating point type. This can be configured in your .theanorc file.

Typically, it will be float64 for CPU computations and float32 for GPU computations, although you can also set it to float32 when working on the CPU if you prefer.

You can create a zero-filled array of the proper type by the command

X = numpy.zeros((4,3), dtype=theano.config.floatX)
like image 166
cfh Avatar answered Oct 29 '22 16:10

cfh