Please enable JavaScript.
Coggle requires JavaScript to display documents.
機械学習 - Coggle Diagram
機械学習
-
⑦結果の可視化
可視化関数
def plot_accuracy_loss():
scores = model.evaluate(x_test, t_test, verbose=0)
print('Test loss:', scores[0])
print('Test accuracy:', scores[1])
・Plot accuracy & loss
acc = history.history["accuracy"]
val_acc = history.history["val_accuracy"]
loss = history.history["loss"]
val_loss = history.history["val_loss"]
epochs = range(1, len(acc) + 1)
-
-
-
-
①データの取得/可視化
CSV
import pandas as pd
・ヘッダーあり
df = pd.read_csv('data/src/sample.csv')
・ヘッダー無し
df = pd.read_csv('data/src/sample.csv', header=None)
-
-
-
-
④モデルの構築
import tensorflow as tf
from tensorflow.keras import models, layers
import tensorflow.keras.backend as K
-
-
-