Question: Correct error Y. append (emotion) return train_test_split (np.array (),yt, test_zine w test_size, randcan_tate =9) 18) Ioad_data ( test_sike=0.2)> x train, x tent, y train, y


Y. append (emotion) return train_test_split (np.array (),yt, test_zine w test_size, randcan_tate =9) 18) Ioad_data ( test_sike=0.2)> x train, x tent, y train, y testelond data ( test sinz=0.2) Valuereror Traceback (aont. recent eall lant) Sipython-input-27-293528e55123? in cinodules tent_size, train_nize, default_test_aize) 2096 2097 2098 if A train =01 raise Valuekrrorl "With n_amplea=\{ }, test, aize=\{\} and train_size=\{ }, the " "resulting train set. will be enpty. Mdjust any of the " Valuebrrort With n_mamples=0, tent,size=0.2 and train_sizeplone, the resalting train set. vili be enpty, Ndjunt any of the aforementioned paraneters. FEAHCH STACK OVERILOW '04. I 'sad, 'o5', 'angry', '06'r 'tearfu1'. "07"1 "disgust". '08': 'nurprsed'\} ("01': 'neutral'. '02'+ "calm', .03's 'happy', '04', "aad', 'o5'i 'angry', '06 " 'tentel", '07'i 'dingunt', '08': "surprined") (b) Amatplotlib inline import matplot1ib.pyplot as plt import pandas as pel import numpy as np fimport datetime inport warnings Import 1 ibrosa 1mport os, glob, piekle from sklearn, model_selection import train_test_ split fron nklearn, neural network import Mrpclanaifier from sklearn.metrica import accuracy_score, confusion_matrix warnings , filterwarnings ('ignore') [21 trom google.colab import drive drive. mount("/eontent/drive/") Drive already mounted at /content/drive/; to attenpt to forcibly renount, call drive.mount("/content/drive/", f [3] I1s "/content/drive/MyDrive/Colab Notebooks/apeech-enotion-recognition-ravdess-data' Actor 01 Actor_04 Actor_07 Actor_10 Actor_13 Actor 16 Actor 19 Actor_22 Actor 02 Actor 05 Actor 08 Actor_11 Actor_ 14 Actor 17 Actor 20 Actor 23
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
