Skip to content
Snippets Groups Projects
Commit 9a62fc7e authored by Silas Dohm's avatar Silas Dohm
Browse files

fixed earlystop in doc

parent 51fcaca7
Branches
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ Zuletzt wird für den Parameter \lstinline{Metrics} der Wert \lstinline{sparse_c
Nach dem Kompilieren des neuronalen Netzes ist jetzt das Trainieren, also das Optimieren der Gewichte, der nächste Schritt.
\begin{lstlisting}[caption={Neuronales Netz - Trainieren},label={list:mean4},firstnumber=55]
earlystop = keras.callbacks.EarlyStopping(monitor='sparse_categorical_accuracy',patience=10,verbose=False,restore_best_weights=True)
earlystop = keras.callbacks.EarlyStopping(monitor='val_sparse_categorical_accuracy',patience=10,verbose=False,restore_best_weights=True)
cbList = [earlystop]
count = np.unique(Y_train,return_counts=True)[1]
cWeight = 1/(count/Y_train.size)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment