Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
GH-919: Build failed for Samples.sln on VS 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarsouza committed Sep 29, 2017
1 parent 03c5c06 commit 3f955b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Samples/Tutorials/1. Classification/1.1. Binary/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ static void Main(string[] args)
var reader = new SparseReader("examples-sparse.txt");

// Read the sparse inputs and outputs from the file
var (inputs, outputs) = reader.ReadSparseToEnd();
var results = reader.ReadSparseToEnd();
Sparse<double>[] inputs = results.Item1;
double[] outputs = results.Item2;

// Note: this can be done more succintly in C# 7:
// var (inputs, outputs) = reader.ReadSparseToEnd();

// Learn the data using a sparse SVM
sparseMachine(inputs, outputs);
Expand Down

0 comments on commit 3f955b9

Please sign in to comment.