Questions tagged [machine-learning]

Machine Learning is a subfield of computer science that draws on elements from algorithmic analysis, computational statistics, mathematics, optimization, etc. It is mainly concerned with the use of data to construct models that have high predictive/forecasting ability. Topics include modeling building, applications, theory, etc.

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

Error while using saved logistic regression model on scoring vector data -The columns of A don't match the number of elements of x. A: 6011, x: 232964

0 I'm getting error while using saved logistic regression model on scoring vector data. SparkException: [FAILED_EXECUTE_UDF] Failed to execute user defined function (ProbabilisticClassificationModel$$...
Kunal Sinha's user avatar
1 vote
2 answers
179 views

Why do we need hyperparameter tuning in Scikit learn? Doesn't sk learn models by default give best model?

When I have the option to build a classifier like this directly clf = RandomForestClassifier() why do we perform tuning by restricting the parameters like this <...
Hola's user avatar
  • 13
0 votes
1 answer
22 views

Clustering words with similar meanings

What methods are there to cluster words/word phrases with similar meanings together from a list of words/word phrases?
ros's user avatar
  • 1
0 votes
0 answers
19 views

overfitting or not

Hello so i'm building a classification model i train my on various models and these are the metrices so i want to know if ther's an overfitting or not
Bilel kort's user avatar
1 vote
1 answer
40 views

How to build a categorization system without a target variable?

The data I have a large dataset containing execution logs from various tests conducted over several years. The logs can be noisy and often contain a plethora of messages detailing the ongoing ...
Mr Kartofel's user avatar
1 vote
0 answers
28 views

ML paper reproducibility

How can I reproduce results in an ML paper if I don't have the identical resources to train the models as in the paper ? (in my case I only have a laptop spec NVidia gpu and in most of the papers I ...
okm02's user avatar
  • 11
0 votes
0 answers
10 views

Expanding Training Data for Intent and Entity Recognition Model

I have a specific use case where I need to identify both intent and entities within a given statement. For example, given the statement "Book train tickets from Mumbai to Delhi," the intent ...
D.Sunil's user avatar
1 vote
4 answers
106 views

How Can I Train a Real-World-Ready Classifier with Limited Real Data and Abundant Open-Source Data?

I am trying to train a text classifier with open-source data to generalize on the real user traffic (henceforth "real data"). However, even though I have many annotated open-source data, I ...
Mr.Robot's user avatar
0 votes
1 answer
59 views

Optimizing decision tree

I have a question regarding the technique/technology which could be applied for the issue: Suppose I have a rule-based tree or decision tree which predicts a variable Y based on variables A,B,C. This ...
DannyV's user avatar
  • 1
0 votes
1 answer
32 views

Utilizing Colab's GPU/TPU to Speed Up General Python Code not just data science code

I am new to using Colab and trying to speed up my code by utilizing the GPU/TPU runtimes. I have a block of plain Python code without any data science libraries like TensorFlow or PyTorch. I was able ...
Andrew's user avatar
  • 103
0 votes
1 answer
38 views

Understanding Multi-headed Attention from architecture details

I've a conceptual question BERT-base has a dimension of 768 for query, key and value and 12 heads (Hidden dimension=768, number of heads=12). The same is conveyed if we see the BERT-base architecture <...
Namburi Srinath's user avatar
0 votes
2 answers
96 views

Why is it difficult to use a linear regression model for the classification problems?

Why is it difficult to use a linear regression model for the classification problems?
user avatar
0 votes
0 answers
19 views

LSTM - How can I predict the status an hour before in advance?

