Compocyte.core.tuner

Classes

Tuner(database_path, adata_path, hierarchy, ...)

class Compocyte.core.tuner.Tuner(database_path, adata_path, hierarchy, root_node, obs_names)[source]

Bases: object

Parameters:
  • database_path (str)

  • adata_path (str)

  • hierarchy (dict)

  • root_node (str)

  • obs_names (list)

__init__(database_path, adata_path, hierarchy, root_node, obs_names)[source]
Parameters:
  • database_path (str)

  • adata_path (str)

  • hierarchy (dict)

  • root_node (str)

  • obs_names (list)

train_from_tuner(save_path, adata, parallelize=True, max_cells=None, stratify_by=None, processes=None, intermittent_saving=False)[source]
Parameters:
Return type:

HierarchicalClassifier

trial_run(cv_key, n_features, hidden_layers, dropout, epochs, batch_size, starting_lr, max_lr, momentum, beta, gamma, test_factor, parallelize=True, num_threads=None, standardize_separately=None)[source]
Parameters:
Return type:

None

make_db()[source]
Return type:

None

make_entry(node, trials, fraction_correct, fraction_matches, n_features, hidden_layers, dropout, epochs, batch_size, starting_lr, max_lr, momentum, beta, gamma, threshold)[source]
Parameters:
Return type:

None

get_best_trial(node)[source]
Return type:

dict