Recent questions tagged machine-learning

0 0 votes
1 1 answer
128
128 views
Suppose you have the following training set with three boolean input $x, y$ and $z$, and a boolean output $U$.\begin{array}{|c|c|c|c|}\hline x & y & z & U \\\hline \hline...
0 0 votes
1 1 answer
156
156 views
\begin{array}{|c|c|c|}\hline A_1 & A_2 & \text { Class Label } Y \\\hline \text { True } & \text { True } & + \\\hline \text { True } & \text { True } & + \\\hline \text ...
0 0 votes
1 1 answer
155
155 views
Suppose we are given the following dataset, where $A, B, C$ are input binary random variables, and $y$ is a binary output whose value we want to predict.\begin{array}{|c|...
0 0 votes
0 0 answers
130
130 views
Again, consider the two class problem where class label $y \in$ $\{T, F\}$ and each training example $X$ has 2 binary attributes $X_1, X_2$ $\in\{T, F\}$. How many parame...
0 0 votes
1 1 answer
189
189 views
What is the total number of parameters needed to model $P\left(Y, X_1, X_2, X_3, \cdots, X_d\right) ?$$k$ is the number of possible values $Y$ can take.$t$ is the number ...
0 0 votes
1 1 answer
149
149 views
Suppose that you are trying to solve a binary classification problem, and your data set has 4 attributes. Each attribute can take 3 possible values.If you modeled the ful...
0 0 votes
1 1 answer
163
163 views
Consider a naive Bayes classifier with 3 boolean input variables, $X_1, X_2$ and $X_3$, and one boolean output, $Y$.How many parameters must be estimated to train such a ...
0 0 votes
1 1 answer
153
153 views
You have a green-black avocado, and want to know if it is ripe. Based on this data, would you predict that your avocado is ripe or unripe?\begin{array}{|l|l|}\hline \text...
0 0 votes
1 1 answer
257
257 views
Imagine you are using a $k$-Nearest Neighbor classifier on a dataset with lots of noise. You want your classifier to be less sensitive to the noise. Which of the followin...
0 0 votes
0 0 answers
152
152 views
Which of the following statements are true?  Training a k-nearest-neighbors classifier takes more computational time than applying it.  The more training examples, the ...
0 0 votes
0 0 answers
114
114 views
.Which of the following option is true about k-NN algorithm? It can be used for classification It can be used for regression It can be used in both classification and reg...
0 0 votes
1 1 answer
171
171 views
In the image below, which would be the best value for $k$, assuming you are using the $k$-nearest neighbor algorithm ?3102050
0 0 votes
1 1 answer
229
229 views
For any two neighboring Voronoi cells $C_1$ and $C_2$ corresponding to two training examples $\mathbf{x}^{(1)}$ and $\mathbf{x}^{(2)}$, the boundary between $C_1$ and $C_...
0 0 votes
1 1 answer
173
173 views
You are using K-Nearest Neighbors (KNN) regression with $K=3$. Below is the dataset of the nearest neighbors and their corresponding target values:\begin{array}{|l|l|l|}\...
0 0 votes
1 1 answer
179
179 views
Consider a classification problem where the training dataset consists of $n$ data points that all have different feature values. Mark the correct statementsA $k$-nearest-...
0 0 votes
0 0 answers
127
127 views
Consider points in 2D and binary labels. Given the following training data: $\mathrm{x} 1=(1,1), \mathrm{y} 1=1$, $\mathrm{x} 2=(-1,1), \mathrm{y} 2=0, \mathrm{x} 3=(-1,-...
0 0 votes
1 1 answer
151
151 views
Consider a 2D dataset where training points are on the integer grid $\left(x_1, x_2\right)$, and both dimensions $x_1$ and $x_2$ range from 1 to 100 (inclusive). The bina...
0 0 votes
1 1 answer
181
181 views
What is the training error (fraction labeled wrong) in the above picture using 1 -nearest neighbor and the $L_1$ distance norm between points? If there is more than one e...
0 0 votes
1 1 answer
154
154 views
Consider a set of five training examples given as $\left(\left(x_i, y_i\right), c_i\right)$ values, where $x_i$ and $y_i$ are the two attribute values (positive integers)...
0 0 votes
1 1 answer
237
237 views
$\text { What would be the class assigned to this test instance for } \mathrm{K}=1, \mathrm{K}=3 \quad and \quad \mathrm{K}=5 $ $\text{respectively.}$$+,-,+$$-,-,+$$-,-,...
1 1 vote
1 1 answer
260
260 views
Logistic regression is named after the log-odds of success (the logit of the probability) defined as$$\ln \left(\frac{\mathbb{P}[Y=1 \mid X=x]}{\mathbb{P}[Y=0 \mid X=x]}\...
1 1 vote
2 2 answers
314
314 views
$\text { What is the range of possible values for log odds in probability ? }$0 to 1-1 to 10 to $\infty$$-\infty$ to $\infty$
1 1 vote
1 1 answer
171
171 views
$\text{What is the range of possible values for odds in probability ?}$ 0 to 10 to $\infty$-1 to 1$-\infty$ to $\infty$
0 0 votes
1 1 answer
138
138 views
Give the possible feature transformation such that given data is linearly separable. 
0 0 votes
1 1 answer
157
157 views
Give the possible feature transformation such that given data is linearly separable. 
1 1 vote
0 0 answers
239
239 views
One of the objectives of cross-entropy loss is to both increase the probability of the true class and decrease the probabilities of the other classes. The formula for cro...
1 1 vote
1 1 answer
212
212 views
Consider the following image data point, where the model's predicted probabilities for the classes (Dog, Cat, Mountain) are:\begin{array}{ll}\text { Class } & \text { Pro...
1 1 vote
1 1 answer
214
214 views
Consider the function $f: \mathbb{R}^d \mapsto \mathbb{R}^d$ whose components are given by$$f_i(x)=\frac{x_i^2}{\sum_{k=1}^d x_k^2}$$for $i=1, \ldots, d$ and $x \in \math...
1 1 vote
0 0 answers
196
196 views
A binary classification problem could be solved with the two approaches described below:Approach 1 : Simple Logistic Regression (one neuron)Your output will be $\hat y = ...
1 1 vote
0 0 answers
143
143 views
Given input data $x \in \mathbb{R}^3$ , how many parameters do the following models have? Assume that linear components of all models have bias terms.Binary logistic regr...