In the Coursera â Machine Learning class you can use MATLAB or Octave. MATLAB is free for the class and I decided to use it since I refer a GUI and I was told by my friend Kyle Prins that he used it in school and that people tend to continue to use it after school. The commands appear to be the same on both systems.
First, let me clarify that I am using a Mac and running MacOS El Capitan, 10.11.X. The course was developed in 2011 and the tutorial was in Octave. I was new to MATLAB and ran into some issues. Here is the MATLAB version that I ran and that I received through the course.
Download the Sonos app for iOS, Android, FireOS, Windows, and macOS. In the Coursera App, open the course you want to download videos for. From the course outline, open the week with the videos you want to download. In the iOS app: tap the download icon at the top of the screen and choose Download Videos. In the Android app: tap Save for Offline. Download this app from Microsoft Store for Windows 10 Mobile, Windows Phone 8.1, Windows Phone 8. See screenshots, read the latest customer reviews, and compare ratings for Coursera.org.
After the installation, we had to install the files that were provided via the course. You can file these files under the âReviewâ section on the bottom of Week 2 section, you will see âProgramming Assignmentâ. Click this section and you will get the selection to download the files.
You will have an option to download files. I saved them to a specific folder I created on my desktop.
Now that the files are saved, we can load them into MATLAB. I personally set the path to begin with but when I first ran, I just started at Step 6 (identified below). When I did this though, I got a pop-up window about setting the path. Click âSet Pathâ
Select âAdd Folderâ¦â
I used the pop-up window to select the personal folder that I saved on my desktop and click âopenâ. My personal folder is called âCoursera-MLâ. Note that in the example below, I have already downloaded âmachine-learning-ex2â, this is the week three assignment and the same process is used. âmachine-learning-ex1â is the folder that I downloaded for the week two assignment.
and then click âSaveâ.
To get to the files, it is fairly easy and really, the simplest routeâ¦
STEP 6: Select the âbrowser for folderâ icon
and then select the folder for the appropriate assignment.
Now all your files should appear on the left hand side of the screen, like below
Now you use the PDF in the download file/folder to follow along. In this example, the PDF is âex1.PDFâ Mac os bookmark app.
To get a file to âlaunchâ, just double click it so you can edit it. In this example, I double clicked âex1.mâ and to appeared in the âeditorâ window.
I hope you found this helpful but feel free to add questions or make comments below.
This DrJava-based Java programming environment is no longer being supported(because DrJava in no longer being actively developed and DrJava is incompatible with Java 11).It has been replaced by the following IntelliJ-based programming environment forMac OS X.
This document instructs you on how to set up our Java programming environment for your Mac OS X computer. It also provides a step-by-step guide for creating, compiling, and executing a Java program using either DrJava or Terminal.All of the software used is freely available.
You will need a Mac runningMac OS X 10.8 (Mountain Lion) to Mac OS X 10.13 (High Sierra).
Our installer downloads, installs, and configures the Java programming environment you will be using, including DrJava, the textbook libraries, and the Terminal.
Now you are ready to write your first Java program.You will develop your Java programs in an application called DrJava.DrJava features many specialized programming tools including syntax highlighting,bracket matching, auto indenting, and line numbering.
It is now time to convert your Java program into a form more amenable for execution on a computer. To do this, click the Compile button.If all goes well, you should see the following message in the Compiler Outputpane at the bottom:
If DrJava complains in some way, you mistyped something.Check your program carefully, using the error messages in the Compiler Output paneas a guide.
Now it is time to run your program. This is the fun part.
The command-line provides capabilities beyond those available in DrJava,including redirection and piping.You will type commands in an application called the Terminal.
You will use the
javac command to convert your Java program into a form more amenable for execution on a computer.
You will use the java command to execute your program.
You can useFindbugs,PMD,andCheckstyleand to check the style of your programs and identify common bug patterns.
I previously used the introcs.app installerfrom the textbook Computer Science: An Interdisciplinary Approach.Should I use the algs4.app installer?Yes, we recommend using the algs4.app installer because it will install
algs4.jar , as well as the corresponding commands javac-algs4 and java-algs4 .
How long should the installer take?Once downloaded, the Oracle Java installer should take about 10 seconds andthe algs4.app installer should take about 20 seconds.If you have virus detection software running (such as McAfee Endpoint), eachcould take 5â10 minutes (or more).
The installer didnât work on my machine. What should I do?Please read the next few Q+As. If these donât resolve the issue,please contact a staff member to identify what went wrong.
When I run the installer, I get the error messageâbash: /Volumes/Macintosh: No such file or directory.âYour user account and OS must be on the same volume.
When I run the installer, the Terminal windows just waits after asking for a password.But, I donât even have a password-enabled account.You must have a non-blank password.Here are instructions forresetting a userâs password.
When I run the installer, I get an error like âbash: /private/var/folders/70/n8stth1d1x33hrw8n07kf1280000gn/T/AppTranslocation/45FC25B7-17E3-46DF-AC27-9A7EF56DDFD3/d/algs4.app/Contents/Resources/launcher.sh: No such file or directory.â What should I do?This is likely due to OS X Sierra path randomization.Use the Finder to move
algs4.app to some other folder and try again. How to highlight on macbook.
When I run the installer, I receive the following error after I enter my password:âbash: /???/Users/<username>/Desktop/algs4.app/Contents/Resources/launcher.sh: No such file or directory.âWeâre not sure what causes this (but we think it is related to users with dual-boot systems / USB drives).Try opening a Terminal windows and typing
What does the installer do?In short, it downloads, installs, and configures Checkstyle, Findbugs, DrJava, and our textbook libraries. Here is a more detailed list:
Why does the installer need my password?The installer copies files into
/usr/local/bin and/usr/local/algs4 ,which require elevated privileges.
Coursera App For Fire Hd
How do I completely uninstall algs4.app?
Coursera App Download
What happens if I rerun the installer?It will re-download, install, and configureFindbugs, PMD, Checkstyle, DrJava, and our textbook libraries.
Can I use a different version of Java?Any version of Java 8 (either Oracle or OpenJDK) should work fine.Note that neither Java nor Findbugs work with Java 9.
I have both Java 8 and Java 9 installed, but the default version is Java 9. How doI change the default version back to Java 8?To disable Java 9, type the following commands in the Terminal:
Coursera App For AndroidYou should still be able to use Java 9 by specifying the full path tojavac and java , e.g.,/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/bin/javac .
Why I try to run DrJava, I get the following error message. How should I proceed?
/Applications directory.
Can I use a different IDE?Yes you can use another IDE (such as Eclipse) butyou will have to configure the IDE properties yourself (such as the classpath). Reset Interactions;From the Terminal, type
Ctrl-c .
Apple mac pro temperature monitor. When using standard input, how do I signify that there is no more data?If you are entering input from the keyboard, type
Ctrl-d for EOF (end of file)from either DrJava or the Terminal.-->
When I compile or execute a program in Terminal that uses one of thetextbook libraries, I get an error that it cannot find the library. How can I fix this?Be sure that you are using the wrapper scripts
/usr/local/bin/javac-algs4 and /usr/local/bin/java-algs4 .
Coursera App For Windows
Which shell should I use in the Terminal?The default shell in Mac OS X is bash, but feel free to use a different one if you prefer.
Whatâs the sha256sum of algs4.zip?
483786a1197b7282b92c846667e847cd31a97a4e42bca71f95e21a2ce668fc33
Last modified on August 14, 2019.
Copyright © 2000â2019Robert SedgewickandKevin Wayne.All rights reserved. Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |