Cainvas
Model Files
song_genre.h5
keras
Model
deepSea Compiled Models
song_genre.exe
deepSea
Ubuntu

Song Genre Prediction

Credit: AITS Cainvas Community

Photo by Devon Moodley on Dribbble

Have you ever thought that it would have been great if you didn't have to select Genre in your music app manually and rather your app should recognize the genre of the song through itself just by listening to the song.

Importing Dataset which contains songs and their audio features as columns

In [1]:
# This will load the dataset.You will see a folder called ALL in your workspace.
!wget -N "https://cainvas-static.s3.amazonaws.com/media/user_data/cainvas-admin/song_genre.zip"
!unzip -qo song_genre.zip 
!rm song_genre.zip
--2020-11-20 11:40:17--  https://cainvas-static.s3.amazonaws.com/media/user_data/cainvas-admin/song_genre.zip
Resolving cainvas-static.s3.amazonaws.com (cainvas-static.s3.amazonaws.com)... 52.219.62.24
Connecting to cainvas-static.s3.amazonaws.com (cainvas-static.s3.amazonaws.com)|52.219.62.24|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 234413 (229K) [application/zip]
Saving to: ‘song_genre.zip’

song_genre.zip      100%[===================>] 228.92K  --.-KB/s    in 0.007s  

2020-11-20 11:40:17 (30.0 MB/s) - ‘song_genre.zip’ saved [234413/234413]

Importing necessary libraries

In [2]:
import pandas as pd
import numpy as np

import os
import sys

import matplotlib.pyplot as plt

from sklearn.preprocessing import StandardScaler, OneHotEncoder
from sklearn.model_selection import train_test_split

import tensorflow as tf
import keras
from keras.callbacks import ReduceLROnPlateau
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation
from keras.utils import np_utils, to_categorical
from keras.callbacks import ModelCheckpoint

import warnings
if not sys.warnoptions:
    warnings.simplefilter("ignore")
warnings.filterwarnings("ignore", category=DeprecationWarning) 

Loading the data into Dataframe

In [3]:
datatrain = pd.read_csv("song_genre.csv")
In [4]:
datatrain.head()
Out[4]:
filename chroma_stft rmse spectral_centroid spectral_bandwidth rolloff zero_crossing_rate mfcc1 mfcc2 mfcc3 ... mfcc12 mfcc13 mfcc14 mfcc15 mfcc16 mfcc17 mfcc18 mfcc19 mfcc20 label
0 blues.00000.wav 0.349943 0.130225 1784.420446 2002.650192 3806.485316 0.083066 -113.596748 121.557297 -19.158825 ... 8.810669 -3.667368 5.751691 -5.162763 0.750948 -1.691938 -0.409953 -2.300209 1.219929 blues
1 blues.00001.wav 0.340983 0.095918 1529.835316 2038.617579 3548.820207 0.056044 -207.556793 124.006721 8.930560 ... 5.376803 -2.239120 4.216963 -6.012273 0.936110 -0.716537 0.293876 -0.287431 0.531573 blues
2 blues.00002.wav 0.363603 0.175573 1552.481958 1747.165985 3040.514948 0.076301 -90.754387 140.459900 -29.109968 ... 5.789265 -8.905224 -1.083720 -9.218359 2.455806 -7.726901 -1.815723 -3.433434 -2.226821 blues
3 blues.00003.wav 0.404779 0.141191 1070.119953 1596.333948 2185.028454 0.033309 -199.431152 150.099213 5.647593 ... 6.087677 -2.476421 -1.073890 -2.874778 0.780977 -3.316932 0.637982 -0.619690 -3.408233 blues
4 blues.00004.wav 0.308590 0.091563 1835.494603 1748.362448 3580.945013 0.101500 -160.266037 126.198807 -35.605450 ... -2.806384 -6.934123 -7.558618 -9.173553 -4.512165 -5.453538 -0.924161 -4.409333 -11.703781 blues

5 rows × 28 columns

Analyzing data according to the songs

In [5]:
datatrain = datatrain.set_index("filename")
In [6]:
datatrain.describe()
Out[6]:
chroma_stft rmse spectral_centroid spectral_bandwidth rolloff zero_crossing_rate mfcc1 mfcc2 mfcc3 mfcc4 ... mfcc11 mfcc12 mfcc13 mfcc14 mfcc15 mfcc16 mfcc17 mfcc18 mfcc19 mfcc20
count 1000.000000 1000.000000 1000.000000 1000.000000 1000.000000 1000.000000 1000.000000 1000.000000 1000.000000 1000.000000 ... 1000.000000 1000.000000 1000.000000 1000.000000 1000.000000 1000.000000 1000.000000 1000.000000 1000.000000 1000.000000
mean 0.378669 0.130929 2201.834226 2242.559613 4571.702159 0.103637 -144.479170 99.552199 -8.921949 36.293061 ... -6.021121 4.471604 -4.797232 1.781547 -3.870276 1.147988 -3.967431 0.507303 -2.328779 -1.094875
std 0.081706 0.065685 715.961347 526.337663 1574.770035 0.041834 100.235659 31.331904 21.695015 16.666986 ... 6.819018 6.717312 6.170919 5.009489 4.874423 4.579110 4.550650 3.869088 3.755574 3.837561
min 0.171782 0.005276 569.930721 897.994319 749.062137 0.021701 -552.064026 -1.527147 -89.901138 -18.768461 ... -28.052265 -15.805225 -27.542309 -12.598773 -17.545473 -15.693589 -17.227766 -11.975698 -18.504187 -19.935202
25% 0.319641 0.086625 1627.793931 1907.136505 3380.956639 0.070281 -200.695129 76.811485 -24.223789 24.107393 ... -10.966826 -0.551576 -9.363372 -1.640080 -7.164838 -1.857098 -7.194296 -2.003978 -4.670281 -3.367999
50% 0.383075 0.122448 2209.468780 2221.408983 4658.671830 0.099539 -120.206070 98.452553 -10.716073 36.957073 ... -5.920161 3.891842 -4.199810 1.879423 -3.614473 1.211945 -4.059109 0.669789 -2.391261 -1.155198
75% 0.435974 0.175793 2691.969702 2578.474352 5534.197785 0.132007 -73.895018 119.893629 5.505793 48.212825 ... -1.004241 9.706133 -0.161017 5.155263 -0.323536 4.350694 -0.842968 3.112519 0.149070 1.303739
max 0.663573 0.398012 4434.439444 3509.578677 8676.405868 0.274829 42.034588 193.096512 56.666088 80.691277 ... 17.421038 23.037573 13.054334 18.161661 12.357588 13.468802 11.489994 15.379257 14.686911 15.368967

8 rows × 26 columns

In [7]:
datatrain.head()
Out[7]:
chroma_stft rmse spectral_centroid spectral_bandwidth rolloff zero_crossing_rate mfcc1 mfcc2 mfcc3 mfcc4 ... mfcc12 mfcc13 mfcc14 mfcc15 mfcc16 mfcc17 mfcc18 mfcc19 mfcc20 label
filename
blues.00000.wav 0.349943 0.130225 1784.420446 2002.650192 3806.485316 0.083066 -113.596748 121.557297 -19.158825 42.351028 ... 8.810669 -3.667368 5.751691 -5.162763 0.750948 -1.691938 -0.409953 -2.300209 1.219929 blues
blues.00001.wav 0.340983 0.095918 1529.835316 2038.617579 3548.820207 0.056044 -207.556793 124.006721 8.930560 35.874683 ... 5.376803 -2.239120 4.216963 -6.012273 0.936110 -0.716537 0.293876 -0.287431 0.531573 blues
blues.00002.wav 0.363603 0.175573 1552.481958 1747.165985 3040.514948 0.076301 -90.754387 140.459900 -29.109968 31.689013 ... 5.789265 -8.905224 -1.083720 -9.218359 2.455806 -7.726901 -1.815723 -3.433434 -2.226821 blues
blues.00003.wav 0.404779 0.141191 1070.119953 1596.333948 2185.028454 0.033309 -199.431152 150.099213 5.647593 26.871927 ... 6.087677 -2.476421 -1.073890 -2.874778 0.780977 -3.316932 0.637982 -0.619690 -3.408233 blues
blues.00004.wav 0.308590 0.091563 1835.494603 1748.362448 3580.945013 0.101500 -160.266037 126.198807 -35.605450 22.153301 ... -2.806384 -6.934123 -7.558618 -9.173553 -4.512165 -5.453538 -0.924161 -4.409333 -11.703781 blues

5 rows × 27 columns

Preprocessing Data and Doing Test-Train Split

