Skip to content

Instantly share code, notes, and snippets.

PassengerId Survived Pclass Lname Name Sex Age SibSp Parch Ticket Fare Cabin Embarked
1 0 3 Braund Mr. Owen Harris male 22 1 0 A/5 21171 7.25 S
2 1 1 Cumings Mrs. John Bradley (Florence Briggs Thayer) female 38 1 0 PC 17599 71.2833 C85 C
3 1 3 Heikkinen Miss. Laina female 26 0 0 STON/O2. 3101282 7.925 S
4 1 1 Futrelle Mrs. Jacques Heath (Lily May Peel) female 35 1 0 113803 53.1 C123 S
5 0 3 Allen Mr. William Henry male 35 0 0 373450 8.05 S
6 0 3 Moran Mr. James male 0 0 330877 8.4583 Q
7 0 1 McCarthy Mr. Timothy J male 54 0 0 17463 51.8625 E46 S
8 0 3 Palsson Master. Gosta Leonard male 2 3 1 349909 21.075 S
9 1 3 Johnson Mrs. Oscar W (Elisabeth Vilhelmina Berg) female 27 0 2 347742 11.1333 S
@Vijesh2
Vijesh2 / moments.fsx
Last active December 26, 2015 18:59
Exploring implementation of kth central moments
type moment_type =
| CENTRAL
| ZERO
let intToFloat intList =
intList
|> List.map (fun (i:int) -> (float i))
let ave intList =
@Vijesh2
Vijesh2 / index.html
Last active December 22, 2015 16:39
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.axis {
font: 10px sans-serif;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@Vijesh2
Vijesh2 / GBM_Parantheses.fs
Last active December 17, 2015 11:59
Suggest change to GBM example on p37 of F# Deep Dive. In particular, wondered whether parantheses and indentation of lines 17 to 20 need to be amended from book version to those shown on this gist.
#r "../../../packages/MathNet.Numerics.2.5.0/lib/net40/MathNet.Numerics.dll"
#r "../../../packages/MathNet.Numerics.FSharp.2.5.0/lib/net40/MathNet.Numerics.FSharp.dll"
open MathNet.Numerics.Random
open MathNet.Numerics.Distributions
open MathNet.Numerics.Statistics
let get_dW rnd dt N =
let dW = Normal.WithMeanVariance(0.0, dt)
dW.RandomSource <- rnd