Commit 35ad293621b5c20d5d6c6844a752d4a315869846

Authored by Joanne ago
1 parent 86c5107b9f
Exists in master

w2v insert only for temp

Showing 1 changed file with 22 additions and 21 deletions Side-by-side Diff

app/com/piki_ds/ver1/InsertCidList.scala View file @ 35ad293
... ... @@ -12,30 +12,31 @@
12 12  
13 13 var sc: SparkContext = SparkContext.getOrCreate()
14 14 var sqlContext: SQLContext = SQLContext.getOrCreate(sc)
15   - val modelName: Map[String, Seq[String]] = Map(
16   - "uniform" ->
17   - Seq("quality"),
18   - "single"->
19   - Seq(
20   - /*
21   - "cf",
22   - "topic",
23   - "age",
24   - "sex",
25   - */
26   - "w2v"
27   - ),
28   - "ensemble" ->
29   - Seq(
30   - "ensemble1",
31   - "ensemble2",
32   - "ensemble3",
33   - "ensemble4"
34   - )
35   - )
  15 +
36 16 //187269,183889,194411
37 17  
38 18 def main(args: Array[String]) {
  19 + val modelName: Map[String, Seq[String]] = Map(
  20 + "uniform" ->
  21 + Seq("quality"),
  22 + "single"->
  23 + Seq(
  24 + /*
  25 + "cf",
  26 + "topic",
  27 + "age",
  28 + "sex",
  29 + */
  30 + "w2v"
  31 + ),
  32 + "ensemble" ->
  33 + Seq(
  34 + "ensemble1",
  35 + "ensemble2",
  36 + "ensemble3",
  37 + "ensemble4"
  38 + )
  39 + )
39 40 modelName("single").foreach(model=> {
40 41 val doi = "20160508"
41 42 val getMax30 = sc.objectFile[(Int, String)](s"/user/joanne/clols/$doi/$model")