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
1 answer
20 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
18 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
  • 263
0 votes
0 answers
16 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
44 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
19 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
19 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
  • 101
0 votes
1 answer
22 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
18 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
37 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
18 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
119 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
33 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
155 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
64 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,567
1 vote
1 answer
164 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
  • 173
1 vote
1 answer
29 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
15 views

Appropriate sample size for prediction algorithm

Our study aims to develop a Random Forest algorithm to predict the incidence of suicidal thoughts, after one year, based on the responses given to four surveys at baseline (time-1). Each survey ...
Andre's user avatar
  • 1
0 votes
0 answers
17 views

An algorithm to detect when the sound is not normal?

I was wondering the following problem: Suppose I have a machine and I would like to record its sound and detect automatically when the machine is going to break. What kind of algorithms are used to ...
curious's user avatar
0 votes
0 answers
42 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
197 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
216 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
0 votes
0 answers
13 views

Recognizing and assigning text within similar objects

The first timer in image processing - Pardon my cluelessness. Suppose I have multiple similar objects (box type) that contain several lines of different text strings. What concept should I look into ...
Joe Sturm's user avatar
1 vote
1 answer
21 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
21 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
81 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
58 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
48 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
24 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
98 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
24 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
242 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
55 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
50 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
22 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
461 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
376 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
21 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
44 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
177 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
160 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
4 votes
1 answer
156 views

How do I minimizie cost for EV charging?

I want to find a charging schedule that minimize cost of charging an EV. The main objective is to have a fully charged car for the next morning, but the sub objective is to minimize cost based these ...
NorwegianClassic's user avatar
0 votes
0 answers
97 views

Using MySQL Common Table Expressions to solve the travelling salesman problem

The problem I'm trying to solve is very similar to the travelling salesman problem, where there are many paths between nodes in the database. I've tried to edit my example to fit into this well-known ...
Greg's user avatar
  • 101
0 votes
1 answer
42 views

Which algorithm works well for forecasting sales prediction and the reason to choose particular algorithm?

I am working on a project 'Rossmann Sales prediction', in which I have to forecast the sales of Rossmann Stores. So it is a supervised ML problem. I applied random forest. But then in interviews ...
Sumeet Agrawal's user avatar
1 vote
1 answer
38 views

Which ML algorithm is best works on text data and the reason behind it? Also, which metrics is used for testing performance of model?

I am working on a project - 'sentiment analysis of tweets.' There are 5 different sentiments - extremely negative, negative, neutral, positive, and extremely positive. So it is basically the NLP ...
Sumeet Agrawal's user avatar
2 votes
3 answers
217 views

Should deterministic models be trained splitting into train, test datasets?

I'm studying the difference between GLM models (OLS, Logistic Regression, Zero Inflated, etc.), which are deterministic, since we can infer the parameters exactly, and some CART models (Random Forest, ...
Henrique Junqueira's user avatar
1 vote
0 answers
119 views

Detecting a Piecewise, Noisy, Linear Signal, with Constant Slope and Changing Y-Intercepts

I am trying to algorithmically detect a 2D linear signal under some noisy data. It is almost a textbook candidate for Robust Linear Regression, except for the fact that, while the slope remains ...
CSStudent7782's user avatar

1
2 3 4 5
9