Questions tagged [threshold]

The starting point for a new state.

715 questions
2
votes
1 answer

subgraph extraction based on the edges weights and graph connectivity

Given a matrix that describes the edges' and their weights of a connected graph (see below) I want to extract a subgraph based on a threshold value x for the edges' weights. In literature, I read that one can search for the maximal x, such that the…
J. Doe
  • 619
  • 4
  • 16
2
votes
1 answer

Practical determination of anomaly threshold in (variational) autoencoders

Although not strictly a programming question, I haven't found anything about this topic on this site. I currently dealing with (variational) autoencoders ((V)AE), and plan to deploy them to detect anomalies. For testing purposes, I've implemented an…
DocDriven
  • 3,726
  • 6
  • 24
  • 53
2
votes
1 answer

Thresholding for neural networks

I implemented a neural network for AND gate with 2 input units, 2 hidden units and 1 output unit. I trained the neural network using 40 inputs for 200 epochs with a learning rate of 0.03. When I try to test the trained neural network for AND…
pr22
  • 179
  • 1
  • 2
  • 9
2
votes
1 answer

R adding an if.else statement to function to return "null"

I have a question linked to another post from yesterday: R finding the first value in a data frame that falls within a given threshold. As per previous post I have data frame with optical density (OD) over time: time OD 446 0.0368 446.5 …
amir.fathi
  • 97
  • 1
  • 13
2
votes
2 answers

SKlearn: KDTree how to return nearest neighbour based on threshold (Python)

I have a database of 300 Images and I extracted for each of them a BOVW. Starting from a query image (with query_BOVW extracted from the same dictionary) I need to find similar images in my training dataset. I used Sklearn KDTree on my training set…
Furin
  • 532
  • 10
  • 31
2
votes
2 answers

Classify a list of value through a list of thresholds

I have a map of considered as thresholds to classify a list of Doubles HashMap map = new Hashmap<>(); map.put(A/B,0.7); map.put(B/C,0.4); map.put(C/D,0.3); map.put(D/E,0.1); The Doubles of the hash is used as…
Dr. Mza
  • 171
  • 1
  • 11
2
votes
0 answers

Impulse response functions for Threshold VAR in R

I have two variables (a financial stress index "CISS" and output growth). Using the tsDyn package in R, I first calculated the TVAR. paperis the time series consisting of CISS and the output growth. tvarpaper = TVAR(paper, lag=2, nthresh=1,…
Heike
  • 107
  • 2
  • 11
2
votes
0 answers

HSV value range for all shades of gray

I would like to selectively filter out values of shades of gray(silver included) using opencv. I am unable to figure out how to pick out the right hsv values for the same.
user8773963
  • 121
  • 5
2
votes
1 answer

Use one image to threshold another

I need to apply a threshold to an image in a very specific way, so I came here to see if it is possible. Say I had two images: one source image, and one threshold image. What I want to is take the source image and use the threshold image to filter…
Zock77
  • 951
  • 8
  • 26
2
votes
1 answer

minimum blob size for opencv threshold in python

is there a way to threshold only if the blob size is more than (height,width)? Example import cv2 img_1 = cv2.imread('my_image_1.jpg') thresh = cv2.threshold(img_1, 200, 255, cv2.THRESH_BINARY)[1] For the purposes of thresholding, I want to ignore…
Alejandro Simkievich
  • 3,512
  • 4
  • 33
  • 49
2
votes
2 answers

Eliminate the values in the rows corresponding to a column which are zero in MATLAB

I have a matrix of data which I am trying to analyse. I have a data and I applied some processing part and I managed to get some information below a certain level as in trying to apply threshold to it. So after I applied threshold the data goes to 0…
Matlaber
  • 35
  • 7
2
votes
2 answers

Removing points from list if distance between 2 points is below a certain threshold

I have a list of points and I want to keep the points of the list only if the distance between them is greater than a certain threshold. So, starting from the first point, if the the distance between the first point and the second is less than the…
S.sonia
  • 73
  • 2
  • 8
2
votes
0 answers

Google Text-To-Speech volume for Spanish low, break the max threshold?

I am having trouble with an android device i am working on. I can successfully change the language on the device and English volume is great. But for some reason(even at max level) Spanish is extremely quiet. I have been trying to figure out a way…
2
votes
2 answers

Visualizing sobel gradient in python

I'm trying to implement the sobel operator in Python and visualize it. However, I'm struggling with how to do that. I have the following code, which currently calculates the gradient for each pixel. from PIL import Image import math def run(): …
fbailey
  • 303
  • 5
  • 17
2
votes
2 answers

How to decide threshold in classification model?

Suppose I build a classification model and then to improve, lets say,precision I just increase my threshold probability of higher class. Does this make sense? I am not changing the model but just changing the threshold probability to get better…
Neo
  • 4,200
  • 5
  • 21
  • 27