Giter Club home page Giter Club logo

optimaladj's Introduction

Hello, I'm Facundo (Facu) Sapienza πŸ‘‹!

I am a PhD candidate in the Department of Statistics at the University of California Berkeley working under the supervision of Fernando PΓ©rez and Jonathan Taylor. Previourly finished my Bsc/Msc (Licenciatura) in Physics and Mathematics in the University of Buenos AiresπŸ‡¦πŸ‡·.

  • πŸ”­ I’m currently working on:
    • 🧊 ODINN.jl: Global glacier model using Universal Differential Equations for climate-glacier interactions. Integrating the Julia differential programming tools with the Open Global Glacier Model (OGGM) in Python.
    • 🌎 PolarWandering: Statistical modelling of Paleomagnetic data.
  • 🌱 I’m currently learning about sensitivity methods for differential equations. Interested in participating? Check out our review paper and contribute to it!
  • πŸ‘¨β€πŸ« I am interested in teaching machine learning for geophysisc and good practices fordeveloping open, reproducible and collaborative scientific software.
  • πŸ‘― I’m looking to collaborate with people interested in the intersection between machine learning, geophysics and scientific computing.
  • πŸ“« How to reach me: feel free to send me an email to fsapienza@berkeley@edu.
  • πŸ˜„ Pronouns: He/Him

optimaladj's People

Contributors

esmucler avatar facusapienza21 avatar kirtanp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kirtanp

optimaladj's Issues

If condition not cleared when all nodes are passed as N

With reference, to the following line, wouldn't the condition N == self.nodes() always be False? Because N is passed as an array, and self.nodes() has the type NodeView.

elif N == self.nodes() or set(N).issubset(

Here is a minimal example I thought should work but doesn't. But perhaps I'm missing something. Let me know if this makes sense and I can PR a simple fix.

import numpy as np
import networkx as nx
from optimaladj.CausalGraph import CausalGraph

A = np.array(([[0., 0., 0., 1., 1., 0., 1.],
        [0., 0., 1., 1., 0., 1., 1.],
        [0., 0., 0., 1., 0., 1., 1.],
        [0., 0., 0., 0., 0., 0., 1.],
        [0., 0., 0., 0., 0., 0., 0.],
        [0., 0., 0., 0., 0., 0., 1.],
        [0., 0., 0., 0., 0., 0., 0.]]))
G_temp = nx.from_numpy_array(A, create_using=nx.DiGraph)

G = CausalGraph()

G.add_nodes_from(G_temp.nodes(data=True))
G.add_edges_from(G_temp.edges(data=True))

nodes = list(G.nodes)

treatment = nodes[-2]
outcome = nodes[-1]
L = []
N = nodes

G.optimal_adj_set(treatment, outcome, L, N)

The result is

ConditionException: Conditions to guarantee the existence of an optimal adjustment set are not satisfied

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.