Skip to content

Instantly share code, notes, and snippets.

@mdfarragher
Created July 23, 2020 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdfarragher/84c1e30c8af705c487a0683adfa7a5f3 to your computer and use it in GitHub Desktop.
Save mdfarragher/84c1e30c8af705c487a0683adfa7a5f3 to your computer and use it in GitHub Desktop.
open System
open System.IO
open Microsoft.ML
open Microsoft.ML.Data
open Microsoft.ML.Transforms
/// The Digit class represents one mnist digit.
[<CLIMutable>]
type Digit = {
[<LoadColumn(0)>] Number : float32
[<LoadColumn(1, 784)>] [<VectorType(784)>] PixelValues : float32[]
}
/// The DigitPrediction class represents one digit prediction.
[<CLIMutable>]
type DigitPrediction = {
Score : float32[]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment