Difference between revisions of "MC1-Homework-2"

From Quantitative Analysis Software Courses
Jump to navigation Jump to search
(Created page with "==Overview== The purpose of this homework is to make sure you've got a development environment set up so you can write and test code for the remaining assignments. Your deve...")
 
 
(8 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
* Installation of historical stock data.
 
* Installation of historical stock data.
  
Important note: We use a specific, static set of data for this course.  If you download your own data from Yahoo, you will get the wrong answers on the assignments.
+
'''Important note''': We use a specific, static set of data for this course.  If you download your own data from Yahoo, you will get the wrong answers on the assignments.
  
 
==Task==
 
==Task==
Line 13: Line 13:
 
You should:
 
You should:
  
* Follow installation instructions [[here]]
+
* Follow installation instructions here: [[ML4T Software Installation]] to set up a virtual machine.
* Test your environment by running the script validation.py
+
* Test your environment by running the script <tt>validate_env.py</tt> from the <tt>ml4t/</tt> directory
* If validation.py complains, fix the problems, then repeat
+
* If it complains, fix the problems, then repeat
  
Copy and paste the last 10 lines of output of validation.py into your own text file, <tt>submission.txt</tt>
+
Copy and save the output of <tt>validate_env.py</tt> in a text file named <tt>output.txt</tt>
 
 
==Resources and ideas==
 
  
 
==What to turn in==
 
==What to turn in==
  
Via t-square turn in attachments only:
+
* Submit the output of <tt>python validate_env.py</tt> as <tt>output.txt</tt> via t-square.  It is very important that you use exactly that filename.
 
 
* Your text file as <tt>submission.txt</tt>
 

Latest revision as of 15:57, 13 January 2016

Overview

The purpose of this homework is to make sure you've got a development environment set up so you can write and test code for the remaining assignments. Your development environment includes:

  • The proper version of Python (namely 2.7)
  • Installation of necessary libraries (e.g. Pandas, NumPy, etc.)
  • Installation of historical stock data.

Important note: We use a specific, static set of data for this course. If you download your own data from Yahoo, you will get the wrong answers on the assignments.

Task

You should:

  • Follow installation instructions here: ML4T Software Installation to set up a virtual machine.
  • Test your environment by running the script validate_env.py from the ml4t/ directory
  • If it complains, fix the problems, then repeat

Copy and save the output of validate_env.py in a text file named output.txt

What to turn in

  • Submit the output of python validate_env.py as output.txt via t-square. It is very important that you use exactly that filename.