In [8]:
X = datatrain.iloc[: ,:-1].values
Y = datatrain['label'].values
In [9]:
# As this is a multiclass classification problem onehotencoding our Y.
encoder = OneHotEncoder()
Y = encoder.fit_transform(np.array(Y).reshape(-1,1)).toarray()
In [10]:
# splitting data
x_train, x_test, y_train, y_test = train_test_split(X, Y, random_state=0, shuffle=True)
x_train.shape, y_train.shape, x_test.shape, y_test.shape
Out[10]:
((750, 26), (750, 10), (250, 26), (250, 10))
In [11]:
# scaling our data with sklearn's Standard scaler
scaler = StandardScaler()
x_train = scaler.fit_transform(x_train)
x_test = scaler.transform(x_test)
x_train.shape, y_train.shape, x_test.shape, y_test.shape
Out[11]:
((750, 26), (750, 10), (250, 26), (250, 10))

Model Architecture

In [12]:
model = Sequential()
model.add(Dense(512, activation = 'relu', input_shape = x_train[0].shape))
model.add(Dropout(0.4))

model.add(Dense(256, activation='relu'))
model.add(Dropout(0.4))

model.add(Dense(64, activation='relu')) 
model.add(Dropout(0.4))

model.add(Dense(10, activation='softmax')) 
model.summary()
Model: "sequential"
_________________________________________________________________
Layer (type)                 Output Shape              Param #   
=================================================================
dense (Dense)                (None, 512)               13824     
_________________________________________________________________
dropout (Dropout)            (None, 512)               0         
_________________________________________________________________
dense_1 (Dense)              (None, 256)               131328    
_________________________________________________________________
dropout_1 (Dropout)          (None, 256)               0         
_________________________________________________________________
dense_2 (Dense)              (None, 64)                16448     
_________________________________________________________________
dropout_2 (Dropout)          (None, 64)                0         
_________________________________________________________________
dense_3 (Dense)              (None, 10)                650       
=================================================================
Total params: 162,250
Trainable params: 162,250
Non-trainable params: 0
_________________________________________________________________

Model Training

In [13]:
opt = keras.optimizers.Adam(learning_rate=0.001)
model.compile(optimizer= opt ,loss='categorical_crossentropy',metrics=['acc'])
In [14]:
checkpointer = ModelCheckpoint('song_genre.h5', monitor='val_acc', mode='max', verbose=2, save_best_only=True)
history=model.fit(x_train, y_train, batch_size=64, epochs=250, validation_data=(x_test, y_test), callbacks=[checkpointer])
Epoch 1/250
 1/12 [=>............................] - ETA: 0s - loss: 2.4491 - acc: 0.0938
Epoch 00001: val_acc improved from -inf to 0.30400, saving model to song_genre.h5
12/12 [==============================] - 0s 20ms/step - loss: 2.2048 - acc: 0.1960 - val_loss: 1.9909 - val_acc: 0.3040
Epoch 2/250
 1/12 [=>............................] - ETA: 0s - loss: 1.9295 - acc: 0.3281
Epoch 00002: val_acc improved from 0.30400 to 0.31600, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 1.9355 - acc: 0.3120 - val_loss: 1.7979 - val_acc: 0.3160
Epoch 3/250
 1/12 [=>............................] - ETA: 0s - loss: 1.8640 - acc: 0.3438
Epoch 00003: val_acc improved from 0.31600 to 0.32800, saving model to song_genre.h5
12/12 [==============================] - 0s 6ms/step - loss: 1.7612 - acc: 0.3587 - val_loss: 1.6530 - val_acc: 0.3280
Epoch 4/250
 1/12 [=>............................] - ETA: 0s - loss: 1.4419 - acc: 0.4844
Epoch 00004: val_acc improved from 0.32800 to 0.38000, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 1.6302 - acc: 0.4067 - val_loss: 1.5278 - val_acc: 0.3800
Epoch 5/250
 1/12 [=>............................] - ETA: 0s - loss: 1.5231 - acc: 0.4062
Epoch 00005: val_acc improved from 0.38000 to 0.41600, saving model to song_genre.h5
12/12 [==============================] - 0s 6ms/step - loss: 1.5646 - acc: 0.4333 - val_loss: 1.4529 - val_acc: 0.4160
Epoch 6/250
 1/12 [=>............................] - ETA: 0s - loss: 1.5590 - acc: 0.4375
Epoch 00006: val_acc improved from 0.41600 to 0.48000, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 1.4742 - acc: 0.4733 - val_loss: 1.3765 - val_acc: 0.4800
Epoch 7/250
 1/12 [=>............................] - ETA: 0s - loss: 1.5385 - acc: 0.3906
Epoch 00007: val_acc improved from 0.48000 to 0.50000, saving model to song_genre.h5
12/12 [==============================] - 0s 6ms/step - loss: 1.3767 - acc: 0.5147 - val_loss: 1.3556 - val_acc: 0.5000
Epoch 8/250
 1/12 [=>............................] - ETA: 0s - loss: 1.1204 - acc: 0.5469
Epoch 00008: val_acc improved from 0.50000 to 0.52000, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 1.3715 - acc: 0.5040 - val_loss: 1.3074 - val_acc: 0.5200
Epoch 9/250
 1/12 [=>............................] - ETA: 0s - loss: 1.3692 - acc: 0.5312
Epoch 00009: val_acc did not improve from 0.52000
12/12 [==============================] - 0s 5ms/step - loss: 1.2778 - acc: 0.5587 - val_loss: 1.3192 - val_acc: 0.5160
Epoch 10/250
 1/12 [=>............................] - ETA: 0s - loss: 1.3060 - acc: 0.5781
Epoch 00010: val_acc improved from 0.52000 to 0.58000, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 1.2217 - acc: 0.5733 - val_loss: 1.2177 - val_acc: 0.5800
Epoch 11/250
 1/12 [=>............................] - ETA: 0s - loss: 1.3483 - acc: 0.5469
Epoch 00011: val_acc improved from 0.58000 to 0.58800, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 1.1526 - acc: 0.6027 - val_loss: 1.2069 - val_acc: 0.5880
Epoch 12/250
 1/12 [=>............................] - ETA: 0s - loss: 0.9762 - acc: 0.7344
Epoch 00012: val_acc did not improve from 0.58800
12/12 [==============================] - 0s 5ms/step - loss: 1.1714 - acc: 0.5933 - val_loss: 1.2150 - val_acc: 0.5600
Epoch 13/250
 1/12 [=>............................] - ETA: 0s - loss: 1.1479 - acc: 0.5781
Epoch 00013: val_acc did not improve from 0.58800
12/12 [==============================] - 0s 5ms/step - loss: 1.1350 - acc: 0.6027 - val_loss: 1.1608 - val_acc: 0.5880
Epoch 14/250
 1/12 [=>............................] - ETA: 0s - loss: 1.0782 - acc: 0.5625
Epoch 00014: val_acc improved from 0.58800 to 0.59200, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 1.0336 - acc: 0.6613 - val_loss: 1.1476 - val_acc: 0.5920
Epoch 15/250
 1/12 [=>............................] - ETA: 0s - loss: 1.2379 - acc: 0.5938
Epoch 00015: val_acc improved from 0.59200 to 0.61200, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 1.0573 - acc: 0.6320 - val_loss: 1.1444 - val_acc: 0.6120
Epoch 16/250
 1/12 [=>............................] - ETA: 0s - loss: 1.1537 - acc: 0.5469
Epoch 00016: val_acc improved from 0.61200 to 0.61600, saving model to song_genre.h5
12/12 [==============================] - 0s 6ms/step - loss: 1.0306 - acc: 0.6440 - val_loss: 1.0951 - val_acc: 0.6160
Epoch 17/250
 1/12 [=>............................] - ETA: 0s - loss: 1.2349 - acc: 0.5312
Epoch 00017: val_acc did not improve from 0.61600
12/12 [==============================] - 0s 5ms/step - loss: 1.0295 - acc: 0.6480 - val_loss: 1.1329 - val_acc: 0.6040
Epoch 18/250
 1/12 [=>............................] - ETA: 0s - loss: 0.8519 - acc: 0.6719
Epoch 00018: val_acc improved from 0.61600 to 0.62400, saving model to song_genre.h5
12/12 [==============================] - 0s 6ms/step - loss: 0.9790 - acc: 0.6600 - val_loss: 1.1067 - val_acc: 0.6240
Epoch 19/250
 1/12 [=>............................] - ETA: 0s - loss: 0.9698 - acc: 0.6875
