classifier/classifier.py
def print_results(scores):
    ''' 
    Saves score and best parameters in txt file
    ------------------------------
    Parameters
    ----------
    scores : tuple
        tuple of feature type name, score, best parameters
    '''

    with open('submissions/results_LR.image.txt', 'a') as output:
        for k, v, p in scores:
            output.write('Accuracy with Logistic Regression [{0}]: {1:.1%}\n Best parameters: {2}\n'.format(
                k, v, p))
 
    Saves score and best parameters in txt file
    ------------------------------
    Parameters
    ----------
    scores : tuple
        tuple of feature type name, score, best parameters
    
Saves score and best parameters in txt file
Parameters

scores : tuple
tuple of feature type name, score, best parameters
Saves score and best parameters in txt file Parameters scores : tuple tuple of feature type name score best parameters
def print_results(scores):
    with open('submissions/results_LR.image.txt', 'a') as output:
        for k, v, p in scores:
            output.write('Accuracy with Logistic Regression [{0}]: {1:.1%}\n Best parameters: {2}\n'.format(
                k, v, p))
def print_results ( scores ) : with open ( 'submissions/results_LR.image.txt' , 'a' ) as output : for k , v , p in scores : output . write ( 'Accuracy with Logistic Regression [{0}]: {1:.1%}\n Best parameters: {2}\n' . format ( k , v , p ) )
Saves score and best parameters in txt file
Parameters
Saves score and best parameters in txt file Parameters
''' 
    Saves score and best parameters in txt file
    ------------------------------
    Parameters
    ----------
    scores : tuple
        tuple of feature type name, score, best parameters
    '''
scores