ncem.estimators.EstimatorInteractions.init_model

EstimatorInteractions.init_model(optimizer: str = 'adam', learning_rate: float = 0.0001, n_eval_nodes_per_graph: int = 32, l2_coef: float = 0.0, l1_coef: float = 0.0, use_interactions: bool = True, use_domain: bool = False, scale_node_size: bool = False, output_layer: str = 'linear', **kwargs)[source]

Initialize a ModelInteractions object.

Parameters
  • optimizer (str) – Optimizer.

  • learning_rate (float) – Learning rate.

  • l2_coef (float) – l2 regularization coefficient.

  • l1_coef (float) – l1 regularization coefficient.

  • n_eval_nodes_per_graph (int) – Number of nodes per graph.

  • use_interactions (bool) – Whether to use source type.

  • use_domain (bool) – Whether to use domain information.

  • scale_node_size (bool) – Whether to scale output layer by node sizes.

  • output_layer (str) – Output layer.

  • kwargs – Arbitrary keyword arguments.