Epoch 00019: val_acc did not improve from 0.62400
12/12 [==============================] - 0s 5ms/step - loss: 0.9667 - acc: 0.6653 - val_loss: 1.0675 - val_acc: 0.6120
Epoch 20/250
 1/12 [=>............................] - ETA: 0s - loss: 0.9445 - acc: 0.6719
Epoch 00020: val_acc improved from 0.62400 to 0.62800, saving model to song_genre.h5
12/12 [==============================] - 0s 6ms/step - loss: 0.9299 - acc: 0.6800 - val_loss: 1.1122 - val_acc: 0.6280
Epoch 21/250
 1/12 [=>............................] - ETA: 0s - loss: 0.8743 - acc: 0.7031
Epoch 00021: val_acc improved from 0.62800 to 0.64400, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 0.9108 - acc: 0.6920 - val_loss: 1.0393 - val_acc: 0.6440
Epoch 22/250
 1/12 [=>............................] - ETA: 0s - loss: 0.8526 - acc: 0.7812
Epoch 00022: val_acc did not improve from 0.64400
12/12 [==============================] - 0s 5ms/step - loss: 0.9099 - acc: 0.6933 - val_loss: 1.0779 - val_acc: 0.6200
Epoch 23/250
 1/12 [=>............................] - ETA: 0s - loss: 0.9583 - acc: 0.6562
Epoch 00023: val_acc did not improve from 0.64400
12/12 [==============================] - 0s 5ms/step - loss: 0.8857 - acc: 0.6920 - val_loss: 1.0316 - val_acc: 0.6440
Epoch 24/250
 1/12 [=>............................] - ETA: 0s - loss: 0.7895 - acc: 0.7188
Epoch 00024: val_acc did not improve from 0.64400
12/12 [==============================] - 0s 5ms/step - loss: 0.8939 - acc: 0.6907 - val_loss: 1.0391 - val_acc: 0.6400
Epoch 25/250
 1/12 [=>............................] - ETA: 0s - loss: 0.8205 - acc: 0.7344
Epoch 00025: val_acc did not improve from 0.64400
12/12 [==============================] - 0s 5ms/step - loss: 0.8130 - acc: 0.7253 - val_loss: 1.0392 - val_acc: 0.6320
Epoch 26/250
 1/12 [=>............................] - ETA: 0s - loss: 0.7415 - acc: 0.7656
Epoch 00026: val_acc improved from 0.64400 to 0.64800, saving model to song_genre.h5
12/12 [==============================] - 0s 8ms/step - loss: 0.7972 - acc: 0.7200 - val_loss: 1.0410 - val_acc: 0.6480
Epoch 27/250
 1/12 [=>............................] - ETA: 0s - loss: 0.7875 - acc: 0.7031
Epoch 00027: val_acc did not improve from 0.64800
12/12 [==============================] - 0s 5ms/step - loss: 0.7787 - acc: 0.7347 - val_loss: 1.0460 - val_acc: 0.6280
Epoch 28/250
 1/12 [=>............................] - ETA: 0s - loss: 1.0108 - acc: 0.6562
Epoch 00028: val_acc did not improve from 0.64800
12/12 [==============================] - 0s 5ms/step - loss: 0.7962 - acc: 0.7253 - val_loss: 1.0939 - val_acc: 0.6360
Epoch 29/250
 1/12 [=>............................] - ETA: 0s - loss: 0.9034 - acc: 0.7031
Epoch 00029: val_acc improved from 0.64800 to 0.66000, saving model to song_genre.h5
12/12 [==============================] - 0s 6ms/step - loss: 0.7614 - acc: 0.7267 - val_loss: 1.0545 - val_acc: 0.6600
Epoch 30/250
 1/12 [=>............................] - ETA: 0s - loss: 0.6556 - acc: 0.8281
Epoch 00030: val_acc did not improve from 0.66000
12/12 [==============================] - 0s 5ms/step - loss: 0.7659 - acc: 0.7533 - val_loss: 1.0401 - val_acc: 0.6400
Epoch 31/250
 1/12 [=>............................] - ETA: 0s - loss: 0.8116 - acc: 0.7344
Epoch 00031: val_acc did not improve from 0.66000
12/12 [==============================] - 0s 5ms/step - loss: 0.7065 - acc: 0.7587 - val_loss: 1.0262 - val_acc: 0.6480
Epoch 32/250
 1/12 [=>............................] - ETA: 0s - loss: 0.8419 - acc: 0.7188
Epoch 00032: val_acc did not improve from 0.66000
12/12 [==============================] - 0s 5ms/step - loss: 0.7448 - acc: 0.7387 - val_loss: 1.0339 - val_acc: 0.6440
Epoch 33/250
 1/12 [=>............................] - ETA: 0s - loss: 0.6916 - acc: 0.7969
Epoch 00033: val_acc did not improve from 0.66000
12/12 [==============================] - 0s 5ms/step - loss: 0.6629 - acc: 0.7800 - val_loss: 1.0199 - val_acc: 0.6320
Epoch 34/250
 1/12 [=>............................] - ETA: 0s - loss: 0.7385 - acc: 0.7188
Epoch 00034: val_acc did not improve from 0.66000
12/12 [==============================] - 0s 5ms/step - loss: 0.7020 - acc: 0.7533 - val_loss: 1.0546 - val_acc: 0.6280
Epoch 35/250
 1/12 [=>............................] - ETA: 0s - loss: 0.7296 - acc: 0.7188
Epoch 00035: val_acc did not improve from 0.66000
12/12 [==============================] - 0s 5ms/step - loss: 0.6532 - acc: 0.7787 - val_loss: 1.0534 - val_acc: 0.6280
Epoch 36/250
 1/12 [=>............................] - ETA: 0s - loss: 0.4450 - acc: 0.8750
Epoch 00036: val_acc did not improve from 0.66000
12/12 [==============================] - 0s 5ms/step - loss: 0.6066 - acc: 0.8040 - val_loss: 1.0506 - val_acc: 0.6560
Epoch 37/250
 1/12 [=>............................] - ETA: 0s - loss: 0.5248 - acc: 0.8594
Epoch 00037: val_acc did not improve from 0.66000
12/12 [==============================] - 0s 5ms/step - loss: 0.6466 - acc: 0.7947 - val_loss: 1.0390 - val_acc: 0.6360
Epoch 38/250
 1/12 [=>............................] - ETA: 0s - loss: 0.4844 - acc: 0.8438
Epoch 00038: val_acc did not improve from 0.66000
12/12 [==============================] - 0s 5ms/step - loss: 0.5835 - acc: 0.8067 - val_loss: 1.0971 - val_acc: 0.6360
Epoch 39/250
 1/12 [=>............................] - ETA: 0s - loss: 0.6033 - acc: 0.7344
Epoch 00039: val_acc did not improve from 0.66000
12/12 [==============================] - 0s 5ms/step - loss: 0.6296 - acc: 0.7813 - val_loss: 1.0469 - val_acc: 0.6440
Epoch 40/250
 1/12 [=>............................] - ETA: 0s - loss: 0.6235 - acc: 0.7344
Epoch 00040: val_acc did not improve from 0.66000
12/12 [==============================] - 0s 5ms/step - loss: 0.6065 - acc: 0.7853 - val_loss: 1.0468 - val_acc: 0.6480
Epoch 41/250
 1/12 [=>............................] - ETA: 0s - loss: 0.4917 - acc: 0.8281
Epoch 00041: val_acc did not improve from 0.66000
12/12 [==============================] - 0s 5ms/step - loss: 0.6191 - acc: 0.7880 - val_loss: 1.0168 - val_acc: 0.6520
Epoch 42/250
 1/12 [=>............................] - ETA: 0s - loss: 0.5468 - acc: 0.7812
Epoch 00042: val_acc improved from 0.66000 to 0.66400, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 0.5860 - acc: 0.8027 - val_loss: 1.0730 - val_acc: 0.6640
Epoch 43/250
 1/12 [=>............................] - ETA: 0s - loss: 0.4700 - acc: 0.8125
Epoch 00043: val_acc did not improve from 0.66400
12/12 [==============================] - 0s 5ms/step - loss: 0.5512 - acc: 0.8120 - val_loss: 1.1112 - val_acc: 0.6360
Epoch 44/250
 1/12 [=>............................] - ETA: 0s - loss: 0.4847 - acc: 0.8438
Epoch 00044: val_acc did not improve from 0.66400
12/12 [==============================] - 0s 5ms/step - loss: 0.5227 - acc: 0.8107 - val_loss: 1.1134 - val_acc: 0.6320
Epoch 45/250
 1/12 [=>............................] - ETA: 0s - loss: 0.5286 - acc: 0.8281
