python/methylnet/model_interpretability.py
def reduce_top_cpgs(shapley_data,n_top_features,output_pkl):
    """Reduce set of top cpgs."""
    os.makedirs(output_pkl[:output_pkl.rfind('/')],exist_ok=True)
    shapley_data=ShapleyData.from_pickle(shapley_data)
    shapley_data_explorer=ShapleyDataExplorer(shapley_data)
    shapley_data_explorer.limit_number_top_cpgs(n_top_cpgs=n_top_features).to_pickle(output_pkl)
Reduce set of top cpgs.
Reduce set of top cpgs.
Reduce set of top cpgs .
def reduce_top_cpgs(shapley_data,n_top_features,output_pkl):
    os.makedirs(output_pkl[:output_pkl.rfind('/')],exist_ok=True)
    shapley_data=ShapleyData.from_pickle(shapley_data)
    shapley_data_explorer=ShapleyDataExplorer(shapley_data)
    shapley_data_explorer.limit_number_top_cpgs(n_top_cpgs=n_top_features).to_pickle(output_pkl)
def reduce_top_cpgs ( shapley_data , n_top_features , output_pkl ) : os . makedirs ( output_pkl [ : output_pkl . rfind ( '/' ) ] , exist_ok = True ) shapley_data = ShapleyData . from_pickle ( shapley_data ) shapley_data_explorer = ShapleyDataExplorer ( shapley_data ) shapley_data_explorer . limit_number_top_cpgs ( n_top_cpgs = n_top_features ) . to_pickle ( output_pkl )
Reduce set of top cpgs.
Reduce set of top cpgs .
"""Reduce set of top cpgs."""
shapley_data
n_top_features
output_pkl