Giter Club home page Giter Club logo

dagdna's Introduction

Definite Non-Ancestral Relations and Structure Learning

This is an implemetation of the structure learning algorithm using definite non-ancestral (DNA) relations as intermediate instrument. A modified version of sparsest permutation algorithm (SP) is implemneted in this package.

Installation

# install.packages("devtools")
devtools::install_github("WY-Chen/DAGDNA")

DNA Learning Methods

Learning DNA from sample.

LearnDNAforward(
  dat,  #dat$X hold the data matrix. 
  k,    #learning level
  CIFUN_skel, #Conditional independence test used for skeleton learning. 
              #CIFUN(x,y,S) returns 0 (dependence) or 1 (independence)
  CIFUN_DNA   #Conditional independence test used for DNA learning. 
              #CIFUN(x,y,S) returns 0 (dependence) or 1 (independence)
  )

Deduce all DNA from known DAG.

allDNA(
  g #DAG matrix (g_ij=1 if and only if i->j)
  )

Given an arbitrary set of DNA, deduce an order-constraining DNA set and layering of DAG.

orderConstraining(
  D, #DNA output
  verbose=F
  )

Modified Structure Learning Methods

SparsestPermutation(
  X,      #observed data
  DNA=F,  #use DNA learning or not
  k=0,    #if DNA=T, set level of DNA learning
  alpha=0.05,  #significance level in CI test (gaussCItest)
  r=5,    #number of restarts
  d=5,    #depth of SP search
  verbose=F #if true, prints the learning path with scores
  )

dagdna's People

Contributors

wy-chen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.