Preview

Kolo Ay Kalam

Powerful Essays
Open Document
Open Document
3226 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Kolo Ay Kalam
Programming Exercise 2: Logistic Regression
Machine Learning October 30, 2011

Introduction
In this exercise, you will implement logistic regression and apply it to two different datasets. Before starting on the programming exercise, we strongly recommend watching the video lectures and completing the review questions for the associated topics. To get started with the exercise, you will need to download the starter code and unzip its contents to the directory where you wish to complete the exercise. If needed, use the cd command in Octave to change to this directory before starting this exercise. You can also find instructions for installing Octave on the “Octave Installation” page on the course website.

Files included in this exercise ex2.m - Octave script that will help step you through the exercise ex2 reg.m - Octave script for the later parts of the exercise ex2data1.txt - Training set for the first half of the exercise ex2data2.txt - Training set for the second half of the exercise submit.m - Submission script that sends your solutions to our servers mapFeature.m - Function to generate polynomial features plotDecisionBounday.m - Function to plot classifier’s decision boundary [ ] plotData.m - Function to plot 2D classification data [ ] sigmoid.m - Sigmoid Function [ ] costFunction.m - Logistic Regression Cost Function [ ] predict.m - Logistic Regression Prediction Function [ ] costFunctionReg.m - Regularized Logistic Regression Cost indicates files you will need to complete 1

Throughout the exercise, you will be using the scripts ex2.m and ex2 reg.m. These scripts set up the dataset for the problems and make calls to functions that you will write. You do not need to modify either of them. You are only required to modify functions in other files, by following the instructions in this assignment.

Where to get help
The exercises in this course use Octave,1 a high-level programming language well-suited for numerical computations. If you do not have Octave

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Chemistry Mini Project 3

    • 511 Words
    • 3 Pages

    Please remember to show all your work for the calculations in questions 1 and 2. These can be added at the end of this document (see Calculations Section). Complete the yellow shaded regions in the document below.…

    • 511 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    b. b. Include the function written in Exercise 8a in a working program. Make sure your…

    • 720 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    MNP231

    • 1327 Words
    • 4 Pages

    1. In Exercise 2, you created a Lab04 text file on your computer at the beginning of the exercise. Later, while working…

    • 1327 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    DIRECTIONS: Use your packet by the same title as the assignment, the readings and your textbook to answer the following.…

    • 2154 Words
    • 9 Pages
    Good Essays
  • Satisfactory Essays

    POS 420 Entire Course

    • 583 Words
    • 4 Pages

    See the Assignment 1 post in the Main forum or Course Materials forum for detailed instructions.…

    • 583 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    ACC 206 week 1 assignment

    • 851 Words
    • 4 Pages

    Please complete the following 5 exercises below in either Excel or a word document (but must be single document). You must show your work where appropriate (leaving the calculations within Excel cells is acceptable). Save the document, and submit it in the appropriate week using the Assignment Submission button.…

    • 851 Words
    • 4 Pages
    Powerful Essays
  • Better Essays

    Bio Cells

    • 1019 Words
    • 6 Pages

    4. Post Part 1, Part 2, and Part 3 in this worksheet as an attachment to your Assignment Section. Delete the introductory instructions in this worksheet before you submit it to your instructor.…

    • 1019 Words
    • 6 Pages
    Better Essays
  • Powerful Essays

    The Syllabus on Info 3010

    • 2401 Words
    • 10 Pages

    Course Prerequisites: MATH 1140 Course Goals This course is designed to teach students the elements of: Data Analysis; Spreadsheet modeling and optimization Models of deterministic linear programming Probability theory and expected value for decision making under uncertainty Visual Basic for Applications in Excel and for simulation analysis Student Learning Objectives: As the result of this course students should be able to: 1. Execute the 7-step modeling process in any relevant business…

    • 2401 Words
    • 10 Pages
    Powerful Essays
  • Powerful Essays

    MAT100.Syll

    • 1309 Words
    • 7 Pages

    Upon completing this course students should have an in depth understanding of data analysis, graphing data, stating a problem in mathematical format, solving various algebraic expressions, following an algorithm, applying an algebraic algorithm to a problem and making sense of the final outcome.…

    • 1309 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    DIRECTIONS: The following question is based on the accompanying Documents 1-9. The documents have been edited for the purpose of this exercise.…

    • 1939 Words
    • 8 Pages
    Good Essays
  • Good Essays

    Problems1

    • 605 Words
    • 2 Pages

    Many problems in this homework make use of a few MATLAB/Octave .m files that are provided on…

    • 605 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    If you purchase this: Thanks for purchasing my tutorial! Open the attached file to get the paper/solutions. If you have any questions, comments, or concerns, please let me know! I can help you with future courses. Thanks again! Free feel to PM me, or send me a message at:…

    • 709 Words
    • 5 Pages
    Satisfactory Essays
  • Powerful Essays

    2. Become familiar with the appropriate data set and the associated statistics (see Appendix). Make sure you attend the relevant tutorials.…

    • 922 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    Directions: Complete the “” column in the table below by filling in the cells from information provided in the textbook.…

    • 724 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Project one

    • 683 Words
    • 3 Pages

    You will need to complete the following three tasks in order to fully complete the assignment and receive a satisfactory grade!…

    • 683 Words
    • 3 Pages
    Satisfactory Essays