I’m very beginner, I’m trying to design a prediction model for forecasting the status one hour ahead.I have 150 sample data, each consisting of of 24 hours of time-series data with multiple features (...
user2578441's user avatar
0 votes
1 answer
76 views

Best practices on encoding on an increasing number of categorical variables

I'm currently using Gradient Boosting Regressor as my model to predict production risk based off a set number of features as a side-project. One of these features, ...
Andrew Narvaez's user avatar
0 votes
0 answers
14 views

What does "explicit latent variable optimization" mean?

The paper MotionLM: Multi-Agent Motion Forecasting as Language Modeling states: Our model, MotionLM, provides several advantages: First, it does not require anchors or explicit latent variable ...
Eric Wiener's user avatar
1 vote
1 answer
46 views

What're the standard ways of padding data for GNNs?

I am working on materials property prediction using GNNs with torch_geometric. Each data in my dataset has different number of feature vectors x, edge_index vectors ...
user174967's user avatar
0 votes
0 answers
13 views

Tensorflow outputs nan for basic object detection/classification

I am receiving nan as my accuracy and loss outputs after each epoch for basic object detection in tensorflow. Also, my results (classification and bounding box ...
Clouseau's user avatar
0 votes
0 answers
18 views

Semantic Scoring and readability for short sentences

I am working on short sentences for NLP based classification. I wish to make a assessment if a sentence is readable before training the system on it. Now readability scores are not working since ...
Vinay Varahabhotla's user avatar
0 votes
0 answers
28 views

SMOTE-NC not working, Error: Pandas output does not support sparse data

I want to get my SMOTENC to work, but i've been failing successfully ...
user155410's user avatar
0 votes
0 answers
31 views

The optimal way to stratify a numerical target variable into a categorical one for a machine learning algorithm

I have tabular data, the predictive variables are numerical and categorical and the target variable is a numerical one. Using the proper techniques I can make predictive models with R^2=0.95. Now let'...
ADayWithoutRain's user avatar
0 votes
0 answers
12 views

How is it called when instead of creating predective models finding patterns in observed data (ML) you tried to guess the model theorically...?

I'm a college student appasionated of machine learning and I've decided to my bachelor thesis about it. I thought that as an interesting introduction to machine learning, I could introduce it by ...
ADayWithoutRain's user avatar
0 votes
0 answers
76 views

How to input or estimate missing text data?

My task requires 32 different columns with 25 beeing independent text data. Deleting nan values, or cutting columns which has less then 20% (of non NaNs) results in reducing dataset to less then 10% ...
Paweł B's user avatar
0 votes
0 answers
6 views

Is ALE curve value constant for observations in the same interval?

I have been reading Chapter 8.2 of the Interpretable Machine Learning about Accumulated Local Effects (ALE) plots. It includes the following formula which defines the ALE value for a given value of ...
Mageentta's user avatar
0 votes
0 answers
10 views

What is the best sampling strategy for correlation analysis?

I have a big dataset, and i want to finds subspaces with high correlation among features. I want to take only samples of data. So, what is the best sampling strategy in this context. Thanks
Imen F's user avatar
  • 21
0 votes
0 answers
19 views

In the GAN objective function, why do we first do we first find the D(x) that maximizes the objective function and then maximise wrt the generator?

The GAN objective function is optimised like this: argmin(argmax(L(G,D))) where the argmax finds the D (Discriminator) that maximises L(G,D). Why is it not the other way around, i.e. argmax(argmin(L(G,...
thebasqueinterdisciplinarian's user avatar
0 votes
0 answers
22 views

Proper metric for measuring the similarity between two images

I want to calculate the similarity between these two images: and These are brain topography maps and colors inside the circles represent the area being activated while watching TV. Thus I am looking ...
tail's user avatar
  • 117
0 votes
1 answer
25 views

Binary Classification of Images- CNN

I am learning ML and am working on a CNN problem where I need to classify images of CATS and DOGS. The way I have setup the labels is that cats are 1 and dogs are 0. I have made the final output layer ...
Hussain Bhavnagarwala's user avatar
0 votes
0 answers
16 views

Using standard deviation in the calculation of ratio to get the scale of values

In the youtube tutorial (Building makemore Part 3: Activations & Gradients, BatchNorm), standard deviation is always used to calculate ratio between two values (e.g. grad to data ratio, update to ...
Jayden's user avatar
  • 1
0 votes
0 answers
35 views

Does clustering belong to the domain of data mining or to the domain of machine learning?

Question 1. Does clustering belong to the domain of data mining or to the domain of machine learning? Or to both domains? Question 2. Depending on the answer to Question 1, could you please suggest a ...
Ommo's user avatar
  • 101
0 votes
0 answers
54 views

Decreasing the summary length from langchain load_summarize_chain?

How can i reduce the output size of the summarization in langchain map reduce method ?
Aadhil Imam's user avatar
0 votes
0 answers
14 views

RMSE of whole and part of test dataset

Can anybody help me to understand the behavior of metrics (RMSE namely) when testing model? I have NN with 1 hidden layer for regression task. RMSE equal 0.07 for external test dataset. But if I break ...
CUB_REV's user avatar
0 votes
0 answers
7 views

for multi-tasking training should I use big datasets as one file or each table as one csv?

Assuming we want to create a dataset of books. There would be dataset A: id_book, title, Author, Subject, Topic, Body [paragraph 1,2,3], Sites ... I was wondering what if i split each book into one ...
Magos Xiaomi's user avatar
0 votes
0 answers
8 views

How to model noisy time series data? Does non-linear modelling help?

Is it possible to model time series data that fluctuates. The main solution is to take first differences and make it easier to fit conventional models. What if non-linear models are built? Can they ...
J_Bake's user avatar
  • 1
0 votes
0 answers
26 views

Check the validity of the distribution in the proof of No-Free-Lunch Theorem

I'm reading the proof of No-Free-Lunch Theorem (quoted at the end of this question) in Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, p.37, the author wrote: ...
Tran Khanh's user avatar
0 votes
0 answers
45 views

Alternative to ELU and Leaky ReLU?

I was talking with a friend about different activation functions (we are still new to ML). One thing that I didn't like about ELU was the vanishing gradient, and about Leaky ReLU that it's not ...
Nasa's user avatar
  • 1
0 votes
0 answers
19 views

Preprocessing overheads in Machine Learning

Meta reports that data preprocessing overheads is fast becoming a bottleneck to machine learning training (https://engineering.fb.com/2022/09/19/ml-applications/data-ingestion-machine-learning-...
Rajath Shashidhara's user avatar
0 votes
1 answer
185 views

why I got TypeError: linear(): argument 'input' (position 1) must be Tensor, not int in NN?

I am writing a NN in pytorch. I have a list of tensors as input i.e. I created a list Y by appending 1000 tensor vectors(linear tensors) of size 3072. So, each Y[i] is a linear tensor of size 3072. ...
Ali.A's user avatar
  • 57
0 votes
0 answers
17 views

How to define a DataLoader or Loss for a e.g. multivariable functions?

I am trying to write a NN for estimating a f:R^n --> R^m. My problem is how to train network. I mean if I want to define a dataloader, how to attach X \in R^n to its related Y \in R^m ? Because ...
Ali.A's user avatar
  • 57
0 votes
1 answer
49 views

Is Repeated K-Fold Cross Validation Enough to Evaluate a Machine Learning Model?

I am training models with a small dataset (around 800 observations) and I am using Repeated K-Fold cross validation to evaluate the models. Initially, i am using the same cross validation for ...
codenoob1211's user avatar
0 votes
1 answer
45 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
14 views

Ranking risky routes

i'm looking to get the top 10 rank of the most dangerous routes. I have a routes table where each row is a route and it has features such as avg daily traffic for past three years No. of times where ...
Joe's user avatar
  • 1
1 vote
0 answers
23 views

How to know which rules were applied to predict one sample in trained decision tree model?

I have trained Random Forest Regressor from sklearn. I am able to return text representation from each Decision Tree rule using tree.export_text (sklearn documentation here). But it shows rules for ...
Paulina's user avatar
  • 15
0 votes
0 answers
12 views

L2 regularisation included in Validation Loss is counter intuitive?

I have been trying to tune hyperparameters for a neural network - I noticed the validation data loss for tensorflow in particular includes the L2 regularisation loss as a measure of the total loss. ...
Governor's user avatar
  • 101
1 vote
1 answer
42 views

Deep learning model produces very different results when classifying the same samples

I'm trying to design a simple deep learning application for biometric system verification, but every time I run the application I get very different results and I can't figure out why. I don't use ...
uuR's user avatar
  • 11
1 vote
0 answers
27 views

Is there a list of all the incorrectly labelled MNIST images along with their correct labels?

It seems that its well known that the MNIST handwritten digit dataset contains quite a few examples where the labels are clearly wrong and correspond to the wrong digit, some examples of people ...
Chuttle_guy's user avatar
0 votes
1 answer
16 views

How to represent facial features from video and classify high/low personality traits from facial features?

The dataset has 3-minute 30fps video conversations (no audio) of 150 extroverted and 150 introverted individuals. The goal is to classify them as "introverts" or "extroverts" based ...
TheBiometricsGuy's user avatar
0 votes
1 answer
36 views

Identification of inexactly-recurring material in time series stream

I am working on a personal project involving the analysis of a stream of audio data and the identification of (non-verbatim) repeated subsequences. My research on time series has so far lead me to ...
Stan's user avatar
  • 101
0 votes
0 answers
32 views

Detecting cropped features/objects in an image

I hope someone can point me in the right direction. (Cross posting from the main SO flow page) I have some images and I'm trying to write something in Python to detect if the objects in the image have ...
borncamp's user avatar
  • 101
1 vote
1 answer
57 views

Why is T5 often used in text-to-data for text prompt encoders?

In the text-to-data(music, image, audio, etc.) generative AI field, one method of encoding text prompts is to use pre-trained language models. Such an approach was used in research on Moûsai [1] and ...
NakataKoo's user avatar
0 votes
0 answers
17 views

Text and Checkmarks Extraction from an Image

I am working on a project where in I have a filled form which is a safety inspection checklist and I am processing it through AWS Textract. I am able to fetch text, layout, tables, signatures but ...
Adam's user avatar
  • 1