Icon

Exercise3

<p><strong>Chapter 4/Exercise 3</strong></p><p>This workflow is another exerciser for classification training a Naive Bayes Learner model using data of the <em>website1.txt</em> file.</p><p>First, it's calculating basic stats of the number of visitors ("no visitors"). Then, after some preprocessing, it's training a Naive Bayes model (<em>Naive Bayer Learner</em> node) to classify "weekend" vs. "no weekend" according to the number of visitors of a website. Lastly, it's evaluating the model by calculating a confusion matrix (<em>Scorer </em>node) and visualizing the area under the curve (AuC) (<em>ROC Curve</em> node).<br></p>

URL: KNIME Beginner's Luck (Book Homepage) https://www.knime.com/knimepress/beginners-luck

Annotations and comments
  • Workflow: Chapter 4/Exercise 3 This workflow is another exerciser for classification training a Naive Bayes Learner model using data of the website1.txt file. First, it's calculating basic stats of the number of visitors ("no visitors"). Then, after some preprocessing, it's training a Naive Bayes model (Naive Bayer Learner node) to classify "weekend" vs. "no weekend" according to the number of visitors of a website. Lastly, it's evaluating the model by calculating a confusion matrix (Scorer node) and visualizing the area under the curve (AuC) (ROC Curve node).
  • Reading data
  • Basic statistics
  • Transforming data
  • Training model
  • Applying trained model
  • Evaluating model
  • Keep only "no visitors" and "binary_class"
  • Create "binary_class" column indicated "weekend" or "not weekend"
  • Target value: "binary_class"
  • Confusion matrix binary_class vs. Prediction (binary_class)
  • Basic statistics of "no visitors"

Nodes

Extensions

Links