Questions tagged [threshold]
The starting point for a new state.
threshold
716
questions
0
votes
0
answers
6
views
What is the standard threshold value that is best for accuracy when employing Euclidean distance as a metric for gauging textual similarity?
I'm using Euclidean distance as a metric to compare two sentences for similarity while clustering them using my custom incremental KMeans algorithm. The current threshold value I'm using is 0.7 which ...
4
votes
4
answers
6k
views
Damerau - Levenshtein Distance, adding a threshold
I have the following implementation, but I want to add a threshold, so if the result is going to be greater than it, just stop calculating and return.
How would I go about that?
EDIT: Here is my ...
0
votes
0
answers
16
views
Error message in Panel Smooth Transition Regression (PSTR) model
Please I have unbalanced panel data and I want to estimate a threshold regression using PSTR function in R. I get error message whenever I run NewPSTR and EstPSTR functions.
If I run the following ...
0
votes
0
answers
14
views
Setting Touchpad "AAPThreshold" Programmatically without sign off
I want to adjust the "AAPThreshold" value to 0 found in the registry path "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\PrecisionTouchPad" programtically and ...
1
vote
1
answer
38
views
Unable to delete SharePoint list which contains more than 100000 items
I have created a list under SharePoint Online that contains 100000+ items.
Now, I need to delete that list. So, I have tried to delete the list from List Settings.
It has thrown the below error ...
1
vote
1
answer
2k
views
JMeter fail tests if threshold exceeded
I'm hoping that I can find help here because I didn't find anything on the internet. I have multiple JMeter plans and I want to fail the plan if a throughput threshold for a group of requests is ...
0
votes
1
answer
73
views
Thresholds are passing but their values are zero
I am running a K6 script only for 1 VU on my local. However, "Create" threshold is displayed zero despite it passes. I wrote it in other way like "http_req_duration{name:${}/cases,...
-1
votes
1
answer
46
views
replace elements of array in python
I can't correctly change the elements of arrays with slicing in python
please help me!!
this is my code:
maxVal=np.max(gradIntensity2)
thrGradIntensity=gradIntensity2.copy()
highThr=maxVal/5
lowThr=...
0
votes
1
answer
49
views
For loop that looks at a certain window in an array
The code is supposed to load in a CSV data file that has 50 rows and 3000 columns, each row is an EEG sleep signal. Each signal should be read separately and the event detection function should ...
1
vote
1
answer
14k
views
Measuring Intensity Using ImageJ
we have to measure the intensity of the fluorescence in certain regions of images using imagej. we came up with the below steps to measure the intensity. while it does seem correct, my question is --> ...
2
votes
2
answers
49
views
Pandas Vectorized Operation - Making counting function that resets when threshold reaches 5
I am quite new to the programming and Im struggling to this matter. Any help is appreciated!
I have a dataframe of stocks including the prices and the signal if it will be up (1) or down (-1).
I want ...
0
votes
0
answers
66
views
find the change points except condition
I have an array
[
-670.0790336045966,
-670.079352863881,
-664.7769001654013,
-662.655094599744,
-662.6557553135007,
-662.6551031804399,
-667.966652577584,
-670.0779722837389,
-670....
0
votes
0
answers
58
views
How to use pagination to overcome SharePoint CSOM threshold error when working with a Folder object
I'm using C# and SharePoint CSOM to retrieve data.
I have a folder with more than 5000 files.
When I'm trying to get all the files under this folder, I'm getting an exception:
Microsoft.SharePoint....
1
vote
0
answers
508
views
override log4net appender threshold
I would like to know if it's possible to override a log4net appender threshold.
Default threshold level for the appender is ERROR, but for some namespaces I would like to log INFO as well, e.g. ...
0
votes
1
answer
1k
views
How can I call parts of lists in a given range?
I have a problem that requires me to take in a users input and return all items of that value or higher than that value up to 100
I'm asking the user what grades he wants to see from a set of data ...
0
votes
0
answers
19
views
aws alarm when metric is same for past
I want to raise an alarm in AWS whenever 24 hours have passed without the value of the metric changing (all datapoints pushed the same number for the last 24 hours).
How could I achieve that?
Was ...
1
vote
1
answer
3k
views
Identify black dots on lemon
I'm trying to identify black dots on a lemon I've had several attempts. I have problem of differentiating black shadows with the actual black stains on the lemon.
I've tried to use InRange and ...
0
votes
0
answers
249
views
Grafana: Configure from query: Threshold: All Values - seems not to work
I found some really helpful advice in How to plot horizontal line in Timeseries in Grafana and now I would like to apply this to my Timeseries Chart with multiple thresholds.
My data source provides ...
5
votes
4
answers
67
views
R- Find date when cumulative sum is above threshold
I am working with thermal requirements for crop growth. I have a table which contains cumulative temperature for a 6-month time period. Sample seen below:
date temp cum_temp
1: 2020-...
0
votes
0
answers
43
views
define cut off frequency in ideal high pass filtering
I specified the cut-off frequency in pixels to apply a high pass filter. "Pixels" is not a unit of frequency for sure, but a spatial position in the frequency domain representation of the ...
0
votes
0
answers
6
views
Combine output of two models to create a risk heatmap
I have two models (predicting risk of large loss) model a and model b. I need to come up with a risk heatmap where I say model 1 score > x and model 2 score > y then high risk else low risk. How ...
0
votes
0
answers
139
views
Calculation of dynamic threshold for anomaly detection
I am a beginner in python and data analyst field. I have timeseries data for example as given below, I have multiple sets of data. Want to find anomalies on the timeseries data we have, for that I am ...
0
votes
0
answers
42
views
JavaScript Functions Running Randomly
I have a button, and a counter. The counter is assigned count. When you click the button counterPlusElem, the count increases. You can buy upgrades that take away some of your count, but make it so on ...
0
votes
0
answers
52
views
How to choose the best threshold when removing multicollinear features with hierarchical clustering on Spearman rank correlation?
I am reading currently this documentation https://scikit-learn.org/stable/auto_examples/inspection/plot_permutation_importance_multicollinear.html#handling-multicollinear-features in order to handle ...
0
votes
0
answers
57
views
Sauvola local image thresholding
How to apply Sauvola local image thresholding by MATLAB? I downloded the File Exchange contribution:
https://www.mathworks.com/matlabcentral/fileexchange/40266-sauvola-local-image-thresholding?tab=...
0
votes
0
answers
143
views
Threshold value for Google monitoring alert policy
I have created Google Monitoring alert policy for Google monitoring SLO( 95% to total https requests for 7 days should have less than 5s latency and should receive alert when burn_rate consumes 2% of ...
0
votes
0
answers
43
views
MariaDB bad index choosen after threshold
I'm working with MariaDB -> 10.11.4-MariaDB-1:10.11.4+maria~ubu2204
I have a table with :
7,984,176 rows
2 columns :
lab_id (ID of a laboratory)
date_prelevement : date of the event from 1 year ...
0
votes
0
answers
249
views
Pruning trials in Optuna using both threshold and PatientMedianPruner
I am using MedianPruner (with patience) in Optuna. Sometimes a trial begins to diverge, and I want to stop it before it continues. I would use ThresholdPruner, but I can't as I am already using ...
0
votes
1
answer
457
views
How to get all files and folders with metatdata from sharepoint folder whose threshold is crossed using rest api?
I am fetching data from a folder inside sharepoint library.It has 7K files and folders.
I m using velow query.
"/_api/Web/GetFolderByServerRelativePath(decodedurl='" + ListName + "')?$...
22
votes
4
answers
19k
views
How to set a pylint score threshold?
I'd like to extract my pylint rating and set a threshold. Let me explain, for example, if the score is under 5, I want exit 1; And if my code is rated higher than 5, I want exit 0 and continue my ...
2
votes
3
answers
494
views
Vega-Lite gradient for line chart
I would like to colour a line above a certain threshold in one colour and below the threshold another colour (see image below).
How would I go about doing this?
I've tried using gradients and the ...
1
vote
1
answer
36
views
Configuring log4j such that any logger statements emmitted at level 'ERROR' are routed to a separate file
To demonstrate my problem, imagine we have a simple app with a top level package com.foo, and
subpackages for ui (com.foo.ui) and server (com.foo.server). I have not been able to cook up
a log4j ...
0
votes
0
answers
19
views
Removing columns from Dataframe by frequency of missing values & whether percentage of unique values is above / lower than a specified threshold
Write python function with input_df,threshold and unique threshold as arguments.
train_df = input_df.copy()
num_unique = []
for item in train_df[column]:
if item not in num_unique and not pd....
0
votes
0
answers
17
views
Thresholding Neural Network outputs
So I currently have this graph dataset, which have two classes, and I intend to do a binary classificaiton problem. The following is the data’s information
from torch_geometric.datasets import ...
0
votes
0
answers
163
views
Is there a way to intersect 2d polygons with a point cloud and filtering them out using a threshold(number of points intersecting with a polygon)?
I'm trying to intersect some building footprints in a shapefile with a point cloud. My goal is to filter out the polygons(i.e. the footprints) that intersect with a certain number of points (a ...
0
votes
0
answers
18
views
MATLAB - trying to run a loop to estimate a threshold for S-shaped curves
I fitted a sigmoid shaped curve to individual datasets (n = 53). The S-shaped curve has 101 datapoints.
I've attached an example picture for one subject (and 2 conditions) example. I'm trying to ...
0
votes
1
answer
59
views
How define a best threshold based on confidence level?
I have a Data Frame, it has a threshold that check based on confidence1 if "Is the same person" or not. When the confidence is lower the person is different and the opposite when is greater.
...
1
vote
3
answers
1k
views
How to compute sensitivity, specificity from a fitted logistic glm?
I have fitted a logistic glm. Now I want to calculate sensitivity, specificity i.e., true positive rate, false positive rate.
I can easily calculate AUC using the R package pROC. Since, logistic model ...
0
votes
2
answers
313
views
How to make barplot with a threshold in matplotlib?
I want to use the code provided below for a barplot, but with added threshold, where the data on or below the threshold have a color different to the data points above the threshold.
Please check out ...
0
votes
0
answers
212
views
How to set GCP Alert threshold based on time?
I have a Google Dataflow Pipeline that logs JSON similar to the following.
jsonPayload: {
metric: "viewings-per-second",
time: "2023-03-28 17:16:14",
value: 15
}
I ...
1
vote
1
answer
46
views
Binary sentiment classifer threshold
I have this code where I am trying to set a threshold that filters out neutral sentiment tweets from the test set and only classifies positive and negative tweets. However, it is classifying only as ...
12
votes
1
answer
8k
views
Jenkins xUnit test result report
I have a Jenkins job to copy some test reports(XML) to local and convert them to JUnit reports via xUnit.
The issue is that there are no failed or skipped tests, but I always get
[xUnit] [INFO] -...
0
votes
0
answers
113
views
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 ...
0
votes
1
answer
192
views
Optimal Cutoff Point for max sum of sensitivity and specificity
I would like to calculate the sensitivity-specificity sum maximization threshold (Youden Index) for my glm model:
model = glm(present ~ Summer_precipitation + Summer_temperature + Frost_days + ...
86
votes
2
answers
115k
views
Efficient thresholding filter of an array with numpy
I need to filter an array to remove the elements that are lower than a certain threshold. My current code is like this:
threshold = 5
a = numpy.array(range(10)) # testing data
b = numpy.array(filter(...
3
votes
1
answer
1k
views
how to calculate Otsu threshold in 1D
I'm trying to identify bimodal distributions in my analytical chemistry data. Each data set is a list of 3~70 retention times for a particular compound from the GC-MS. RTs for some compound are ...
0
votes
1
answer
208
views
How to stop parallax scrolling when at the top of viewport
I have a mountain parallax scene with four images within a container that parallax scroll when the container is visible within the viewport at the bottom of the screen. The animation works but the ...
0
votes
1
answer
70
views
Wrong(?) Thresholds in dataframe using R and PROC
I'm trying to calculate new cutoff values for a project, but it seems like
a) I do not understand the threshholds at all
or
b) I'm doing something wrong while calculating
The Data I use
data_sub$...
1
vote
1
answer
210
views
How to clean (delete) a black frame/boundaries/countour at the edges of the image after adaptive thresholding
I applied adaptive gaussian thresholding to my .tif image, but the black frame (contour) on the edges was created. Can't understand why and how to delete.
I would be very grateful for your help!
p.s. ...
1
vote
2
answers
1k
views
Adding threshold lines in financial plots in plotly in python
I am plotting financial subplots in Plotly in python which I am able to successfully. But I need threshold lines (horizontal lines) to be plotted in the second sub plot but not able to d the same.
But ...