[英]Tensorboard in Colab: No dashboards are active for the current data set
[英]When running tensorboard on MacBook, this error keeps showing up: No dashboards are active for the current data set
我正在使用 tensorflow 運行一個 CNN 訓練模型。 我想用 Tensorboard 可視化訓練模型的准確性。 我嘗試了以下變體:
tensorboard --logdir=/Users/Desktop/model_folder
tensorboard --logdir="/Users/Desktop/model_folder"
但是每次我嘗試在瀏覽器中加載 Tensorflow 時,都會出現錯誤:當前數據集沒有活動的儀表板。
我看到了一些 Windows 的解決方案,他們指定了網絡驅動器; 但是,mac 沒有網絡驅動器,所以我不確定如何進行。
是否有針對 MacBook 的此錯誤的解決方案? 或者還有其他方法可以用 python 可視化訓練模型的准確性嗎?
為了簡單地可視化,您不需要特別需要張量板,只需使用fit
方法返回的history
對象:
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')
您當然也可以導入 matplotlib 並更詳細地設置繪圖。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.