theclassofai / dlcovid19 Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
In the Create and Compile the Model
AttributeError Traceback (most recent call last)
in ()
19 from keras import optimizers
20 model.compile(loss='binary_crossentropy',
---> 21 optimizer=optimizers.RMSprop(lr=1e-4),
22 metrics=['acc'])
AttributeError: module 'keras.optimizers' has no attribute 'RMSprop'
I tired to fix this with optimizer=keras.optimizers.RMSprop(lr=1e-4), and it did finish running the cell but then when I try Fit the model there happens this error:
Epoch 1/30
16/100 [===>..........................] - ETA: 21s - loss: 1.0884 - acc: 0.5800WARNING:tensorflow:Your input ran out of data; interrupting training. Make sure that your dataset or generator can generate at least steps_per_epoch * epochs batches (in this case, 3000 batches). You may need to use the repeat() function when building your dataset.
WARNING:tensorflow:Your input ran out of data; interrupting training. Make sure that your dataset or generator can generate at least steps_per_epoch * epochs batches (in this case, 10 batches). You may need to use the repeat() function when building your dataset.
100/100 [==============================] - 5s 46ms/step - loss: 1.0884 - acc: 0.5800 - val_loss: 0.6863 - val_acc: 0.6200
If the values of steps_per_epoch < 25 on the implementation without dropout it works and on the one with dropout it work with values of steps_per_epoch < 16.
I also followed the youtube video example.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.