Epoch 00045: val_acc did not improve from 0.66400
12/12 [==============================] - 0s 5ms/step - loss: 0.5408 - acc: 0.8147 - val_loss: 1.0984 - val_acc: 0.6520
Epoch 46/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3910 - acc: 0.8906
Epoch 00046: val_acc improved from 0.66400 to 0.66800, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 0.5200 - acc: 0.8253 - val_loss: 1.0460 - val_acc: 0.6680
Epoch 47/250
 1/12 [=>............................] - ETA: 0s - loss: 0.5580 - acc: 0.8125
Epoch 00047: val_acc did not improve from 0.66800
12/12 [==============================] - 0s 5ms/step - loss: 0.5254 - acc: 0.8413 - val_loss: 1.0650 - val_acc: 0.6480
Epoch 48/250
 1/12 [=>............................] - ETA: 0s - loss: 0.5922 - acc: 0.7812
Epoch 00048: val_acc did not improve from 0.66800
12/12 [==============================] - 0s 5ms/step - loss: 0.5187 - acc: 0.8120 - val_loss: 1.1090 - val_acc: 0.6480
Epoch 49/250
 1/12 [=>............................] - ETA: 0s - loss: 0.5992 - acc: 0.7656
Epoch 00049: val_acc did not improve from 0.66800
12/12 [==============================] - 0s 5ms/step - loss: 0.4632 - acc: 0.8440 - val_loss: 1.0356 - val_acc: 0.6600
Epoch 50/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3758 - acc: 0.9062
Epoch 00050: val_acc did not improve from 0.66800
12/12 [==============================] - 0s 5ms/step - loss: 0.4612 - acc: 0.8520 - val_loss: 1.0765 - val_acc: 0.6560
Epoch 51/250
 1/12 [=>............................] - ETA: 0s - loss: 0.4554 - acc: 0.8438
Epoch 00051: val_acc did not improve from 0.66800
12/12 [==============================] - 0s 5ms/step - loss: 0.4630 - acc: 0.8480 - val_loss: 1.0933 - val_acc: 0.6480
Epoch 52/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3882 - acc: 0.8594
Epoch 00052: val_acc did not improve from 0.66800
12/12 [==============================] - 0s 5ms/step - loss: 0.4336 - acc: 0.8533 - val_loss: 1.0803 - val_acc: 0.6600
Epoch 53/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3164 - acc: 0.9375
Epoch 00053: val_acc did not improve from 0.66800
12/12 [==============================] - 0s 5ms/step - loss: 0.4549 - acc: 0.8467 - val_loss: 1.0821 - val_acc: 0.6560
Epoch 54/250
 1/12 [=>............................] - ETA: 0s - loss: 0.4039 - acc: 0.8594
Epoch 00054: val_acc did not improve from 0.66800
12/12 [==============================] - 0s 5ms/step - loss: 0.4985 - acc: 0.8320 - val_loss: 1.1189 - val_acc: 0.6640
Epoch 55/250
 1/12 [=>............................] - ETA: 0s - loss: 0.4890 - acc: 0.8594
Epoch 00055: val_acc did not improve from 0.66800
12/12 [==============================] - 0s 5ms/step - loss: 0.4125 - acc: 0.8693 - val_loss: 1.1154 - val_acc: 0.6560
Epoch 56/250
 1/12 [=>............................] - ETA: 0s - loss: 0.4518 - acc: 0.8281
Epoch 00056: val_acc improved from 0.66800 to 0.67200, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 0.4223 - acc: 0.8507 - val_loss: 1.1177 - val_acc: 0.6720
Epoch 57/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3841 - acc: 0.8281
Epoch 00057: val_acc did not improve from 0.67200
12/12 [==============================] - 0s 5ms/step - loss: 0.4225 - acc: 0.8627 - val_loss: 1.1146 - val_acc: 0.6640
Epoch 58/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3402 - acc: 0.8750
Epoch 00058: val_acc did not improve from 0.67200
12/12 [==============================] - 0s 5ms/step - loss: 0.3819 - acc: 0.8600 - val_loss: 1.1350 - val_acc: 0.6520
Epoch 59/250
 1/12 [=>............................] - ETA: 0s - loss: 0.4174 - acc: 0.8750
Epoch 00059: val_acc did not improve from 0.67200
12/12 [==============================] - 0s 5ms/step - loss: 0.3991 - acc: 0.8627 - val_loss: 1.1090 - val_acc: 0.6480
Epoch 60/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3638 - acc: 0.9062
Epoch 00060: val_acc did not improve from 0.67200
12/12 [==============================] - 0s 5ms/step - loss: 0.4198 - acc: 0.8400 - val_loss: 1.1393 - val_acc: 0.6640
Epoch 61/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2577 - acc: 0.9219
Epoch 00061: val_acc did not improve from 0.67200
12/12 [==============================] - 0s 5ms/step - loss: 0.3561 - acc: 0.8773 - val_loss: 1.1659 - val_acc: 0.6640
Epoch 62/250
 1/12 [=>............................] - ETA: 0s - loss: 0.4827 - acc: 0.8125
Epoch 00062: val_acc did not improve from 0.67200
12/12 [==============================] - 0s 5ms/step - loss: 0.4022 - acc: 0.8667 - val_loss: 1.1082 - val_acc: 0.6720
Epoch 63/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3337 - acc: 0.9062
Epoch 00063: val_acc did not improve from 0.67200
12/12 [==============================] - 0s 5ms/step - loss: 0.3984 - acc: 0.8720 - val_loss: 1.1003 - val_acc: 0.6720
Epoch 64/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3925 - acc: 0.9062
Epoch 00064: val_acc improved from 0.67200 to 0.68000, saving model to song_genre.h5
12/12 [==============================] - 0s 6ms/step - loss: 0.3704 - acc: 0.8720 - val_loss: 1.0629 - val_acc: 0.6800
Epoch 65/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3074 - acc: 0.8750
Epoch 00065: val_acc did not improve from 0.68000
12/12 [==============================] - 0s 5ms/step - loss: 0.3374 - acc: 0.8933 - val_loss: 1.1064 - val_acc: 0.6760
Epoch 66/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3044 - acc: 0.9375
Epoch 00066: val_acc did not improve from 0.68000
12/12 [==============================] - 0s 5ms/step - loss: 0.3850 - acc: 0.8733 - val_loss: 1.1372 - val_acc: 0.6520
Epoch 67/250
 1/12 [=>............................] - ETA: 0s - loss: 0.4638 - acc: 0.7969
Epoch 00067: val_acc did not improve from 0.68000
12/12 [==============================] - 0s 5ms/step - loss: 0.3571 - acc: 0.8787 - val_loss: 1.1157 - val_acc: 0.6680
Epoch 68/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3151 - acc: 0.9219
Epoch 00068: val_acc did not improve from 0.68000
12/12 [==============================] - 0s 5ms/step - loss: 0.3629 - acc: 0.8907 - val_loss: 1.1959 - val_acc: 0.6520
Epoch 69/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3888 - acc: 0.8750
Epoch 00069: val_acc did not improve from 0.68000
12/12 [==============================] - 0s 5ms/step - loss: 0.3308 - acc: 0.8947 - val_loss: 1.1573 - val_acc: 0.6560
Epoch 70/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3756 - acc: 0.8750
Epoch 00070: val_acc did not improve from 0.68000
12/12 [==============================] - 0s 5ms/step - loss: 0.3594 - acc: 0.8827 - val_loss: 1.1672 - val_acc: 0.6760
Epoch 71/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2981 - acc: 0.8906
Epoch 00071: val_acc did not improve from 0.68000
12/12 [==============================] - 0s 5ms/step - loss: 0.3359 - acc: 0.8920 - val_loss: 1.1241 - val_acc: 0.6800
Epoch 72/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3010 - acc: 0.9062
Epoch 00072: val_acc did not improve from 0.68000
12/12 [==============================] - 0s 5ms/step - loss: 0.3582 - acc: 0.8960 - val_loss: 1.1633 - val_acc: 0.6640
Epoch 73/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3811 - acc: 0.8906
Epoch 00073: val_acc did not improve from 0.68000
12/12 [==============================] - 0s 5ms/step - loss: 0.3530 - acc: 0.8893 - val_loss: 1.1514 - val_acc: 0.6720
Epoch 74/250
 1/12 [=>............................] - ETA: 0s - loss: 0.4471 - acc: 0.8281
