### Fine Tuning of GoogLeNet Model

I trained GoogLeNet model from scratch. But it didn't give me the promising results. As an alternative, I would like to do fine tuning of GoogLeNet model on my dataset. Does anyone know what are...

### pyspark : NameError: name 'spark' is not defined

I am copying the pyspark.ml example from the official document website: http://spark.apache.org/docs/latest/api/python/pyspark.ml.html#pyspark.ml.Transformer data = [(Vectors.dense([0.0, 0.0]),),...

### GPy RBF Kernel Implementation

In rbf.py k(r) is defined mathematically as: k(r) = \sigma^2 \exp \\bigg(- \\frac{1}{2} r^2 \\bigg) However K_of_r method in rbf.py skips the sigma^2 and instead uses sigma (self.variance). Am I...

### Error using sklearn and linear regression: shapes (1,16) and (1,1) not aligned: 16 (dim 1) != 1 (dim 0)

I wanted to learn about machine learning and I stumbled upon youtube siraj and his Udacity videos and wanted to try and pick up a few things. His video in reference:...

### RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb

I'm trying to learn Machine Learning, but I cannot resolve below error. [My environment] Mac High Sierra 10.13.2 Python3.4.5 Numpy1.13.3 [Command] \$ python3 -c "import jupyter, matplotlib,...

### Is there an optimizer in keras based on precision or recall instead of loss?

I am developping a segmentation neural network with only two classes, 0 and 1 (0 is the background and 1 the object that I want to find on the image). On each image, there are about 80% of 1 and...

### How to handle large Sets of categorical Data

I'm a beginner in machine learning. i have a large Data Set with lots of categorical data. The data is nominal. I want to apply algorithmns like SVM and decision tree with Python and scikit-learn...

### Conv 1x1 configuration for feature reduction

I am using 1x1 convolution in the deep network to reduce a feature x: Bx2CxHxW to BxCxHxW. I have three options: x -> Conv (1x1) -> Batchnorm-->ReLU. Code will be output = ReLU(BN(Conv(x)))....

### What are some of the ways to convert NLP to SQL?

Recently, have started working on the idea of conversational chatbot and have been thinking of different ways to convert Natural Language query to SQL. These are some of the libraries I have...

### Gridsearchcv vs Bayesian optimization

Which one among Gridsearchcv and Bayesian optimization works better for optimizing hyper parameters?

### Python GPy module: how to plot model predictions over simple x-axis?

In Python, I was attempting to dive into the GPy library for estimating Gaussian Process models, when I encountered a stumbling block early on with simple plotting. For my data, I generated a...

### RuntimeError: Attempting to deserialize object on a CUDA device

I encounter a RunTimeError while I am trying to run the code in my machine's CPU instead of GPU. The code is originally from this GitHub project - IBD: Interpretable Basis Decomposition for Visual...

### ValueError while deploying tensorflow model to Amazon SageMaker

I want to deploy my trained tensorflow model to the amazon sagemaker, I am following the official guide here:...

### CNN training loss regular spikes at the end of the epoch

I am training a CNN in PyTorch with Adam and the initial learning rate is 1e-5. I have 5039 samples in my epoch and the batch size is 1. I have observed that I have a regular spike pattern of...

### Using GPy Multiple-output coregionalized prediction

I have been facing a problem recently where I believe that a multiple-output GP might be a good candidate. I am at the moment applying a single-output GP to my data and as dimensionality...

### tensorflow:Can save best model only with val_acc available, skipping

I have an issue with tf.callbacks.ModelChekpoint. As you can see in my log file, the warning comes always before the last iteration where the val_acc is calculated. Therefore, Modelcheckpoint...

### Back propagation from decoder input to encoder output in variational autoencoder

I am trying to understand VAE in-depth by implementing it by myself and having difficulties when back-propagate losses of the decoder input layer to the encoder output layer. My encoder network...

### Machine Learning Using Scikit-Learn & SVM

Load popular digits dataset from sklearn.datasets module and assign it to variable digits. Split digits.data into two sets names X_train and X_test. Also, split digits.target into two sets Y_train...

### Saving normalization values in Keras model

I have a Keras model for which I would like to save the normalization values in the model object itself for easier portability. I'm using sklearn's StandardScaler() to normalize my data, so I...

### Tensorflow for XOR is not predicting correctly after 500 epochs

I'm trying to implement a Neural Network to solve the XOR problem using TensorFlow. I chose sigmoid as activation function, shape (2, 2, 1) and optimizer=SGD(). I choose batch_size=1 because the...

### How to reproduce results of GPy GPRegression using scikit-learn Gaussian Process Regressor?

Both GPRegression (GPy) and Gaussian Process Regressor (scikit-learn) uses similar initial values and the same optimizer (lbfgs). Why results vary significantly? #!pip -qq install pods #!pip -qq...

### How to compute mean/max of HuggingFace Transformers BERT token embeddings with attention mask?

I'm using the HuggingFace Transformers BERT model, and I want to compute a summary vector (a.k.a. embedding) over the tokens in a sentence, using either the mean or max function. The complication...

### TypeError: Could not build a TypeSpec with type KerasTensor

I am a newbie to deep learning so while I am trying to build a Masked R-CNN model for training my Custom Dataset I am getting an error which reads: TypeError: Could not build a TypeSpec for...

### pdfminer - extract text behind LTFigure object

I am extracting text from pdf files using python pdfminer library (see docs). However, pdfminer seems unable to extract all texts in some files and extracts LTFigure object instead. Assuming from...

### getting strange error while importing pycaret

i have installed pycaret in virtual env in jupyter, using pip3 install pycaret. but when am trying to import it as from pycaret.regression import* or from pycaret import classification am...

### what is C parameter in sklearn Logistic Regression?

What is the meaning of C parameter in sklearn.linear_model.LogisticRegression? How does it affect the decision boundary? Do high values of C make the decision boundary non-linear? How does...

### AttributeError: 'Simple_Imputer' object has no attribute 'fill_value_categorical'' in PyCaret

I am using PyCaret and get an error. AttributeError: 'Simple_Imputer' object has no attribute 'fill_value_categorical' Trying to create a basic instance. !pip install pycaret==1.0 from...

### How to run Elasticsearch 6 on an Apple Silicon Mac?

For developing an application, I need to run Elasticsearch 6 on an Apple Silicon Mac. I've tried to run it with Docker. Reading Docker Desktop for Apple silicon, I've installed Rosetta2...

### TypeError: create_int(): incompatible function arguments

I've Been Recently Learning Computer Vision using python, and when making a hand detector project, I encountered this error :- Traceback (most recent call last): File "c:\Users\idhant\OneDrive -...

### Inference using saved model in Tensorflow 2: how to control in/output?

Adapting my code from TF1 to TF2.6 I run into trouble. I am trying to add some custom layers to an inception resnet, save the model, and then load and run it. from tensorflow.keras.layers import...