Skip to content

Commit

Permalink
Merge branch 'master' of github.com:szcf-weiya/ESL-CN
Browse files Browse the repository at this point in the history
  • Loading branch information
szcf-weiya committed Sep 27, 2019
2 parents 7d76f83 + 70bb64e commit 3acc545
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions code/fig18.5/script.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using DelimitedFiles
using GLMNet

# import data
folder = "data/Leukemia/"
raw_X = readdlm(folder*"data_set_ALL_AML_train.txt", '\t')
# remove the first columns and the call columns
train_X = raw_X[:, 3:2:end]
# remove the last empty column
train_X = train_X[:, 1:end-1]
# separate the id and the data
id = Int.(train_X[1, :])
train_X = Float64.(train_X[2:end, :])
# get from `table_ALL_AML_samples.rtf`
train_y = vcat(fill(1, 27, 1), fill(2, 38-27, 1))

0 comments on commit 3acc545

Please sign in to comment.