Questions tagged [error-handling]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

(SQR 4008) Unknown function or variable in expression

I have an SQR code like this: ...
0
votes
0answers
8 views

Keras phantom classes prevent me from using class_weight dict

[CONTEXT]: I am using Keras to train a simple LSTM for classifying vector sequences. I am somewhat new to ML so what I say may or may not make sense. My dataset is made of sequences of extracted poses ...
0
votes
1answer
9 views

Reason of use of Product rule of Probability in Predicting Error

P(x,y) = P(y|x)P(x) Why do we use this in estimating expected prediction error? i.e. E{(y - f(x))^2} I researched and I came to know that it helps in figuring out noise but How?
0
votes
0answers
19 views

Flow System - Analysing Measurement Errors

I have a closed system with multiple flow measurement points as shown; where in theory (A1 + A2 + A3) = (B1 + B2 + B3) = C = (D1 + D2) and D1 = (E1 + E2 + E3 + E4) D2 = (F1 + F2 + F3 + F4) Some of ...
0
votes
0answers
14 views

Is it normal that CUDA will sporadically run out of memory?

Sometimes I will train a model successfully, othertimes CUDA will run out of memory in the middle of training with the exact same network, batch size, etc. Similar behaviour like models not loading ...
3
votes
3answers
813 views

Cannot clone object <keras.wrappers.scikit_learn.KerasRegressor object at 0x7fdc9c3ba550>

Trying to hypertune ANN but getting an error while using fit..(grid1.fit(X_train, y_train)) Below is the code ...
0
votes
0answers
1k views

Python - Logistic (Logit) Regression - why am I getting an Endog error?

I'm running the following code: ...
1
vote
2answers
35 views

How to make tool that's robust to user-generated typos?

Background: A client is generating datasets (excel files). They asked I make an app to analyze the datasets, e.g. summary tables and figures. I'm doing this in R shiny. Problem: There are many typos ...
0
votes
0answers
20 views

How to calculate error in omega having error in cos(omega*x)?

I have an equation $cos(\omega \times x) = c$. How can I calculate uncertainty in $\omega$ knowing (for each $x$) $c$ and uncertainty in $c$?
0
votes
0answers
506 views

Operands Could not be Broadcast with Shapes (19,)(0,)

I have googled and read something similar to the problem I have but I do not seem to know how to fix the error I got from this particular code: ...
0
votes
0answers
23 views

CNN models comparison

I coded a 38 layer CNN and 8 layer CNN but there's something wrong in my 38 layer CNN, which doesn't learn anything. Not able to fugure out what's wrong. They were trained on CIFAR.
1
vote
1answer
46 views

Making Sense of this Error Message

I am using a book and a video to learn how to use KNN method to classify movies according to their genres.This is my code: ...
1
vote
1answer
22 views

Can an R^2, or coefficient of determination be used on non-linear data?

I have used the $R^2$ metric to determine how well my neural network performs a non-linear regression. And it seems to work. The plots look almost identical, and I get an $R^2$ value of 0.93... it ...
0
votes
1answer
373 views

MLP Parameter tuning - gridsearchCV cannot fit?

I'm making an MLP classifier for binomial classification from 145 features. I want to get the best parameters on my MLP classifier to get a better prediction so I followed the answer to this question,...
0
votes
1answer
137 views

What are good practices in reporting RMSE or MAPE estimates for a machine learning model?

I have built a regression model to estimate prices given some attributes. Prices are expressed in million USD, with average of 4.4 million USD. I need to provide an estimate of the RMSE and MAPE of ...
0
votes
2answers
37 views

I am getting different mean_absolute_error when i retrain my model everything same

I have set my numpy random seed to 0. I am training on colab and using keras. I didn't change anything. I just re-ran my cell and the val_absolute_error changed. Code: ...
1
vote
1answer
69 views

How to create a system to detect text structure of a file?

Let's say I want to create a Machine Learning system that has a lot of log files of some few types (F1, F2,.. Fn) and I get a new Log file with maybe some errors or ...
0
votes
0answers
13 views

Error using imread function in matlab code

I was doing some sort of speech recognition pattern for recognition of sound but I stuck at imread error in matlab, any advice what to change in picture below you can find code and error. Code Error ...
1
vote
1answer
140 views

Importing Excel format data into R/R Studio and using glmnet package?

I have no problem importing Excel formatted data into R/R Studio and use all other R packages that I use. But, when I want to use the glmnet package to develop a regularization model, I invariably ...
1
vote
1answer
116 views

