Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33643
    Felix Nganga
    Participant

      Professor, aplicariamos ou not OneHotEncoder à coluna feedback se esta coluna tivesse, no lugar de 1 e 0, valores categoricos tipo Positivo/Negativo?

      Como fariamos neste caso?

      Ou simplesmente fazer df[[‘reviews’] ==’Positivo’] = 1 e df[[‘reviews’] ==’Negativo’] = 0 para subsituir os textos em digitos?

      #33669
      Fábio Spak
      Participant

        Olá Felix, segue resposta do instrutor Denny:

        Pode sim fazer da forma que você sugeriu. Quando são só duas categorias (problema binário), basta uma coluna para codificar os resultados.

         

        Fabio

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.