python/methylnet/interpretation_classes.py
def to_pickle(self,output_pkl, output_dict=False):
        """Export Shapley data to pickle.

        Parameters
        ----------
        output_pkl : type
            Output file to save SHAPley data.

        """
        os.makedirs(output_pkl[:output_pkl.rfind('/')],exist_ok=True)
        if output_dict:
            pickle.dump(dict(shapley_values=self.shapley_values,top_cpgs=self.top_cpgs), open(output_pkl,'wb'))
        else:
            pickle.dump(self, open(output_pkl,'wb'))
Export Shapley data to pickle.

        Parameters
        ----------
        output_pkl : type
            Output file to save SHAPley data.

        
Export Shapley data to pickle.
Parameters

output_pkl : type
Output file to save SHAPley data.
Export Shapley data to pickle . Parameters output_pkl : type Output file to save SHAPley data .
def to_pickle(self,output_pkl, output_dict=False):
        os.makedirs(output_pkl[:output_pkl.rfind('/')],exist_ok=True)
        if output_dict:
            pickle.dump(dict(shapley_values=self.shapley_values,top_cpgs=self.top_cpgs), open(output_pkl,'wb'))
        else:
            pickle.dump(self, open(output_pkl,'wb'))
def to_pickle ( self , output_pkl , output_dict = False ) : os . makedirs ( output_pkl [ : output_pkl . rfind ( '/' ) ] , exist_ok = True ) if output_dict : pickle . dump ( dict ( shapley_values = self . shapley_values , top_cpgs = self . top_cpgs ) , open ( output_pkl , 'wb' ) ) else : pickle . dump ( self , open ( output_pkl , 'wb' ) )
Export Shapley data to pickle.
Export Shapley data to pickle .
"""Export Shapley data to pickle.

        Parameters
        ----------
        output_pkl : type
            Output file to save SHAPley data.

        """
self
output_pkl
output_dict