Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [machine-learning-model]

The tag has no usage guidance.

1
vote
0answers
28 views

Stacking with missing predictions from models [on hold]

There are several models A, B, ..., Z. These models may not give a prediction for any of entities from id1, id2, id3, .., idn. What approaches will be more suitable for stacking in these situations? ...
0
votes
0answers
4 views

In votingclassifier, why does soft voting gets higher accuracy score than hard voting? [on hold]

In all my runs, i saw that hard voting gave a lower accuracy than soft voting, is there a reason behind this?
3
votes
0answers
25 views

How to deal with count data in random forest

I am working on a classification model where my target class is a biased class with the class shape as 0 1 20694 101 Most of my features are the ...
2
votes
0answers
37 views

Simulating What-If Scenarios using Machine Learning

Consider a Sample Data-set provided below; ...
6
votes
3answers
68 views

Least Squares optimization

The cost function given as $\hat{\beta} = (Y - \beta X)^T (Y-\beta X)$ is used to evaluate the weights $\beta$. Here $X$ is the data and $Y$ is the output. On taking the derivative, we get the ...
-1
votes
1answer
53 views

ML: How to think feature selection?

What is the basic philosophy behind feature selection and modelling? How do you actually start? Could you please share your real (practical) inputs? Bit of background: I am actually trying to analyse ...
2
votes
0answers
16 views

What is the interest to implement a statistics model in a groupby object instead of use the whole groups in a sample?

I saw this topic and also this one in dask documentation. I wonder what is the real interest to make a model for each group instead of considering a whole sample where all groups would appear? As far ...
0
votes
1answer
22 views

Machine learning using python

