Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GuidedScript.fsx #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions Dojo/GuidedScript.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ open System.IO
// returns an array of strings for each line

// [ YOUR CODE GOES HERE! ]


// 2. EXTRACTING COLUMNS

// Break each line of the file into an array of string,
Expand Down Expand Up @@ -102,8 +102,8 @@ let splitResult = csvToSplit.Split(',')


// [ YOUR CODE GOES HERE! ]


// 3. CLEANING UP HEADERS

// Did you note that the file has headers? We want to get rid of it.
Expand All @@ -121,8 +121,8 @@ let upToThree = someNumbers.[ .. 2 ]


// [ YOUR CODE GOES HERE! ]


// 4. CONVERTING FROM STRINGS TO INTS

// Now that we have an array containing arrays of strings,
Expand All @@ -137,8 +137,8 @@ let convertedInt = Convert.ToInt32("42")


// [ YOUR CODE GOES HERE! ]


// 5. CONVERTING ARRAYS TO RECORDS

// Rather than dealing with a raw array of ints,
Expand All @@ -154,8 +154,8 @@ let example = { Label = 1; Pixels = [| 1; 2; 3; |] }


// [ YOUR CODE GOES HERE! ]


// 6. COMPUTING DISTANCES

// We need to compute the distance between images
Expand Down Expand Up @@ -186,8 +186,8 @@ let distance (p1: int[]) (p2: int[]) = 42
// 42 is likely not the right answer

// [ YOUR CODE GOES HERE! ]


// 7. WRITING THE CLASSIFIER FUNCTION

// We are now ready to write a classifier function!
Expand Down Expand Up @@ -235,8 +235,8 @@ let classify (unknown:int[]) =
0

// [ YOUR CODE GOES HERE! ]


// 8. EVALUATING THE MODEL AGAINST VALIDATION DATA

// Now that we have a classifier, we need to check
Expand All @@ -251,4 +251,4 @@ let classify (unknown:int[]) =
// and compute the % correctly predicted.


// [ YOUR CODE GOES HERE! ]
// [ YOUR CODE GOES HERE! ]