Should I only use scalar labels with Keras LSTM?

I have an array X_train = (1110,25,2) and a y_train = (1110,5,2). It means I use arrays with length of 25 for inputs and length ...
1
vote
1answer
457 views

What is the error rate for random guessing?

I am studying for my Machine Learning exam. In sample exam questions, there is a specific one that I could not understand: And the question is: "What is the error rate for random guessing?" I could ...
0
votes
1answer
3k views

PySpark: java.io.EOFException

System: 1 name node, 4 cores, 16 GB RAM 1 master node, 4 cores, 16 GB RAM 6 data nodes, 4 cores, 16 GB RAM each 6 worker nodes, 4 cores, 16 GB RAM each around 5 Terabytes of storage space The data ...
2
votes
1answer
12k views

TypeError: '<' not supported between instances of 'int' and 'str'

I have the following code ...
1
vote
0answers
27 views

binary classification for counting - estimating the error on counts due to error on prediction score

Ok, so I have the following set up: I have a binary classification problem and I am classifying events into signal and background. Ultimately, I want to count how many background events and how many ...
4
votes
1answer
920 views

Training on accurate data versus noisy data

I have data currently available that is very accurate and I would like to train my classification methods on this set of clean data to learn the important markers for distinguishing between classes. ...
0
votes
1answer
95 views

Regression model performance with noisy dependent variable

I'm doing a support vector regression with the dependent variable representing measurements from an uncalibrated sensor (measurement error between 2% and 20%) and I want to study the effect of this ...
0
votes
2answers
13k views

Tensorflow InvalidArgumentError: You must feed a value for placeholder tensor

I come across this error when I run the following code, trying to get prediction on test data. By printing out operation names, I see no operation named ...
1
vote
0answers
37 views

k nearest neighbors method, temporal trend in error

I have this set of data that looks like this I was asked o build a $k$-nearest neighbors algorithm for it which I just finished building. I have this question in regards to the data that I do not ...
1
vote
0answers
18 views

Implementation of reliable rule learning

I want to perform "reliable rule learning", i.e. mining a set of rules with a very low number of false negatives. I recently read the paper "Reliable agnostic learning" by Kalai et al. (https://doi....
1
vote
1answer
51 views

Matplotlib: plot indicating the precision of measurements

I have some data with some margin of error and am using numpy arrays to plot that data. Assuming the precision is, let's say, 0.05 or 0.03grams, then the data will be something like [4.0 $\pm$ 0.05, ...
2
votes
0answers
56 views

Errorbars on a weighted average (of a non gaussian distribution)

I have some datapoints $x_i$ and errors $\sigma_i$ which are the absolute value of some datapoints $w_i$ with (supposed) gaussian errorbars (the $\sigma_i$). The $x_i$ are amplitudes so we did not ...
5
votes
1answer
65 views

Theoretical background for model arhitecture choosing

Suppose I have a dataset $X$ and two different binary labels $y_{1}$ and $y_{2}$. The classes are very imbalanced - 3% of true in $y_{1}$ and 2% in $y_{2}$. Moreover, there are no pairs of (0,1), so, ...
1
vote
1answer
137 views

Help training Back-propagation Neural Network With 150k training pairs

I am currently trying to train my backpropagation to classify 150k training pairs. Each training pair is a vector of 18 Bipolar numbers and it runs through 2 hidden layers with a final output of 1 ...
3
votes
0answers
1k views

XgBoost error: contrasts can be applied only to factors with 2 or more levels

...
2
votes
2answers
17k views

Problems with accuracy.score sklearn

I am learning python and trying myself out at mashine learning. I am reproducing a super simple example - based on the infamous iris dataset. Here it goes: ...
3
votes
2answers
7k views

First steps with Python and scikit-learn

I believe I have a simple if not trivial question. I have a background in statistics and I tend to use Stata and R quite a bit. I am interested in learning Python. I used it for a while now and ...
1
vote
1answer
156 views

Uncertainty calculation through integration and correct analysis methodology

In the following text, uncertainty refers to standard deviation. My methodology and notation was based mainly on the book "A Student's Guide to Data and Error Analysis" by H.J.C. Berendsen." ...
2
votes
0answers
50 views

Modified Voting Algorithm to find the best recommendation

I have to find the best 10 items from the set of items for x number of given features. I don't know what the best recommendation will be. User data is not available to validate it. After reading a ...
-1
votes
1answer
134 views

R error using Knitr

I am attempting to compile code using Knitr in R. My code below is returning the following error, and causes errors in the rest of the document. ...