Posts

Showing posts with the label theano

input shape of dataset in cnn

Image
Clash Royale CLAN TAG #URR8PPP input shape of dataset in cnn My dataset is a simple table of 20 columns and 100,000 rows.It is not a image data as commonly used in CNN. What input shape should I provide in this case? Right now I did- input_shape = (21,109713,1) model.add(Conv2D(32, kernel_size=(5, 5), strides=(1, 1), activation='relu', input_shape=input_shape)) which gives the error- ValueError: rng_mrg cpu-implementation does not support more than (2**31 -1) samples Try giving the shape as (109713,21,1) – Hari Krishnan 3 mins ago By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these p...

keras try save and load model error

Image
Clash Royale CLAN TAG #URR8PPP keras try save and load model error i am trying to fine tuning and save model in Keras and load model but error Value Error: You are trying to load a weight file containing 16 layers into a model with 0 layers. i tried another model for number i made it save and load mode work without error when i try adopt vgg16 and used it give that error i want load model but cant load because this error any help ? Value Error: You are trying to load a weight file containing 16 layers into a model with 0 layers. import keras from keras.models import Sequential,load_model,model_from_json from keras import backend as K from keras.layers import Activation,Conv2D,MaxPooling2D,Dropout from keras.layers.core import Dense,Flatten from keras.optimizers import Adam from keras.metrics import categorical_crossentropy from keras.layers.normalization import BatchNormalization from keras.layers.convolutional import * from keras.preprocessing.image import ImageDataGenerator import m...