├── .sbtopts ├── src ├── test │ ├── resources │ │ ├── num_shards.tsv │ │ ├── graph_chi │ │ │ ├── edges.tsv.shovel.0 │ │ │ ├── edges.tsv.1.intervalsjava │ │ │ ├── edges.tsv.edata_java.0_1.adj.index │ │ │ ├── edges.tsv.edata_java.e4B.0_1.size │ │ │ ├── edges.tsv.1.vtranslate │ │ │ ├── edges.tsv.edata_java.0_1.adj │ │ │ ├── edges.tsv_degsj.bin │ │ │ ├── edges.tsv │ │ │ ├── edges.tsv.edata_java.e4B.0_1_blockdir_4194304 │ │ │ │ └── 0 │ │ │ └── edges.tsv.edata_java.e4B.0_1.Z._blockdir_4194304 │ │ │ │ └── 0 │ │ ├── edge_dict.tsv │ │ └── node_dict.tsv │ ├── scala │ │ └── edu │ │ │ └── cmu │ │ │ └── ml │ │ │ └── rtw │ │ │ └── pra │ │ │ └── experiments │ │ │ └── DriverSpec.scala │ └── java │ │ └── edu │ │ └── cmu │ │ └── ml │ │ └── rtw │ │ └── pra │ │ └── features │ │ ├── FakeVertexIdTranslate.java │ │ └── FakeChiEdge.java └── main │ ├── scala │ └── edu │ │ └── cmu │ │ └── ml │ │ └── rtw │ │ └── pra │ │ └── features │ │ ├── package.scala │ │ └── extractors │ │ └── FeatureExtractor.scala │ └── java │ └── edu │ └── cmu │ └── ml │ └── rtw │ └── pra │ └── features │ ├── PathEncoder.java │ ├── PathTypeSelector.java │ ├── PathTypeVertexCache.java │ ├── MostFrequentPathTypeSelector.java │ └── FeatureMatrix.java ├── project ├── build.properties ├── plugins.sbt └── build.sbt ├── lib ├── mallet_svm.jar └── mallet_svm_srcs.jar ├── .gitignore ├── examples ├── experiment_specs │ ├── nell │ │ ├── random_walks │ │ │ ├── kb-t.json │ │ │ ├── kb.json │ │ │ ├── kb_svo.json │ │ │ ├── kb-t_svo.json │ │ │ ├── kb_svo_single_relation.json │ │ │ ├── kb_svo_plus_single_relation.json │ │ │ ├── kb_vector_svo.json │ │ │ └── kb-t_vector_svo.json │ │ ├── matrices │ │ │ ├── kb-t.json │ │ │ ├── kb-t_svo.json │ │ │ └── kb-t_svo_parafac.json │ │ ├── new_features │ │ │ ├── subgraphs_pra.json │ │ │ ├── baseline.json │ │ │ ├── subgraphs_pra_no_bias.json │ │ │ ├── subgraphs_pra_one_sided.json │ │ │ ├── subgraphs_pra_one_sided_catcomp.json │ │ │ ├── tuning │ │ │ │ ├── pra_l1-0.05_l2-0.1.json │ │ │ │ ├── pra_l1-0.05_l2-1.0.json │ │ │ │ ├── pra_l1-0.5_l2-0.1.json │ │ │ │ ├── pra_l1-0.5_l2-1.0.json │ │ │ │ ├── pra_l1-0.5_l2-10.0.json │ │ │ │ ├── pra_l1-5.0_l2-0.01.json │ │ │ │ ├── pra_l1-5.0_l2-0.1.json │ │ │ │ ├── pra_l1-5.0_l2-1.0.json │ │ │ │ ├── pra_l1-5.0_l2-10.0.json │ │ │ │ ├── pra_l1-0.005_l2-0.01.json │ │ │ │ ├── pra_l1-0.005_l2-0.1.json │ │ │ │ ├── pra_l1-0.005_l2-1.0.json │ │ │ │ ├── pra_l1-0.005_l2-10.0.json │ │ │ │ ├── pra_l1-0.05_l2-0.01.json │ │ │ │ ├── pra_l1-0.05_l2-10.0.json │ │ │ │ ├── pra_l1-0.05_l2-100.0.json │ │ │ │ ├── pra_l1-0.5_l2-100.0.json │ │ │ │ ├── pra_l1-5.0_l2-100.0.json │ │ │ │ ├── pra_l1-0.005_l2-100.0.json │ │ │ │ ├── pra_l1-0.5_l2-0.01.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-0.1.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-1.0.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-0.01.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-0.1.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-1.0.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-10.0.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-0.01.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-0.1.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-1.0.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-10.0.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-100.0.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-0.01.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-0.1.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-1.0.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-100.0.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-0.01.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-10.0.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-100.0.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-100.0.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-10.0.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-0.1_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-1.0_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-0.1_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-0.1_f-100000.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-1.0_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-1.0_f-100000.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-10.0_f-10000.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-0.01_f-10000.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-0.1_f-10000.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-0.1_f-100000.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-1.0_f-10000.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-1.0_f-100000.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-10.0_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-0.01_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-0.01_f-100000.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-0.1_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-0.1_f-100000.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-1.0_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-1.0_f-100000.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-10.0_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-10.0_f-100000.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-100.0_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-0.01_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-0.01_f-100000.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-0.1_f-100000.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-1.0_f-100000.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-10.0_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-10.0_f-100000.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-100.0_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-100.0_f-100000.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-0.01_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-0.01_f-100000.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-10.0_f-100000.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-100.0_f-10000.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-100.0_f-100000.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-0.01_f-100000.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-10.0_f-100000.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-100.0_f-10000.json │ │ │ │ ├── pra_one_sided_l1-5.0_l2-100.0_f-100000.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-100.0_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-0.1.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-1.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-5.0_l2-0.1.json │ │ │ │ ├── pra_one_sided_catcomp_l1-5.0_l2-1.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-0.1.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-1.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-0.01.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-0.1.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-1.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-10.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-0.01.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-10.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-100.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-5.0_l2-0.01.json │ │ │ │ ├── pra_one_sided_catcomp_l1-5.0_l2-10.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-5.0_l2-100.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-0.01.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-10.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-100.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-100.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-0.1_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-1.0_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-0.01_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-0.1_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-0.1_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-1.0_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-1.0_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-10.0_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-0.01_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-0.01_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-0.1_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-0.1_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-1.0_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-1.0_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-10.0_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-10.0_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-100.0_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-5.0_l2-0.01_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-5.0_l2-0.01_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-5.0_l2-0.1_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-5.0_l2-0.1_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-5.0_l2-1.0_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-5.0_l2-1.0_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-5.0_l2-10.0_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-5.0_l2-10.0_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-0.01_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-0.01_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-0.1_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-1.0_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-10.0_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-10.0_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-100.0_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-0.01_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-10.0_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-100.0_f-10000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-100.0_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-100.0_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-5.0_l2-100.0_f-100000.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-100.0_f-100000.json │ │ │ │ └── pra_one_sided_catcomp_l1-5.0_l2-100.0_f-10000.json │ │ │ ├── baseline_vs.json │ │ │ └── bfs │ │ │ │ ├── tuning │ │ │ │ ├── pra_l1-0.5_l2-0.1.json │ │ │ │ ├── pra_l1-0.5_l2-1.0.json │ │ │ │ ├── pra_l1-0.005_l2-0.01.json │ │ │ │ ├── pra_l1-0.005_l2-0.1.json │ │ │ │ ├── pra_l1-0.005_l2-1.0.json │ │ │ │ ├── pra_l1-0.05_l2-0.01.json │ │ │ │ ├── pra_l1-0.05_l2-0.1.json │ │ │ │ ├── pra_l1-0.05_l2-1.0.json │ │ │ │ ├── pra_l1-0.5_l2-0.01.json │ │ │ │ ├── pra_anyrel_l1-0.5_l2-0.1.json │ │ │ │ ├── pra_anyrel_l1-0.5_l2-0.5.json │ │ │ │ ├── pra_anyrel_l1-0.05_l2-0.01.json │ │ │ │ ├── pra_anyrel_l1-0.05_l2-0.1.json │ │ │ │ ├── pra_anyrel_l1-0.05_l2-0.5.json │ │ │ │ ├── pra_anyrel_l1-0.5_l2-0.01.json │ │ │ │ ├── pra_bigrams_l1-0.005_l2-0.1.json │ │ │ │ ├── pra_bigrams_l1-0.05_l2-0.01.json │ │ │ │ ├── pra_bigrams_l1-0.05_l2-0.1.json │ │ │ │ ├── pra_bigrams_l1-0.5_l2-0.01.json │ │ │ │ ├── pra_bigrams_l1-0.5_l2-0.1.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-0.1.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-1.0.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-0.01.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-0.1.json │ │ │ │ ├── pra_one_sided_l1-0.5_l2-1.0.json │ │ │ │ ├── pra_bigrams_l1-0.005_l2-0.01.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-0.01.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-0.1.json │ │ │ │ ├── pra_one_sided_l1-0.005_l2-1.0.json │ │ │ │ ├── pra_one_sided_l1-0.05_l2-0.01.json │ │ │ │ ├── pra_catcomp_l1-0.05_l2-0.1.json │ │ │ │ ├── pra_catcomp_l1-0.05_l2-1.0.json │ │ │ │ ├── pra_catcomp_l1-0.5_l2-0.01.json │ │ │ │ ├── pra_catcomp_l1-0.5_l2-0.1.json │ │ │ │ ├── pra_catcomp_l1-0.5_l2-1.0.json │ │ │ │ ├── pra_catcomp_l1-0.005_l2-0.01.json │ │ │ │ ├── pra_catcomp_l1-0.005_l2-0.1.json │ │ │ │ ├── pra_catcomp_l1-0.005_l2-1.0.json │ │ │ │ ├── pra_catcomp_l1-0.05_l2-0.01.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-0.1.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-1.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-0.01.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-0.1.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.05_l2-1.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-0.01.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-0.1.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.5_l2-1.0.json │ │ │ │ ├── pra_one_sided_catcomp_l1-0.005_l2-0.01.json │ │ │ │ ├── pra_vs_l1-0.005_l2-0.1.json │ │ │ │ ├── pra_vs_l1-0.005_l2-1.0.json │ │ │ │ ├── pra_vs_l1-0.05_l2-0.01.json │ │ │ │ ├── pra_vs_l1-0.05_l2-0.1.json │ │ │ │ ├── pra_vs_l1-0.05_l2-1.0.json │ │ │ │ ├── pra_vs_l1-0.5_l2-0.01.json │ │ │ │ ├── pra_vs_l1-0.5_l2-0.1.json │ │ │ │ ├── pra_vs_l1-0.5_l2-1.0.json │ │ │ │ ├── pra_vs_l1-0.005_l2-0.01.json │ │ │ │ ├── pra_bigrams_vs_l1-0.005_l2-0.1.json │ │ │ │ ├── pra_bigrams_vs_l1-0.05_l2-0.01.json │ │ │ │ ├── pra_bigrams_vs_l1-0.05_l2-0.1.json │ │ │ │ ├── pra_bigrams_vs_l1-0.5_l2-0.01.json │ │ │ │ ├── pra_bigrams_vs_l1-0.5_l2-0.1.json │ │ │ │ ├── pra_bigrams_vs_l1-0.5_l2-0.5.json │ │ │ │ ├── pra_bigrams_vs_l1-0.5_l2-0.9.json │ │ │ │ ├── pra_bigrams_vs_l1-0.7_l2-0.01.json │ │ │ │ ├── pra_bigrams_vs_l1-0.7_l2-0.1.json │ │ │ │ ├── pra_bigrams_vs_l1-0.7_l2-0.5.json │ │ │ │ ├── pra_bigrams_vs_l1-0.7_l2-0.9.json │ │ │ │ ├── pra_bigrams_vs_l1-1.0_l2-0.01.json │ │ │ │ ├── pra_bigrams_vs_l1-1.0_l2-0.1.json │ │ │ │ ├── pra_bigrams_vs_l1-1.0_l2-0.5.json │ │ │ │ ├── pra_bigrams_vs_l1-1.0_l2-0.9.json │ │ │ │ └── pra_bigrams_vs_l1-0.005_l2-0.01.json │ │ │ │ ├── subgraphs_pra_no_bias.json │ │ │ │ ├── subgraphs_pra_one_sided.json │ │ │ │ ├── subgraphs_pra_catcomp.json │ │ │ │ └── subgraphs_pra_one_sided_catcomp.json │ │ ├── embedded │ │ │ ├── vector_kb.json │ │ │ ├── vector_kb-t.json │ │ │ └── vector_kb_svo.json │ │ ├── final_emnlp2015 │ │ │ ├── sfe_pra.json │ │ │ ├── sfe_pra_one_sided.json │ │ │ ├── sfe_bfs_pra.json │ │ │ ├── sfe_pra_one_sided_catcomp.json │ │ │ ├── sfe_bfs_pra_anyrel.json │ │ │ ├── sfe_bfs_pra_bigrams.json │ │ │ ├── sfe_bfs_pra_one_sided.json │ │ │ ├── sfe_bfs_pra_catcomp.json │ │ │ └── sfe_bfs_pra_one_sided_catcomp.json │ │ └── new_models │ │ │ ├── svm_linear.json │ │ │ ├── svm_quadratic.json │ │ │ ├── lr_baseline.json │ │ │ ├── svm_rbf_0.01.json │ │ │ ├── svm_rbf_0.1.json │ │ │ ├── svm_rbf_1.0.json │ │ │ ├── svm_rbf_10.json │ │ │ ├── svm_rbf_1e-4.json │ │ │ ├── svm_rbf_1e-5.json │ │ │ ├── svm_rbf_1e-6.json │ │ │ ├── svm_rbf_1e-7.json │ │ │ └── svm_rbf_0.001.json │ ├── binarization │ │ ├── nell_kb_svo │ │ │ ├── probs.json │ │ │ └── binarized.json │ │ └── freebase_kb_svo │ │ │ ├── probs.json │ │ │ └── binarized.json │ ├── multilingual │ │ ├── fr-sw │ │ │ ├── kb.json │ │ │ ├── kb_fr.json │ │ │ ├── kb_sw.json │ │ │ └── kb_fr_sw.json │ │ ├── french_test │ │ │ ├── kb.json │ │ │ ├── all_svo_vs.json │ │ │ └── kb_all_svo_vs.json │ │ └── all_languages │ │ │ ├── kb.json │ │ │ ├── all_svo_vs.json │ │ │ └── kb_all_svo_vs.json │ ├── synthetic │ │ └── small │ │ │ ├── pra_easy.json │ │ │ ├── pra_hard.json │ │ │ ├── rescal_pra_easy.json │ │ │ └── rescal_pra_hard.json │ ├── debugging │ │ ├── pra_very_easy.json │ │ ├── create_hanie_split.json │ │ └── create_final_nell_split.json │ ├── hoffmann │ │ ├── features.json │ │ └── features_take_2.json │ ├── negative_examples │ │ ├── negatives_at_training.json │ │ └── standard.json │ ├── rescal │ │ ├── easy │ │ │ ├── pra.json │ │ │ └── rescal_pra.json │ │ ├── less_easy │ │ │ ├── pra.json │ │ │ └── rescal_pra.json │ │ └── very_easy │ │ │ ├── pra.json │ │ │ └── rescal_pra.json │ ├── freebase │ │ └── arvind │ │ │ ├── sfe_pra.json │ │ │ ├── sfe_pra_anyrel.json │ │ │ └── sfe_pra_bigrams.json │ └── semparse │ │ ├── mid_pairs.json │ │ └── mids.json └── param_files │ ├── graphs │ ├── nell │ │ ├── kb.json │ │ ├── kb-t.json │ │ ├── kb_svo.json │ │ ├── kb-t_svo.json │ │ ├── kb_full_svo.json │ │ └── kb_svo_thresholded_15.json │ ├── freebase │ │ └── kb_svo.json │ └── images │ │ └── c+gt+sr.json │ ├── relation_sets │ ├── images │ │ ├── ground_truth_val.json │ │ ├── ground_truth_test.json │ │ ├── ground_truth_train.json │ │ ├── classifier_output_val.json │ │ ├── classifier_output_test.json │ │ ├── classifier_output_train.json │ │ ├── spatial_relationships_test.json │ │ ├── spatial_relationships_val.json │ │ └── spatial_relationships_train.json │ ├── multilingual │ │ ├── hindi.json │ │ ├── arabic.json │ │ ├── chinese.json │ │ ├── en-zh.json │ │ ├── french.json │ │ ├── latvian.json │ │ ├── ru-zh.json │ │ ├── russian.json │ │ ├── swahili.json │ │ ├── tagalog.json │ │ ├── en-zh.tsv.json │ │ ├── georgian.json │ │ ├── indonesian.json │ │ ├── ru-zh.tsv.json │ │ ├── english-french.json │ │ ├── english-swahili.json │ │ ├── english-tagalog.json │ │ ├── french-swahili.json │ │ ├── french-tagalog.json │ │ ├── hindi_contains_alias.json │ │ ├── arabic_contains_alias.json │ │ ├── chinese_contains_alias.json │ │ ├── english-french.txt.json │ │ ├── english-indonesian.json │ │ ├── english-swahili.txt.json │ │ ├── english-tagalog.txt.json │ │ ├── french-indonesian.json │ │ ├── french-swahili.txt.json │ │ ├── french-tagalog.txt.json │ │ ├── french_contains_alias.json │ │ ├── indonesian-swahili.json │ │ ├── latvian_contains_alias.json │ │ ├── russian_contains_alias.json │ │ ├── swahili_contains_alias.json │ │ ├── tagalog_contains_alias.json │ │ ├── english-indonesian.txt.json │ │ ├── french-indonesian.txt.json │ │ ├── georgian_contains_alias.json │ │ ├── indonesian-swahili.txt.json │ │ ├── indonesian_contains_alias.json │ │ ├── arabic_single_relation.json │ │ ├── french_single_relation.json │ │ ├── hindi_single_relation.json │ │ ├── chinese_single_relation.json │ │ ├── georgian_single_relation.json │ │ ├── latvian_single_relation.json │ │ ├── russian_single_relation.json │ │ ├── swahili_single_relation.json │ │ ├── tagalog_single_relation.json │ │ └── indonesian_single_relation.json │ ├── freebase │ │ ├── svo.json │ │ ├── kb.json │ │ └── kb_aliases_only.json │ ├── full_svo │ │ ├── svo.json │ │ └── svo_thresholded_15.json │ └── nell │ │ ├── svo.json │ │ ├── kb.json │ │ └── kb_no_types.json │ ├── matrix_multiplication.json │ ├── new_feature_experiment_base.json │ ├── arvind_data_experiment.json │ ├── base_nell_pra_parameters.json │ ├── base_freebase_pra_parameters.json │ ├── vector_space_walks.json │ ├── default_subgraph_parameters.json │ └── default_pra_parameters.json ├── .travis.yml └── comparisons └── rescal └── README.md /.sbtopts: -------------------------------------------------------------------------------- 1 | -J-XX:MaxPermSize=512M 2 | -------------------------------------------------------------------------------- /src/test/resources/num_shards.tsv: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /project/build.properties: -------------------------------------------------------------------------------- 1 | sbt.version=0.13.9 2 | -------------------------------------------------------------------------------- /src/test/resources/graph_chi/edges.tsv.shovel.0: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/test/resources/graph_chi/edges.tsv.1.intervalsjava: -------------------------------------------------------------------------------- 1 | 11 2 | -------------------------------------------------------------------------------- /src/test/resources/graph_chi/edges.tsv.edata_java.0_1.adj.index: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/test/resources/graph_chi/edges.tsv.edata_java.e4B.0_1.size: -------------------------------------------------------------------------------- 1 | 40 -------------------------------------------------------------------------------- /project/plugins.sbt: -------------------------------------------------------------------------------- 1 | addSbtPlugin("de.johoop" % "jacoco4sbt" % "2.1.6") 2 | -------------------------------------------------------------------------------- /src/test/resources/edge_dict.tsv: -------------------------------------------------------------------------------- 1 | 1 rel1 2 | 2 rel2 3 | 3 rel3 4 | 4 rel4 5 | -------------------------------------------------------------------------------- /lib/mallet_svm.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matt-gardner/pra/HEAD/lib/mallet_svm.jar -------------------------------------------------------------------------------- /lib/mallet_svm_srcs.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matt-gardner/pra/HEAD/lib/mallet_svm_srcs.jar -------------------------------------------------------------------------------- /src/test/resources/graph_chi/edges.tsv.1.vtranslate: -------------------------------------------------------------------------------- 1 | vertex_interval_length=12 2 | numShards=1 3 | -------------------------------------------------------------------------------- /src/test/resources/graph_chi/edges.tsv.edata_java.0_1.adj: -------------------------------------------------------------------------------- 1 |  2 |  -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | .project 3 | .classpath 4 | .settings 5 | .cache-main 6 | target/ 7 | walkmanager.log 8 | /bin 9 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/random_walks/kb-t.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | { 3 | "graph": "load graphs/nell/kb-t" 4 | } 5 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/random_walks/kb.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | { 3 | "graph": "load graphs/nell/kb" 4 | } 5 | -------------------------------------------------------------------------------- /src/test/resources/graph_chi/edges.tsv_degsj.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /examples/experiment_specs/nell/random_walks/kb_svo.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | { 3 | "graph": "load graphs/nell/kb_svo" 4 | } 5 | -------------------------------------------------------------------------------- /examples/experiment_specs/binarization/nell_kb_svo/probs.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | { 3 | "graph": "load graphs/nell/kb_svo" 4 | } 5 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/random_walks/kb-t_svo.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | { 3 | "graph": "load graphs/nell/kb-t_svo" 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/graphs/nell/kb.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nell/kb", 3 | "relation sets": [ 4 | "load relation_sets/nell/kb" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /src/test/resources/graph_chi/edges.tsv: -------------------------------------------------------------------------------- 1 | 1 2 1 2 | 1 4 3 3 | 2 3 2 4 | 4 5 4 5 | 6 9 2 6 | 6 10 3 7 | 7 4 3 8 | 7 6 1 9 | 7 8 1 10 | 8 9 2 11 | -------------------------------------------------------------------------------- /examples/experiment_specs/binarization/freebase_kb_svo/probs.json: -------------------------------------------------------------------------------- 1 | load base_freebase_pra_parameters 2 | { 3 | "graph": "load graphs/freebase/kb_svo" 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/graphs/nell/kb-t.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nell/kb-t", 3 | "relation sets": [ 4 | "load relation_sets/nell/kb_no_types" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/images/ground_truth_val.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/neil/ground_truth_val.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/hindi.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/hindi_svo.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/matrices/kb-t.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | load matrix_multiplication 3 | { 4 | "graph": "load graphs/nell/kb-t" 5 | } 6 | -------------------------------------------------------------------------------- /examples/param_files/matrix_multiplication.json: -------------------------------------------------------------------------------- 1 | { 2 | "operation": { 3 | "path follower": { 4 | "name": "matrix multiplication" 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /examples/param_files/new_feature_experiment_base.json: -------------------------------------------------------------------------------- 1 | { 2 | "graph": "nell/kb_svo", 3 | "relation metadata": "nell", 4 | "split": "nell_with_negatives" 5 | } 6 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/freebase/svo.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/svo_triples/freebase_targeted/fixed.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/full_svo/svo.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/svo_triples/hazy_thresholded_1/svo.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/images/ground_truth_test.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/neil/ground_truth_test.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/images/ground_truth_train.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/neil/ground_truth_train.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/arabic.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/arabic_svo.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/chinese.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/chinese_svo.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/en-zh.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/en-zh.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/french.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/french_svo.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/latvian.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/latvian_svo.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/ru-zh.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/ru-zh.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/russian.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/russian_svo.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/swahili.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/swahili_svo.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/tagalog.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/tagalog_svo.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /src/test/resources/node_dict.tsv: -------------------------------------------------------------------------------- 1 | 1 node1 2 | 2 node2 3 | 3 node3 4 | 4 node4 5 | 5 node5 6 | 6 node6 7 | 7 node7 8 | 8 node8 9 | 9 node9 10 | 10 node10 11 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/matrices/kb-t_svo.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | load matrix_multiplication 3 | { 4 | "graph": "load graphs/nell/kb-t_svo" 5 | } 6 | -------------------------------------------------------------------------------- /examples/param_files/arvind_data_experiment.json: -------------------------------------------------------------------------------- 1 | { 2 | "graph": "arvind_freebase", 3 | "relation metadata": "arvind_freebase", 4 | "split": "freebase_arvind" 5 | } 6 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/images/classifier_output_val.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/neil/classifier_output_val.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/en-zh.tsv.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/en-zh.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/georgian.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/georgian_svo.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/indonesian.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/indonesian_svo.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/ru-zh.tsv.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/ru-zh.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/nell/svo.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/svo_triples/partha_smarter_triples/smaller.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/base_nell_pra_parameters.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "graph": "nell/kb", 4 | "relation metadata": "nell", 5 | "split": "nell" 6 | } 7 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/images/classifier_output_test.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/neil/classifier_output_test.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/images/classifier_output_train.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/neil/classifier_output_train.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/full_svo/svo_thresholded_15.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/svo_triples/hazy_thresholded_15/svo.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/images/spatial_relationships_test.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/neil/spatial_relationships_test.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/images/spatial_relationships_val.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/neil/spatial_relationships_val.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /src/main/scala/edu/cmu/ml/rtw/pra/features/package.scala: -------------------------------------------------------------------------------- 1 | package edu.cmu.ml.rtw.pra 2 | 3 | package object features { 4 | type Subgraph = Map[PathType, Set[(Int, Int)]] 5 | } 6 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/random_walks/kb_svo_single_relation.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | { 3 | "graph": "/home/mg1/pra/graphs/nell/kb_svo_single_relation/" 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/images/spatial_relationships_train.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/neil/spatial_relationships_train.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/english-french.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/english-french.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/english-swahili.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/english-swahili.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/english-tagalog.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/english-tagalog.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/french-swahili.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/french-swahili.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/french-tagalog.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/french-tagalog.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/hindi_contains_alias.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/found_aliases_hindi.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/base_freebase_pra_parameters.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "graph": "freebase/kb", 4 | "relation metadata": "freebase", 5 | "split": "freebase" 6 | } 7 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/arabic_contains_alias.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/found_aliases_arabic.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/chinese_contains_alias.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/found_aliases_chinese.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/english-french.txt.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/english-french.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/english-indonesian.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/english-indonesian.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/english-swahili.txt.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/english-swahili.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/english-tagalog.txt.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/english-tagalog.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/french-indonesian.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/french-indonesian.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/french-swahili.txt.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/french-swahili.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/french-tagalog.txt.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/french-tagalog.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/french_contains_alias.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/found_aliases_french.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/indonesian-swahili.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/indonesian-swahili.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/latvian_contains_alias.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/found_aliases_latvian.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/russian_contains_alias.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/found_aliases_russian.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/swahili_contains_alias.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/found_aliases_swahili.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/tagalog_contains_alias.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/found_aliases_tagalog.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/random_walks/kb_svo_plus_single_relation.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | { 3 | "graph": "/home/mg1/pra/graphs/nell/kb_svo_plus_single_relation/" 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/graphs/nell/kb_svo.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nell/kb_svo", 3 | "relation sets": [ 4 | "load relation_sets/nell/kb", 5 | "load relation_sets/nell/svo" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/english-indonesian.txt.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/english-indonesian.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/french-indonesian.txt.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/french-indonesian.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/georgian_contains_alias.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/found_aliases_georgian.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/indonesian-swahili.txt.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/translation/indonesian-swahili.txt", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/indonesian_contains_alias.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/found_aliases_indonesian.tsv", 3 | "is kb": false 4 | } 5 | -------------------------------------------------------------------------------- /examples/experiment_specs/multilingual/fr-sw/kb.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "split": "multilingual/fr_sw", 4 | "graph": "freebase/kb", 5 | "relation metadata": "freebase" 6 | } 7 | -------------------------------------------------------------------------------- /project/build.sbt: -------------------------------------------------------------------------------- 1 | resolvers += Classpaths.sbtPluginReleases 2 | 3 | addSbtPlugin("org.scoverage" %% "sbt-scoverage" % "1.0.1") 4 | 5 | addSbtPlugin("org.scoverage" %% "sbt-coveralls" % "1.0.0") 6 | -------------------------------------------------------------------------------- /examples/param_files/graphs/nell/kb-t_svo.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nell/kb-t_svo", 3 | "relation sets": [ 4 | "load relation_sets/nell/kb_no_types", 5 | "load relation_sets/nell/svo" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /examples/param_files/graphs/nell/kb_full_svo.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nell/kb_full_svo", 3 | "relation sets": [ 4 | "load relation_sets/nell/kb", 5 | "load relation_sets/full_svo/svo" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /src/test/resources/graph_chi/edges.tsv.edata_java.e4B.0_1_blockdir_4194304/0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matt-gardner/pra/HEAD/src/test/resources/graph_chi/edges.tsv.edata_java.e4B.0_1_blockdir_4194304/0 -------------------------------------------------------------------------------- /examples/experiment_specs/multilingual/french_test/kb.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "split": "multilingual/french_test", 4 | "graph": "freebase/kb", 5 | "relation metadata": "freebase" 6 | } 7 | -------------------------------------------------------------------------------- /examples/param_files/graphs/freebase/kb_svo.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "freebase/kb_svo", 3 | "relation sets": [ 4 | "load relation_sets/freebase/kb", 5 | "load relation_sets/freebase/svo" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /src/test/resources/graph_chi/edges.tsv.edata_java.e4B.0_1.Z._blockdir_4194304/0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matt-gardner/pra/HEAD/src/test/resources/graph_chi/edges.tsv.edata_java.e4B.0_1.Z._blockdir_4194304/0 -------------------------------------------------------------------------------- /examples/experiment_specs/multilingual/all_languages/kb.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "split": "multilingual/all_languages", 4 | "graph": "freebase/kb", 5 | "relation metadata": "freebase" 6 | } 7 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/arabic_single_relation.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/arabic_svo.tsv", 3 | "is kb": false, 4 | "replace relations with": "@SVO@" 5 | } 6 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/french_single_relation.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/french_svo.tsv", 3 | "is kb": false, 4 | "replace relations with": "@SVO@" 5 | } 6 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/hindi_single_relation.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/hindi_svo.tsv", 3 | "is kb": false, 4 | "replace relations with": "@SVO@" 5 | } 6 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/chinese_single_relation.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/chinese_svo.tsv", 3 | "is kb": false, 4 | "replace relations with": "@SVO@" 5 | } 6 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/georgian_single_relation.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/georgian_svo.tsv", 3 | "is kb": false, 4 | "replace relations with": "@SVO@" 5 | } 6 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/latvian_single_relation.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/latvian_svo.tsv", 3 | "is kb": false, 4 | "replace relations with": "@SVO@" 5 | } 6 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/russian_single_relation.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/russian_svo.tsv", 3 | "is kb": false, 4 | "replace relations with": "@SVO@" 5 | } 6 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/swahili_single_relation.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/swahili_svo.tsv", 3 | "is kb": false, 4 | "replace relations with": "@SVO@" 5 | } 6 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/tagalog_single_relation.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/tagalog_svo.tsv", 3 | "is kb": false, 4 | "replace relations with": "@SVO@" 5 | } 6 | -------------------------------------------------------------------------------- /examples/param_files/graphs/nell/kb_svo_thresholded_15.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nell/kb_full_svo", 3 | "relation sets": [ 4 | "load relation_sets/nell/kb", 5 | "load relation_sets/full_svo/svo_thresholded_15" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/multilingual/indonesian_single_relation.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/data/multilingual/svo/indonesian_svo.tsv", 3 | "is kb": false, 4 | "replace relations with": "@SVO@" 5 | } 6 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/matrices/kb-t_svo_parafac.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | load matrix_multiplication 3 | { 4 | "graph": "load graphs/nell/kb-t_svo" 5 | "operation": { 6 | "matrix dir": "parafac_matrices" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: scala 2 | scala: 3 | - 2.11.7 4 | jdk: 5 | - oraclejdk8 6 | script: "sbt clean coverage test" 7 | after_success: "sbt coveralls" 8 | cache: 9 | directories: 10 | - $HOME/.ivy2/cache 11 | - $HOME/.sbt/boot/ 12 | -------------------------------------------------------------------------------- /examples/experiment_specs/binarization/nell_kb_svo/binarized.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | { 3 | "graph": "load graphs/nell/kb_svo" 4 | "operation": { 5 | "learning": { 6 | "binarize features": true 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/nell/kb.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/pra/relation_metadata/nell/labeled_edges.tsv", 3 | "is kb": true, 4 | "alias file": "/home/mg1/data/NELL_dumps/concepts_to_nps_728.tsv", 5 | "alias file format": "nell" 6 | } 7 | -------------------------------------------------------------------------------- /examples/experiment_specs/binarization/freebase_kb_svo/binarized.json: -------------------------------------------------------------------------------- 1 | load base_freebase_pra_parameters 2 | { 3 | "graph": "load graphs/freebase/kb_svo" 4 | "operation": { 5 | "learning": { 6 | "binarize features": true 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /examples/experiment_specs/synthetic/small/pra_easy.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "graph": { 4 | "name": "synthetic/small/easy", 5 | "relation sets": ["load relation_sets/synthetic/small/easy"] 6 | }, 7 | "split": "synthetic/small/easy" 8 | } 9 | -------------------------------------------------------------------------------- /examples/experiment_specs/synthetic/small/pra_hard.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "graph": { 4 | "name": "synthetic/small/hard", 5 | "relation sets": ["load relation_sets/synthetic/small/hard"] 6 | }, 7 | "split": "synthetic/small/hard" 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/edu/cmu/ml/rtw/pra/features/PathEncoder.java: -------------------------------------------------------------------------------- 1 | package edu.cmu.ml.rtw.pra.features; 2 | 3 | public interface PathEncoder { 4 | /** 5 | * @return The length of the String array returned by encode(). 6 | */ 7 | public String[] encode(Path path); 8 | } 9 | -------------------------------------------------------------------------------- /examples/experiment_specs/debugging/pra_very_easy.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "graph": { 4 | "name": "synthetic/small/very_easy", 5 | "relation sets": ["load relation_sets/synthetic/small/very_easy"] 6 | }, 7 | "split": "synthetic/small/very_easy" 8 | } 9 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/random_walks/kb_vector_svo.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | load vector_space_walks 3 | { 4 | "graph": "load graphs/nell/kb_svo" 5 | "operation": { 6 | "path type factory": { 7 | "embeddings": "pca_svo" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/freebase/kb.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/pra/relation_metadata/freebase/labeled_edges.tsv", 3 | "is kb": true, 4 | "alias file": "/home/mg1/data/freebase/freebase-just-relation-triples.aliases", 5 | "alias file format": "freebase" 6 | } 7 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/random_walks/kb-t_vector_svo.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | load vector_space_walks 3 | { 4 | "graph": "load graphs/nell/kb-t_svo" 5 | "operation": { 6 | "path type factory": { 7 | "embeddings": "pca_svo" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/nell/kb_no_types.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/pra/relation_metadata/nell/labeled_edges_no_generalizations.tsv", 3 | "is kb": true, 4 | "alias file": "/home/mg1/data/NELL_dumps/concepts_to_nps_728.tsv", 5 | "alias file format": "nell" 6 | } 7 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/subgraphs_pra.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ] 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/baseline.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_pra_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "path follower": { 7 | "matrix accept policy": "paired-targets-only" 8 | } 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /examples/param_files/relation_sets/freebase/kb_aliases_only.json: -------------------------------------------------------------------------------- 1 | { 2 | "relation file": "/home/mg1/pra/relation_metadata/freebase/labeled_edges.tsv", 3 | "is kb": true, 4 | "alias file": "/home/mg1/data/freebase/freebase-just-relation-triples.aliases", 5 | "alias file format": "freebase", 6 | "aliases only": true 7 | } 8 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/subgraphs_pra_no_bias.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "include bias": false 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/subgraphs_pra_one_sided.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", 8 | "OneSidedFeatureExtractor" 9 | ] 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/test/scala/edu/cmu/ml/rtw/pra/experiments/DriverSpec.scala: -------------------------------------------------------------------------------- 1 | package edu.cmu.ml.rtw.pra.experiments 2 | 3 | import org.scalatest._ 4 | 5 | class DriverSpec extends FlatSpecLike with Matchers { 6 | // TODO(matt): I moved what few tests I had here to a new location as part of some refactoring. 7 | // I need to add tests for the important parts of Driver. 8 | } 9 | -------------------------------------------------------------------------------- /examples/experiment_specs/hoffmann/features.json: -------------------------------------------------------------------------------- 1 | { 2 | "graph": "hoffmann_freebase", 3 | "relation metadata": "freebase", 4 | "split": "hoffmann_freebase", 5 | "operation": { 6 | "mode": "explore graph", 7 | "explore": { 8 | "walks per source": 200, 9 | "path finding iterations": 3 10 | } 11 | "data": "both" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /comparisons/rescal/README.md: -------------------------------------------------------------------------------- 1 | # Comparing to RESCAL 2 | 3 | This directory contains code for running RESCAL on the data structures created 4 | and used by the PRA code, for easier comparison. The RESCAL code is found 5 | [here](https://github.com/mnick/rescal.py). Running code in this directory 6 | assumes that you've downloaded that code and placed it on your `PYTHONPATH`. 7 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/embedded/vector_kb.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | load vector_space_walks 3 | { 4 | "graph": "load graphs/nell/kb" 5 | "operation": { 6 | "path type factory": { 7 | "embeddings": { 8 | "name": "my_svd/nell/kb", 9 | "graph": "nell/kb", 10 | "dims": 50 11 | } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /examples/experiment_specs/hoffmann/features_take_2.json: -------------------------------------------------------------------------------- 1 | { 2 | "graph": "hoffmann_freebase_take_2", 3 | "relation metadata": "freebase", 4 | "split": "hoffmann_freebase", 5 | "operation": { 6 | "mode": "explore graph", 7 | "explore": { 8 | "walks per source": 200, 9 | "path finding iterations": 3 10 | } 11 | "data": "both" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/embedded/vector_kb-t.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | load vector_space_walks 3 | { 4 | "graph": "load graphs/nell/kb-t" 5 | "operation": { 6 | "path type factory": { 7 | "embeddings": { 8 | "name": "my_svd/nell/kb-t", 9 | "graph": "nell/kb-t", 10 | "dims": 50 11 | } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /examples/param_files/vector_space_walks.json: -------------------------------------------------------------------------------- 1 | { 2 | "operation": { 3 | "features": { 4 | "path finder": { 5 | "path type factory": { 6 | "name": "VectorPathTypeFactory", 7 | "spikiness": 3, 8 | "reset weight": 0.25, 9 | "embeddings": "you'll need to override this" 10 | } 11 | } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/embedded/vector_kb_svo.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | load vector_space_walks 3 | { 4 | "graph": "load graphs/nell/kb_svo" 5 | "operation": { 6 | "path type factory": { 7 | "embeddings": { 8 | "name": "my_svd/nell/kb_svo", 9 | "graph": "nell/kb_svo", 10 | "dims": 50 11 | } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /examples/experiment_specs/negative_examples/negatives_at_training.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | { 3 | "graph": "load graphs/nell/kb_svo", 4 | "split": "nell_with_negatives", 5 | "output matrices": true, 6 | "operation": { 7 | "features": { 8 | "path follower": { 9 | "matrix accept policy": "paired-targets-only" 10 | } 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/scala/edu/cmu/ml/rtw/pra/features/extractors/FeatureExtractor.scala: -------------------------------------------------------------------------------- 1 | package edu.cmu.ml.rtw.pra.features.extractors 2 | 3 | import edu.cmu.ml.rtw.pra.data.Instance 4 | import edu.cmu.ml.rtw.pra.features.Subgraph 5 | import edu.cmu.ml.rtw.pra.graphs.Graph 6 | 7 | trait FeatureExtractor[T <: Instance] { 8 | def extractFeatures(instance: T, subgraph: Subgraph): Seq[String] 9 | } 10 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/subgraphs_pra_one_sided_catcomp.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", 8 | "OneSidedFeatureExtractor", 9 | "CategoricalComparisonFeatureExtractor" 10 | ] 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.05_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.05_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.5_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.5_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.5_l2-10.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-5.0_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-5.0_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-5.0_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-5.0_l2-10.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.005_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.005_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.005_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.005_l2-10.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.05_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.05_l2-10.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.05_l2-100.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.5_l2-100.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-5.0_l2-100.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.005_l2-100.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_l1-0.5_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /examples/experiment_specs/rescal/easy/pra.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "graph": { 4 | "name": "synthetic/small/easy", 5 | "relation sets": ["load relation_sets/synthetic/small/easy"] 6 | }, 7 | "split": "synthetic/small/easy" 8 | "operation": { 9 | "features": { 10 | "path follower": { 11 | "matrix accept policy": "paired-targets-only" 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/test/java/edu/cmu/ml/rtw/pra/features/FakeVertexIdTranslate.java: -------------------------------------------------------------------------------- 1 | package edu.cmu.ml.rtw.pra.features; 2 | 3 | import edu.cmu.graphchi.preprocessing.VertexIdTranslate; 4 | 5 | public class FakeVertexIdTranslate extends VertexIdTranslate { 6 | 7 | public FakeVertexIdTranslate() { 8 | super(); 9 | } 10 | 11 | @Override 12 | public int forward(int nodeId) { 13 | return nodeId; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /examples/experiment_specs/debugging/create_hanie_split.json: -------------------------------------------------------------------------------- 1 | { 2 | "graph": "freebase", 3 | "split": { 4 | "type":"add negatives to split", 5 | "from split":"hanie", 6 | "name":"hanie_with_negatives", 7 | "relation metadata":"freebase", 8 | "graph":"freebase", 9 | "negative instances":{ 10 | "negative to positive ratio":10 11 | } 12 | }, 13 | "operation": { 14 | "type": "no op" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /examples/experiment_specs/rescal/less_easy/pra.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "graph": { 4 | "name": "synthetic/small/less_easy", 5 | "relation sets": ["load relation_sets/synthetic/small/less_easy"] 6 | }, 7 | "split": "synthetic/small/less_easy" 8 | "operation": { 9 | "features": { 10 | "path follower": { 11 | "matrix accept policy": "paired-targets-only" 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /examples/experiment_specs/rescal/very_easy/pra.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "graph": { 4 | "name": "synthetic/small/very_easy", 5 | "relation sets": ["load relation_sets/synthetic/small/very_easy"] 6 | }, 7 | "split": "synthetic/small/very_easy" 8 | "operation": { 9 | "features": { 10 | "path follower": { 11 | "matrix accept policy": "paired-targets-only" 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-10.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-10.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-100.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-100.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/final_emnlp2015/sfe_pra.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "split": "final_nell_split_with_negatives", 5 | "operation": { 6 | "features": { 7 | "feature extractors": [ 8 | "PraFeatureExtractor" 9 | ], 10 | "feature size": -1 11 | }, 12 | "learning": { 13 | "l1 weight": 0.5, 14 | "l2 weight": 0.01 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/baseline_vs.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_pra_parameters 3 | load vector_space_walks 4 | { 5 | "operation": { 6 | "features": { 7 | "path finder": { 8 | "path type factory": { 9 | "embeddings": "pca_svo" 10 | } 11 | } 12 | "path follower": { 13 | "matrix accept policy": "paired-targets-only" 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-10.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-100.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-100.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-10.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-0.1_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-1.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-0.1_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-0.1_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-1.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-1.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-10.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-0.01_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-0.1_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-0.1_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-1.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-1.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-10.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-0.01_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-0.01_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-0.1_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-0.1_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-1.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-1.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-10.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-10.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-100.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-0.01_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-0.01_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-0.1_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-1.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-10.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-10.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-100.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.05_l2-100.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-0.01_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-0.01_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-10.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-100.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.5_l2-100.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-0.01_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-10.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-100.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-5.0_l2-100.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_l1-0.005_l2-100.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/freebase/arvind/sfe_pra.json: -------------------------------------------------------------------------------- 1 | load arvind_data_experiment 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "path finder": { 7 | "walks per source": 2000 8 | } 9 | "feature extractors": [ 10 | "PraFeatureExtractor" 11 | ], 12 | "feature size": -1 13 | } 14 | "learning": { 15 | "l1 weight": 0.5, 16 | "l2 weight": 0.01 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /examples/experiment_specs/semparse/mid_pairs.json: -------------------------------------------------------------------------------- 1 | { 2 | "graph": "freebase", 3 | "split": "semparse_mid_pairs", 4 | "operation": { 5 | "type": "create matrices", 6 | "features": { 7 | "type": "subgraphs", 8 | "path finder": { 9 | "type": "BfsPathFinder", 10 | "number of steps": 2 11 | }, 12 | "feature extractors": [ 13 | "PraFeatureExtractor" 14 | ], 15 | "feature size": -1 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/experiment_specs/synthetic/small/rescal_pra_easy.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "graph": { 4 | "name": "synthetic/small/easy", 5 | "relation sets": ["load relation_sets/synthetic/small/easy"] 6 | }, 7 | "split": "synthetic/small/easy" 8 | "operation": { 9 | "path follower": { 10 | "name": "rescal matrix multiplication", 11 | "rescal dir": "/home/mg1/pra/comparisons/rescal/synthetic/small/easy/" 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /examples/experiment_specs/synthetic/small/rescal_pra_hard.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "graph": { 4 | "name": "synthetic/small/hard", 5 | "relation sets": ["load relation_sets/synthetic/small/hard"] 6 | }, 7 | "split": "synthetic/small/hard" 8 | "operation": { 9 | "path follower": { 10 | "name": "rescal matrix multiplication", 11 | "rescal dir": "/home/mg1/pra/comparisons/rescal/synthetic/small/hard/" 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /examples/param_files/default_subgraph_parameters.json: -------------------------------------------------------------------------------- 1 | { 2 | "operation": { 3 | "type": "train and test", 4 | "features": { 5 | "type": "subgraphs", 6 | "path finder": { 7 | "type": "RandomWalkPathFinder", 8 | "walks per source": 200, 9 | "path finding iterations": 3, 10 | "path accept policy": "paired-only" 11 | } 12 | }, 13 | "learning": { 14 | "l1 weight": 0.005, 15 | "l2 weight": 1 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/experiment_specs/negative_examples/standard.json: -------------------------------------------------------------------------------- 1 | load base_nell_pra_parameters 2 | { 3 | "graph": "load graphs/nell/kb_svo", 4 | "split": "nell_with_negatives_at_test", 5 | "output matrices": true, 6 | "operation": { 7 | "features": { 8 | "path follower": { 9 | "matrix accept policy": "delete", 10 | "matrix accept policy: training": "all-targets", 11 | "matrix accept policy: test": "paired-targets-only" 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-10.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-10.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-100.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-10.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-100.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/multilingual/fr-sw/kb_fr.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "split": "multilingual/fr_sw", 4 | "graph": { 5 | "name": "multilingual/fb_fr", 6 | "relation sets": [ 7 | "load relation_sets/freebase/kb", 8 | "load relation_sets/multilingual/french", 9 | "load relation_sets/multilingual/french_contains_alias" 10 | ], 11 | "create matrices": false 12 | "deduplicate edges": true 13 | } 14 | "relation metadata": "freebase" 15 | } 16 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-10.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-100.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-100.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": -1 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /src/main/java/edu/cmu/ml/rtw/pra/features/PathTypeSelector.java: -------------------------------------------------------------------------------- 1 | package edu.cmu.ml.rtw.pra.features; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | /** 7 | * Given the results of the path finding random walk (i.e., a map from path types to counts), 8 | * this object determines which path types to keep, possibly merging some of them. 9 | */ 10 | public interface PathTypeSelector { 11 | List selectPathTypes(Map pathCounts, int numPathsToKeep); 12 | } 13 | -------------------------------------------------------------------------------- /examples/experiment_specs/multilingual/fr-sw/kb_sw.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "split": "multilingual/fr_sw", 4 | "graph": { 5 | "name": "multilingual/fb_sw", 6 | "relation sets": [ 7 | "load relation_sets/freebase/kb", 8 | "load relation_sets/multilingual/swahili", 9 | "load relation_sets/multilingual/swahili_contains_alias" 10 | ], 11 | "create matrices": false 12 | "deduplicate edges": true 13 | } 14 | "relation metadata": "freebase" 15 | } 16 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/final_emnlp2015/sfe_pra_one_sided.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "split": "final_nell_split_with_negatives", 5 | "operation": { 6 | "features": { 7 | "feature extractors": [ 8 | "PraFeatureExtractor", 9 | "OneSidedFeatureExtractor" 10 | ], 11 | "feature size": -1 12 | } 13 | "learning": { 14 | "l1 weight": 0.05, 15 | "l2 weight": 0.01 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-0.1_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-1.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-0.01_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-0.1_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-0.1_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-1.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-1.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-10.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-0.01_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-0.01_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-0.1_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-0.1_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-1.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-1.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-10.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-10.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-100.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-0.01_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-0.01_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-0.1_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-0.1_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-1.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-1.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-10.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-10.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-0.01_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-0.01_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-0.1_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 0.1 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-1.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 1.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-10.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-10.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-100.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-0.01_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 0.01 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-10.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 10.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-100.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.05_l2-100.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.05, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.5_l2-100.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.5, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-100.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/freebase/arvind/sfe_pra_anyrel.json: -------------------------------------------------------------------------------- 1 | load arvind_data_experiment 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "path finder": { 7 | "walks per source": 2000 8 | } 9 | "feature extractors": [ 10 | "PraFeatureExtractor", 11 | "AnyRelFeatureExtractor" 12 | ], 13 | "feature size": -1 14 | } 15 | "learning": { 16 | "l1 weight": 0.5, 17 | "l2 weight": 0.01 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-0.005_l2-100.0_f-100000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 100000 10 | } 11 | "learning": { 12 | "l1 weight": 0.005, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/tuning/pra_one_sided_catcomp_l1-5.0_l2-100.0_f-10000.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "feature extractors": [ 7 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 8 | ], 9 | "feature size": 10000 10 | } 11 | "learning": { 12 | "l1 weight": 5.0, 13 | "l2 weight": 100.0 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /examples/experiment_specs/freebase/arvind/sfe_pra_bigrams.json: -------------------------------------------------------------------------------- 1 | load arvind_data_experiment 2 | load default_subgraph_parameters 3 | { 4 | "operation": { 5 | "features": { 6 | "path finder": { 7 | "walks per source": 2000 8 | } 9 | "feature extractors": [ 10 | "PraFeatureExtractor", 11 | "PathBigramsFeatureExtractor" 12 | ], 13 | "feature size": -1 14 | } 15 | "learning": { 16 | "l1 weight": 0.5, 17 | "l2 weight": 0.01 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /examples/experiment_specs/semparse/mids.json: -------------------------------------------------------------------------------- 1 | { 2 | "graph": "freebase", 3 | "split": { 4 | "name": "semparse_mids", 5 | "type": "node" 6 | }, 7 | "operation": { 8 | "type": "create matrices", 9 | "features": { 10 | "type": "subgraphs", 11 | "path finder": { 12 | "type": "BfsPathFinder", 13 | "number of steps": 2 14 | }, 15 | "feature extractors": [ 16 | "PathOnlyFeatureExtractor" 17 | ], 18 | "feature size": -1 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_models/svm_linear.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "type": "svm", 18 | "kernel": "linear" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_l1-0.5_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_l1-0.5_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_models/svm_quadratic.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "type": "svm", 18 | "kernel": "quadratic" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_l1-0.005_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_l1-0.005_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_l1-0.005_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_l1-0.05_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_l1-0.05_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_l1-0.05_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_l1-0.5_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/final_emnlp2015/sfe_bfs_pra.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "final_nell_split_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/final_emnlp2015/sfe_pra_one_sided_catcomp.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | load default_subgraph_parameters 3 | { 4 | "split": "final_nell_split_with_negatives", 5 | "operation": { 6 | "features": { 7 | "feature extractors": [ 8 | "PraFeatureExtractor", 9 | "OneSidedFeatureExtractor", 10 | "CategoricalComparisonFeatureExtractor" 11 | ], 12 | "feature size": -1 13 | } 14 | "learning": { 15 | "l1 weight": 0.05, 16 | "l2 weight": 0.1 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/subgraphs_pra_no_bias.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 1 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/subgraphs_pra_one_sided.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "operation": { 4 | "features": { 5 | "type": "subgraphs", 6 | "path finder": { 7 | "type": "BfsPathFinder", 8 | "number of steps": 2 9 | }, 10 | "feature extractors": [ 11 | "PraFeatureExtractor", 12 | "OneSidedFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 1 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/subgraphs_pra_catcomp.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "operation": { 4 | "features": { 5 | "type": "subgraphs", 6 | "path finder": { 7 | "type": "BfsPathFinder", 8 | "number of steps": 2 9 | }, 10 | "feature extractors": [ 11 | "PraFeatureExtractor", 12 | "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 1 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/experiment_specs/multilingual/french_test/all_svo_vs.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | load vector_space_walks 3 | { 4 | "graph": "multilingual/all_svo", 5 | "split": "multilingual/french_test", 6 | "relation metadata": "freebase", 7 | "operation": { 8 | "features": { 9 | "path finder": { 10 | "path type factory": { 11 | "embeddings": { 12 | "name": "my_svd/multilingual/all_svo", 13 | "graph": "multilingual/all_svo", 14 | "dims": 50 15 | } 16 | } 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_anyrel_l1-0.5_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""AnyRelFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_anyrel_l1-0.5_l2-0.5.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""AnyRelFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.5 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/multilingual/all_languages/all_svo_vs.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | load vector_space_walks 3 | { 4 | "graph": "multilingual/all_svo", 5 | "split": "multilingual/all_languages", 6 | "relation metadata": "freebase", 7 | "operation": { 8 | "features": { 9 | "path finder": { 10 | "path type factory": { 11 | "embeddings": { 12 | "name": "my_svd/multilingual/all_svo", 13 | "graph": "multilingual/all_svo", 14 | "dims": 50 15 | } 16 | } 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /examples/experiment_specs/multilingual/french_test/kb_all_svo_vs.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | load vector_space_walks 3 | { 4 | "graph": "multilingual/fb_all_svo", 5 | "split": "multilingual/french_test", 6 | "relation metadata": "freebase", 7 | "operation": { 8 | "features": { 9 | "path finder": { 10 | "path type factory": { 11 | "embeddings": { 12 | "name": "my_svd/multilingual/all_svo", 13 | "graph": "multilingual/all_svo", 14 | "dims": 50 15 | } 16 | } 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_anyrel_l1-0.05_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""AnyRelFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_anyrel_l1-0.05_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""AnyRelFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_anyrel_l1-0.05_l2-0.5.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""AnyRelFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.5 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_anyrel_l1-0.5_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""AnyRelFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/multilingual/all_languages/kb_all_svo_vs.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | load vector_space_walks 3 | { 4 | "graph": "multilingual/fb_all_svo", 5 | "split": "multilingual/all_languages", 6 | "relation metadata": "freebase", 7 | "operation": { 8 | "features": { 9 | "path finder": { 10 | "path type factory": { 11 | "embeddings": { 12 | "name": "my_svd/multilingual/all_svo", 13 | "graph": "multilingual/all_svo", 14 | "dims": 50 15 | } 16 | } 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_l1-0.005_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_l1-0.05_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_l1-0.05_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_l1-0.5_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_l1-0.5_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_l1-0.05_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_l1-0.05_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_l1-0.5_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_l1-0.5_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_l1-0.5_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_models/lr_baseline.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "type": "logistic regression", 18 | "l1 weight": 0.005, 19 | "l2 weight": 1 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_l1-0.005_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_l1-0.005_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_l1-0.005_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_l1-0.005_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_l1-0.05_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/param_files/graphs/images/c+gt+sr.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "images/c+gt+sr", 3 | "relation sets": [ 4 | "load relation_sets/images/spatial_relationships_train", 5 | "load relation_sets/images/spatial_relationships_val", 6 | "load relation_sets/images/spatial_relationships_test", 7 | "load relation_sets/images/classifier_output_train", 8 | "load relation_sets/images/classifier_output_val", 9 | "load relation_sets/images/classifier_output_test", 10 | "load relation_sets/images/ground_truth_train", 11 | "load relation_sets/images/ground_truth_val" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_catcomp_l1-0.05_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_catcomp_l1-0.05_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_catcomp_l1-0.5_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_catcomp_l1-0.5_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_catcomp_l1-0.5_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/rescal/easy/rescal_pra.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "graph": { 4 | "name": "synthetic/small/easy", 5 | "relation sets": ["load relation_sets/synthetic/small/easy"] 6 | }, 7 | "split": "synthetic/small/easy" 8 | "operation": { 9 | "features": { 10 | "path follower": { 11 | "walks per path": "delete", 12 | "matrix accept policy": "paired-targets-only", 13 | "name": "rescal matrix multiplication", 14 | "rescal dir": "/home/mg1/pra/comparisons/rescal/synthetic/small/easy/" 15 | } 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/final_emnlp2015/sfe_bfs_pra_anyrel.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "final_nell_split_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", 13 | "AnyRelFeatureExtractor" 14 | ], 15 | "feature size": -1 16 | } 17 | "learning": { 18 | "l1 weight": 0.5, 19 | "l2 weight": 0.01 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_catcomp_l1-0.005_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_catcomp_l1-0.005_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_catcomp_l1-0.005_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_catcomp_l1-0.05_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_models/svm_rbf_0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "type": "svm", 18 | "kernel": { 19 | "type": "rbf", 20 | "gamma": 0.01 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_models/svm_rbf_0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "type": "svm", 18 | "kernel": { 19 | "type": "rbf", 20 | "gamma": 0.1 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_models/svm_rbf_1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "type": "svm", 18 | "kernel": { 19 | "type": "rbf", 20 | "gamma": 1.0 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_models/svm_rbf_10.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "type": "svm", 18 | "kernel": { 19 | "type": "rbf", 20 | "gamma": 10 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_models/svm_rbf_1e-4.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "type": "svm", 18 | "kernel": { 19 | "type": "rbf", 20 | "gamma": 1e-4 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_models/svm_rbf_1e-5.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "type": "svm", 18 | "kernel": { 19 | "type": "rbf", 20 | "gamma": 1e-5 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_models/svm_rbf_1e-6.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "type": "svm", 18 | "kernel": { 19 | "type": "rbf", 20 | "gamma": 1e-6 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_models/svm_rbf_1e-7.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "type": "svm", 18 | "kernel": { 19 | "type": "rbf", 20 | "gamma": 1e-7 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/final_emnlp2015/sfe_bfs_pra_bigrams.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "final_nell_split_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", 13 | "PathBigramsFeatureExtractor" 14 | ], 15 | "feature size": -1 16 | } 17 | "learning": { 18 | "l1 weight": 0.5, 19 | "l2 weight": 0.1 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/final_emnlp2015/sfe_bfs_pra_one_sided.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "final_nell_split_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", 13 | "OneSidedFeatureExtractor" 14 | ], 15 | "feature size": -1 16 | } 17 | "learning": { 18 | "l1 weight": 0.5, 19 | "l2 weight": 0.01 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_models/svm_rbf_0.001.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor" 13 | ], 14 | "include bias": false 15 | }, 16 | "learning": { 17 | "type": "svm", 18 | "kernel": { 19 | "type": "rbf", 20 | "gamma": 0.001 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/final_emnlp2015/sfe_bfs_pra_catcomp.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "final_nell_split_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", 13 | "CategoricalComparisonFeatureExtractor" 14 | ], 15 | "feature size": -1 16 | } 17 | "learning": { 18 | "l1 weight": 0.5, 19 | "l2 weight": 0.1 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /examples/param_files/default_pra_parameters.json: -------------------------------------------------------------------------------- 1 | { 2 | "operation": { 3 | "type": "train and test", 4 | "features": { 5 | "path finder": { 6 | "walks per source": 100, 7 | "path finding iterations": 3, 8 | "path accept policy": "paired-only" 9 | }, 10 | "path selector": { 11 | "number of paths to keep": 1000 12 | }, 13 | "path follower": { 14 | "walks per path": 50, 15 | "matrix accept policy": "all-targets" 16 | } 17 | }, 18 | "learning": { 19 | "l1 weight": 0.005, 20 | "l2 weight": 1 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /examples/experiment_specs/multilingual/fr-sw/kb_fr_sw.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "split": "multilingual/fr_sw", 4 | "graph": { 5 | "name": "multilingual/fb_fr_sw", 6 | "relation sets": [ 7 | "load relation_sets/freebase/kb", 8 | "load relation_sets/multilingual/french", 9 | "load relation_sets/multilingual/french_contains_alias", 10 | "load relation_sets/multilingual/swahili", 11 | "load relation_sets/multilingual/swahili_contains_alias" 12 | ], 13 | "create matrices": false 14 | "deduplicate edges": true 15 | } 16 | "relation metadata": "freebase" 17 | } 18 | -------------------------------------------------------------------------------- /examples/experiment_specs/rescal/less_easy/rescal_pra.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "graph": { 4 | "name": "synthetic/small/less_easy", 5 | "relation sets": ["load relation_sets/synthetic/small/less_easy"] 6 | }, 7 | "split": "synthetic/small/less_easy" 8 | "operation": { 9 | "features": { 10 | "path follower": { 11 | "walks per path": "delete", 12 | "matrix accept policy": "paired-targets-only", 13 | "name": "rescal matrix multiplication", 14 | "rescal dir": "/home/mg1/pra/comparisons/rescal/synthetic/small/less_easy/" 15 | } 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/experiment_specs/rescal/very_easy/rescal_pra.json: -------------------------------------------------------------------------------- 1 | load default_pra_parameters 2 | { 3 | "graph": { 4 | "name": "synthetic/small/very_easy", 5 | "relation sets": ["load relation_sets/synthetic/small/very_easy"] 6 | }, 7 | "split": "synthetic/small/very_easy" 8 | "operation": { 9 | "features": { 10 | "path follower": { 11 | "walks per path": "delete", 12 | "matrix accept policy": "paired-targets-only", 13 | "name": "rescal matrix multiplication", 14 | "rescal dir": "/home/mg1/pra/comparisons/rescal/synthetic/small/very_easy/" 15 | } 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/subgraphs_pra_one_sided_catcomp.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "operation": { 4 | "features": { 5 | "type": "subgraphs", 6 | "path finder": { 7 | "type": "BfsPathFinder", 8 | "number of steps": 2 9 | }, 10 | "feature extractors": [ 11 | "PraFeatureExtractor", 12 | "OneSidedFeatureExtractor", 13 | "CategoricalComparisonFeatureExtractor" 14 | ], 15 | "include bias": false 16 | }, 17 | "learning": { 18 | "l1 weight": 0.005, 19 | "l2 weight": 1 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_catcomp_l1-0.005_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_catcomp_l1-0.005_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_catcomp_l1-0.05_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_catcomp_l1-0.05_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_catcomp_l1-0.05_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_catcomp_l1-0.5_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_catcomp_l1-0.5_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_catcomp_l1-0.5_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_one_sided_catcomp_l1-0.005_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", "OneSidedFeatureExtractor", "CategoricalComparisonFeatureExtractor" 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/final_emnlp2015/sfe_bfs_pra_one_sided_catcomp.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "final_nell_split_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", 13 | "OneSidedFeatureExtractor", 14 | "CategoricalComparisonFeatureExtractor" 15 | ], 16 | "feature size": -1 17 | } 18 | "learning": { 19 | "l1 weight": 0.5, 20 | "l2 weight": 0.01 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_vs_l1-0.005_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", {"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_vs_l1-0.005_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", {"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_vs_l1-0.05_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", {"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_vs_l1-0.05_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", {"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_vs_l1-0.05_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", {"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_vs_l1-0.5_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", {"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_vs_l1-0.5_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", {"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_vs_l1-0.5_l2-1.0.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", {"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 1.0 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/java/edu/cmu/ml/rtw/pra/features/PathTypeVertexCache.java: -------------------------------------------------------------------------------- 1 | package edu.cmu.ml.rtw.pra.features; 2 | 3 | /** 4 | * Allows for some computation to be done for each vertex, instead of for each walk, if the 5 | * computation only depends on the vertex. Classes that implement this interface will define their 6 | * own data structures and methods, and should cast to the subtype in the methods that use the 7 | * cache. 8 | * 9 | * One example of this is computing the distribution over edge types for a vector space walk - it 10 | * depends on the path type and the edges at the vertex, but not on the individual walk. 11 | */ 12 | public interface PathTypeVertexCache { } 13 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_vs_l1-0.005_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor", {"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/java/edu/cmu/ml/rtw/pra/features/MostFrequentPathTypeSelector.java: -------------------------------------------------------------------------------- 1 | package edu.cmu.ml.rtw.pra.features; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import com.mattg.util.MapUtil; 7 | 8 | public class MostFrequentPathTypeSelector implements PathTypeSelector { 9 | 10 | @Override 11 | public List selectPathTypes(Map pathCounts, int numPathsToKeep) { 12 | System.out.println("SELECTING PATH TYPES - MostFrequentPathTypeSelector"); 13 | if (numPathsToKeep == -1) { 14 | return MapUtil.getKeysSortedByValue(pathCounts, true); 15 | } 16 | return MapUtil.getTopKeys(pathCounts, numPathsToKeep); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-0.005_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-0.05_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-0.05_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.05, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-0.5_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-0.5_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-0.5_l2-0.5.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.5 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-0.5_l2-0.9.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.5, 18 | "l2 weight": 0.9 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-0.7_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.7, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-0.7_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.7, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-0.7_l2-0.5.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.7, 18 | "l2 weight": 0.5 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-0.7_l2-0.9.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.7, 18 | "l2 weight": 0.9 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-1.0_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 1.0, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-1.0_l2-0.1.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 1.0, 18 | "l2 weight": 0.1 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-1.0_l2-0.5.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 1.0, 18 | "l2 weight": 0.5 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-1.0_l2-0.9.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 1.0, 18 | "l2 weight": 0.9 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/java/edu/cmu/ml/rtw/pra/features/FeatureMatrix.java: -------------------------------------------------------------------------------- 1 | package edu.cmu.ml.rtw.pra.features; 2 | 3 | import java.io.FileWriter; 4 | import java.io.IOException; 5 | import java.util.Collections; 6 | import java.util.List; 7 | 8 | public class FeatureMatrix { 9 | private final List rows; 10 | 11 | public FeatureMatrix(List rows) { 12 | this.rows = rows; 13 | } 14 | 15 | public int size() { 16 | return rows.size(); 17 | } 18 | 19 | public List getRows() { 20 | return rows; 21 | } 22 | 23 | public MatrixRow getRow(int i) { 24 | return rows.get(i); 25 | } 26 | 27 | public void shuffle() { 28 | Collections.shuffle(rows); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /examples/experiment_specs/debugging/create_final_nell_split.json: -------------------------------------------------------------------------------- 1 | { 2 | "graph": "nell/kb" 3 | "split": { 4 | "name":"final_nell_split", 5 | "relation metadata":"nell", 6 | "graph":"nell/kb", 7 | "percent training":0.8, 8 | "relations":["concept:riverflowsthroughcity","concept:sportsteampositionforsport","concept:citylocatedincountry","concept:athleteplaysforteam","concept:writerwrotebook","concept:actorstarredinmovie","concept:journalistwritesforpublication","concept:stadiumlocatedincity","concept:statehaslake","concept:teamplaysinleague"], 9 | "negative instances":{ 10 | "negative to positive ratio":10 11 | } 12 | } 13 | "operation": { 14 | "type": "no op" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /examples/experiment_specs/nell/new_features/bfs/tuning/pra_bigrams_vs_l1-0.005_l2-0.01.json: -------------------------------------------------------------------------------- 1 | load new_feature_experiment_base 2 | { 3 | "split": "nell_with_negatives", 4 | "operation": { 5 | "features": { 6 | "type": "subgraphs", 7 | "path finder": { 8 | "type": "BfsPathFinder", 9 | "number of steps": 2 10 | }, 11 | "feature extractors": [ 12 | "PraFeatureExtractor""PathBigramsFeatureExtractor"{"name": "VectorSimilarityFeatureExtractor", "matrix name": "my_svd/nell/kb-t_svo/similarity_matrix_0.8_3_20_max_10"} 13 | ], 14 | "feature size": -1 15 | } 16 | "learning": { 17 | "l1 weight": 0.005, 18 | "l2 weight": 0.01 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/test/java/edu/cmu/ml/rtw/pra/features/FakeChiEdge.java: -------------------------------------------------------------------------------- 1 | package edu.cmu.ml.rtw.pra.features; 2 | 3 | import edu.cmu.graphchi.ChiEdge; 4 | 5 | public class FakeChiEdge implements ChiEdge { 6 | private int edgeType; 7 | private int targetVertex; 8 | 9 | public FakeChiEdge(int targetVertex, int edgeType) { 10 | this.edgeType = edgeType; 11 | this.targetVertex = targetVertex; 12 | } 13 | 14 | @Override 15 | public Integer getValue() { 16 | return edgeType; 17 | } 18 | 19 | @Override 20 | public int getVertexId() { 21 | return targetVertex; 22 | } 23 | 24 | @Override 25 | public void setValue(Integer arg0) { 26 | } 27 | } 28 | --------------------------------------------------------------------------------