Weka provides tools for data mining and machine learning tasks such as classification and clustering.
Incorrect! Try again.
2Weka was developed at which university?
Introduction to Weka tool
Easy
A.University of Oxford
B.University of Waikato
C.University of Toronto
D.Stanford University
Correct Answer: University of Waikato
Explanation:
Weka was developed at the University of Waikato in New Zealand.
Incorrect! Try again.
3Which programming language is primarily used to develop Weka?
Introduction to Weka tool
Easy
A.Python
B.C++
C.Ruby
D.Java
Correct Answer: Java
Explanation:
Weka is primarily written in Java, which allows it to run on multiple operating systems.
Incorrect! Try again.
4Which Weka interface provides tabs such as Preprocess, Classify, and Cluster?
Introduction to Weka tool
Easy
A.Experimenter
B.Explorer
C.KnowledgeFlow
D.Workbench
Correct Answer: Explorer
Explanation:
Weka Explorer provides an easy graphical interface with tabs for preprocessing, classification, clustering, and other tasks.
Incorrect! Try again.
5Which tab in Weka Explorer is used to inspect and prepare a dataset?
Introduction to Weka tool
Easy
A.Preprocess
B.Associate
C.Classify
D.Cluster
Correct Answer: Preprocess
Explanation:
The Preprocess tab is used to load, inspect, filter, and prepare data.
Incorrect! Try again.
6Which file format is native to Weka?
Data import
Easy
A.HTML
B.DOCX
C.ARFF
D.JSON
Correct Answer: ARFF
Explanation:
ARFF, or Attribute-Relation File Format, is Weka's native dataset format.
Incorrect! Try again.
7Which common table-based file type can Weka import?
Data import
Easy
A.PNG
B.MP3
C.CSV
D.EXE
Correct Answer: CSV
Explanation:
Weka can import CSV files containing data arranged in rows and columns.
Incorrect! Try again.
8Which button in the Preprocess tab is commonly used to load a dataset from the computer?
Data import
Easy
A.Apply
B.Open file
C.Start
D.Choose
Correct Answer: Open file
Explanation:
The Open file button loads a supported dataset, such as an ARFF or CSV file.
Incorrect! Try again.
9What does an attribute represent in a Weka dataset?
Data import
Easy
A.A data feature
B.A test result
C.A trained model
D.A cluster center
Correct Answer: A data feature
Explanation:
An attribute is a feature or variable represented by a column in the dataset.
Incorrect! Try again.
10What does an instance usually represent in a Weka dataset?
Data import
Easy
A.One evaluation method
B.One attribute type
C.One algorithm name
D.One data record
Correct Answer: One data record
Explanation:
An instance is one observation or record, usually represented by a row.
Incorrect! Try again.
11Which Weka Explorer tab is used to choose a classification algorithm?
Choose model (algorithm)
Easy
A.Associate
B.Classify
C.Visualize
D.Select attributes
Correct Answer: Classify
Explanation:
The Classify tab allows users to select, train, and evaluate classification algorithms.
Incorrect! Try again.
12Which Weka algorithm builds a decision tree?
Choose model (algorithm)
Easy
A.SimpleKMeans
B.Apriori
C.EM
D.J48
Correct Answer: J48
Explanation:
J48 is Weka's implementation of a decision-tree learning algorithm.
Incorrect! Try again.
13Which algorithm in Weka is commonly used for clustering?
Choose model (algorithm)
Easy
A.J48
B.NaiveBayes
C.SimpleKMeans
D.ZeroR
Correct Answer: SimpleKMeans
Explanation:
SimpleKMeans groups similar instances into a chosen number of clusters.
Incorrect! Try again.
14Which factor should be considered when choosing between classification and clustering?
Choose model (algorithm)
Easy
A.The file location
B.The screen resolution
C.The learning task
D.The window color
Correct Answer: The learning task
Explanation:
The algorithm type should match the task, such as predicting labels or discovering groups.
Incorrect! Try again.
15Which algorithm is a probabilistic classifier available in Weka?
Choose model (algorithm)
Easy
A.NaiveBayes
B.Apriori
C.EM
D.SimpleKMeans
Correct Answer: NaiveBayes
Explanation:
NaiveBayes is a probabilistic algorithm used for classification.
Incorrect! Try again.
16What type of learning is classification?
Hands-on analysis of clustering and classification algorithms
Easy
A.Transfer learning
B.Reinforcement learning
C.Supervised learning
D.Unsupervised learning
Correct Answer: Supervised learning
Explanation:
Classification is supervised learning because it learns from examples with known class labels.
Incorrect! Try again.
17What type of learning is clustering?
Hands-on analysis of clustering and classification algorithms
Easy
A.Reinforcement learning
B.Incremental learning
C.Supervised learning
D.Unsupervised learning
Correct Answer: Unsupervised learning
Explanation:
Clustering is unsupervised learning because it discovers groups without requiring known class labels.
Incorrect! Try again.
18What does a classification algorithm predict?
Hands-on analysis of clustering and classification algorithms
Easy
A.A cluster count
B.A class label
C.A file format
D.An attribute name
Correct Answer: A class label
Explanation:
A classification algorithm predicts the class label of an instance.
Incorrect! Try again.
19What is the main purpose of cross-validation in Weka?
Hands-on analysis of clustering and classification algorithms
Easy
A.To rename attributes
B.To remove all classes
C.To estimate model performance
D.To convert file formats
Correct Answer: To estimate model performance
Explanation:
Cross-validation evaluates how well a model is likely to perform on unseen data.
Incorrect! Try again.
20What does a confusion matrix summarize?
Hands-on analysis of clustering and classification algorithms
Easy
A.Cluster center values
B.Attribute data types
C.Classification predictions
D.Dataset file sizes
Correct Answer: Classification predictions
Explanation:
A confusion matrix compares predicted classes with actual classes to summarize classification results.
Incorrect! Try again.
21A student wants to load a dataset, apply preprocessing filters, train a classifier, and inspect predictions through a graphical interface. Which Weka application is most appropriate?
Introduction to Weka tool
Medium
A.Weka Experimenter
B.Weka Package Manager
C.Weka KnowledgeFlow
D.Weka Explorer
Correct Answer: Weka Explorer
Explanation:
Weka Explorer provides interactive tabs for preprocessing, classification, clustering, association analysis, and visualization.
Incorrect! Try again.
22A researcher must compare several algorithms across multiple datasets using repeated runs and statistical significance tests. Which Weka interface best supports this task?
Introduction to Weka tool
Medium
A.Weka Experimenter
B.Weka Explorer
C.Weka Simple CLI
D.Weka ARFF Viewer
Correct Answer: Weka Experimenter
Explanation:
Weka Experimenter automates repeated evaluations across algorithms and datasets and supports statistical comparison of results.
Incorrect! Try again.
23In Weka Explorer, which tab should be used to inspect a confusion matrix and evaluate a trained decision tree?
Introduction to Weka tool
Medium
A.Classify
B.Visualize
C.Preprocess
D.Cluster
Correct Answer: Classify
Explanation:
The Classify tab trains and evaluates supervised models and displays metrics such as accuracy and the confusion matrix.
Incorrect! Try again.
24A workflow needs to connect data loading, filtering, model training, and evaluation components visually, then save the complete workflow for reuse. Which Weka application should be selected?
Introduction to Weka tool
Medium
A.Weka Workbench, because it automatically selects and tunes every available learning algorithm without requiring a workflow
B.Weka Explorer
C.Weka KnowledgeFlow
D.Weka Experimenter
Correct Answer: Weka KnowledgeFlow
Explanation:
KnowledgeFlow allows processing components to be connected visually and the resulting workflow to be saved and reused.
Incorrect! Try again.
25After installing an additional algorithm through Weka's Package Manager, it does not appear in an already open Explorer window. What is the most appropriate first action?
Introduction to Weka tool
Medium
A.Convert the data to CSV
B.Restart the Weka application
C.Rename the class attribute
D.Increase the Java heap size
Correct Answer: Restart the Weka application
Explanation:
Weka commonly needs to be restarted before newly installed package components become available in its interfaces.
Incorrect! Try again.
26An ARFF file defines outlook as @attribute outlook {sunny,overcast,rainy}. How will Weka interpret this attribute?
Data import
Medium
A.As a nominal attribute
B.As a numeric attribute
C.As the instance identifier
D.As a free-text string
Correct Answer: As a nominal attribute
Explanation:
A finite set of values inside braces defines a nominal attribute in ARFF.
Incorrect! Try again.
27A CSV column contains the values 1, 2, and unknown. Weka infers the entire column as nominal, but it should be numeric with missing values. What is the best correction before import?
Data import
Medium
A.Declare every CSV column as nominal and convert the target after training
B.Replace unknown with ?
C.Replace unknown with 0
D.Delete every row containing unknown
Correct Answer: Replace unknown with ?
Explanation:
Weka uses ? to represent missing values, allowing the remaining values in the column to be treated as numeric.
Incorrect! Try again.
28A dataset has a categorical target in its first column, but Weka selects the final column as the class by default. What should the user do before training a classifier?
Data import
Medium
A.Set the first attribute as the class
B.Convert the final attribute into a string
C.Leave the class unchanged and select supervised learning
D.Move the target values into the relation name
Correct Answer: Set the first attribute as the class
Explanation:
The intended target must be explicitly selected as the class attribute when it is not the default final column.
Incorrect! Try again.
29A numeric attribute contains missing values represented by ?. Which Weka preprocessing filter can fill them using statistics estimated from the available data?
Data import
Medium
A.NumericToNominal
B.RemoveMissingValues
C.ReplaceMissingValues
D.Discretize
Correct Answer: ReplaceMissingValues
Explanation:
ReplaceMissingValues substitutes missing numeric values using the mean and nominal values using the mode.
Incorrect! Try again.
30A dataset includes a unique customer ID that has no predictive meaning. What is the most appropriate preprocessing action before classification?
Data import
Medium
A.Discretize the ID attribute
B.Set the ID as the class
C.Duplicate the ID to increase its influence
D.Remove the ID attribute
Correct Answer: Remove the ID attribute
Explanation:
A unique identifier usually adds no generalizable pattern and may encourage the model to learn instance-specific noise.
Incorrect! Try again.
31A medical dataset contains numeric predictors with very different scales. The user selects IBk with Euclidean distance. Which preprocessing step is most important?
Choose model (algorithm)
Medium
A.Remove all nominal predictors
B.Convert numbers to strings
C.Normalize the predictors
D.Randomize the class labels
Correct Answer: Normalize the predictors
Explanation:
IBk is distance-based, so normalization prevents large-scale attributes from dominating Euclidean distance.
Incorrect! Try again.
32A team needs a classification model that can be presented as readable if-then decisions to nontechnical stakeholders. Which Weka algorithm is the best initial choice?
Choose model (algorithm)
Medium
A.SMO
B.MultilayerPerceptron
C.J48
D.IBk
Correct Answer: J48
Explanation:
J48 builds a decision tree that can be inspected directly or expressed as understandable decision rules.
Incorrect! Try again.
33A text-classification dataset has thousands of word-frequency attributes and comparatively few training instances. Which algorithm is a reasonable baseline in Weka?
Choose model (algorithm)
Medium
A.NaiveBayes
B.SimpleKMeans
C.LinearRegression
D.Apriori, because it always converts frequent word combinations directly into optimal class predictions
Correct Answer: NaiveBayes
Explanation:
Naive Bayes is an efficient and commonly effective baseline for high-dimensional text-classification data.
Incorrect! Try again.
34A dataset contains labeled examples, and the goal is to predict one of three known species for each new instance. Which type of Weka algorithm is required?
Choose model (algorithm)
Medium
A.Clustering algorithm
B.Classification algorithm
C.Attribute-selection search only
D.Association algorithm
Correct Answer: Classification algorithm
Explanation:
Predicting a known categorical target from labeled examples is a multiclass classification task.
Incorrect! Try again.
35An analyst wants a linear maximum-margin classifier and chooses Weka's SMO. The predictors have different numeric ranges. Which setup is most appropriate?
Choose model (algorithm)
Medium
A.Standardize predictors before fitting
B.Replace all numbers with nominal labels
C.Set the largest predictor as the class
D.Use the test set for parameter tuning
Correct Answer: Standardize predictors before fitting
Explanation:
SMO is sensitive to feature scales, so standardization generally makes optimization and regularization more meaningful.
Incorrect! Try again.
36A J48 model scores 99% on its training data but only 72% under 10-fold cross-validation. What is the most likely interpretation?
Hands-on analysis of clustering and classification algorithms
Medium
A.The model is underfitting
B.The model is overfitting
C.The class is necessarily balanced
D.The cross-validation result must be invalid
Correct Answer: The model is overfitting
Explanation:
The large gap indicates that the tree fits the training instances well but generalizes poorly to unseen data.
Incorrect! Try again.
37For a binary classifier, Weka reports , , and for the positive class. What is the precision for that class?
Hands-on analysis of clustering and classification algorithms
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Precision is .
Incorrect! Try again.
38A SimpleKMeans run produces very different clusters when the experiment is repeated with a different random seed. What is the best interpretation?
Hands-on analysis of clustering and classification algorithms
Medium
A.The clustering is sensitive to initialization
B.The class labels were predicted perfectly
C.The algorithm has proven that the selected value of is globally optimal for every possible initialization
D.The attributes must all be nominal
Correct Answer: The clustering is sensitive to initialization
Explanation:
SimpleKMeans can converge to different local solutions because its initial centroids depend on the random seed.
Incorrect! Try again.
39A classifier is evaluated on a highly imbalanced fraud dataset and achieves 98% accuracy by predicting nearly every transaction as legitimate. Which metric should receive greater attention for detecting fraud cases?
Hands-on analysis of clustering and classification algorithms
Medium
A.Total number of attributes
B.Training time per instance
C.Mean of the transaction IDs
D.Recall for the fraud class
Correct Answer: Recall for the fraud class
Explanation:
Fraud-class recall measures the proportion of actual fraud cases detected and reveals failures hidden by overall accuracy.
Incorrect! Try again.
40In Weka Explorer, an analyst has true class labels but wants SimpleKMeans to form clusters without using those labels, while still comparing clusters with the known classes afterward. Which Cluster mode should be used?
Hands-on analysis of clustering and classification algorithms
Medium
A.Classes to clusters evaluation
B.Supplied test set
C.Use training set
D.Percentage split
Correct Answer: Classes to clusters evaluation
Explanation:
Classes to clusters evaluation excludes the class from clustering and then compares the resulting cluster assignments with the known labels.
Incorrect! Try again.
41In Weka Explorer, 10-fold cross-validation produces a J48 tree followed by cross-validation metrics. Which interpretation of this output is correct?
Introduction to Weka tool
Hard
A.The displayed tree is trained on all available data, while the metrics come from models trained separately within the folds.
B.The displayed tree is trained on nine folds, while the metrics are calculated only from the remaining fold.
C.The displayed tree is averaged across the ten models, while the metrics are calculated from the averaged tree.
D.The displayed tree is the model from the final fold, while the metrics summarize all ten fold-specific models.
Correct Answer: The displayed tree is trained on all available data, while the metrics come from models trained separately within the folds.
Explanation:
Explorer builds a final model on the complete training relation for display, but cross-validation predictions and metrics come from separate fold-specific models.
Incorrect! Try again.
42A researcher must compare four classifiers over 25 datasets with 10 repeated runs per dataset and perform paired significance tests. Which Weka interface is most appropriate?
Introduction to Weka tool
Hard
A.Simple CLI, because a single classifier invocation automatically constructs all dataset-level comparisons.
B.Experimenter, because it manages repeated runs, multiple datasets, result storage, and statistical comparisons.
C.Explorer, because its Classify tab automatically aggregates repeated experiments across multiple datasets.
D.KnowledgeFlow, because every connected classifier automatically receives paired statistical significance tests.
Correct Answer: Experimenter, because it manages repeated runs, multiple datasets, result storage, and statistical comparisons.
Explanation:
Weka Experimenter is designed for controlled comparisons across datasets and repetitions and can analyze stored results statistically.
Incorrect! Try again.
43Consider a command using FilteredClassifier with J48 as its base classifier. What is the purpose of -- before options such as -C 0.1 -M 5?
Introduction to Weka tool
Hard
A.It causes all following options to be interpreted by the JVM rather than by Weka.
B.It disables validation of all following options until classifier training has completed.
C.It separates meta-classifier options from options passed to the configured base classifier.
D.It separates filter options from attributes that should be retained in the output relation.
Correct Answer: It separates meta-classifier options from options passed to the configured base classifier.
Explanation:
In Weka's nested option syntax, arguments after -- are passed to the base learner selected by the meta-classifier.
Incorrect! Try again.
44An ARFF relation declares @attribute status {inactive,active}. A sparse instance omits status entirely. How does Weka interpret that attribute?
Data import
Hard
A.It rejects the instance because nominal attributes cannot be omitted from sparse ARFF records.
B.It interprets the value as active because sparse instances store only nondefault nominal values.
C.It interprets the value as missing because every omitted sparse value is equivalent to ?.
D.It interprets the value as inactive because an omitted sparse value has index or value zero.
Correct Answer: It interprets the value as inactive because an omitted sparse value has index or value zero.
Explanation:
Omitted sparse ARFF values are zero, not missing. For a nominal attribute, index zero denotes the first declared value, here inactive.
Incorrect! Try again.
45Training data declares @attribute color {red,green,blue}, while a supplied test file declares @attribute color {blue,green,red}. Both files use only these three labels. What should be done?
Data import
Hard
A.Align the nominal declaration order because Weka internally represents nominal values using declaration indices.
B.Sort each data row alphabetically because Weka resolves nominal values from their positions within instances.
C.Leave the files unchanged because matching label sets guarantee identical Weka headers regardless of order.
D.Convert only the class attribute to numeric because predictor header differences are ignored during evaluation.
Correct Answer: Align the nominal declaration order because Weka internally represents nominal values using declaration indices.
Explanation:
Nominal labels are stored as indices tied to header order. Training and test headers must use compatible declarations, including value order.
Incorrect! Try again.
46An ARFF attribute is declared as @attribute code {'?','A'}. How should a row distinguish a missing value from the literal nominal value ??
Data import
Hard
A.Use unquoted ? for missing and quoted '?' for the literal nominal value.
B.Use an empty field for missing and unquoted ? for the literal nominal value.
C.Use quoted '?' for missing and unquoted ? for the literal nominal value.
D.Use unquoted NULL for missing and quoted '?' for the literal nominal value.
Correct Answer: Use unquoted ? for missing and quoted '?' for the literal nominal value.
Explanation:
An unquoted question mark is Weka's missing-value marker. Quoting it allows the question mark to be parsed as an actual declared value.
Incorrect! Try again.
47A CSV file contains postal codes such as 00123, but automatic loading converts the column to numeric values such as 123. Which intervention best preserves the original information?
Data import
Hard
A.Force the column to string or nominal during import before its leading zeros are discarded.
B.Normalize the numeric column after import so that its leading zeros can be reconstructed.
C.Replace missing values after import so that Weka restores the original fixed-width representation.
D.Discretize the numeric column after import so that every postal code recovers its original spelling.
Correct Answer: Force the column to string or nominal during import before its leading zeros are discarded.
Explanation:
Leading zeros are representational information and disappear during numeric parsing. The loader must treat the field as nonnumeric from the outset.
Incorrect! Try again.
48A text column is imported as Weka's string type, and J48 reports that it cannot handle string attributes. Which pipeline is most appropriate when the text is predictive?
Data import
Hard
A.Set the text column as the class inside a FilteredClassifier before applying J48.
B.Replace every string with a missing value inside a FilteredClassifier before applying J48.
C.Convert the text with StringToWordVector inside a FilteredClassifier before applying J48.
D.Convert the text with NumericToNominal inside a FilteredClassifier before applying J48.
Correct Answer: Convert the text with StringToWordVector inside a FilteredClassifier before applying J48.
Explanation:
StringToWordVector creates usable word-based attributes. Placing it inside FilteredClassifier also fits the transformation only from each training set.
Incorrect! Try again.
49A target containing integer values from 0 to 100 is declared numeric in ARFF. A user selects J48 expecting 101 classes. Why is this inappropriate?
Choose model (algorithm)
Hard
A.Weka treats every integer-valued target as nominal; J48 therefore creates an unnecessarily large classification tree.
B.Weka treats the target as a regression target; it must be converted to nominal if the integers represent categories.
C.Weka treats only values above 50 as numeric; the remaining values become nominal class labels.
D.Weka treats the target as a date attribute; it must be converted to string before classification.
Correct Answer: Weka treats the target as a regression target; it must be converted to nominal if the integers represent categories.
Explanation:
Weka follows the declared attribute type rather than inferring semantics from integer values. J48 requires a nominal class.
Incorrect! Try again.
50Twenty classifier and hyperparameter combinations are compared using 10-fold cross-validation, and the best cross-validation score is reported as the final performance estimate. What is the strongest correction?
Choose model (algorithm)
Hard
A.Use leave-one-out evaluation, selecting configurations and reporting the smallest observed training error.
B.Use one larger cross-validation, selecting configurations and reporting their shared maximum fold score.
C.Use training-set accuracy, selecting configurations on all records and reporting the largest observed value.
D.Use nested cross-validation, selecting configurations in inner folds and estimating performance in outer folds.
Correct Answer: Use nested cross-validation, selecting configurations in inner folds and estimating performance in outer folds.
Explanation:
Selecting and evaluating on the same cross-validation results creates optimistic bias. Nested cross-validation separates configuration selection from performance estimation.
Incorrect! Try again.
51A test set has 100 positive and 9,900 negative cases. Model A predicts every case as negative. Model B produces 20 false negatives and 300 false positives. A false negative costs 100 units and a false positive costs 1 unit. Which choice minimizes stated cost?
Choose model (algorithm)
Hard
A.Choose Model A because its 99% accuracy guarantees the smallest total cost.
B.Choose Model B because its total cost is units.
C.Choose Model A because its total cost is units.
D.Choose Model B because its total cost is units.
Correct Answer: Choose Model B because its total cost is units.
Explanation:
Model A costs units, whereas Model B costs . Accuracy alone ignores the asymmetric error costs.
Incorrect! Try again.
52Records are ordered monthly, and the goal is to predict future months under gradual concept drift. Why can ordinary randomized cross-validation in Weka be misleading?
Choose model (algorithm)
Hard
A.It prevents stratification of nominal classes, yielding an unrealistically pessimistic temporal evaluation.
B.It can train on later months while testing earlier months, yielding an unrealistically optimistic temporal evaluation.
C.It trains each model on only earlier months, causing the evaluation to duplicate a rolling forecast.
D.It preserves chronological order exactly, causing every fold to contain records from only one calendar year.
Correct Answer: It can train on later months while testing earlier months, yielding an unrealistically optimistic temporal evaluation.
Explanation:
Randomized folds can leak future temporal patterns into training. A chronological holdout or rolling-origin evaluation better represents forecasting.
Incorrect! Try again.
53A TF-IDF StringToWordVector filter is fitted once on the complete dataset and then 10-fold cross-validation is run on the resulting attributes. What is the main methodological problem?
Hands-on analysis of clustering and classification algorithms
Hard
A.Held-out folds influenced vocabulary and IDF construction; the filter should be fitted within each fold using FilteredClassifier.
B.TF-IDF forces the class to become numeric; the class should instead be discretized before cross-validation.
C.Training folds influenced vocabulary and IDF construction; the filter should instead be fitted only on the held-out folds.
D.Cross-validation removes all sparse attributes; the filter should instead produce dense vectors before evaluation.
Correct Answer: Held-out folds influenced vocabulary and IDF construction; the filter should be fitted within each fold using FilteredClassifier.
Explanation:
Preprocessing learned from the complete dataset leaks information from validation folds. FilteredClassifier learns the filter separately on each training fold.
Incorrect! Try again.
54For a J48 split, an instance has a missing value for the splitting attribute. How does the C4.5-style procedure generally handle that instance?
Hands-on analysis of clustering and classification algorithms
Hard
A.It removes the instance from both training and prediction whenever the split value is missing.
B.It distributes the instance fractionally across branches using branch proportions and combines the resulting predictions.
C.It sends the instance exclusively to the branch with the alphabetically first nominal label.
D.It sends the instance exclusively to the smallest branch to balance the tree's leaf counts.
Correct Answer: It distributes the instance fractionally across branches using branch proportions and combines the resulting predictions.
Explanation:
J48 handles a missing split value by weighting the instance across branches according to observed branch frequencies rather than choosing an arbitrary branch.
Incorrect! Try again.
55A pruned J48 tree appears to overfit. Holding other options fixed, which change generally increases pruning?
Hands-on analysis of clustering and classification algorithms
Hard
A.Decrease the confidence factor from 0.25 to 0.05.
B.Enable the unpruned-tree option -U.
C.Increase the confidence factor from 0.25 to 0.50.
D.Decrease the minimum leaf size from 2 to 1.
Correct Answer: Decrease the confidence factor from 0.25 to 0.05.
Explanation:
A smaller J48 confidence factor produces more aggressive error-based pruning. The other changes tend to permit a larger tree or disable pruning.
Incorrect! Try again.
56Weka displays the following confusion matrix, where rows are actual classes and columns are predicted classes:
40 10 | a
5 45 | b
What are precision and recall for class b?
Hands-on analysis of clustering and classification algorithms
Hard
A.Precision is and recall is .
B.Precision is and recall is .
C.Precision is and recall is .
D.Precision is and recall is .
Correct Answer: Precision is and recall is .
Explanation:
For class b, , , and . Thus precision is and recall is .
Incorrect! Try again.
57SimpleKMeans uses Weka's default normalized Euclidean distance. If one numeric attribute is converted from dollars to cents by multiplying every nonmissing value by 100, what should occur, ignoring floating-point effects?
Hands-on analysis of clustering and classification algorithms
Hard
A.Assignments should reverse because normalization maps the largest value to the smallest normalized value.
B.Assignments should remain unchanged because range normalization cancels the positive linear rescaling.
C.Assignments should favor that attribute because its squared distances become exactly 10,000 times larger.
D.Assignments should become invalid because SimpleKMeans accepts only attributes measured in base units.
Correct Answer: Assignments should remain unchanged because range normalization cancels the positive linear rescaling.
Explanation:
Default normalized Euclidean distance scales numeric differences by each attribute's observed range, making it invariant to a positive unit conversion.
Incorrect! Try again.
58Two SimpleKMeans runs on the same relation use identical settings except for the random seed and produce different within-cluster sums of squared errors. What is the best explanation?
Hands-on analysis of clustering and classification algorithms
Hard
A.Different initial centroids guarantee different global optima for the same objective function.
B.Different initial centroids led the iterative algorithm to different local optima.
C.Different seeds changed the number of records considered missing by the distance function.
D.Different seeds changed the declared types of the relation's numeric attributes.
Correct Answer: Different initial centroids led the iterative algorithm to different local optima.
Explanation:
K-means is sensitive to initialization and can converge to distinct local minima. Multiple seeds or initialization runs can therefore produce different solutions.
Incorrect! Try again.
59In Weka's Classes to clusters evaluation, a clusterer splits one true class into several pure clusters. Why can the reported error still be substantial?
Hands-on analysis of clustering and classification algorithms
Hard
A.Clusters are mapped to classes after training under an assignment constraint, so redundant clusters may remain unmatched or count as errors.
B.The true class is included as a clustering input, so pure clusters are always treated as evidence of target leakage.
C.Every cluster is required to contain identical counts from all classes, so pure clusters violate the evaluation rule.
D.The evaluation converts all nominal classes to numeric targets, so purity cannot affect the reported error.
Correct Answer: Clusters are mapped to classes after training under an assignment constraint, so redundant clusters may remain unmatched or count as errors.
Explanation:
This external evaluation maps clusters to known classes after clustering. It is not a pure cluster-purity score, so splitting one class across extra clusters can be penalized.
Incorrect! Try again.
60In Weka's EM clusterer, the number of clusters is set to -1. What behavior should be expected?
Hands-on analysis of clustering and classification algorithms
Hard
A.EM selects the number of clusters using cross-validation on the training data.
B.EM creates one cluster for each nominal value found in the class attribute.
C.EM continues adding clusters until every training instance forms its own cluster.
D.EM delegates the cluster count to SimpleKMeans using the same random seed.
Correct Answer: EM selects the number of clusters using cross-validation on the training data.
Explanation:
For EM, a cluster count of -1 requests automatic selection by cross-validation rather than fixing the number beforehand.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →