This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | 5.1 | 3.5 | 1.4 | 0.2 | setosa | |
---|---|---|---|---|---|---|
2 | 4.9 | 3 | 1.4 | 0.2 | setosa | |
3 | 4.7 | 3.2 | 1.3 | 0.2 | setosa | |
4 | 4.6 | 3.1 | 1.5 | 0.2 | setosa | |
5 | 5 | 3.6 | 1.4 | 0.2 | setosa | |
6 | 5.4 | 3.9 | 1.7 | 0.4 | setosa | |
7 | 4.6 | 3.4 | 1.4 | 0.3 | setosa | |
8 | 5 | 3.4 | 1.5 | 0.2 | setosa | |
9 | 4.4 | 2.9 | 1.4 | 0.2 | setosa | |
10 | 4.9 | 3.1 | 1.5 | 0.1 | setosa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ad | Imp | Clk | |
---|---|---|---|
A | 300 | 6 | |
B | 500 | 14 | |
C | 150 | 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.display.MovieClip; | |
import flash.display.Sprite; | |
import flash.display.Bitmap; | |
import flash.text.StyleSheet; | |
import flash.text.TextField; | |
import flash.geom.Transform; | |
import flash.geom.Matrix; | |
import flash.events.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LDA collapsed Gibbs sampler implementation in R by isobe | |
bows2corpus <- function(bows) { | |
print("bows2corpus") | |
docs <- list() | |
words <- c() | |
index <- list() | |
last_index <- 0 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
public class ApplesAndPears { | |
private int[][][] sb; | |
public int getArea(String[] board, int K) { | |
int N = board.length; | |
sb = new int[3][N][N]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script src="./processing.min.js"></script> | |
<canvas datasrc="./mondorian.pjs"></canvas> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library("rjson") | |
scw <- function(D,eta,verbose=F) { | |
phi <- qnorm(eta) | |
psi <- 1+phi^2/2 | |
zeta <- 1+phi^2 | |
mu <- rep(0,D) | |
sigma <- diag(D) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(R2WinBUGS) | |
library(coda) | |
setwd("~/R") | |
eps <- 1.0E-4 | |
N <- 10 | |
K <- 2 | |
data1 <- list( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
library(ggplot2) | |
library(reshape2) | |
train <- read.csv("train.csv") | |
#test <- read.csv("test_v2.csv") | |
az <- train %.% | |
filter(record_type==1) %.% | |
select(A:G) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
#train <- read.csv("train.csv") | |
test <- read.csv("test_v2.csv") | |
last_items <- test %.% | |
group_by(customer_ID) %.% | |
filter(shopping_pt==max(shopping_pt)) %.% | |
mutate(plan=paste(A,B,C,D,E,F,G,sep='')) %.% | |
select(customer_ID,plan) |