Machine learning (corneto.ml)#

Public helpers for knowledge-primed neural networks.

build_dagnn(G, input_nodes, output_nodes[, ...])

Build a Keras DAG neural network whose topology follows a CORNETO graph.

index_selector()

Return a serializable Keras layer class that selects tensor indices.

kfold_nonzero_splits(data[, n_splits, ...])

Perform K-fold splitting on all nonzero cells in the input data.

plot_model(model)

Render a Keras model using the active Keras backend.

signed_dense()

Return a Keras dense-layer class with fixed kernel signs.

toposort(G)

Return the vertices of an acyclic graph in topological order.