Epoch 00074: val_acc did not improve from 0.68000
12/12 [==============================] - 0s 5ms/step - loss: 0.3281 - acc: 0.8973 - val_loss: 1.1383 - val_acc: 0.6720
Epoch 75/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2047 - acc: 0.9375
Epoch 00075: val_acc did not improve from 0.68000
12/12 [==============================] - 0s 5ms/step - loss: 0.2880 - acc: 0.9120 - val_loss: 1.1399 - val_acc: 0.6640
Epoch 76/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3165 - acc: 0.9062
Epoch 00076: val_acc improved from 0.68000 to 0.69600, saving model to song_genre.h5
12/12 [==============================] - 0s 6ms/step - loss: 0.2849 - acc: 0.9133 - val_loss: 1.2075 - val_acc: 0.6960
Epoch 77/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2701 - acc: 0.8906
Epoch 00077: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2540 - acc: 0.9267 - val_loss: 1.2055 - val_acc: 0.6840
Epoch 78/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2141 - acc: 0.9375
Epoch 00078: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2791 - acc: 0.9080 - val_loss: 1.1968 - val_acc: 0.6840
Epoch 79/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1575 - acc: 0.9531
Epoch 00079: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2657 - acc: 0.9093 - val_loss: 1.1901 - val_acc: 0.6960
Epoch 80/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2554 - acc: 0.9375
Epoch 00080: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2743 - acc: 0.9013 - val_loss: 1.1872 - val_acc: 0.6800
Epoch 81/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3701 - acc: 0.8750
Epoch 00081: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2986 - acc: 0.8960 - val_loss: 1.2635 - val_acc: 0.6640
Epoch 82/250
 1/12 [=>............................] - ETA: 0s - loss: 0.4375 - acc: 0.8750
Epoch 00082: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2886 - acc: 0.9080 - val_loss: 1.2615 - val_acc: 0.6760
Epoch 83/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3286 - acc: 0.9062
Epoch 00083: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2433 - acc: 0.9200 - val_loss: 1.2736 - val_acc: 0.6600
Epoch 84/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3279 - acc: 0.8750
Epoch 00084: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2807 - acc: 0.9040 - val_loss: 1.2512 - val_acc: 0.6720
Epoch 85/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2153 - acc: 0.9375
Epoch 00085: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2622 - acc: 0.9173 - val_loss: 1.2266 - val_acc: 0.6920
Epoch 86/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2644 - acc: 0.9375
Epoch 00086: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2668 - acc: 0.9307 - val_loss: 1.2021 - val_acc: 0.6840
Epoch 87/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2208 - acc: 0.9219
Epoch 00087: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2638 - acc: 0.9040 - val_loss: 1.1830 - val_acc: 0.6800
Epoch 88/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1292 - acc: 0.9531
Epoch 00088: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2558 - acc: 0.9133 - val_loss: 1.3075 - val_acc: 0.6520
Epoch 89/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3000 - acc: 0.8906
Epoch 00089: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2210 - acc: 0.9253 - val_loss: 1.2393 - val_acc: 0.6840
Epoch 90/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2829 - acc: 0.9062
Epoch 00090: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2306 - acc: 0.9293 - val_loss: 1.2391 - val_acc: 0.6880
Epoch 91/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2463 - acc: 0.9062
Epoch 00091: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.2062 - acc: 0.9373 - val_loss: 1.2572 - val_acc: 0.6960
Epoch 92/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2923 - acc: 0.9375
Epoch 00092: val_acc did not improve from 0.69600
12/12 [==============================] - 0s 5ms/step - loss: 0.1755 - acc: 0.9507 - val_loss: 1.2732 - val_acc: 0.6800
Epoch 93/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1665 - acc: 0.9375
Epoch 00093: val_acc improved from 0.69600 to 0.70400, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 0.2228 - acc: 0.9227 - val_loss: 1.3095 - val_acc: 0.7040
Epoch 94/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3030 - acc: 0.8906
Epoch 00094: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.2340 - acc: 0.9267 - val_loss: 1.2840 - val_acc: 0.6920
Epoch 95/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1499 - acc: 0.9531
Epoch 00095: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.2125 - acc: 0.9347 - val_loss: 1.2984 - val_acc: 0.6920
Epoch 96/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1616 - acc: 0.9531
Epoch 00096: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.2229 - acc: 0.9293 - val_loss: 1.2509 - val_acc: 0.6760
Epoch 97/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3071 - acc: 0.9062
Epoch 00097: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.2214 - acc: 0.9320 - val_loss: 1.3383 - val_acc: 0.6720
Epoch 98/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1947 - acc: 0.9062
Epoch 00098: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.2162 - acc: 0.9347 - val_loss: 1.3407 - val_acc: 0.6840
Epoch 99/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2429 - acc: 0.9062
Epoch 00099: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.2070 - acc: 0.9307 - val_loss: 1.3674 - val_acc: 0.6720
Epoch 100/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2176 - acc: 0.8906
Epoch 00100: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.2220 - acc: 0.9240 - val_loss: 1.4239 - val_acc: 0.6880
Epoch 101/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2039 - acc: 0.9062
Epoch 00101: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1876 - acc: 0.9373 - val_loss: 1.3489 - val_acc: 0.6800
Epoch 102/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2108 - acc: 0.9062
Epoch 00102: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.2252 - acc: 0.9160 - val_loss: 1.2839 - val_acc: 0.6680
Epoch 103/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1949 - acc: 0.9844
Epoch 00103: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1929 - acc: 0.9467 - val_loss: 1.3261 - val_acc: 0.6680
Epoch 104/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1158 - acc: 0.9844
Epoch 00104: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.2111 - acc: 0.9400 - val_loss: 1.3595 - val_acc: 0.7000
Epoch 105/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0962 - acc: 0.9844
Epoch 00105: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.2006 - acc: 0.9347 - val_loss: 1.3039 - val_acc: 0.6920
Epoch 106/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2515 - acc: 0.8906
Epoch 00106: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1851 - acc: 0.9440 - val_loss: 1.3669 - val_acc: 0.6800
Epoch 107/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0714 - acc: 0.9844
Epoch 00107: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1551 - acc: 0.9600 - val_loss: 1.3649 - val_acc: 0.6760
Epoch 108/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0921 - acc: 0.9844
Epoch 00108: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1837 - acc: 0.9413 - val_loss: 1.4136 - val_acc: 0.6840
Epoch 109/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0664 - acc: 0.9844
Epoch 00109: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1991 - acc: 0.9267 - val_loss: 1.3221 - val_acc: 0.6760
Epoch 110/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1476 - acc: 0.9531
Epoch 00110: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1692 - acc: 0.9520 - val_loss: 1.2998 - val_acc: 0.6760
Epoch 111/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1679 - acc: 0.9219
Epoch 00111: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1819 - acc: 0.9293 - val_loss: 1.3540 - val_acc: 0.6680
Epoch 112/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2320 - acc: 0.9062
Epoch 00112: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1760 - acc: 0.9453 - val_loss: 1.4410 - val_acc: 0.6600
Epoch 113/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2515 - acc: 0.9219
Epoch 00113: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1498 - acc: 0.9493 - val_loss: 1.4539 - val_acc: 0.6800
Epoch 114/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2030 - acc: 0.9375
Epoch 00114: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1768 - acc: 0.9373 - val_loss: 1.4092 - val_acc: 0.6960
Epoch 115/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1494 - acc: 0.9688
Epoch 00115: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1822 - acc: 0.9547 - val_loss: 1.4422 - val_acc: 0.6960
Epoch 116/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2886 - acc: 0.9062
Epoch 00116: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1685 - acc: 0.9467 - val_loss: 1.4145 - val_acc: 0.6840
Epoch 117/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0962 - acc: 1.0000
Epoch 00117: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1512 - acc: 0.9613 - val_loss: 1.4120 - val_acc: 0.6640
Epoch 118/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2830 - acc: 0.9219
Epoch 00118: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1576 - acc: 0.9493 - val_loss: 1.4860 - val_acc: 0.6480
Epoch 119/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2814 - acc: 0.9219
Epoch 00119: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1612 - acc: 0.9520 - val_loss: 1.3789 - val_acc: 0.6880
Epoch 120/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1521 - acc: 0.9219
Epoch 00120: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1423 - acc: 0.9613 - val_loss: 1.3807 - val_acc: 0.6800
Epoch 121/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1987 - acc: 0.9375
Epoch 00121: val_acc did not improve from 0.70400
12/12 [==============================] - 0s 5ms/step - loss: 0.1922 - acc: 0.9480 - val_loss: 1.3592 - val_acc: 0.6960
Epoch 122/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1628 - acc: 0.9219
Epoch 00122: val_acc improved from 0.70400 to 0.71600, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 0.1583 - acc: 0.9400 - val_loss: 1.3286 - val_acc: 0.7160
Epoch 123/250
 1/12 [=>............................] - ETA: 0s - loss: 0.3524 - acc: 0.9062
