简体   繁体   中英

When running tensorboard on MacBook, this error keeps showing up: No dashboards are active for the current data set

I'm running a CNN training model with tensorflow. I want to visualize accuracy of the training model with Tensorboard. I tried the following variations:

tensorboard --logdir=/Users/Desktop/model_folder 
tensorboard --logdir="/Users/Desktop/model_folder" 

But every time I try to load Tensorflow in my browser, the error is: no dashboards are active for the current data set.

I saw some solutions for Windows where they specified the network drive; however, mac does not have a network drive, so I'm not sure how to proceed.

Are there solutions to this error for MacBook? Or are there other ways of visualizing training model accuracy with python?

To simply visualise you don't specifically need tensorboard and can just use history object that the fit method returns:

import pandas as pd

#### here you create your model ####

hist = fit(x, y)
histdf = pd.DataFrame(hist)

# Plot loss
hist_df.loc[:, ['train_loss', 'val_loss']].plot(kind='line')
# Plot accuracy
hist_df.loc[:, ['train_accuracy', 'val_accuracy']].plot(kind='line')

You can of course also import matplotlib and set up plots in more detail.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM