Skip to content

Affiliation Prediction Workflow

Wongiseng edited this page Oct 8, 2013 · 2 revisions

##Maven Pom

    <groupId>data2semantics</groupId>
    <artifactId>test</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>test</name>
    

    <repositories>
        <repository>
          <id>ducktape-nexus</id>
          <url>http://ducktape.wongiseng.com/nexus/content/repositories/snapshots</url>
          </repository>
    </repositories>

  <dependencies>
    
    <dependency>
      <groupId>data2semantics</groupId>
      <artifactId>d2s-platform-experiments</artifactId>
      <version>0.0.1-SNAPSHOT</version>
    </dependency>
 

  </dependencies>
 </project>

Source

##Workflow workflow: name: "Affiliation Experiment Test" modules:

   - module:
      name: RDFDataSet
      source: org.data2semantics.exp.modules.RDFDataSetModule
      inputs:
         filename: {0}
         mimetype: "text/n3"
      
   - module:
      name: AffiliationDataSet
      source: org.data2semantics.exp.modules.AffiliationDataSetModule
      inputs: 
         dataset:
            reference: RDFDataSet.dataset
         minSize: 0
         fraction: 1.0
         seed: 11
         property: "http://swrc.ontoware.org/ontology#affiliation"
         
   - module: 
      name: LibLINEARParms
      source: org.data2semantics.exp.modules.LibLINEARParmsModule
      inputs:
         cs: [0.001, 0.01, 0.1, 1.0, 10.0, 100.0, 1000.0]
         splitFraction: 0.7
         target:
            reference: AffiliationDataSet.target
            
   - module: 
      name: RDFWLSubTreeKernel
      source: org.data2semantics.exp.modules.RDFWLSubTreeKernelModule
      inputs:
         iterations: [0, 2, 4]
         depth: [1, 2]
         inference: true
         normalize: true
         reverse: false
         dataset:
            reference: RDFDataSet.dataset
         instances:
            reference: AffiliationDataSet.instances
         blacklist:
            reference: AffiliationDataSet.blacklist
            
            
   - module: 
      name: RDFIntersectionTreeEdgeVertexPathKernel
      source: org.data2semantics.exp.modules.RDFIntersectionTreeEdgeVertexPathKernelModule
      inputs:
         depth: [1, 2]
         probabilities: false
         inference: true
         normalize: true
         dataset:
            reference: RDFDataSet.dataset
         instances:
            reference: AffiliationDataSet.instances
         blacklist:
            reference: AffiliationDataSet.blacklist
            
         
   - module:
      name: Experiment
      source: org.data2semantics.exp.modules.ExperimentModule
      inputs:
         featureVectors:         
              - reference: RDFWLSubTreeKernel.featureVectors
              - reference: RDFIntersectionTreeEdgeVertexPathKernel.featureVectors
         target:
            reference: AffiliationDataSet.target
         parms:
            reference: LibLINEARParms.parameters
         seed: 111
         folds: 5
      

[Source](http://paste.debian.net/plain/53452)
Clone this wiki locally