Epoch 00123: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1890 - acc: 0.9467 - val_loss: 1.3495 - val_acc: 0.6720
Epoch 124/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1959 - acc: 0.9375
Epoch 00124: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1600 - acc: 0.9493 - val_loss: 1.3303 - val_acc: 0.6720
Epoch 125/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1071 - acc: 0.9688
Epoch 00125: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1431 - acc: 0.9587 - val_loss: 1.3519 - val_acc: 0.7040
Epoch 126/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1472 - acc: 0.9688
Epoch 00126: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1400 - acc: 0.9627 - val_loss: 1.3741 - val_acc: 0.6920
Epoch 127/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1152 - acc: 0.9844
Epoch 00127: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1196 - acc: 0.9680 - val_loss: 1.4185 - val_acc: 0.6800
Epoch 128/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2777 - acc: 0.8906
Epoch 00128: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1383 - acc: 0.9520 - val_loss: 1.3572 - val_acc: 0.7000
Epoch 129/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0389 - acc: 1.0000
Epoch 00129: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1184 - acc: 0.9640 - val_loss: 1.4046 - val_acc: 0.6920
Epoch 130/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1462 - acc: 0.9375
Epoch 00130: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1279 - acc: 0.9667 - val_loss: 1.4568 - val_acc: 0.6880
Epoch 131/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2333 - acc: 0.8594
Epoch 00131: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1422 - acc: 0.9493 - val_loss: 1.4676 - val_acc: 0.6840
Epoch 132/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0994 - acc: 0.9844
Epoch 00132: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1336 - acc: 0.9507 - val_loss: 1.4372 - val_acc: 0.6800
Epoch 133/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0978 - acc: 0.9688
Epoch 00133: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1342 - acc: 0.9480 - val_loss: 1.4408 - val_acc: 0.6960
Epoch 134/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0971 - acc: 0.9844
Epoch 00134: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1026 - acc: 0.9693 - val_loss: 1.4059 - val_acc: 0.7080
Epoch 135/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1435 - acc: 0.9688
Epoch 00135: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1075 - acc: 0.9667 - val_loss: 1.4012 - val_acc: 0.6800
Epoch 136/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1130 - acc: 0.9688
Epoch 00136: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1409 - acc: 0.9587 - val_loss: 1.4683 - val_acc: 0.6800
Epoch 137/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1469 - acc: 0.9531
Epoch 00137: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1119 - acc: 0.9600 - val_loss: 1.4224 - val_acc: 0.6920
Epoch 138/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0653 - acc: 1.0000
Epoch 00138: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1149 - acc: 0.9600 - val_loss: 1.4240 - val_acc: 0.6840
Epoch 139/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0891 - acc: 0.9688
Epoch 00139: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1148 - acc: 0.9707 - val_loss: 1.4657 - val_acc: 0.6960
Epoch 140/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0957 - acc: 0.9844
Epoch 00140: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1114 - acc: 0.9680 - val_loss: 1.5116 - val_acc: 0.6760
Epoch 141/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1169 - acc: 0.9531
Epoch 00141: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1214 - acc: 0.9533 - val_loss: 1.3945 - val_acc: 0.6880
Epoch 142/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1094 - acc: 0.9688
Epoch 00142: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1328 - acc: 0.9533 - val_loss: 1.4516 - val_acc: 0.6840
Epoch 143/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2066 - acc: 0.9844
Epoch 00143: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1585 - acc: 0.9560 - val_loss: 1.5565 - val_acc: 0.6720
Epoch 144/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1804 - acc: 0.9531
Epoch 00144: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1373 - acc: 0.9613 - val_loss: 1.5127 - val_acc: 0.6800
Epoch 145/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0802 - acc: 0.9844
Epoch 00145: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1357 - acc: 0.9653 - val_loss: 1.5032 - val_acc: 0.7040
Epoch 146/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1000 - acc: 0.9688
Epoch 00146: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1336 - acc: 0.9613 - val_loss: 1.4489 - val_acc: 0.6840
Epoch 147/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1552 - acc: 0.9531
Epoch 00147: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1126 - acc: 0.9653 - val_loss: 1.4576 - val_acc: 0.6920
Epoch 148/250
 1/12 [=>............................] - ETA: 0s - loss: 0.2531 - acc: 0.9062
