Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
import numpy as np
import milk
# features= np.random.rand(100, 10) #100 rows of 10 cols
# labels= np.random.choice(5, 100) #100 elts all between 0-4
# sample= np.random.rand(10) #10 elts
features= np.random.randint(0, 5, (100, 10)) #100 rows of 10 cols, elts between 0-5 excl
labels= np.random.choice(5, 100) #100 elts, all between 0-5 excl
sample= np.random.randint(0, 5, 10) #1 row of 10 cols, all between 0-5 excl
using Nancy.Hosting.Self;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using Nancy;
using Nancy.TinyIoc;
@u89012
u89012 / go-scm-1
Last active August 29, 2015 14:05
(use
intarweb
spiffy
spiffy-request-vars
uri-common
matchable
sxml-serializer
;medea
;postgresql
miscmacros)