make a spam classifier in python [closed]

-1

Good I have to make a code that specifies if it is spam or not. I have to make a coach and then one to see if it is or not. But I've never handled python and I'm very lost.

What I have doubts is how I can do the summation that is in the formulas.

    
asked by Barbaranius 15.10.2018 в 19:05
source

1 answer

1
    #sumatoria de la formula x^2 desde inferior hasta superior
def sumatoria(inferior,superior):#las entradas son los limites 
    resultado=0
    while superior!=(inferior-1):#este seria el limite inferior -1. 
        resultado+=superior**2#aqui va la formula
        superior-=1
    return resultado

more or less so you can do a summation in python

    
answered by 15.10.2018 в 19:44