Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [algorithms]

An algorithm is a set of one or more computations that will produce a calculated result. All statistics methods are algorithms. Algorithms can be simple, such as calculating a percentage, or can be very complex and require a computer for fast and accurate results.

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

Scheduling Production on One Machine with Changeover Costs and due dates

I'm trying to develop a solution to find a local optimum to a combination of manufacturing orders. They have a changeover cost per type, this means that the change between a type 2 order and type 3 ...
Victor Ruiz's user avatar
0 votes
0 answers
17 views

Unsupervised detection and counting of a pattern in a time signal without pre knowledge

I'm facing a problem and it seems I can't find a working solution since a few years. TLDR : Is there a well-known algorithm or NN-model that is able to autodetect and count patterns in a time signal ...
SamoloH's user avatar
0 votes
0 answers
8 views

Resources to develop the statistical models for a sports betting website

Please help me with resources to develop a sports betting website. Just so you know, I am a complete novice. I am specifically looking for algorithms to calculate the odds, decide how much to charge ...
odd-one-out's user avatar
4 votes
1 answer
43 views

Algorithm for picking N random uniformly distributed samples, in irregular polygon?

Say want to pick a fixed number of samples from a large 2D dataset, such that they relatively evenly distributed over the whole sample area. Imagine places in a country - so the border of the data is ...
barryhunter's user avatar
1 vote
1 answer
36 views

Find closest color class to an RGB value

I have a module that estimates the color of an object and returns an RGB value in this format: (40, 48, 68) which corresponds to this color: Now I have to classify ...
Mary's user avatar
  • 217
0 votes
0 answers
8 views

kernal failure on data science ICA algorithm for independent component analysis

ICA algorithm Problem Statement The goal is to have the ICA algorithm for independent component analysis custom python code perform convergence on many independent audio wave files, e.g., 10, 15, 20, ...
Data Science Analytics Manager's user avatar
0 votes
0 answers
22 views

What algorithm can I use to get the product that would give me the most profit given its buying cost, selling cost, sell volume and buy volume?

I'm working on an app for evaluating the products sold on a market in a videogame. The products can be bought for cheap and sold for expensive. I want to evaluate the best product to buy and sell, but ...
EustakiosPower's user avatar
1 vote
1 answer
48 views

How can I predict the best treatment to give to new patient?

As part of a school project, I have to analyze a dataset with patients (with characteristics: sex, age, smoker 0/1, etc.) who received different treatments (one per patient) with a response to this ...
lea's user avatar
  • 11
0 votes
0 answers
12 views

Apriori algorithm formula: difference between support and frequency

What is the correct way to calculate support? I have seen two different ways and I'm confused as a result. One way (say first approach) is explained https://en.wikipedia.org/wiki/...
Srishti M's user avatar
  • 471
0 votes
1 answer
24 views

Interpolating missing data given county and state totals

Problem: I have population data for states and their constituent counties over several years. Each row is uniquely identified by a state/county and a year. There are four population columns: ...
myusername's user avatar
0 votes
0 answers
28 views

Why did the Double Metaphone algorithm choose to substitute and merge consonants?

Is there any literature describing the decisions behind why the mappings from input text characters to Metaphone hash consonants were made? Why did they choose to leave out vowels? Why did they merge ...
Lance's user avatar
  • 273
0 votes
0 answers
17 views

Cost function looks like the real math which is responsible for actually working on out problem statement If I talk on a whole and on a surface level?

Looking at the cost function for say linear regression, apart from changing the weight or the parameters, the cost function does the real job, right? If it is correct, what does cost function do in ...
Gurjot Singh's user avatar
0 votes
1 answer
65 views

Models vs algorithms

What are basic difference between algorithms and models Is regression SVM random forest decision trees algorithms or model
quanity's user avatar
  • 101
0 votes
0 answers
24 views

Calculating the solution of OLS efficiently when adding one feature at a time

We know that the analytical solution for an OLS problem is $𝛽̂ =(𝐗^T𝐗)^{-1}𝐗^𝑇𝐲$. I am looking for an efficient algorithm to solve for $𝛽̂$ when I add one feature at a time. More specifically, ...
Ali s.k's user avatar
  • 101
0 votes
1 answer
21 views

Approaches to dataset, whose elements have different size

I am working with a dataset where each elements is a square table of size m-by-n, where m (the number of rows) is the same for all the data points, while n (the number of columns) varies from tens to ...
Roger V.'s user avatar
  • 103
0 votes
1 answer
31 views

Trying to write a code that detects a maximum value before a drop off in slope

I'm trying to write code for a force test that will output the maximum force before structural failure occurs. I'm a bit of a novice to python, so the issue here might be something simple that I'm ...
Miriam Cubstead's user avatar
0 votes
0 answers
20 views