ImportError=cannot import name 'GaussionNB' from 'sklearn. naive_bayes' (F:\anaconda\lib\site-packages\sklearn \naive_bayes.py How I can remove this error!? ...
2
votes
1answer
46 views

What Machine Learning Algorithm could I use to determine some measure in a date?

I am getting stuck with this problem. Let's say that we have the next information. CustomerID: 1, Date: 3/2/2018, Quantity: 3, Total: 390.78, Min: 130.26, Max: 130.26 We want to determine given a ...
0
votes
0answers
21 views

Is it possible to build a univariate decision tree which classifies exactly similar to a 1-NN using the Euclidean distance measure

The main objective is here 1NN with Euclidean distance model can be similar to the univariate decision tree.
2
votes
2answers
34 views

Machine learning models for predicting good machine settings given bad machine settings [closed]

I’ve a dataset about a machine that produces a product. Salient features about the dataset: • For each data point, some of the features are machine settings (calibration factor, grind time, ...
2
votes
1answer
48 views

What is the most appropriate machine learning approach for this scenario?

The scenario is pretty simple, and I'm sure it's been done a million times. The problem is i don't know the terminology to find the correct resources on the web. Scenario: I have an environment that ...
0
votes
0answers
8 views

Activity Classification using accelerometer data?

With general machine learning classification algorithm we can easily classify the activity a human is doing by training accelerometer data. Will it be possible to find the quality of his activity. [...
0
votes
0answers
18 views

Kaggle - Kernel dies continuously

I keep receiving the error message "The kernel appears to have died" when running a simple command such as pd.read_csv(.......) on my Kaggle kernel. I am not quite sure what the issue. Any thoughts ...
1
vote
1answer
65 views

How to feed data to Machine Learning Model?

I'm working on an SVM model as my college project. And the goal is to identify whether a tumor is benign or malignant. I'm implementing the model in Python. I found the data set from Gene Expression ...
0
votes
0answers
12 views

Bugs in Pytorch replication of a simple LSTM model built with Keras

I am new to Pytorch. I am trying to replicate a simple Keras LSTM model in Pytorch. Two model takes in the exact same data but the Pytorch implementation produces a significantly worse result. In my ...
0
votes
1answer
18 views

Converting dates to appropriate form to train machine learning model

I am trying apply linear regression on a dataset where the independent variable is a date formatted like '2-jan-08'. How should I convert the date so it can be used for model fitting?
0
votes
1answer
15 views

Model accuracy changes when target attribute change [closed]

I have a dataset. For a target attribute for example:person, I get an accuracy which is different when I use for example:price as target attribute and so on. Why this accuracy keep changing?
1
vote
1answer
20 views

Building a model in two stages

This question is regarding a use case related to predictive maintenance. The final model built (based on the steps mentioned below) is used to predict the failure of a particular component for a ...
0
votes
1answer
29 views

Purpose of test data in binary classification

I have a highly biased training dataset where AppId 6,7,8,9,10 are almost never purchased. I made this up just to see how good my comprehension of calculating the classification metrics is such as <...
0
votes
1answer
10 views

Survey papers on Natural Language Understanding

What are some good survey or review papers on the state of the art of machine learning approaches to grammatical/syntactic structure of natural languages?
0
votes
5answers
50 views

Estimating the accuracy of a model?

Given that I have a machine learning model. I evaluated the model over several labeled datasets and acquired the accuracy (or any other metrics) for these datasets. Now I receive a new dataset ...
0
votes
1answer
19 views

checking model stability - Performance for different class

I tried to do multi-class classification problem. The goal is to predict whether the match will be won by HomeTeam, AwayTeam or Draw. I did feature engineering from the attributes and finally came up ...
0
votes
0answers
6 views

Probabilistic search engine user behavior markov models

I am considering the following probabilistic Markov model of actions of a user on the results page of a search engine. The user examines the first result, with a probability $A$ he is satisfied with ...
0
votes
0answers
22 views

ValueError: Number of targets and number of penalties do not correspond: 100 != 1

I am getting this error after running the below code, what am i doing wrong? ...
0
votes
1answer
20 views

Does running the script of train_test_split several times with varying test size in sklearn cause data leakage?

I ran a script of ridge and lasso regression twice with and without pca. Both times i got an okay R^2. but when i changed the train_test_split test size from 20 to 30%. My model started to over fit. ...
0
votes
1answer
27 views

Gibbs sampling (For inference) vs EM

I'm familiar with the Expectation-Maximixation algorithm and, until now, I thought it was the only way to maximize the likelihood of the observed data, assuming a Gaussian mixture model. In the last ...
0
votes
0answers
14 views

Learn a boolean function

My ploblem is as follows: I have a pool of 32-bit physical addresses. Each address maps to a bank in the DRAM (16 bank in total). I can detect subsets of addresses mapping to the same bank. For ...
1
vote
0answers
14 views

Daily-level variables and weekly-level variables at the same model

I am running a model which has NPS (Net Promoter Score) as its target and various predictors among which some CSAT (Customer Satisfaction) data. The rest of the predictors are good to use at daily ...
0
votes
1answer
20 views

Is it possible to train a machine learning trainer?

That's just a weird thought experiment I recently came up with. I am new to this field actually. Anyway, here is the idea: Suppose we have data D, and a machine learning algorithm A1. Then we use A1 ...
0
votes
2answers
34 views

How can someone avoid over fitting or data leak in ridge and lasso regression when the training score is high and test score is low?

I used the code provided here: https://towardsdatascience.com/ridge-and-lasso-regression-a-complete-guide-with-python-scikit-learn-e20e34bcbf0b The only difference is that i used StandardScalar on my ...
1
vote
2answers
26 views

model to predict annual outcome based on previous years data

I have below datasets for two years each holding about 10.000 records. Every week a new report is generated that shows the performance for the current or any previous month. Therefore a more recent ...
1
vote
0answers
13 views

Analyzing a stream of timestamped accelerometer data to find the start and end of certain motion patterns

I'm new to machine learning, so sorry in advance if this is not a useful question. But I'm hoping to get a few clues to start additional research. As part of my project, I've attached an 6-axis ...
0
votes
0answers
13 views

How to optimize multi-label classification with string input AND partial search matching

Need a way to optimize multi-label classification having a string(sentence) column as input and multiple categorical targets. The current implementation is taking all the strings and tokenizing them, ...
0
votes
0answers
20 views

Which loss function to use for predicting traffic vehicle count?

I want to predict the traffic vehicle count of different junctions in a city. Right now, I am modelling this problem as a regression problem. So, I am scaling the traffic volume (i.e count of vehicles)...
0
votes
0answers
20 views

recognizing faces in picture

I've built a CNN using tensorflow.keras and I have 600 pictures 222x222 for any face (I have 3 now), and for every picture and turing it to gray and to 70x70 is it okay? should I keep the picture ...
1
vote
1answer
45 views

Predict the loss amount for insurance policies using the historical trends and features?

Anyone who has worked with insurance policy datasets, please guide me to an appropriate dataset for this problem . Also, what is this 'loss amount' and what model will be appropriate for it?
2
votes
1answer
38 views

Create recommendation system to recommend products to a customer on any e-commerce website

The recommendations should be based on the products consumer has searched on other sites like Google. This basically means, that recommendations have to be made to the user based on his/her search ...
1
vote
1answer
18 views

Context classification problem

I have a bunch of articles about science from a certain website. When a new article is published, I want to determine if that article is really talking about science (and not politics for example). ...
0
votes
0answers
16 views

Q update rule of Q-learning and DQN

As far as I know, tabular Q-learning updates its Q-value as follows: \begin{equation} Q(s,a) \leftarrow Q(s,a) + \alpha (\gamma + \max_{a'}Q(s',a') - Q(s,a)) \end{equation} where $\gamma + \max_{...
2
votes
4answers
95 views

Approximate Text compression by training model?

I have a key-value form of dataset. Basically two sets of integers in many-to-one mapping. Like f(123) corresponds to 4652, f(24) corresponds to 12 and so on. Size of this dataset is say around upto ...
3
votes
3answers
573 views

Should I remove outliers if accuracy and Cross-Validation Score drop after removing them?

I have a binary classification problem, which I am solving using Scikit's RandomForestClassifier. When I plotted the (by far) most important features, as boxplots, to see if I have outliers in them, I ...
0
votes
0answers
24 views

How to confirm TensorFlow model is correctly built?

I am new to data science and TensorFlow framework. I am asking this question from end user perspective. We are building a custom model using TensorFlow framework and integrating it with web ...
1
vote
1answer
39 views

What exactly is .csv in machine learning? [closed]

I already have dataset of dogs and cats , so do i need to make .csv file or can i directly use the dataset for classification
0
votes
4answers
63 views

Meaning of variance in machine learning models

I know that high variance cause overfitting, and high variance is that the model is sensitive to outliers. But can I say Variance is that when the predicted points are too prolonged lead to high ...
0
votes
2answers
50 views

Corelation between overtime and sick leave

I have a scenario where I have to identify employees, who when take sick or any other paid leave his/her colleague (any other employee) gets overtime. My data set is as follows: ...
5
votes
3answers
83 views

Can you learn an algorithm from a trained model?

Are there any papers where an algorithm was entirely based on the results of a trained model? Let me explain. Suppose you want to come up with an algorithm that sorts three numbers $a,b,c$. I can ...
0
votes
0answers
40 views

LogesticRegression fit() function is throwing this error

i'm following datacamp pyspark tutorial series and on chapter 04 Model tuning and selection in fitting the model, I'm getting this error when i execute these line ...
1
vote
2answers
34 views

Terminology question

In Machine Learning, is the definition of the Model just the algorithm that was selected for the problem domain, or is the Model the algorithm and the training data? Thanks.