# All Questions

7 views

### Predict output sequence one at a time with feedback

I would like to solve the following classification problem: Given an input sequence and zero or more initial terms of the true output, predict the next term in the output sequence. For example, my ...
6 views

### Down-sampling the data

I'm trying to do a regression analysis with two different datasets. One of them has 965 samples and the other 2275. I wish to downsample the latter to 965. Please suggest ways to do so. Thank you!
5 views

### Error with respect to kernel weights in convolutional layer

Let's say, I have a convolution layer with: 3 input channels $X$ with dimensions 3x32x32 5 kernel filters $F$ with dimensions 3x7x7 Assuming the stride = 1, the layer produces an output $O$ with ...
6 views

### High RMSE and MAE and low MAPE

I have used a few regression models on the same dataset and obtained error metrics for them as shown below, The RMSE(Root Mean Squared Error) and MAE(Mean Absolute Error) for model A is lower than ...
3 views

### Resource and useful tips on Transfer Learning in NLP

I have a few label data for training and testing a DNN. Main purpose of my work is to train a model which can do a binary classification of text. And for this purpose, I have around 3000 label data ...
14 views

### When memory errors occur with model.fit(), is it due to GPU RAM or normal RAM?

With respect to this question, https://stackoverflow.com/questions/51895278/how-to-know-when-to-use-fit-generator-in-keras-when-training-data-gets-too-big when memory errors are reported due to ...
5 views

### How many actual cells are there in an RNN?

AFAIK, there are 4 different types of RNNs based on their application. And these are identified by the size of input sequences they accept and size of output sequences they generate: ...
3 views

### Is it a good practice to always apply ReduceLROnPlateau(), given that models benefit from reducing learning rate once learning stagnates?

The rationale behind the keras function ReduceLROnPlateau() is that models benefit from reducing learning rate once learning stagnates. Is it a good practice to ...
7 views

### Understanding the effect of num_words of Tokenizer in Keras

Consider the following code: ...
10 views

### Is this a problem for a Seq2Seq model?

I'm struggling to find a tutorial/example which covers using an seq2seq model for sequential inputs other then text/translation. I have a multivariate dataset with n number of input variables each ...
5 views

### Predicting Composition of Chemical Compounds

