Comments (4)
How long do I have to wait to see NaN error occur?
from 4dsurvival.
I would need more information. Does the loss in step 2a become NaN at some point? What iteration?
from 4dsurvival.
A few points to note down:
- I don't think such extensive search of hyperparameters is useful in practice, and without it would surely make it more efficient to execute the code. I think once they are found in step 1a, the hyperparameters can be used in the bootstrap sampling steps. Things like drop out rate, number of hidden units, is not that sensitive. Learning rate isn't sensitive as well, if Adam optimiser is used. So there is little point in repeating the search.
- Most likely the NaN is from exploding gradients. Adding batch norm layers definitively is recommended, and will solve this issue. Notice to add them after linear layer before nonlinear activation (and of course not in the output layer).
- The repo uses keras==2.2.2 and tf1. Highly recommended to upgrade to tf2 at least. Most recommended to switch to pytorch. It will be much easier to debug.
from 4dsurvival.
Lifelines function had a bugfix in April 2019 as it had been silently converting NaNs in the event vector to True. In the current version these now produce an error - which we are picking up when we ran the code. Reducing dropout search range to [0.1,0.5] allows code to run with lifelines v 0.23.9 and achieves similar discrimination performance.
from 4dsurvival.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 4dsurvival.