<commit_before>'''
(C) <NAME> 2016
NF1 Inactivation Classifier for Glioblastoma
cancer_cv.py

Description:
Classes to perform cross validation on pancan datasets

Usage:
Import only
'''


class cancer_cv(object): 
    """
    A class to determine cross validation intervals for pancancer tissues with
    careful consideration to split cv folds with equal number of mutations and
    tissues if applicable.
    """

    def __init__(self, y_dict, fold, hold, min_samples, seed, tissues='auto'):
        """
        :param y_dict: keys are tissue types, values are pandas DataFrame
                       holding mutation status for each sample<commit_msg>removing blank space that snuck in<commit_after>'''
(C) <NAME> 2016
NF1 Inactivation Classifier for Glioblastoma
cancer_cv.py

Description:
Classes to perform cross validation on pancan datasets

Usage:
Import only
'''


class cancer_cv(object):
    """
    A class to determine cross validation intervals for pancancer tissues with
    careful consideration to split cv folds with equal number of mutations and
    tissues if applicable.
    """

    def __init__(self, y_dict, fold, hold, min_samples, seed, tissues='auto'):
        """
        :param y_dict: keys are tissue types, values are pandas DataFrame
                       holding mutation status for each sample
{'fraction_non_alphanumeric': 0.06616541353383458, 'fraction_numerical': 0.007518796992481203, 'mean_word_length': 3.4219269102990033, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1174489', 'n_tokens_mistral': 371, 'n_tokens_neox': 333, 'n_words': 152}