Skip to content

Instantly share code, notes, and snippets.

@catlion
catlion / ConstrainedTypesExamples.fsx
Created December 1, 2017 08:50 — forked from swlaschin/ConstrainedTypesExamples.fsx
Examples of creating constrained types in F#
module ConstrainedTypes =
open System
// General hints on defining types with constraints or invariants
//
// Just as in C#, use a private constructor
// and expose "factory" methods that enforce the constraints
//
// In F#, only classes can have private constructors with public members.
//
@catlion
catlion / Build.fsx
Last active January 28, 2016 21:48
Build.fsx target fragment
#r "c:/dev/git/ContractLookup/tools/FAKE/tools/FakeLib.dll"
#r "System.Configuration.dll"
open Fake
open Fake.AssemblyInfoFile
open Fake.ReleaseNotesHelper
open Fake.ProcessHelper
open System
open System.Configuration
open System.IO
@catlion
catlion / gist:b24686474d1692239afb
Created January 28, 2016 20:47 — forked from anonymous/gist:e04333e0aa5173a3b090
Build Target and Web.config file transformations
Target "Build" (fun _ ->
!! "ContractLookup.sln"
|> MSBuild buildDir "Build" [
"Optimize", "True"
"DebugSymbols", "True"
"Configuration", "Debug"
"Platform", "Any CPU"
]
|> Log "Build-Output: "

A Few Useful Things to Know about Machine Learning

The paper presents some key lessons and "folk wisdom" that machine learning researchers and practitioners have learnt from experience and which are hard to find in textbooks.

1. Learning = Representation + Evaluation + Optimization

All machine learning algorithms have three components:

  • Representation for a learner is the set if classifiers/functions that can be possibly learnt. This set is called hypothesis space. If a function is not in hypothesis space, it can not be learnt.
  • Evaluation function tells how good the machine learning model is.
  • Optimisation is the method to search for the most optimal learning model.