Epoch 00148: val_acc did not improve from 0.71600
12/12 [==============================] - 0s 5ms/step - loss: 0.1247 - acc: 0.9640 - val_loss: 1.4251 - val_acc: 0.7040
Epoch 149/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0782 - acc: 0.9844
Epoch 00149: val_acc improved from 0.71600 to 0.72800, saving model to song_genre.h5
12/12 [==============================] - 0s 7ms/step - loss: 0.1166 - acc: 0.9653 - val_loss: 1.4538 - val_acc: 0.7280
Epoch 150/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0574 - acc: 0.9844
Epoch 00150: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0842 - acc: 0.9800 - val_loss: 1.4833 - val_acc: 0.7200
Epoch 151/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1182 - acc: 0.9375
Epoch 00151: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.1095 - acc: 0.9667 - val_loss: 1.4939 - val_acc: 0.7120
Epoch 152/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0692 - acc: 0.9844
Epoch 00152: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0827 - acc: 0.9747 - val_loss: 1.5551 - val_acc: 0.7080
Epoch 153/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0554 - acc: 1.0000
Epoch 00153: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.1065 - acc: 0.9707 - val_loss: 1.5426 - val_acc: 0.7080
Epoch 154/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0535 - acc: 0.9688
Epoch 00154: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.1151 - acc: 0.9600 - val_loss: 1.5221 - val_acc: 0.7080
Epoch 155/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0590 - acc: 0.9688
Epoch 00155: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.1079 - acc: 0.9640 - val_loss: 1.4502 - val_acc: 0.7200
Epoch 156/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1940 - acc: 0.9531
Epoch 00156: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0889 - acc: 0.9733 - val_loss: 1.5140 - val_acc: 0.6880
Epoch 157/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0457 - acc: 0.9844
Epoch 00157: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0934 - acc: 0.9707 - val_loss: 1.5293 - val_acc: 0.6760
Epoch 158/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0604 - acc: 0.9844
Epoch 00158: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0774 - acc: 0.9747 - val_loss: 1.5873 - val_acc: 0.6960
Epoch 159/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1606 - acc: 0.9844
Epoch 00159: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0944 - acc: 0.9787 - val_loss: 1.5663 - val_acc: 0.6920
Epoch 160/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0618 - acc: 0.9688
Epoch 00160: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0856 - acc: 0.9693 - val_loss: 1.6027 - val_acc: 0.6800
Epoch 161/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0330 - acc: 1.0000
Epoch 00161: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0903 - acc: 0.9747 - val_loss: 1.5797 - val_acc: 0.6880
Epoch 162/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0386 - acc: 1.0000
Epoch 00162: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0972 - acc: 0.9720 - val_loss: 1.4769 - val_acc: 0.7040
Epoch 163/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0596 - acc: 0.9844
Epoch 00163: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0875 - acc: 0.9733 - val_loss: 1.4966 - val_acc: 0.7000
Epoch 164/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0920 - acc: 0.9844
Epoch 00164: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0929 - acc: 0.9693 - val_loss: 1.5040 - val_acc: 0.7040
Epoch 165/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1499 - acc: 0.9531
Epoch 00165: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0856 - acc: 0.9800 - val_loss: 1.4517 - val_acc: 0.7200
Epoch 166/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0834 - acc: 0.9531
Epoch 00166: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.1123 - acc: 0.9680 - val_loss: 1.5001 - val_acc: 0.7080
Epoch 167/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0631 - acc: 0.9844
Epoch 00167: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.1146 - acc: 0.9680 - val_loss: 1.4938 - val_acc: 0.7000
Epoch 168/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0391 - acc: 1.0000
Epoch 00168: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0685 - acc: 0.9800 - val_loss: 1.5329 - val_acc: 0.6720
Epoch 169/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1454 - acc: 0.9688
Epoch 00169: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0855 - acc: 0.9760 - val_loss: 1.6211 - val_acc: 0.6920
Epoch 170/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0744 - acc: 0.9688
Epoch 00170: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0975 - acc: 0.9680 - val_loss: 1.6124 - val_acc: 0.6960
Epoch 171/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0850 - acc: 0.9844
Epoch 00171: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.1199 - acc: 0.9707 - val_loss: 1.4984 - val_acc: 0.7000
Epoch 172/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1234 - acc: 0.9531
Epoch 00172: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0797 - acc: 0.9720 - val_loss: 1.5533 - val_acc: 0.6960
Epoch 173/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0539 - acc: 0.9844
Epoch 00173: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.1124 - acc: 0.9640 - val_loss: 1.5083 - val_acc: 0.6800
Epoch 174/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0309 - acc: 1.0000
Epoch 00174: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0728 - acc: 0.9720 - val_loss: 1.4727 - val_acc: 0.6800
Epoch 175/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0211 - acc: 1.0000
Epoch 00175: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0923 - acc: 0.9693 - val_loss: 1.6115 - val_acc: 0.6880
Epoch 176/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1674 - acc: 0.9375
Epoch 00176: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.1277 - acc: 0.9640 - val_loss: 1.5918 - val_acc: 0.6800
Epoch 177/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0624 - acc: 0.9688
Epoch 00177: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0857 - acc: 0.9747 - val_loss: 1.5598 - val_acc: 0.6680
Epoch 178/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0455 - acc: 0.9844
Epoch 00178: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.1050 - acc: 0.9693 - val_loss: 1.6867 - val_acc: 0.6520
Epoch 179/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1709 - acc: 0.9688
Epoch 00179: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0820 - acc: 0.9800 - val_loss: 1.6003 - val_acc: 0.6880
Epoch 180/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0649 - acc: 0.9688
Epoch 00180: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0952 - acc: 0.9667 - val_loss: 1.5194 - val_acc: 0.6800
Epoch 181/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1016 - acc: 0.9688
Epoch 00181: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0708 - acc: 0.9813 - val_loss: 1.5978 - val_acc: 0.6640
Epoch 182/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0847 - acc: 0.9688
Epoch 00182: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0887 - acc: 0.9720 - val_loss: 1.6548 - val_acc: 0.6680
Epoch 183/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1037 - acc: 0.9688
Epoch 00183: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0901 - acc: 0.9733 - val_loss: 1.5523 - val_acc: 0.6840
Epoch 184/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0510 - acc: 0.9688
Epoch 00184: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0780 - acc: 0.9800 - val_loss: 1.5459 - val_acc: 0.6800
Epoch 185/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0619 - acc: 0.9844
Epoch 00185: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0788 - acc: 0.9733 - val_loss: 1.5815 - val_acc: 0.6720
Epoch 186/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0737 - acc: 0.9844
Epoch 00186: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0652 - acc: 0.9813 - val_loss: 1.5804 - val_acc: 0.6880
Epoch 187/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1581 - acc: 0.9844
Epoch 00187: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0818 - acc: 0.9747 - val_loss: 1.6098 - val_acc: 0.7040
Epoch 188/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1249 - acc: 0.9531
Epoch 00188: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.1214 - acc: 0.9640 - val_loss: 1.5919 - val_acc: 0.7040
Epoch 189/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0322 - acc: 0.9844
Epoch 00189: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0738 - acc: 0.9813 - val_loss: 1.5607 - val_acc: 0.7000
Epoch 190/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0596 - acc: 0.9844
Epoch 00190: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0888 - acc: 0.9760 - val_loss: 1.6023 - val_acc: 0.6960
Epoch 191/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0659 - acc: 0.9531
Epoch 00191: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0764 - acc: 0.9733 - val_loss: 1.6090 - val_acc: 0.6960
Epoch 192/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0737 - acc: 0.9688
Epoch 00192: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0837 - acc: 0.9800 - val_loss: 1.6117 - val_acc: 0.7080
Epoch 193/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1047 - acc: 0.9531
Epoch 00193: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0802 - acc: 0.9773 - val_loss: 1.5549 - val_acc: 0.7120
Epoch 194/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1345 - acc: 0.9531
Epoch 00194: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0810 - acc: 0.9747 - val_loss: 1.5638 - val_acc: 0.6920
Epoch 195/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0626 - acc: 0.9688
Epoch 00195: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0674 - acc: 0.9840 - val_loss: 1.6074 - val_acc: 0.6800
Epoch 196/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0331 - acc: 0.9844
Epoch 00196: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0448 - acc: 0.9893 - val_loss: 1.6289 - val_acc: 0.6720
Epoch 197/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1192 - acc: 0.9375
Epoch 00197: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0769 - acc: 0.9827 - val_loss: 1.6449 - val_acc: 0.6880
Epoch 198/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0684 - acc: 0.9688
Epoch 00198: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0589 - acc: 0.9827 - val_loss: 1.7120 - val_acc: 0.6640
Epoch 199/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0804 - acc: 0.9531
Epoch 00199: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0893 - acc: 0.9693 - val_loss: 1.7463 - val_acc: 0.6560
Epoch 200/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0234 - acc: 1.0000
Epoch 00200: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0661 - acc: 0.9840 - val_loss: 1.6899 - val_acc: 0.6840
Epoch 201/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0838 - acc: 0.9844
Epoch 00201: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0671 - acc: 0.9760 - val_loss: 1.6902 - val_acc: 0.6880
Epoch 202/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0873 - acc: 0.9531
Epoch 00202: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0841 - acc: 0.9747 - val_loss: 1.7102 - val_acc: 0.6840
Epoch 203/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0683 - acc: 0.9844
Epoch 00203: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0833 - acc: 0.9760 - val_loss: 1.6903 - val_acc: 0.6880
Epoch 204/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0571 - acc: 0.9844
Epoch 00204: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0773 - acc: 0.9760 - val_loss: 1.7420 - val_acc: 0.6880
Epoch 205/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1166 - acc: 0.9531
Epoch 00205: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0821 - acc: 0.9707 - val_loss: 1.7757 - val_acc: 0.6640
Epoch 206/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0155 - acc: 1.0000
Epoch 00206: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0641 - acc: 0.9827 - val_loss: 1.7031 - val_acc: 0.6560
Epoch 207/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1116 - acc: 0.9688
Epoch 00207: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0875 - acc: 0.9720 - val_loss: 1.7022 - val_acc: 0.6880
Epoch 208/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0388 - acc: 1.0000
Epoch 00208: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0628 - acc: 0.9827 - val_loss: 1.7205 - val_acc: 0.6720
Epoch 209/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0328 - acc: 1.0000
Epoch 00209: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0842 - acc: 0.9760 - val_loss: 1.6506 - val_acc: 0.7040
Epoch 210/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0676 - acc: 0.9844
Epoch 00210: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0703 - acc: 0.9827 - val_loss: 1.6570 - val_acc: 0.6760
Epoch 211/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0216 - acc: 1.0000
Epoch 00211: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0526 - acc: 0.9853 - val_loss: 1.7204 - val_acc: 0.6480
Epoch 212/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0600 - acc: 0.9688
Epoch 00212: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0650 - acc: 0.9813 - val_loss: 1.6623 - val_acc: 0.6680
Epoch 213/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0469 - acc: 0.9844
Epoch 00213: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0480 - acc: 0.9853 - val_loss: 1.7325 - val_acc: 0.6680
Epoch 214/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0843 - acc: 0.9531
Epoch 00214: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0572 - acc: 0.9813 - val_loss: 1.6982 - val_acc: 0.6840
Epoch 215/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0605 - acc: 0.9844
Epoch 00215: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0603 - acc: 0.9840 - val_loss: 1.7283 - val_acc: 0.6760
Epoch 216/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0354 - acc: 0.9844
Epoch 00216: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0554 - acc: 0.9760 - val_loss: 1.6836 - val_acc: 0.6840
Epoch 217/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0966 - acc: 0.9531
Epoch 00217: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0753 - acc: 0.9733 - val_loss: 1.6891 - val_acc: 0.6760
Epoch 218/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0583 - acc: 0.9688
Epoch 00218: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0672 - acc: 0.9773 - val_loss: 1.7752 - val_acc: 0.6600
Epoch 219/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0936 - acc: 0.9531
Epoch 00219: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0604 - acc: 0.9773 - val_loss: 1.7818 - val_acc: 0.6680
Epoch 220/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1032 - acc: 0.9688
Epoch 00220: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0902 - acc: 0.9720 - val_loss: 1.7087 - val_acc: 0.6840
Epoch 221/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0134 - acc: 1.0000
Epoch 00221: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0482 - acc: 0.9827 - val_loss: 1.7266 - val_acc: 0.6960
Epoch 222/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0496 - acc: 0.9844
Epoch 00222: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0724 - acc: 0.9800 - val_loss: 1.7635 - val_acc: 0.6880
Epoch 223/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0529 - acc: 0.9844
Epoch 00223: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0770 - acc: 0.9747 - val_loss: 1.8140 - val_acc: 0.6840
Epoch 224/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0291 - acc: 1.0000
Epoch 00224: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0744 - acc: 0.9773 - val_loss: 1.7664 - val_acc: 0.6800
Epoch 225/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0560 - acc: 0.9688
Epoch 00225: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0617 - acc: 0.9827 - val_loss: 1.7517 - val_acc: 0.6800
Epoch 226/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0670 - acc: 0.9844
Epoch 00226: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0463 - acc: 0.9880 - val_loss: 1.7335 - val_acc: 0.7000
Epoch 227/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0740 - acc: 0.9688
Epoch 00227: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0737 - acc: 0.9787 - val_loss: 1.7949 - val_acc: 0.7000
Epoch 228/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0205 - acc: 1.0000
Epoch 00228: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0567 - acc: 0.9813 - val_loss: 1.8015 - val_acc: 0.7000
Epoch 229/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0448 - acc: 0.9844
Epoch 00229: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0448 - acc: 0.9867 - val_loss: 1.8066 - val_acc: 0.7080
Epoch 230/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0213 - acc: 1.0000
Epoch 00230: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0448 - acc: 0.9880 - val_loss: 1.8021 - val_acc: 0.6920
Epoch 231/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0170 - acc: 1.0000
Epoch 00231: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0526 - acc: 0.9813 - val_loss: 1.7689 - val_acc: 0.6920
Epoch 232/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0224 - acc: 1.0000
Epoch 00232: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0471 - acc: 0.9840 - val_loss: 1.7357 - val_acc: 0.6800
Epoch 233/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0220 - acc: 1.0000
Epoch 00233: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0783 - acc: 0.9747 - val_loss: 1.6714 - val_acc: 0.6960
Epoch 234/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0136 - acc: 1.0000
Epoch 00234: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0727 - acc: 0.9787 - val_loss: 1.7542 - val_acc: 0.6840
Epoch 235/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1122 - acc: 0.9688
Epoch 00235: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0657 - acc: 0.9760 - val_loss: 1.7903 - val_acc: 0.6960
Epoch 236/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0878 - acc: 0.9688
Epoch 00236: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0683 - acc: 0.9800 - val_loss: 1.8712 - val_acc: 0.7000
Epoch 237/250
 1/12 [=>............................] - ETA: 0s - loss: 0.1162 - acc: 0.9688
