Classification with Naive Bayes in R

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Quina funció es fa servir per dividir les dades en un conjunt d'entrenament i un conjunt de prova?

  • subset()
  • table()
  • sample.split() (correct)
  • naive_bayes()

Quina llibreria s'utilitza per ajustar un model Naive Bayes als datos d'entrenament?

  • library(caTools)
  • naivebayes (correct)
  • sample.split
  • set.seed

Quin és el resultat de la divisió de les dades en línies 6-7 segons el codi proporcionat?

  • (70, 100)
  • (100, 70) (correct)
  • (30, 100)
  • (100, 30)

Quin càlcul s'està realitzant amb la fórmula (7+5+5+16+27)/(7+5+5+16+27+1) a la línia 10?

<p>Proporció (C)</p> Signup and view all the answers

Quina funció s'utilitza per fer prediccions en les dades del conjunt de prova?

<p>predict() (D)</p> Signup and view all the answers

La funció 'naive_bayes' pertany a la llibreria 'naivebayes'.

<p>True (A)</p> Signup and view all the answers

Les dades d'entrenament representen el 70% del total de dades.

<p>False (B)</p> Signup and view all the answers

La suma de les prediccions totals 'y_pred' és 61.

<p>False (B)</p> Signup and view all the answers

El resultat de la divisió (7+5+5+16+27)/(7+5+5+16+27+1) és més gran que 3.

<p>True (A)</p> Signup and view all the answers

El model Naive Bayes s'ajusta correctament als datos d'entrenament.

<p>True (A)</p> Signup and view all the answers

Flashcards are hidden until you start studying

More Like This

Naive Bayes Classifiers in Text Classification
42 questions
Naive Bayes Algorithm Overview
42 questions

Naive Bayes Algorithm Overview

WellManneredSarod9760 avatar
WellManneredSarod9760
Naive Bayes Classification Algorithm
28 questions
Use Quizgecko on...
Browser
Browser