Seeking guidance on data analysis techniques to estimate project LOE based on numeric counts of outputs produced

I’m looking for some basic guidance on where to focus my research in support of some data analysis I’m looking to perform. The problem space is identifying a methodology for estimating Level of Effort ...
Steven's user avatar
  • 109
0 votes
0 answers
40 views

What are machine learning algorithms which rank films?

Broadly speaking, there are two approaches to producing lists of the best films: human vs machine curation. Human curation involves someone, a critic, making decisions and/or creating a canon, based ...
DJohnson's user avatar
  • 141
0 votes
0 answers
25 views

TreeSHAP algorithm: how do UNWIND and EXTEND work?

In the paper Consistent Individualized Feature Attribution for Tree Ensembles, the authors describe the well-known TreeSHAP algorithm. It aims to calculate the SHAP values of feature $i$ for all $i$ ...
Noomkwah's user avatar
  • 101
2 votes
3 answers
176 views

What is the most optimal machine learning model/algorithm to create a hangman solver?

Want to create a hangman solver, So what is the best ml algorithm (lstm,reinforcement learning, or etc) to use? Do suggest any other optimal technique if you know?
juci kater's user avatar
0 votes
0 answers
56 views

How to split a range of numbers considering other variables as well?

Let's say that I have a vector of numbers and I'd like to split it into 3 most optimal ranges for example, then I suppose I can use k-means or Jenks natural breaks. If I'd like to do the same thing ...
user152274's user avatar
2 votes
1 answer
302 views

Difference among ID3, C4.5, C5.0

The C4.5 algorithm uses information gain ratio instead of information gain like ID3, and it also adds pruning. What does C5.0 add more? Is there any example of code? I looked on the web but there is ...
Iya Lee's user avatar
  • 152
3 votes
0 answers
73 views

Where can I find implementation of the various improvements of K-nearest neighbors (KNN)?

I have been facing some challenges where traditional KNN algorithm perform well. I'd like to explore more advanced knn solutions. While researching possible solutions, I came across a paper titled <...
Lucas Morin's user avatar
  • 2,224
1 vote
1 answer
175 views

How to predict what someone will order?

Suppose Prof. X goes to a road side tea-coffee shop everyday at 5pm just after his office. After reaching there he tosses a coin, and places his order tea or coffee. The shop owner Y has been ...
S. M.'s user avatar
  • 162
1 vote
1 answer
31 views

Different patterns in dataset

Suppose some features in a dataset have a linear correlation with the target variable, some have a polynomial correlation, and for categorical features, the target values tend to distribute ...
jxqbbb's user avatar
  • 51
0 votes
0 answers
46 views

Existence of a "three-point" machine learning model?

I may want to ask if there are studies that exist which utilize a "three-point machine learning model. What I mean by "three-point machine learning model is that it may use several ...
Ralph Henry's user avatar
0 votes
1 answer
331 views

Understanding the stochastic average gradient (SAG) algorithm used in sklearn

For pedagogical purposes I've been trying to create my own implementation of the stochastic average gradient (SAG) algorithm in a logistic regression framework. Page 10 of the associated paper ...
hillard28's user avatar
1 vote
1 answer
407 views

In DBSCAN, can the distance between a Noise Point and Border Point be less than Epsilon?

In DBSCAN: A core point is a point which has at least "MinPts" points inside its Epsilon radius. A border point is a point inside the Epsilon radius of a core point, but it has a number of ...
SuperFluo's user avatar
1 vote
1 answer
22 views

Are there any algorithm to generate a set of data that match some statistic requirements?

I was wondering if there are time-efficient algorithms that can reverse the process of basic statistics computation. What I mean is an algorithm that instead of computing the mean, SD, max-min range, ...
Anselme's user avatar
  • 13
0 votes
0 answers
22 views

how to predict most frequent purchased item in e-commerce?

i have the following dataset: witch its market transaction dataset and i need to predict the most frequent purchased items based on transaction history, for example: if sara bought milk and cookies ...
user142418's user avatar
0 votes
1 answer
29 views

Regression Algorithm while passing in future values?

Very similar to this question here: https://stats.stackexchange.com/questions/406416/including-future-values-in-a-regression Is it possible to pass future (expected) values into a regression algorithm ...
Ryan Gaudion's user avatar
0 votes
1 answer
137 views

Why compare multiple machine learning algorithms and then decide which algorithm to use for fine tuning?

I have a problem. There is a dataset A, which deals with a classification problem. And for this dataset, several different baseline algorithms have been defined and computed. In addition, three models ...
Test's user avatar
  • 89
1 vote
1 answer
61 views

Calculate the top 5 optimal parcel locker cabinet configurations

Dear Data Science community, I have the following problem to solve and I'd like to learn which algorithm or approach I can use to tackle it. I don't expect a full solution here but I really want to ...
erichste's user avatar
  • 111
