ageron / ageron/handson-ml

Monte Carlo Dropout

Open
#527 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
25.6k
Forks
12.7k
PR merge metrics
No merged PRs in 30d

Description

I tried the Monte Carlo Dropout

with keras.backend.learning_phase_scope(1): # force training mode = dropout on
y_probas = np.stack([model.predict(X_test)
for sample in range(100)])
y_proba = y_probas.mean(axis=0)

and got this error message

with keras.backend.learning_phase_scope(1): # force training mode = dropout on
AttributeError: module 'keras.backend' has no attribute 'learning_phase_scope'

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.