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
User tofighi
Wall
Recent activity
All questions
All answers
Recent activity by tofighi
1
answers
1 answer
441
441 views
Step-by-Step Hidden State Calculation in a Recurrent Neural Network
Consider a simplified Recurrent Neural Network (RNN) with a single input and a single output. The hidden state is updated using the recurrence:$$ h_t = \text{ReLU}(W_{ih}...
answered
Dec 1, 2025
Machine Learning
machine-learning
deep-learning
rnn
+
–
1
answers
1 answer
2.5k
2.5k views
How to calculate feed-forward (forward-propagation) in neural network for classification?
For the following neural network, calculate accuracy of classification, given these settings
answered
Oct 9, 2024
Machine Learning
ml-midterm
ele888-midterm
deep-learning
ml-exercise
machine-learning
feed-forward
forward-propagation
+
–
1
1 answer
7.6k
7.6k 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...
answered
Jan 26, 2023
Machine Learning
residual
linear-regression
ml-midterm
ml-exercise
machine-learning
ele888-midterm
+
–
1
answers
1 answer
2.6k
2.6k views
How to use Genetic Algorithm to optimize a function?
Assume the function is defined as $f(x,y)=x^2+y^2-4xy$, and $1\leq x \leq 4,1\leq y \leq 4$. The Genetic Algorithm is selected to maximize the function. If the first pop...
edited
Nov 23, 2022
Artificial Intelligence
ai-final
genetic-algorithm
ga
+
–
1
answers
1 answer
1.9k
1.9k views
List of free Qwiklabs labs
Provide a short list of free cloud labs on Qwiklabs
answered
Oct 28, 2022
Cloud Computing
qwiklabs
cloud-computing
gcp
aws
+
–
1
answers
1 answer
3.6k
3.6k views
What is the difference between a batch and an epoch in a Neural Network?
Both of the batch size and number of epochs are integer values and seem to do the same thing in Stochastic gradient descent. What are these two hyper-parameters of this l...
retagged
Sep 28, 2022
Machine Learning Interview Questions
machine-learning
deep-learning
stochastic-gradient-descent
batch
epoch
interview
hyper-parameter
ml-final
ai-final
+
–
1
1 answer
1.8k
1.8k views
how to output f1-score instead of accuracy
I have the code below, outputting the accuracy. How can I output the F1-score instead? Thanks in advance,clf.fit(data_train,target_train) preds = clf.predict(data_test) #...
answered
Apr 2, 2022
Python
machine-learning
f1score
accuracy
+
–
2
answers
2 answers
2.5k
2.5k views
How to activate hive interpreter for Apache Zeppelin on Dataproc on GCP?
Hive is not enabled by default on GCP on Apache Zeppelin on Dataproc on GCP. How can we activate it?
answer selected
Feb 13, 2022
Cloud Computing
cloud-computing
gpc
dataproc
hive
zeppelin
+
–
1
1 answer
1.4k
1.4k views
When dealing with categorical values, should the 'year' column be encoded using OHE or OrdinalEncoder?
It's a car prices dataset, and so I'm assuming that the more recent the more value a car should have. The values in the 'year' column simply consist of years from 1995 to...
answered
Dec 20, 2021
Machine Learning
machine-learning
data-science
predict
onehotencoder
data-analysis
ordinal-encoder
+
–
1
answers
1 answer
3.6k
3.6k views
How to create a Decision Tree using the ID3 algorithm?
NASA wants to be able to discriminate between Martians (M) and Humans (H) based on thefollowing characteristics: Green ∈{N, Y }, Legs ∈{2, 3}, Height ∈{S, T}, Smelly ∈{N,...
answer selected
Dec 1, 2021
Machine Learning
decision-tree
entropy
ml-exercise
ai-final
+
–
1
answers
1 answer
7.4k
7.4k views
How to calculate LogLoss 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...
answer selected
Oct 17, 2021
Machine Learning
machine-learning
logistic-regression
loss
ml-exercise
ele888-midterm
ml-midterm
+
–
1
1 answer
851
851 views
How best to ensure data quality?
answered
Jun 11, 2021
Data Science
data
+
–
1
1 answer
735
735 views
Can we have multiple target values in a ML problem dataset for supervised learning?
answered
Jun 11, 2021
Machine Learning Interview Questions
machine-learning
supervised-learning
+
–
1
answers
1 answer
825
825 views
Terminology clarification in Spark
I have a hard time distinguishing terminologies of SparkSQL. While SparkSQL are quite flexible in terms of abstraction layers, its really difficult for beginner to naviga...
answered
Feb 15, 2021
Big Data Tools
sql
spark
pyspark
dataframe
+
–
1
1 answer
724
724 views
Do I need to save the standardization transformation?
When I standardized my data when I created my model. Do I need to save the standardization transformation when I want to predict with my model new data ?
answered
Dec 15, 2020
Machine Learning
machine-learning
predict
data
match
+
–
1
1 answer
4.1k
4.1k views
How to remove unwanted Jupyter notebook kernels?
Whener I run Jupyter notebook there are some kernels that do not exist on system and generate errors. How can I remove them?
answered
Oct 30, 2020
General
jupyter-notebook
python
programming
+
–
1
answers
1 answer
1.3k
1.3k views
How to model unknown yet data
So far, I have modeled on known historical data. What if there are variables known only after the fact?Let me give you an example. I want to predict the outcome of the ma...
commented
Oct 27, 2020
Machine Learning
machine-learning
soccer
predict
score
+
–
1
1 answer
678
678 views
From microarray data, which tools of pattern recognition can you apply to identify the genes responsible for diseases?
“During the last decade, the advent of microarray datasets stimulated a new line of research called Bioinformatics. A microarray database is a repository containing micro...
answered
Oct 15, 2020
Machine Learning
machine-learning
+
–
1
1 answer
590
590 views
Can we use a trained model to supervise the other machine learning models?
Is that possible to train a machine using another trained machine?
answered
Sep 28, 2020
Machine Learning
machine-learning
meta-learning
model
+
–
1
answers
1 answer
9.1k
9.1k 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...
comment reshown
Aug 17, 2020
Deep Learning
machine-learning
deep-learning
ml-exercise
cnn
ml-final
ele888-final
ai-final
+
–