All Downloads are FREE. Search and download functionalities are using the official Maven repository.

axle.pgm.docalculus.DeleteObservation.scala Maven / Gradle / Ivy

The newest version!
package axle.pgm.docalculus

import spire.algebra.Eq
import spire.algebra.Field

object DeleteObservation extends Rule {

  def apply[T: Eq, N: Field](q: CausalityProbability[T, N], m: CausalModel[T, N], namer: VariableNamer[T, N]): List[Form] = {

    val Y = q.question
    val X = q.actions
//    val subModel = m.duplicate()
//    subModel.graph.removeInputs(subModel.nodesFor(X))

//    q.given.flatMap(zObservation => {
//      val W = q.given - zObservation
//      if (subModel.blocks(q.given, Set(zObservation), W ++ X)) {
//        Some(CausalityProbability(Y, W, X))
//      } else {
//        None
//      }
//    }).toList

    Nil // TODO
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy