The starting point for a new state.
Questions tagged [threshold]
715 questions
0
votes
3 answers
How to threshold values in python without if statement (to zero if below threshold, same if above)
I want to do an inline comparison without writing 'If statements' in Python. If the value meets the threshold condition, it should be unchanged. If it doesn't the value should be set to 0.
In Python I don't seem to be allowed to apply a boolean…

Kelton Temby
- 825
- 10
- 20
0
votes
0 answers
Classification using GMM:how to use GMM for classification after doing the pca
Using Matlab, I have a one Healthy data and 7 Faulty data which are composed of 9 variables and after PCA on my healthy data I have got 3 PCs.
Now when I'm projecting the faulty data on the PCs I get overlapping between healthy and faulty data. Now…
0
votes
1 answer
Sum a daily time series into a monthly time series with a NaN value threshold
I have a 3D time series data matrix from January 1st, 1979 to December 31st, 2005. The matrix is currently 9862x360x720 (daily rainfall x 0.5° latitude x 0.5° longitude). I want to sum the daily rainfall into monthly rainfall (a total of 324 months)…

Morbecknaga
- 35
- 6
0
votes
1 answer
Numpy NdArray - How to set threshold and then sort values
I have a numpy ndarray (4 x 4) called 'sim' represents the similarity values between 4 items (a,b,c,d).
array([[ 1. , 0. , 0.5547002 , 0.73960026],
[ 0. , 1. , 0. , 0.66666667],
[ 0.5547002 , …

kitchenprinzessin
- 1,023
- 3
- 14
- 30
0
votes
1 answer
How to find outliers with non-linear threshold
Assuming that I have a dataframe such as
x <- round(runif(1000,-5,5), 2)
y <- round(runif(1000,0,5), 2)
z <- sprintf("%s%05d", "A", seq.int(1000))
df <- data.frame(x, y, z)
How can I find which data point (names of the point from column z) is an…

pisistrato
- 375
- 2
- 14
0
votes
1 answer
Change graph color above and below plot-line in Column chart in Highcharts
I have a graph with two plot-lines.I need to color the column portion with different color after crossing each plot-lines. But zones makes different column different color not the portion above plot-lone. I have tried Zones & Thresholds but haven't…

Md Mahmudul Hasan
- 314
- 1
- 3
- 13
0
votes
1 answer
Spark ML Logistic Regression in Python: Set the model threshold to maximize F-Measure
I've trained a logistic regression in Spark using pipeline. It ran and I am looking at model diagnostics.
I created my model summary (lr_summary = lrModel.stages[-1].summary).
After that I pretty much copied the code from this webpage. It all works…

user3245256
- 1,842
- 4
- 24
- 51
0
votes
2 answers
annotate a label to query based on thresholds that it falls within
I am trying to label my results based on two properties of my query set which falls within each combination of two threshold of another query. Here is a piece of code for clarification:
threshold_query = threshold.objects.all()
main_query =…

Azee
- 329
- 6
- 20
0
votes
1 answer
How to use threshold to remove false positives?
I am using OpenCV EM to segment a image on the HSV domain. Therefore, the segmentation detect some false positives [Highlights in Yellow]. Below, you can see the input image.
And below, the image segmented with false positives.
I try to remove it…

Tarcisiofl
- 123
- 1
- 4
- 16
0
votes
1 answer
Numpy array thresholding acceleration
I want to construct a np.array from another np.array using a conditional. For each value, if the condition is met, one operation has to be applied, otherwise another. The calculation I have written is ugly due to conversion to and back a list. Can…

Aleksejs Fomins
- 688
- 1
- 8
- 20
0
votes
1 answer
Canvas - Element disappears after ThresholdFilter
I have a problem with the Threshold Filter. My code so far:
var stage = new c.Stage("Canvas");
var canvas = document.getElementById('Canvas');
var currHeight = $('.canvasColumn').height();
canvas.width = 3335;
canvas.height =…

serij
- 33
- 1
- 7
0
votes
2 answers
orb opencv variable inputs
I am new to opencv and am trying to extract keypoints of a gesture image by ORB algorithm in python interface. The image input is binary and has many curvatures. So ORB gives too many points as keypoints (which are actually not). I am trying to…

amrut
- 64
- 8
0
votes
0 answers
how to find a one threshold value for large number of images :opencv python
My project need to extract features to classify diseases of leaves. So it require to extract features from nearly 800 images , can anyone help me to find the optimal one threshold value that suits for all the images, I tried otsu thresholding but I…

Singh.
- 319
- 1
- 3
- 6
0
votes
1 answer
cognos performance threshold
my cognos reporting team have an issue, few reports take 7 mins to fetch report of 3k records, which references 10+ tables, and sufficient indexes in place. At the earlier stage of the project my ex-collegues have given a wrong probmise to client…

sabarinathan u
- 144
- 11
0
votes
1 answer
Histogram of image not showing expected distribution
I have a cell array called output. Output contains matrices of size 1024 x 1024, type = double, grayscale. I would like to plot each matrix and its corresponding histogram on a single plot. Here is what I have so far:
for i = 1:size(output,2)
…

itend
- 63
- 4