0 votes
1 answer
49 views

ML/AI - current algorithm landscape

ML spans a wide assortment of supervised models (k-nearest neighbours, random forests, Naive Bayes, logistic regression, support vector machines, neural networks) and unsupervised models (k-means, ...
RuiV's user avatar
  • 1
1 vote
0 answers
40 views

Algorithm Comparison for Influencers Ranking

I am working on ranking social influencers on Instagram according to their influential power with the metrics collected below. Metrics collected: username categories (the niche the influencer is in) ...
Lil Ptt's user avatar
  • 11
0 votes
0 answers
27 views

Task Distribution

I would like to distribute tasks (going to companies and signing a deal) to sales representatives based on some condition like company location (is it near the representative's place) or profit of the ...
Joshua's user avatar
  • 1
1 vote
1 answer
118 views

Which algorithm should I use to find how similar data points are?

I am working with a dataset where each record is a certain type of trip. For example, one record would have the data points: number of days of trip day the trip started where the trip started how ...
user139549's user avatar
0 votes
1 answer
48 views

Finding the tightest (smallest) triangle that fits all points

I'm supposed to find an algorithm that, given a bunch of points on the Euclidean plane, I have to return the tightest (smallest) origin centered upright equilateral triangle that fits all the given ...
MathCurious's user avatar
1 vote
0 answers
244 views

How to plot the computational graph and derive the update procedure of parameters using the backpropagation algorithm?

Please help me to solve this problem without a code (ps: this is a written problem): Given the following loss function, please plot the computational graph, and derive the update procedure of ...
Nezuko's user avatar
  • 21
1 vote
0 answers
65 views

Interpretation of the results of the Elbow and K-means

I have the following dataset (after scaling) which contains 5 features: : My objective is to cluster this data using an unsupervised ML model. After using the Elbow method, I get 2 clusters as below: ...
Abdessamad139's user avatar
0 votes
0 answers
35 views

Is SVM a good choice for this imputing a numerical variable?

Let's say I have 10,000 training points, 100,000,000 points to impute, and 5-10 prediction variables/parameters, all numeric (for now). The target variable is numeric, skewed normal with outliers. I ...
Stonecat's user avatar
0 votes
0 answers
55 views

Determine optimal number of layers for a neural network based on the dataset

I have a Neural network architecture where there are N parallel-connected layers (min. 3). Based on the dataset and classes it has, the optimal number of layers differ. Eg. for dataset1 optimal number ...
user avatar
0 votes
0 answers
23 views

Why does my regression-NN completely fail to predict some points?

I would like to train a NN in order to approximate an unknown function $y = f(x_1,x_2)$. I have a lot of measurements $y = [y_1,\dots,y_K]$ (with K that could be in the range of 10-100 thousands) ...
MttRch's user avatar
  • 1
0 votes
1 answer
525 views

How to gps data anomaly detection in python

I have gps format dataset lat, lon. I want to detection anomaly using python. I tested knn, smv, cof, iforest using pycaret. But i did not. These colors anomlay because the angle change is too much ...
ai-mcv's user avatar
  • 1
1 vote
1 answer
15 views

What topic does a "selection" algorithm fall under?

I am looking to develop a simple algorithm that is given a set of 10 vectors for a year from which to predict the "winner". This will be a supervised task where the algorithm will be trained ...
anas's user avatar
  • 11
1 vote
1 answer
389 views

Yolov5 image detection without segmentation?

I have read a number of papers on Yolov5 images detection techniques. But the papers don't refers to any segmentation step done by Yolov5. While I know that it is not possible to do image ...
cProg's user avatar
  • 113
1 vote
0 answers
23 views

Algorithm/method for grouping items based on their relative distance

I'm looking for a method to classify a set of items based on their relative distance. For example assume we have 4 cities and we know their relative distance: city1 city2 city3 city4 0 2.1 2.2 3.4 ...
Mehdi Zare's user avatar
1 vote
1 answer
46 views

Tuning a multivariate process automatically

I have a process to optimize which involves multiple algorithms. These algorithms are mostly interchangeable, but can have different performance benefits depending upon the input, and depending upon ...
ofcsub's user avatar
  • 13
3 votes
1 answer
184 views

What changes is the Neural Network back-propagation algorithm doing on the weights?

I have seen the formula for back-propagation algorithm for neural network error minimization, but I am not quite sure about what changes it is performing on the weights individually. Let us suppose a ...
user avatar
2 votes
0 answers
176 views

calculate the VC-dimension [closed]

I have a question about VC-dimension. I have this claim and I need to find out what its VC-dimension is $ H\subseteq\{0,1\}^n $ collection of Boolean functions over n In my opinion the answer should ...
hch's user avatar
  • 121

1
2 3 4 5
…
9