class_docstr: Base class for all sklearn wrappers of the StructureModel.
  Implements the sklearn .fit and .predict interface.
class_docstr_tok: ["Base","class","for","all","sklearn","wrappers","of","the","StructureModel",".","Implements","the","sklearn",".fit","and",".predict","interface","."]
docstr: Get the edges to a specific node.
  Args:
      name: The name of the node which to get weights towards.
  
      data: The edge parameter to get. Default is "weight" to return
            the adjacency matrix. Set to "mean_effect" to return the
            signed average effect of features on the target node.
  
  Returns:
      The specified edge data.
docstr_tok: ["Get","the","edges","to","a","specific","node",".","Args",":","name",":","The","name","of","the","node","which","to","get","weights","towards",".","data",":","The","edge","parameter","to","get",".","Default","is","``","weight","''","to","return","the","adjacency","matrix",".","Set","to","``","mean_effect","''","to","return","the","signed","average","effect","of","features","on","the","target","node",".","Returns",":","The","specified","edge","data","."]
code: def get_edges_to_node(
      self, name: str, data: str = "weight"
  ) -> pd.Series:
      """
      Get the edges to a specific node.
      Args:
          name: The name of the node which to get weights towards.
  
          data: The edge parameter to get. Default is "weight" to return
                the adjacency matrix. Set to "mean_effect" to return the
                signed average effect of features on the target node.
  
      Returns:
          The specified edge data.
      """
      check_is_fitted(self)
  
      # build base data series
      edges = pd.Series(index=self._features)
  
      # iterate over all edges
      for i, j, w in self.graph_.edges(data=data):
          # for edges directed towards the "name" node
          if j == name:
              # insert the weight into the series
              edges[i] = w
  
      # fill edges not present in the iteration with zeros
      edges = edges.fillna(0)
  
      return edges
  
imports: import copy
  from abc import ABCMeta
  from typing import Dict, Iterable, List, Union
  import numpy
  import pandas
  from IPython.lib.display import IFrame
  from sklearn.base import BaseEstimator
  from sklearn.preprocessing import StandardScaler
  from sklearn.utils.validation import check_is_fitted, check_X_y
  from causalnex.plots import EDGE_STYLE, NODE_STYLE, display_plot_ipython, plot_structure
  from causalnex.structure.pytorch import notears
label_desc: Use image node_id 4 for calling the DAGBase obj's underlying member method code with example usage: obj.get_edges_to_node(name, data) and returns: edges