Skip to content

Instantly share code, notes, and snippets.

View Momoumar's full-sized avatar
💻

Mouhamadou Sall Momoumar

💻
  • earth
View GitHub Profile
@Momoumar
Momoumar / JupyterNotebookDownloader.sh
Last active May 11, 2023 19:46
Download all programming assignments Notebook. #Coursera #DeepLearning.ai #Jupyter #Python
#To download all your programming assignments including all files and notebooks, follow these steps:
#1 - Go to the root tree folder for instance: https://hub.coursera-notebooks.org/user/${user_token}/tree/
#2- Open the terminal by clicking the + button on the right-hand corner
#3 - Enter the following command in the terminal:
tar cvfz allassignments.tar.gz *
#4 - The previous command will create a zip named allassignments containing all your programmings assignment
#5 - Select allassignments.tar.gz and download
#6 - Enjoy, don't forget to delete it afterward ;-)
%-----------------------------a)-----------------------------
data = parseFile('train.data');
m = size(data,1);
X = data(:,1:1558);
X = str2double(X);
yTemp = data(:,1559);
y = ones(size(yTemp,1),1);
n = size(X,2);