Category "machine-learning"

Partial Derivative term in the Gradient Descent Algorithm

I'm learning the "Machine Learning - Andrew Ng" course from Coursera. In the lesson called "Gradient Descent", I've found the formula a bit complicated. The the

SHAP explainer identifies wrong framework

I want to use the SHAP-DeepInterpeter on the Braindecode Shallow_FBCSP-Model which is based on pytorch. The training and testing works perfectly fine on the mod

Why is Tensorflow image classification model overfitting? [closed]

I've been working a food image classification model. I started off with the TensorFlow tutorial and modified the model (code below). The model

Do you understand why the Outputs of my YOLOV4 model has this shape? [duplicate]

I have a question. I trained a YOLOV4 model for face detection and when i tried to look at the output on Neutron i found that the Bounding Box

Onnxruntime NodeJS set intraOpNumThreads and interOpNumThreads by execution mode

I'm using Onnxruntime in NodeJS to execute onnx converted models in cpu backend to run inference. According to the docs, the optional parameters are the followi

How to safely shutdown mlflow ui?

After running mlflow ui on a remote server, I'm unable to reopen the mlflow ui again. A workaround is to kill all my processes in the server using pkill -u MyUs

mlflow static_prefix url in set_tracking_uri is not working

I am starting mlflow with below command mlflow server --static_prefix=/myprefix --backend-store-uri postgresql://psql_user_name:psql_password@localhost/mlflow_d

Print class name from tensorflow object detection api

PLEASE NOTE: I have tried other solutions accross the web and didnt find the working result. I am detecting objects from live feed using tensorflow object detec

How to plot the accuracy and and loss from this Keras CNN model? [duplicate]

The code below is for my CNN model and I want to plot the accuracy and loss for it, any help would be much appreciated. I want the output to

Difference between Shuffle and Random_State in train test split?

I tried both on a small dataset sample and it returned the same output. So the question is, what is the difference between the "shuffle" and the "random_state"

Get Confidence probability Scores for each Predicted Result in Catboost Classifier

I have built a machine learning model using Catboost classifier to predict the categoryname of my result as per below screenshot1. However, if I get an unknown

ValueError: Unable to coerce to Series, length must be 1: given n

I have been trying to use RF regression from scikit-learn, but I’m getting an error with my standard (from docs and tutorials) model. Here is the code: im

tensorflow_probability: TransformedDistribution not accepting event_shape and batch_shape arguments

In version 0.11.0 of Tensorflow Probability, I can define a TransformedDistribution as follows, indicating event and batch shape: mvn = tfd.TransformedDistribut

tensorflow_probability: TransformedDistribution not accepting event_shape and batch_shape arguments

In version 0.11.0 of Tensorflow Probability, I can define a TransformedDistribution as follows, indicating event and batch shape: mvn = tfd.TransformedDistribut

Difference between cosine similarity and cosine distance

It looks like scipy.spatial.distance.cdist cosine similariy distance: link to cos distance 1 1 - u*v/(||u||||v||) is different from sklearn.metrics.pairwis

AUC-ROC value with confident intervals

AUC-ROC value always generates a plus or minus value. What does this bold color value mean? And how can we identify the confident interval of this value? 0.74 &

ValueError: Exception encountered when calling layer "sequential_5" (type Sequential)

I am following this course : TensorFlow Developer Certificate in 2022: Zero to Mastery This is the following code : # Set random seed tf.random.set_seed(42) #

How are the TokenEmbeddings in BERT created?

In the paper describing BERT, there is this paragraph about WordPiece Embeddings. We use WordPiece embeddings (Wu et al., 2016) with a 30,000 token vocab

SHAP Summary Plot and Mean Values displaying together

Used the following Python code for a SHAP summary_plot: explainer = shap.TreeExplainer(model2) shap_values = explainer.shap_values(X_sampled) shap.summary_plot

Adding Dropout Layers to Segmentation_Models Resnet34 with Keras

I want to use the Segmentation_Models UNet (with ResNet34 Backbone) for uncertainty estimation, so i want to add some Dropout Layers into the upsampling part. T