def new_node_covariate(self, name, as_int = False):
     if as_int:
         node_cov = NodeCovariate(self.names, dtype = np.int)
     else:
         node_cov = NodeCovariate(self.names)
     self.node_covariates[name] = node_cov
     self.row_covariates[name] = node_cov
     self.col_covariates[name] = node_cov
     return node_cov
Esempio n. 2
0
 def new_col_covariate(self, name):
     self.col_covariates[name] = NodeCovariate(self.cnames)
     return self.col_covariates[name]
Esempio n. 3
0
 def new_col_covariate(self, name, dtype = np.float64):
     self.col_covariates[name] = NodeCovariate(self.cnames, dtype)
     return self.col_covariates[name]
Esempio n. 4
0
 def new_row_covariate(self, name):
     self.row_covariates[name] = NodeCovariate(self.rnames)
     return self.row_covariates[name]