Epoch 00237: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0686 - acc: 0.9800 - val_loss: 1.7305 - val_acc: 0.6920
Epoch 238/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0532 - acc: 0.9844
Epoch 00238: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0600 - acc: 0.9853 - val_loss: 1.7435 - val_acc: 0.6840
Epoch 239/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0123 - acc: 1.0000
Epoch 00239: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0505 - acc: 0.9880 - val_loss: 1.7692 - val_acc: 0.6960
Epoch 240/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0592 - acc: 0.9688
Epoch 00240: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0531 - acc: 0.9853 - val_loss: 1.7394 - val_acc: 0.7000
Epoch 241/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0271 - acc: 1.0000
Epoch 00241: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0636 - acc: 0.9827 - val_loss: 1.7090 - val_acc: 0.7000
Epoch 242/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0440 - acc: 0.9844
Epoch 00242: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0425 - acc: 0.9893 - val_loss: 1.8063 - val_acc: 0.7040
Epoch 243/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0479 - acc: 0.9844
Epoch 00243: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0484 - acc: 0.9827 - val_loss: 1.7681 - val_acc: 0.6880
Epoch 244/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0129 - acc: 1.0000
Epoch 00244: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0482 - acc: 0.9880 - val_loss: 1.8411 - val_acc: 0.6760
Epoch 245/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0257 - acc: 1.0000
Epoch 00245: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0624 - acc: 0.9840 - val_loss: 1.8472 - val_acc: 0.6720
Epoch 246/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0235 - acc: 0.9844
Epoch 00246: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0607 - acc: 0.9827 - val_loss: 1.8046 - val_acc: 0.6840
Epoch 247/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0918 - acc: 0.9688
Epoch 00247: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0474 - acc: 0.9867 - val_loss: 1.8155 - val_acc: 0.6920
Epoch 248/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0155 - acc: 1.0000
Epoch 00248: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0464 - acc: 0.9880 - val_loss: 1.8465 - val_acc: 0.6760
Epoch 249/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0311 - acc: 1.0000
Epoch 00249: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0635 - acc: 0.9813 - val_loss: 1.8573 - val_acc: 0.6760
Epoch 250/250
 1/12 [=>............................] - ETA: 0s - loss: 0.0103 - acc: 1.0000
Epoch 00250: val_acc did not improve from 0.72800
12/12 [==============================] - 0s 5ms/step - loss: 0.0776 - acc: 0.9720 - val_loss: 1.7534 - val_acc: 0.7080
In [15]:
present_model = tf.keras.models.load_model('song_genre.h5')
present_model.summary()
Model: "sequential"
_________________________________________________________________
Layer (type)                 Output Shape              Param #   
=================================================================
dense (Dense)                (None, 512)               13824     
_________________________________________________________________
dropout (Dropout)            (None, 512)               0         
_________________________________________________________________
dense_1 (Dense)              (None, 256)               131328    
_________________________________________________________________
dropout_1 (Dropout)          (None, 256)               0         
_________________________________________________________________
dense_2 (Dense)              (None, 64)                16448     
_________________________________________________________________
dropout_2 (Dropout)          (None, 64)                0         
_________________________________________________________________
dense_3 (Dense)              (None, 10)                650       
=================================================================
Total params: 162,250
Trainable params: 162,250
Non-trainable params: 0
_________________________________________________________________
In [16]:
print("Accuracy of our model on test data : " , present_model.evaluate(x_test,y_test)[1]*100 , "%")
8/8 [==============================] - 0s 1ms/step - loss: 1.4538 - acc: 0.7280
Accuracy of our model on test data :  72.79999852180481 %

Training Plots

In [17]:
# plot the training artifacts
import matplotlib.pyplot as plt
plt.plot(history.history['acc'])
plt.plot(history.history['val_acc'])
plt.title('Model accuracy')
plt.ylabel('accuracy')
plt.xlabel('epoch')
plt.legend(['train_acc','val_acc'], loc = 'upper right')
plt.show()
In [18]:
# plot the training artifacts

plt.plot(history.history['loss'])
plt.plot(history.history['val_loss'])
plt.title('Model loss')
plt.ylabel('loss')
plt.xlabel('epoch')
plt.legend(['train_loss','val_loss'], loc = 'upper right')
plt.show()

Accessing the performance of Model

In [19]:
# predicting on test data.
pred_test = present_model.predict(x_test)
y_pred = encoder.inverse_transform(pred_test)

y_test_ = encoder.inverse_transform(y_test)
In [20]:
df = pd.DataFrame(columns=['Predicted Labels', 'Actual Labels'])
df['Predicted Labels'] = y_pred.flatten()
df['Actual Labels'] = y_test_.flatten()

df.head(10)
Out[20]:
Predicted Labels Actual Labels
0 rock rock
1 rock reggae
2 country country
3 jazz jazz
4 metal metal
5 rock rock
6 blues blues
7 country country
8 rock disco
9 rock pop

Compiling the Model with DeepC Compiler

In [21]:
!deepCC song_genre.h5
reading [keras model] from 'song_genre.h5'
Saved 'song_genre.onnx'
reading onnx model from file  song_genre.onnx
Model info:
  ir_vesion :  4 
  doc       : 
WARN (ONNX): terminal (input/output) dense_input's shape is less than 1.
             changing it to 1.
WARN (ONNX): terminal (input/output) dense_3's shape is less than 1.
             changing it to 1.
WARN (GRAPH): found operator node with the same name (dense_3) as io node.
running DNNC graph sanity check ... passed.
Writing C++ file  song_genre_deepC/song_genre.cpp
INFO (ONNX): model files are ready in dir song_genre_deepC
g++ -std=c++11 -O3 -I. -I/opt/tljh/user/lib/python3.7/site-packages/deepC-0.13-py3.7-linux-x86_64.egg/deepC/include -isystem /opt/tljh/user/lib/python3.7/site-packages/deepC-0.13-py3.7-linux-x86_64.egg/deepC/packages/eigen-eigen-323c052e1731 song_genre_deepC/song_genre.cpp -o song_genre_deepC/song_genre.exe
Model executable  song_genre_deepC/song_genre.exe