# All Questions

21,740 questions
Filter by
Sorted by
Tagged with
5 views

### Prediction for Current month based on last month's Labels

I have monthly data of loan installment repayment. The data contains basic features like salary,age,gender, credit score etc. Along with above features, i have data for last 6 installment failure/...
7 views

### Passing data to SMOTE after applying train/test split

I'm trying to resample my dataset after splitting it into train and test partitions using SMOTE. Here's my code: ...
4 views

### Group by 2 variables in R to calculate sum, count, percentages, means, modes based on value of 3rd variable

Performing some calculations on a dataframe and stuck trying to calculate a few percentages. Would be 3 additional columns added for %POS/NEG/NEU. E.g., the sum of amount col for all w/ POS Direction ...
7 views

### why keras gives me desired results for my Entity Embedding but not pytorch?

I tried to build Entity Embeddings of categorical data from a dataset. I took a dataset - "Bike share”.This dataset shows number of bike share/rent/sales in every ...
10 views

### How do I extract certain articles from Arabic Wiki Dumps? [closed]

I need to collect all articles that are about countries and continents in Arabic from Wikipedia. I was wondering how do I find these articles if I downloaded the latest wiki dump? New to the field. ...
5 views

### TypeError: unhashable type: 'numpy.ndarray' while using exec() commands [closed]

I am running the following code in python: a=np.ones(7) info={'pid':0} for i in range(5): f="a%d = info"%(i) exec(f) This creates a1,a2,a3,a4 as ...
10 views

### Accuracy Testing & Training

I have 102 observations. I made standard scale for dataset. I have found the accuracy training and accuracy testing values, but training score is 1.00 and testing score is -217.541. I have run with ...
12 views

### Is there a link between Training, Test errors based on k fold CV and not doing CV?

I am using Matlab to train a feedforward NN using Cross validation (CV) approach. My understanding of CV approach is the following. (Please correct me where wrong) Let ...
13 views

### Help understanding the Tensorboard histogram names and meaning in an LSTM Model

Can someone please help me understand what the names and shapes of the following tensorboard histogram outputs mean about an LSTM model I coded? Thank you! I understand the terms in the names like ...
18 views

### kramdown or rmarkdown? [closed]

I am following this post: http://jmcglone.com/guides/github-pages/ I have been using R and Rmarkdown for a few months, but I have no experience in github pages or any web related content: In the ...
15 views

### TensorFlow 2: Find MAE, RMSE for validation dataset in time-series LSTM

