Most viewed questions

2 2 votes
1 answers 1 answer
23.3k
23.3k views
The dataset with two features $(x,y)$ is shown as follows (note $y$ in this example is the second feature, not a target value):xy2.52.40.50.72.22.91.92.23.13.02.32.72.01....
2 2 votes
1 answers 1 answer
21.9k
21.9k views
Use the k-means algorithm and Euclidean distance to cluster the following 8 examples into 3 clusters:$A1=(2,10), A2=(2,5), A3=(8,4), A4=(5,8), A5=(7,5), A6=(6,4), A7=(1,2...
4 4 votes
1 1 answer
20.7k
20.7k views
1 1 vote
1 answers 1 answer
15.8k
15.8k views
I can update all the libraries and packages on Anaconda using the following command:conda update all But it does not update conda itself. Is there any special command fo...
2 2 votes
1 answers 1 answer
15.1k
15.1k views
In the following example, calculate Accuracy, Precision, Recall or F1?https://i.imgur.com/OezFpqC.png
1 1 vote
1 1 answer
14.5k
14.5k views
3 3 votes
2 2 answers
14.1k
14.1k views
I am wondering what happens as K increases in the KNN algorithm. It seems that as K increases the "p" (new point) tends to move closer to the middle of the decision bound...
2 2 votes
1 answers 1 answer
13.9k
13.9k views
The dataset of pass/fail in an exam for 5 students is given in the table below. If we use Logistic Regression as the classifier and assume the model suggested by the opti...
1 1 vote
2 answers 2 answers
13.2k
13.2k views
Hi,Since I still have confuse to use the score() and accuracy_score(), so I want to confirm my test assumption.Q1: score(), we use the split data to test the accuracy by...
2 2 votes
2 2 answers
11.7k
11.7k views
The hypothesis (model) of Logistic Regression which is a binary classifier ( $y =\{0,1\} $) is given in the equation below:Hypothesis$S(z)=P(y=1 | x)=h_{\theta}(x)=\frac{...
3 3 votes
1 answers 1 answer
11.4k
11.4k views
The scatter plot of Iris Dataset is shown in the figure below. Assume Softmax Regression is used to classify Iris to Setosa, Versicolor, or Viriginica using just petal le...
5 5 votes
1 answers 1 answer
10.4k
10.4k views
Assume we have a $5\times5$ px RGB image with 3 channels respectively for R, G, and B. IfR2000012001201021210101020G0212211100002202002002111B0100111201102021011012112 We...
3 3 votes
1 answers 1 answer
10.1k
10.1k views
In the figure below, a neural network is shown. Calculate the following:1) How many neurons do we have in the input layer and the output layer?2) How many hidden layers d...
3 3 votes
2 answers 2 answers
8.8k
8.8k views
The scatter plot of Iris Dataset is shown in the figure below. Assume Softmax Regression is used to classify Iris to Setosa, Versicolor, or Viriginica using just petal le...
3 3 votes
1 answers 1 answer
8.6k
8.6k views
Assume we have the following neural network and all activation functions are $f(z)=z$. If the weights are initialized with the values you see in table below, what will be...
0 0 votes
1 1 answer
8.5k
8.5k views
Given the following sample dataset with 5 samples and 2 features:SampleFeature 1Feature 2Actual ValuePredicted Value1234623456345674567856789Calculate the residual errors...
3 3 votes
1 answers 1 answer
8.4k
8.4k views
How to solve this problem?https://i.imgur.com/8urywpf.jpgQ1) Complete the ? sectionsQ2) Accuracy of system if threshold = 0.5?Q3) Accuracy of system if threshold = 0.95?
1 1 vote
0 0 answers
8.1k
8.1k views
Hi everyone.I'm currently working on my final project for a Data Science degree and after a month of literature review, exploratory analysis and model testing, I'm not su...
4 4 votes
1 answers 1 answer
8.0k
8.0k views
Suppose, you have given the following dataset where x and y are the 2 features and color Red or Blue is the target variable.a) A new data point $x=1$ and $y=1$ is given. ...