How do I use the Tensorboard callback of Keras?

前端 未结 10 584
名媛妹妹
名媛妹妹 2020-12-04 04:57

I have built a neural network with Keras. I would visualize its data by Tensorboard, therefore I have utilized:

keras.         


        
10条回答
  •  北海茫月
    2020-12-04 05:47

    If you are using google-colab simple visualization of the graph would be :

    import tensorboardcolab as tb
    
    tbc = tb.TensorBoardColab()
    tensorboard = tb.TensorBoardColabCallback(tbc)
    
    
    history = model.fit(x_train,# Features
                        y_train, # Target vector
                        batch_size=batch_size, # Number of observations per batch
                        epochs=epochs, # Number of epochs
                        callbacks=[early_stopping, tensorboard], # Early stopping
                        verbose=1, # Print description after each epoch
                        validation_split=0.2, #used for validation set every each epoch
                        validation_data=(x_test, y_test)) # Test data-set to evaluate the model in the end of training
    

提交回复
热议问题