TensorFlow 2 "Time series forecasting tutorial" (https://www.tensorflow.org/tutorials/structured_data/time_series#recurrent_neural_network) gives an example of a LSTM multi-step prediction model that ...
10 views

### Determining the ideal parameters for KeyGraph Algorithm

Is there a method to determine the ideal amount of Keywords, High Frequency Terms and High Key Terms for the Keygraph? To determine the ideal amount of topics for the LDA you have Topic Coherence or ...
7 views

### Multi-valued categorical features in LIME

I am working with the LIME implementation by Marco Ribeiro (https://github.com/marcotcr/lime). Specifically, I am utilizing the LimeTabularExplainer as I have a mixture of numerical and categorical ...
14 views

### How are the Convolution kernels learned?

As I went through the basics of machine learning, I failed to understand how do the Convolutional layers in a CNN learn the convolution kernels. After looking at first few tutorials, I thought the ...
17 views

### partial numerical array - pattern matching

I have a linear numerical array source and I want to find/match test array as pattern : ...
13 views

### Neural-Networks - preferred method for training, classification v.s. regression

As a conclusion of their paper "Efficient Backprop" (http://yann.lecun.com/exdb/publis/pdf/lecun-98b.pdf) (§10 Discussion and Conclusion), LeCun and others conlude that the preferred method for ...
15 views

### What are some best Text Representation techniques in NLP

I've studied about various text representation techniques like : Bag of Words, N-gram data modelling, ...
10 views

### Salesman problem with additional conditions and features

I'd like to specify the kind of a problem I encountered. I need to compose the best route for a car driver who goes to different cities. His aim to check in the most proper car park in a city taking ...
8 views

### What interactive graph package do you use for timeseries data?

I have millions of sensor readings taken over time. I'd like to create an interactive plot in Google colab where I can easily zoom in on sections. I've done something similar with the Plotly package....
13 views

### ValueError while Plotting a specific column using K-Means

Following a tutorial, I was able to plot an array of data using KMeans. I tried to implement so I read a csv file that is separated into column. Furthermore, I want to plot only the values of column ...
12 views

### Should the type of Boolean categorical features be numerical or categorical after encoding?

There are categorical features which have two different value in my dataframe next to numerical features. I've converted these categorical values to 0 or 1. I will apply correalation elimination on ...
10 views

### Cross layer parameter sharing in ALBERT Model

I am reading the paper "ALBERT: LITE BERT FOR SELF-SUPERVISED LEARNING OF LANGUAGE REPRESENTATIONS". ALBERT uses cross layer parameter sharing to improve the model performance. I don't understand how ...
21 views

### Terrible Tensorflow performance on powerful production server

Background I am building a simple face detection API with Python, Flask and the MTCNN face detector. My problem is that the model and API are running really quickly (batch of 100 images takes 0.5-0....
17 views

### Gaussian mixture models: find correct prior

This task might be pretty simple to the most of you. However, I am struggling to calculate the PDF for the Gaussian distributions. Help is very much appreciated!
15 views

### SHAP Kernel explainer for my pipeline model

I am trying to use SHAP kernel explainer to understand my XGBOOST model. My data is the lending club data and I am trying to predict the Grade of each customer. The data contains different types of ...
11 views

### Random sampling and inference

I am completely new to R and lost. I am trying to generate M random samples of size k from a population of size N available in the form of text file, one per line. N >> k Then get a frequency ...
18 views

### Time series data analysis for diffrent time interval

I have 16 datasets with time and one parameter. like: ...
23 views

### Feature Importance from a GridSearchCV

I created a GridSearchCV for a Random Forest Regressor. Now i want to check the feature importance. I searched around and I found this ...
6 views

### How to do template matching without opencv?

How to do template matching without opencv ? I have a order invoice of documents belonging to Amazon ,ebay,flipkart,snapdeal and i want to extract few information from the order invoice . Since the ...
11 views

### Building Search Engine using Vector Space Model using a private database

Im trying to build a search engine for a private dataset using vector space model and have encountered following problem. Dataset Dataset is private. It is a collection of unstructed pdf . I have ...
16 views

### How should i build a Knowledge Graph for a custom dataset?

I'm new to machine learning and i'm trying to create a small Knowledge Graph for search purposes similar to google for a class project. Okay, so i have been searching on this topic for few days and ...
12 views

### Tensorflow Model : Model.Predict Error “Matrix size-incompatible: In[0]: [1,20], In[1]: [21,4]” [closed]

Tensorflow Ver. 2.1 Model running with 21 columns/features. Learning and Test slices and normalized data. Model performs OK until try to use model.predict then ...
14 views

### Multi layer full connected neural network in tensor flow

I am reading about deep learning using tensor flow using book Tensor flow for deep learning by Bharath RamSundar et. Here author implemented as below in chapter 5 ...
28 views

### Anomaly Detection/Novelty detection

I have a data-set that has over 6 million normal data and around 50 anomaly data.Those anomaly data is identified by manually(monitoring the user`s activity over camera and identify). I need to ...
9 views

### How to use the model after cross-validation using NN in Matlab

I am following the Matlab implementation of CV with NN. The following code explains training by cross validation (CV) aprroach on fisheriris dataset. Problem1: In this code if you could refer to the ...
18 views

### RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB

I'm trying to make a GAN for generating pictures using this code: https://github.com/abhinav3/Udacity-DCGAN-FaceGeneration/blob/master/dlnd_face_generation.ipynb I'm doing this learning on GPU. The ...
11 views

### Understanding computations of Percetron and Multi-Layer Perceptrons on Geometric level

I am currently watching amazing Deep Learning lecture series from Carnegie Melllon University, but I am having little bit of trouble understanding how Perceptrons and MLP are making their decisions on ...
23 views

### How do I get started with machine learning and image recognition?

I'd like to get started with machine learning, specifically image recognition. I know that Python is the most popular language for ML since it's easy to pick up and there's tons of libraries for it. I ...
16 views

### Combine RepeatedStratifiedKFold and crossval

Is it okay to combine RepeatedStratifiedKFold and cross_val_score? The result in the example below are 30 accuracy values (3x10 splits). How to calculate the final accuracy value for the 3 times 10 ...
11 views

### Why does reducing polynomial regression to linear regression work?

Getting into machine learning, have a reasonable background in statistics and understand the basic principles of linear algebra (matrix multiplication etc.) - but am having a damn hard time figuring ...
26 views

### Data prediction using scikit-learn and a list

I have a group of lists detailing temperatures over differing amounts of time. My goal is to use machine learning to identify periods in which a machine is turned on and off, where turning on the ...
13 views

### how to predict the time series data with two target outputs

I am a newbie to time series problems, I am doing one of the time series problems, I a have 317 columns and, I need to predict the stock Revenue and Price, I am trying to do it, but the many columns ...
25 views

### How to pass custom distance functions to K nearest neighbors function in scikit-learn

I am trying to solve a problem where I am asked to perform classification using KNN but with a custom euclidean function: The function is the following: ...
58 views

### Duplicated features for gradient descent

Suppose that our data matrix X has a duplicated column, i.e, there is a duplicated feature and the matrix is not full column rank. What happpens? I guess that we can not find a unique solution ...
33 views

### over-fitting with good enough test accuracy

Let's make things simple. Imagine an underdetermined linear system with $N$ samples and $p$ features $(N<p)$. Let's say I found one of the possible (among many) solutions of such systems and ...
139 views

### Compare Coefficients of Different Regression Models

in my project, I am using asuite of shallow and deep learning models in order to see which has the best performance on my data. However, in the pool of shallow machine learning models, I want to be ...
40 views

### Should Feature Selection processes be apply on training data or on all data?

I've realized that on examples and guides, sometimes feature selection processes (correlation elimination, backward/stepwise) are applied on the train data after splitting all data but on the other ...
17 views

### What doese 'v' mean in GoogLeNet?

In GoogLeNet (this link), there is 'v' notation in Figure3 like '1X1+1(v)'. I don't know the meaning of 'v'. Also, I understood 's' as stride. But, I don't know the reason why plus operation is used ...