Question: In Google Colab's Python write code that uses a ndarray called y_pred with shape (1000,) to write a new csv file with the names 0000.csv
In Google Colab's Python write code that uses a ndarray called y_pred with shape (1000,) to write a new csv file with the names 0000.csv - 0999.csv as column number 1 and column 2 is the respective values from y_pred. y_pred is already in order. Title the columns as 'filename' and 'prediction'. So the output should be a csv file that looks like:
filename, prediction
0000.csv, 1
0001.csv, 0
....
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