I have a dataset which has names of compounds and their compositions. Like below Sulphuric Acid=>[H,S,O] (Hydrogen, sulphur, oxygen) Oxalic Acid=>[H,C,O] Sodium Oxalate=>[Na,C,O] Potassium Sulphate=>[...
11 views

### Matrix multiplication issue (shapes not alligned)

I am building an RNN using numpy only and have started on the forward propagation section. However i am having some issues aligning my matrices. The issue is on this line: ...
9 views

### K-fold crossvalidation: how do MSE average and variance vary with K?

I'd like to get an intuition about how varying k impacts k-fold validation. Is the following right? Average of the OOS MSEs should generally decrease with k Because, a bigger "k" means the training ...
9 views

### Scikit-learn average_precision_score() vs. auc score of precision_recall_curve()

I've been searching around for an explanation to this, and haven't come across one yet- in scikit-learn, when I compute the auc() of the ...
13 views

### Determining nature of content in an article [on hold]

What is the general idea (in layman's terms without technical details) of knowing the nature of content of an article? For example: Whether an article is spam or promotional content, or is a fake news,...
15 views

### Deep Neural Network: Output a Magnitude, not merely a Category

How does (can?) a deep neural network provide a magnitude estimate, rather than simply guessing what category an input belongs to? For example, in guessing the weight of a cat, is there is a ...
12 views

### How to compute accuracy for CNN when outputs are one-hot encoded

I want to compute accuracy of my model on test data. I have three classes so actual output might look like this : [0 1 0] and the predicted output might look ...
13 views

### How to program derivatives for recurrent weights

I understand that the formula for the gradient of W and U is this: How might I go around programming ds/dst-1 for example?
8 views

### How to count number of word embeddings in Gensim Word2Vec model

I am trying to create a Word2Vec model of the the Pub Med Central corpus using the Gensim library and want to limit the total number of word embeddings to around 1 billion. I have searched high and ...
11 views

### Classification of religions in Azure Machine Learning Studio

I'm creating a classification model from the UCI Flags dataset where the goal is to predict the religion of a country from the features of its flag. I'm using Microsoft Azure Machine Learning Studio ...
12 views

### When should ordinal data be represented catigorically and when as integer?

I am doing the Kaggle competition House Prices: Advanced Regression Techniques to learn more about data analysis. I would like to apply multiple models to the data(Regularized LR, Random Forests, ...
8 views

### Fully connected layer output explodes, but weights, gradients, and inputs all have sane values

I'm trying to train a GAN, and the architecture includes a fully connected layer before the output activation function. In my case, by the second training iteration this layer's output always explodes....
25 views

### Duration in seconds the session lasts

i have a dataframe contain session start and end time ...
4 views

### What would be the main and essential criteria for evaluating auto-sklearn library ?

I m running experiments using benchmark datasets with auto-sklearn to see how its performance is different to the standard sklearn library, Since automl does an exhaustive search over parameters and ...
5 views

### How to find coreset of a given dataset in python?

I am trying to implement the core-means algorithm, which is basically k-means using coreset. I have searched up and down but could not find any libraries or modules which could help me with this. ...
14 views

The code: ...
11 views

### What kind of plot will be helpful for total count group data ( data grouped by month and year )?

I have a group data frame like this : ...
9 views

### Handling large word embedding matrix in Python

I have a pre trained Glove word embedding matrix (U) of dimension (400000 * 50). Now for the purpose of query expansion I need to perform the operation matmul(U*U.T). This is the term by term ...
15 views

### Partitioning data into features/labels and train/test after reading from csv file

I need to read data from csv file and then first partition that data into features and labels and then into training and testing set. However, there are several issues cropping up again and again. ...
15 views

### Why is the derivative of the product of a vector and its transpose cTc2 c? [on hold]

I'm learning principal component analysis and i have to derive the result that will minimize the error $$c^* = \arg \min{[x-g(c)]^2} = \arg \min{[x-g(c)]^\mathsf{T}[x-g(c)]}$$. What I have done so ...
16 views

### mean returns NA in R

A table fitness in R has three columns. I am trying to get the mean value of them for each row, so I use this piece of a code: ...
14 views

### Train an LSTM neural network with time series containing seasonal and trend

I am working on a project for predicting the number of DNS queries from the site: DNS queries statistics. The data I use is minutely data, which means the number of DNS queries of every minute. If ...
6 views

### Where to find Facial Visual Object Class

I am trying to make a face/head detection model using YOLO and darkflow. In order to do this I need a set of images peoples face annotated in Visual Object Class, VOC format. I would prefer data set ...
11 views

### plot and measure uncommon part of kdeplot

As you can see this code generate that picture: ...
9 views

### Importance Sampling in Off-policy n-step Sarsa

In Chapter 7.3 of Reinforcement Learning: An Introduction by Sutton and Barto, the off-policy pseudocode has the following update equation for $Q$: Compute importance sampling ratio:  \rho \...
19 views

### parse pdf into Json or Xml [on hold]

I want to create a neural net that can obtain some specific words from a pdf document into JSON or XML. For example let's assume that I have a pdf containing some information about countries and i ...
12 views

### Is the multilayer perceptron only able to accept 1d vector of input data? If yes, why is this so?

I am going through the tutorial at the link below which uses MNIST handwritten digit database. https://machinelearningmastery.com/handwritten-digit-recognition-using-convolutional-neural-networks-...
7 views

### How to use Cross Entropy loss in pytorch for binary prediction?

In the pytorch docs, it says for cross entropy loss: input has to be a Tensor of size (minibatch, C) Does this mean that for binary (0,1) prediction, the input must be converted into an (N,2) ...
15 views

### How to use Cross Entropy loss in pytorch for binary prediction?

In the pytorch docs, it says for cross entropy loss: input has to be a Tensor of size (minibatch, C) Does this mean that for binary (0,1) prediction, the input must be converted into an (N,2) ...
12 views

### Input data for this dataset to be feed into keras for training

Suppose I have 3 csv files which forms the dataset for training a machine learning model in Keras. file1.csv ...
7 views

### Can I use fit() function with images in Keras?

I want to use vgg16 to train a dataset that contains images. Can I use fit() function instead of fit_generator() in Keras? How?...
12 views

### How to implement YOLO in my CNN model?

I build a CNN model using keras on the cat vs dog dataset. Now what I want is with the image classification my model should also locate that animal on that image. I searched on web and found that YOLO ...
6 views

### Naive/ Persistent Models & 7 Day Forecasts

When determining the baseline performance using a persistent or naive model I understand it to be using the value of the previous time step as the prediction for the next time step and then ...
7 views

### What is the difference between 'if the data if of good quality' and 'if the data is tidy'?

I'm doing Data Analyst nanodegree from udacity. I'm confused between the difference even after going through the lecture a few times.
17 views

### Different results for Linear Regression using lm (R) vs linear_model (sklearn-python)?

I'm implementing a linear regression to compare users (categorical variable) to a percent difference (target variable and continuous). When I was using linear_models from sci-kit learn (python), the ...
5 views

### How to auto tag texts

Suppose we have predefined list of tags Tag #1, Tag #2, ..., Tag #N and we want to assign ...
10 views

### Setting up Neural Network for this problem

I have a question regarding neural networks considering I am not an expert in NN. Assume have a 5 by 5 grid that depending on me pushing any square (or combination of squares) some of those squares (...
13 views

### Improving the accuracy of my activity classifier

I'm extremely new to machine learning. I recently discovered turicreate and wanted to use it on a project to classify data spit out by the accelerometer and ...