def init_sigmoid_bias_from_marginals(dataset, use_y=False):
 if use_y:
  X = dataset.y
 else:
  X = dataset.get_design_matrix()
 return init_sigmoid_bias_from_array(X)

def init_sigmoid_bias_from_marginals ( dataset , use_y = False ) : if use_y : X = dataset . y else : X = dataset . get_design_matrix ( ) return init_sigmoid_bias_from_array ( X )
returns b such that sigmoid(b) has the same marginals as the data .