Seach the website
Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Courses
Feedback
Filter
Recent
Hot!
Most votes
Most answers
Most views
Most viewed questions
2
2 votes
1
answers
1 answer
23.3k
23.3k views
How to calculate Covariance Matrix and Principal Components for PCA?
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....
tofighi
116k
points
76
79
101
asked
Jun 26, 2019
Machine Learning
machine-learning
covariance-matrix
eigen-vector
eigen-value
pca
ml-exercise
ele888-final
+
–
2
2 votes
1
answers
1 answer
21.9k
21.9k views
How to calculate k-means clustering with a numerical example?
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...
tofighi
116k
points
76
79
101
asked
Jun 27, 2019
Machine Learning
machine-learning
k-means
ml-exercise
ml-midterm
ele888-midterm
+
–
4
4 votes
1
1 answer
20.7k
20.7k views
Can you share with us how to download ipynb file as pdf through latex?
xuxinc
230
points
2
2
5
asked
Oct 2, 2018
Python
jupyter
jupyter-notebook
python
+
–
1
1 vote
1
answers
1 answer
15.8k
15.8k views
How to update "conda" version itself?
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...
interview
1.4k
points
17
19
23
asked
Oct 10, 2018
Python
programming
python
anaconda
conda
+
–
2
2 votes
1
answers
1 answer
15.1k
15.1k views
How to calculate Accuracy, Precision, Recall or F1?
In the following example, calculate Accuracy, Precision, Recall or F1?https://i.imgur.com/OezFpqC.png
tofighi
116k
points
76
79
101
asked
Jan 27, 2020
Machine Learning
machine-learning
accuracy
precision
recall
ml-exercise
ml-midterm
ele888-final
ai-final
+
–
1
1 vote
1
1 answer
14.5k
14.5k views
What is the difference between univariate and multivariate analysis?
GraceG
170
points
1
1
3
asked
Oct 30, 2018
Data Science Interview Questions
data-science
statistics
+
–
3
3 votes
2
2 answers
14.1k
14.1k views
What happens as the K increases in the KNN algorithm ?
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...
Neo
660
points
11
12
17
asked
Sep 28, 2018
Machine Learning
machine-learning
knn
+
–
2
2 votes
1
answers
1 answer
13.9k
13.9k views
How to calculate probability in Logistic Regression?
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...
tofighi
116k
points
76
79
101
asked
Mar 18, 2019
Machine Learning
machine-learning
logistic-regression
probability
odds
ml-exercise
ml-midterm
+
–
1
1 vote
2
answers
2 answers
13.2k
13.2k views
score() vs accuracy_score() in sklearn
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...
kaADSS
230
points
2
2
6
asked
Jan 21, 2020
Machine Learning
machine-learning
sklearn
scikit-learn
+
–
2
2 votes
2
2 answers
11.7k
11.7k views
How to optimize weights in Logistic Regression?
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{...
tofighi
116k
points
76
79
101
asked
Jun 5, 2019
Machine Learning
machine-learning
logistic-regression
batch
mini-batch
epoch
ml-exercise
ele888-midterm
+
–
3
3 votes
1
answers
1 answer
11.4k
11.4k views
How to calculate Softmax Regression probabilities?
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...
tofighi
116k
points
76
79
101
asked
Mar 21, 2019
Machine Learning
machine-learning
softmax-regression
softmax
ml-exercise
ele888-midterm
ele888-final
ml-midterm
ai-final
+
–
5
5 votes
1
answers
1 answer
10.4k
10.4k views
How to calculate convolutions on a CONV layer for a Convolutional Neural Network?
Assume we have a $5\times5$ px RGB image with 3 channels respectively for R, G, and B. IfR2000012001201021210101020G0212211100002202002002111B0100111201102021011012112 We...
tofighi
116k
points
76
79
101
asked
Jun 26, 2019
Deep Learning
machine-learning
deep-learning
ml-exercise
cnn
ml-final
ele888-final
ai-final
+
–
3
3 votes
1
answers
1 answer
10.1k
10.1k views
How to calculate feed-forward (forward-propagation) in neural network?
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...
tofighi
116k
points
76
79
101
asked
Apr 4, 2019
Machine Learning
machine-learning
feed-forward
forward-propagation
deep-learning
ml-exercise
ml-final
ele888-midterm
ele888-final
ml-midterm
+
–
1
1 vote
1
1 answer
10.1k
10.1k views
In DBSCAN algorithm, how should we choose optimal eps and minimum points?
Math
450
points
5
5
9
asked
Jun 13, 2019
Machine Learning
machine-learning
runs
unsupervised-learning
dbscan
+
–
3
3 votes
2
answers
2 answers
8.8k
8.8k views
How to calculate Softmax Regression probabilities in this example?
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...
tofighi
116k
points
76
79
101
asked
Apr 4, 2019
Machine Learning
machine-learning
softmax-regression
softmax
ml-exercise
ml-midterm
ml-final
ele888-midterm
ele888-final
ai-final
+
–
3
3 votes
1
answers
1 answer
8.6k
8.6k views
How to update weights in backpropagation algorithm (a numerical example)?
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...
tofighi
116k
points
76
79
101
asked
Apr 11, 2019
Machine Learning
machine-learning
deep-learning
backpropagation
back-propagation
gradient-decent
ml-exercise
ml-final
ele888-final
+
–
0
0 votes
1
1 answer
8.5k
8.5k views
How to calculate the residual errors, (MSE),(MAE), and (RMSE)?
Given the following sample dataset with 5 samples and 2 features:SampleFeature 1Feature 2Actual ValuePredicted Value1234623456345674567856789Calculate the residual errors...
tofighi
116k
points
76
79
101
asked
Jan 27, 2023
Machine Learning
residual
linear-regression
ml-midterm
ml-exercise
machine-learning
ele888-midterm
+
–
3
3 votes
1
answers
1 answer
8.4k
8.4k views
How to calculate the probability and accuracy of a Logistic Regression classifier?
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?
tofighi
116k
points
76
79
101
asked
Feb 3, 2020
Machine Learning
machine-learning
ml-exercise
logistic-regression
probability
ml-midterm
ele888-midterm
+
–
1
1 vote
0
0 answers
8.1k
8.1k views
Looking for guidance on whether I have the necessary data to answer a Regression question
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...
TomGoncalves
130
points
1
1
3
asked
Mar 24, 2019
Machine Learning
machine-learning
statistics
linear-regression
random-forest
decision-tree
+
–
4
4 votes
1
answers
1 answer
8.0k
8.0k views
How to perform a classification or regression using k-NN?
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. ...
tofighi
116k
points
76
79
101
asked
Jun 27, 2019
Machine Learning
machine-learning
knn
regression
classification
ml-exercise
ml-midterm
ele888-midterm
+
–
Page:
1
2
3
4
...
22
next »