# All Questions

35,944 questions
Filter by
Sorted by
Tagged with
16 views

### How to split a single feature vector into a layer of 2 neurons

Given an array x = [1, 2, 3, ...] , I want to split each sample x[i] into 2 neurons. My idea was to initialize a variable ...
• 120
9 views

### Is it possible to recover initial weights from Keras model?

I've trained basic model from keras.Sequential class but didn't save weights right after running model.compile(). Is it possible ...
• 103
1 vote
23 views

### Mining association rules between time series

I have a pandas dataframe that represents a time series. My time series is segmented over the phase type that the robot is performing (i.e. I have a column with the phase type per timestamp and the ...
• 45
9 views

### In "Show, attend and tell", why do the attention weights get multiplied with the features to form the context vector?

The attention weights are formed through the last hidden state of the LSTM and the feature map from some kind of image encoder (in my case resnet so the features are in the form of 14x14x2048). They ...
• 101
1 vote
23 views

### SVM, Is the slack value always equal to the alpha value for points within the margin?

I'm preparing for an exam and I got stuck on this question. I understand that the alpha values 'affects' how much influence corresponding data point has on the position of the decision boundary, and ...
• 11
23 views

### Workflow for improving and comparing deep learning models

Say I have the most basic neural network that performs some task (eg Keras sequential model with one hidden layer, used to binary classification) and a list of ideas how one could improve it (like: ...
• 103
9 views

### BIO/IOB tagging scheme: O-word between a entity

I'm usin IOB2 tagging scheme, but during the annotation process I stumbled in to a problem: normally I would tag "New York" New - B-GPE, York I-GPE, but if there would be another word ...
8 views

### Transfer learning applicability for Psychology experimental research

This is my first question so please be gentle! I am a Psychologist building a predictive model using experimental data and I want to know how I can do this using limited training data from part of my ...
17 views

### What are some approaches to improve the classification of ONE particular instance of interest?

I'd like to know if there are some methods to correct a specific misclassified instance of interest (e.g. in a Logistic Regression or Random Forest). Like maybe increasing the error for that ...
8 views

### How to implement edge feature in message passing algorithm of Pytorch Geometric?

I am trying to implement a custom message passing function $x^k_i = x^{k-1}_i + m^k_i$ where $x_i$ is the node embedding of the i'th node and $m^k_i$ is the message getting delivered at the i'th node ...
7 views

### Algorithm of lda2vec in NLP

I was going through lda2vec and was confused on some of the concepts.It is a combination of LDA and word2vec.Word2vec is used to learn dense word vectors and LDA is used to learn the probability ...
• 1
1 vote
22 views

### How to calculate gradient of MSE in backpropagation? [duplicate]

I want to implement a neural network from scratch to solve linear regression by using backpropagation. I don't understand how to compute the gradient of the MSE cost function with respect to each ...
• 120
16 views

### Is binary classification a good starting point for estimating the predictive uncertainty of the model

If yes, are there any papers that mention this point of view?
17 views

### Seasonal ARIMA?

Greatly enjoy exploring data in Orange Data Mining! I have daily average temperature data for several years. I can plot the periodogram, and do a seasonal decompose. Is there a way to forecast the ...
1 vote
32 views

### Can I fit a model with the parameters found with RandomizedSearchCV?

I want to ask you a question. Suppose I use the following RandomizedSearchCV to find the model's best hyperparams: ...
21 views

### Feature engineering for interest-based age classification

I have a dataset which has users (rows) with the list of their interests (IABs), which looks like this ...
7 views

### Multilingual Sentiment Analysis in orange

I have an issue with multilingual sentiment analysis using orange data mining. Everytime I tried using the widget, It gave me 0 score sentiment for all tweets data. I didn't know the problem. FYI, my ...
1 vote
20 views

### Example of a 2D dataset and a classifier stuck at local minimum

We always hear about neural networks getting stuck at local minima, but I cannot visualize one. Can you please give me some examples? I am not looking for something like below picture and a neural ...
• 111
15 views

### Where can I find example for usage of w3c automotive ontology?

There is ontology, but I haven't been able to find examples for usage so far. I tried searching among references and something like this. It's good there are plenty of ontologies outside to have one ...
• 1
10 views

### Product scrape data clustering model

I am developing a tool that scrapes multiple websites for products. Some websites sell the products themselves, while others feature products sold by third-party sellers that may have incorrect ...
• 101
24 views

### How to filter rows using custom function in pyarrow

I've a parquet dataset that contains latitude and longitude values as separate columns. And I want to filter those rows that are inside a polygon, I'm able to do this in pandas dataframe but unable to ...
• 101
21 views

### Using time serie to predict another variable

I would like to analyse head rotation data in space. For this I measured at 15HZ the rotation around the X, Y and Z angles for a little more than ten minutes. I would like to use these movements to ...
10 views

### Google, Qwant, Duckduckgo stopping to display results (images) early, even when they are still plenty of results available: the 78 rpm labels case

If I query images for: 78 rpm labels either on Qwant, DuckDuckGo, Google, I will encounter every times the same behavior: The pages are filled of up to 300 - 400 labels, then brutally stop without ...
36 views

### Bugs in the backpropagation algorithm in Python

I've been trying to create a simple Neural Network from scratch with a backpropagation algorithm to predict the next number based on 3 previous numbers. But for some reasons, MSE(Mean Squared Error) ...
41 views

### Testing RANSAC regression model

I am going to build the model (e.g. multiple linear regression) to predict the appartment cost in my city. First I have to find outliers in training data. For this task RANSAC regression algorithm ...
1 vote
24 views

### In Q-learning, why does Q index on both state and action?

In Q-learning, Q is an array of expected rewards for (state, action) combinations. It seems to me the same result could be achieved while slightly simplifying the algorithm, if instead of associating ...
• 115
3 views

### Can support be accounted multiple time for same sequence in sequential pattern mining?

I want to find top-k frequent sequential patterns from a list of sequences. Order of occurrence matters here (subsequence (1,2) is not same as (2,1)). Suppose I have 2 sequences: S1=[1,2,3,1,5,2] S2=[...
9 views

### Running all cells again adding new rows instead of return new dataframe

i am creating a class just like lazypredict library but with k fold support and return a data frame withh the mean score of every model every thing works and i can ...
17 views

### Classification problem with a numerical variable that uses a special (high) value to indicate a qualitatively different status

I have a classification problem where I need to predict an outcome based on 20+ variables, some categorical, some numerical. One of the numerical variables is 'dlast' - which is the number of days ...
• 101
7 views

### Attribution modelling using First and Higher-Order Markov Chains

The crux of my question is as follows: Would a higher-order Markov model produce a different result than a first-order Markov model when used for Channel Attribution modelling? Once the transition ...
14 views

### TensorFlow Attribute error

I am trying to learn to solve differential equations with TensorFlow. Can anyone tell me how to correct this error from PS python3 .\simple_ode.py ...
• 1
45 views

### Multiple classes present in one-hot encoding

When dealing with classification for multiple classes present in the same sample, can the output layer have the form of one-hot encoding, but instead of only one hot, have multiple? That is, in case ...
• 23
31 views

### ReLu layer in CNN (RGB Image)

I am able to get convoluted values from RGB Image lets say for each channel. So I have red channel with values: -100,8,96,1056,-632,2,3.... Now what I do is that I ...
21 views

### Statistical test for comparing number of clusters in data

I am performing $K$-means clustering on a dataset consisting of $n$ observations and $d$ variables, and I'm trying to determine the optimal number of clusters. Is there a test that can determine the ...
35 views

### Which chess notation to feed neural network: FEN or PGN?

I am trying to build a chess AI with a neural network. To learn about how neural networks work and refresh my programming experience. I have some experience with classifiers but not yet with neural ...
• 123
6 views

### Internal Validation of K-Modes in R

I am wondering if anyone knows of an R library suitable for internal validation of the k-modes algorithm? Therefore, an R library with silhouette coefficient and other indices suitable for validating ...
• 203
22 views

### ValueError: Input 0 of layer sequential_3 is incompatible with the layer: expected ndim=5, found ndim=3. Full shape received: (None, 1, 200)

I m confused about the input shape for the convLstm model ! I need some help for a classification problem. I would be very grateful if anyone could help me. So, the dataset is in the form of Drug ...
143 views

### Pytorch mat1 and mat2 shapes cannot be multiplied

The error message shows RuntimeError: mat1 and mat2 shapes cannot be multiplied (32x32768 and 512x256) I have built the following model: ...
• 27
1 vote
41 views

### Random Forest on high correlated data

I am relatively new on data science sector. I started tampering with random forest models and some strange occasions aroused. To be precise, I have data from sensors that record pollutants and a ...
• 13
8 views

### Given a Query set, find elements in a pool that are similar to the elements in the query set

I had some curiosity and I was wondering if anyone could shed some light on this. So, let's say I have a query set $Q$ that consists of the following sets of words: {...
• 21
41 views

### How to read colon in python?

My course has the following statement. a = np.array([[3, 2, 5], [1, 4, 6]]) We select all columns of a matrix where the entry on row 1 is greater than the entry ...
• 105
19 views

### How to fix Value Error: could not convert string to float error on Student Academic dataset

I was given a dataset containing information on Student Academics and was asked to perform 5 machine learning algorithms. ...
1 vote
26 views

### Why use sampling instead of the mean value for policy in Reinforcement Learning?

I'm quite new in RL and I'm currently following David Silver's course on RL. But at the same time, I also want to get hands-on, so I followed this tutorial from Gymnasium documentation: https://...
• 13
1 vote
11 views

### How does FastText create n-gram word features?

In the paper Bag of Tricks for Efficient Text Classification they talk about creating n-gram (word) features, and in their experiments they show results for both 1-gram and bi-gram. As far as I ...
• 440
144 views

### How to forecast a timeseries with geolocation data?

I have created a dataset with my geolocations from the last three months. The data set contains longitude, latitude, and timestamp, with a frequency of every 5 minutes. Based on this data, I want to ...
• 93
42 views

### Decision boundary of an neural network

Starting with a). For the first unit: 0 * x1 + 1 * x2 + 1 > 0 (0, because the threshold is 0) which is the same as x2+1 > 0. For the second unit: x1 * 1 + x2 * 0 + 1 > 0 (0, because the ...
• 11
51 views

### Can feature engineering avoid overfitting?

Can feature engineering avoid overfitting? If yes, are there any relevant papers that state this?
14 views

### Reporting and/or evaluation of metrics in deep learning

While I was trying to write a custom training script, I encountered the following doubt. I see that the loss is evaluated at the end of every forward pass (i.e., a step or with a particular batch of ...
7 views

### Select rows in Orange based on column value comparison

I'm trying to remove some rows from a cardio dataset where the value for the systolic pressure (ap_hi) is below the diastolic pressure (ap_low) which to me indicates a data error. The code I would ...